/* =========================================
   BEREINIGTES CSS
   ========================================= */

/* --- GLOBALE RESETS & VARIABLEN --- */
* {
    box-sizing: border-box;
}

:root {
    --header-orange: #323232; 
    --header-bg: #323232;    
    --header-border: #E6E6E6;
    --header-text: #FFFFFF;
    --header-input-bg: #FFFFFF;
    --header-blue-dark: #e0ddd3; 
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f9fafb;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HEADER / NAVIGATION (IDEALO STYLE) --- */

/* Wrapper für Sticky-Effekt und Schatten */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 1. TOP SERVICE BAR */
.top-service-bar {
    background-color: #000000;
    border-bottom: 1px solid #000000;
    color:white;
    padding: 10px;
    font-size: 10pt;
}

.service-link {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.2s;
}
.service-link:hover {
    color: lightgray;
}

/* 2. MAIN HEADER */
.main-header {
    padding: 16px 0;
    background: var(--header-bg);
    color: #000;
}

.header-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Suche (Pill Shape) */
.header-search-form {
    width: 100%;
    max-width: 720px;
    margin: 0 2rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: var(--header-input-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    min-height: 44px;
}

.search-wrapper:focus-within {
    border-color: var(--header-orange);
    box-shadow: 0 0 0 3px rgba(230, 68, 0, 0.12);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-btn {
    background: var(--header-orange);
    border: none;
    color: white;
    width: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #323232;
}

/* Header Icons rechts (Actions) */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    color: #fff;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f7f7f7;
    font-size: 0.75rem;
    line-height: 1;
}

.action-icon {
    font-size: 1.4rem;
    margin-bottom: 3px;
    color: #fff;
}

.action-item:hover .action-icon,
.action-item:hover .action-label {
    color: #ffffff;
}

/* 3. CATEGORY NAV (Horizontal Scroll) */
.category-nav-bar {
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #494949;
    height: auto;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.cat-nav-scroller {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-nav-scroller::-webkit-scrollbar {
    display: none;
}

.cat-nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    padding: 4px 0 6px;
}

.cat-nav-link:hover {
    color: #6b7280;
    border-bottom-color: #6b7280;
}

/* Mobile Menü Overlay (für Burger Menü – aktuell nicht aktiv genutzt) */
.mobile-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    display: none;
}

/* --- MAIN CONTENT & LAYOUT --- */
.site-main {
    padding-bottom: 3rem;
}

.section {
    margin-top: 2.5rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.section-text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #4b5563;
}

/* --- GRIDS & CARDS --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    justify-content: flex-start;
}

.card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.card p {
    font-size: 0.95rem;
    color: #4b5563;
}

.card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #fff;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card {
    width: 100%;
    height: 100%;
}

/* --- BUTTONS & AFFILIATE --- */
.btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    margin-top: 0.5rem;
    transition: transform 0.08s ease, box-shadow 0.08s ease,
        background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

/* Primary Button Override (Yellow) */
.btn-primary {
    background: #2074df !important;
    color: white !important;
    box-shadow: none !important;
    border: none;
}

.btn-primary:hover {
    background: #14488b !important;
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    border-color: #111827;
}

.btn-large {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.affiliate-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.affiliate-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.affiliate-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.affiliate-buttons .btn {
    margin-top: 0;
}

/* --- PRODUKT DETAILS & METADATEN --- */
.product-card .brand {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.product-meta .price {
    font-weight: 600;
    color: #323232;
}

.product-meta .price-old {
    text-decoration: line-through;
    color: #9ca3af;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
}

.product-detail {
    margin-top: 2rem;
}

.product-detail-grid {
    display: grid;
    gap: 1.5rem;
}

.product-detail-image {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.badge-image-wrapper {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 90px;
    height: 90px;
}

.badge-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-content h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.product-detail-content .brand {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.product-meta-detail {
    margin-bottom: 0.75rem;
}

.pros-cons {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pros-cons ul {
    padding-left: 1.1rem;
}

.pros-cons li {
    margin-bottom: 0.25rem;
}

.campaign-dates {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* --- BADGES & CATEGORIES --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-top_pick {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #838383;
}

.badge-preis_leistung {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #60a5fa;
}

.badge-premium {
    background: #fdf2f8;
    color: #a21caf;
    border: 1px solid #f472b6;
}

.badge-editor {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #16a34a;
}

.badge-editor-large {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #16a34a;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.category-parent {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.category-count {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

.category-header {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.4rem;
}

.category-header h1 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* --- MEDIA & FORMS --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 80px;
}

.flash {
    border-radius: 0.4rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flash-success {
    background: #ecfdf3;
    border: 1px solid #16a34a;
    color: #166534;
}

.flash-error {
    background: #fef2f2;
    border: 1px solid #323232;
    color: rgb(25, 25, 25);
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    background: #ffffff;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.footer-nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.footer-nav a:hover {
    color: #111827;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.cookie-banner-inner {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    font-size: 0.95rem;
}

.cookie-banner-inner h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.cookie-options {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

.cookie-options label {
    display: block;
    margin-bottom: 0.4rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cookie-close {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-banner.show {
    display: flex;
}

/* ================================
   IDEALO MEGA MENU (DESKTOP)
================================ */

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 20px 0;
    z-index: 50;
}

.mega-menu.show {
    display: block;
}

.mega-menu-inner {
    display: flex;
    min-height: 260px;
}

/* LEFT SIDE – PARENT CATEGORIES */
.mega-menu-left {
    width: 260px;
    border-right: 1px solid #eee;
}

.mega-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.mega-menu-item:hover {
    background: #f5f5f5;
}

.mega-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

/* Wenn .mega-icon als <img> genutzt wird (DB-Icons) */
.mega-icon {
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Kategorie-Icons aus DB (Bilddateien) */
.mega-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.mobile-cat-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

/* RIGHT SIDE – SUBCATEGORIES */
.mega-menu-right {
    flex: 1;
    padding: 20px 24px;
}

/* Wenn .mobile-cat-icon als <img> genutzt wird (DB-Icons) */
.mobile-cat-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.mega-subcats {
    display: none;
    column-count: 2;
    column-gap: 40px;
}

.mega-subcats.active {
    display: block;
}

.mega-subcats a {
    display: block;
    padding: 6px 0;
    color: #333;
    font-size: 0.95rem;
}

.mega-subcats a:hover {
    color: var(--header-orange);
}

/* Subcategory-Link im Mega-Menü: Icon + Abstand + Text (Inline) */
.mega-subcat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #333;
    font-size: 0.95rem;
    break-inside: avoid;
}

.mega-subcat-link:hover {
    color: var(--header-orange);
}

.mega-subcat-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

/* ================================
   MOBILE FULLSCREEN MENU
================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 200;
    transition: left 0.25s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-body {
    padding: 10px 0;
}

.mobile-cat-item {
    border-bottom: 1px solid #eee;
}

.mobile-cat-head {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mobile-subcats {
    display: none;
    padding-left: 20px;
    background: #fafafa;
}

.mobile-subcats a {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile Unterkategorien: Icon + Abstand + Text */
.mobile-subcat-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-subcat-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

/* =========================================
   HERO-BEREICH (FULL WIDTH, INHALT BEGRENZT)
   ========================================= */

.hero {
    padding: 3rem 0 3rem;
    margin-bottom: 1.5rem;
    /* Hintergrundfarbe/-gradient kommt aus getHeroStyleByMode() */
}

.hero-inner {
    max-width: 1344px;
    margin: 0 auto;
    padding: 2.4rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(2px);
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.8);
    margin-bottom: 1rem;
}

/* Titel & Text im Hero */
.hero-inner h1 {
    font-size: 2.2rem;
    margin: 0 0 0.75rem;
}

.hero-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

/* Datumsanzeige – deutsch formatiert */
.hero-dates {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 1.5rem;
}

/* CTA-Button im Hero */
.hero-cta-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.1s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
    filter: brightness(1.05);
}

/* =========================================
   HEADER-CONTAINER & MAGAZIN-SLIDER TUNING
   ========================================= */

/* Alle Header-Bereiche: gleicher Max-Width & Padding */
.top-service-bar .container,
.site-header-wrapper .container,
.mega-menu .container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Kategorie-Leiste: Inhalt an Container ausrichten */
.category-nav-bar .cat-nav-scroller {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile Header-Layout (Logo/Actions oben, Suche darunter) */
@media (max-width: 768px) {
    .site-header-wrapper .main-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-search-form {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0.25rem 0 0;
    }
}

/* Slider-Verhalten nur auf kleinen Bildschirmen */
@media (max-width: 768px) {
    .category-nav-bar .cat-nav-scroller {
        scroll-snap-type: x mandatory;
    }

    .category-nav-bar .cat-nav-link {
        scroll-snap-align: start;
    }
}

/* =========================================
   RESPONSIVE (Zuletzt)
   ========================================= */

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    }
    .pros-cons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- PRODUKT: Preisvergleich-Tabelle (Idealo-Style light) --- */
.product-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.product-toc a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #111827;
    background: #ffffff;
}

.product-toc a:hover {
    border-color: #111827;
}

.offer-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.offer-table th,
.offer-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.offer-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    background: #fafafa;
}

.offer-table tr.is-primary {
    background: #fff7ed;
}

.offer-merchant {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.offer-merchant-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: #ffffff;
}

.offer-merchant-name {
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.offer-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.offer-price {
    font-weight: 700;
    color: #111827;
}

.offer-old-price {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-top: 0.15rem;
}

.offer-action {
    text-align: right;
    white-space: nowrap;
}

.offer-btn {
    white-space: nowrap;
}

.product-data-section {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.data-table th {
    width: 240px;
    color: #6b7280;
    font-weight: 600;
    text-transform: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #ffffff;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    margin-top: 0.6rem;
    color: #111827;
}

@media (max-width: 900px) {
    .data-table th {
        width: 170px;
    }
}

/* Ab ~1200px Breite auf 3 Spalten */
@media (max-width: 1200px) {
    .grid.grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Ab ~900px Breite auf 2 Spalten */
@media (max-width: 900px) {
    .grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: Bis 768px */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav a {
        margin-left: 0;
        margin-right: 0.75rem;
    }

    .hero {
        padding: 2.5rem 0 2.5rem;
    }
    .hero-inner {
        padding: 2rem 1.5rem;
    }
    .hero-inner h1 {
        font-size: 1.8rem;
    }
}

/* Mobile: Bis 600px (Grid) */
@media (max-width: 600px) {
    .grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Anpassungen für den Idealo Header (unter 1023px) */
@media (max-width: 1023px) {
    .main-header {
        padding: 10px 0;
    }

    .brand-col {
        padding-left: 15px;
    }

    .actions-col {
        padding-right: 15px;
    }

    .mobile-search-bar {
        padding: 10px 15px 5px;
    }

    .search-wrapper.small {
        height: 40px;
    }

    .search-wrapper.small .search-btn {
        width: 40px;
        font-size: 1rem;
    }

    .search-wrapper.small .search-input {
        padding: 5px 15px;
        font-size: 0.95rem;
    }
}

/* =====================================
   HOMEPAGE DEALS CAROUSELS (OwlCarousel2)
   ===================================== */

.home-slider-section .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-slider-section .section-header h2 {
    margin: 0;
}

.home-slider-section .more-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: #111827;
}

.home-slider-section .more-link:hover {
    text-decoration: underline;
}

/* Owl spacing */
.js-deals-carousel .owl-stage-outer {
    padding: 0.25rem 0.15rem;
}

.js-deals-carousel .owl-item {
    padding: 0 8px;
}

/* Nav */
.js-deals-carousel .owl-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.js-deals-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
}

.js-deals-carousel .owl-nav button:hover {
    border-color: #111827;
}

.owl-nav-icon {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

/* Screenreader helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Compact product card for carousel */
.deal-card {
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.deal-card .deal-card-image {
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-card .deal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-card .deal-card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.deal-card .deal-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2074df;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deal-card .deal-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
    margin: 0;
}

.deal-card .deal-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2074df;
}

.deal-card .deal-price small {
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.25rem;
}

/* --- Produkt Galerie (Main + Thumbs) --- */
.dp-gallery { display: block; }

.dp-gallery-main-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #f4f4f4;
}

.dp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.dp-gallery-thumb {
    border: 1px solid rgba(0,0,0,0.12);
    background: transparent;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.dp-gallery-thumb img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.dp-gallery-thumb.is-active {
    border-color: rgba(0,0,0,0.35);
}

.section {
    margin-top: 0.5rem !important;
}

.section {
  --bulma-section-padding: 0.5rem 0.5rem !important;
  --bulma-section-padding-desktop: 0.5rem 0.5rem !important;
  --bulma-section-padding-medium: 0.5rem 0.5rem !important;
  --bulma-section-padding-large: 0.5rem 0.5rem !important;
  padding: 0.5rem 0.5rem !important;
}

/* Theme-Abstand entfernen (owl.theme.default.css setzt margin-top) */
.owl-carousel.js-deals-carousel.owl-theme .owl-nav{
  margin-top: 0 !important;
}

/* Nav über dem Inhalt positionieren */
.owl-carousel.js-deals-carousel .owl-stage-outer{
  position: relative; /* Bezug für absolute Nav */
}

.owl-carousel.js-deals-carousel .owl-nav{
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 0;          /* verhindert "Layout-Höhe" */
  z-index: 20;
}

/* Buttons links/rechts direkt auf Höhe der Items */
.owl-carousel.js-deals-carousel .owl-nav .owl-prev,
.owl-carousel.js-deals-carousel .owl-nav .owl-next{
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}

.owl-carousel.js-deals-carousel .owl-nav .owl-prev{ left: 6px; }
.owl-carousel.js-deals-carousel .owl-nav .owl-next{ right: 6px; }

/* Optional: kompakter Look (wenn du willst) */
.owl-carousel.js-deals-carousel .owl-nav button{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.35);
}

/* Dots: falls irgendwann aktiv, keinen Abstand erzeugen */
.owl-carousel.js-deals-carousel .owl-dots{
  margin-top: 0 !important;
}

/* 40px Peek rechts, links bleibt bündig */
.owl-carousel.js-deals-carousel{
  padding-right: 40px;
  margin-right: -40px;       /* kompensiert die Breite, damit es nicht "einrückt" */
}

/* Sicherheit: falls noch inline padding auf der stage steht (von vorher), neutralisieren */
.owl-carousel.js-deals-carousel .owl-stage{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Nav-Buttons als runde, umrandete Buttons */
.owl-carousel.js-deals-carousel .owl-nav button.owl-prev,
.owl-carousel.js-deals-carousel .owl-nav button.owl-next{
  width: 42px;
  height: 42px;
  border-radius: 999px;

  /* Rahmen */
  border: 1px solid rgba(255,255,255,0.75);

  /* bessere Lesbarkeit auf Bildern */
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);

  /* Icon zentrieren */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* keine extra Abstände vom Theme */
  margin: 0;
  padding: 0;

  /* Klickgefühl */
  cursor: pointer;
}

/* Icon (‹ ›) */
.owl-carousel.js-deals-carousel .owl-nav .owl-nav-icon{
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

/* Hover/Active */
.owl-carousel.js-deals-carousel .owl-nav button.owl-prev:hover,
.owl-carousel.js-deals-carousel .owl-nav button.owl-next:hover{
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.95);
}

/* Disabled-State (Owl setzt .disabled) */
.owl-carousel.js-deals-carousel .owl-nav button.disabled{
  opacity: 0.35;
  cursor: default;
}

/* Optional: Fokus sichtbar (Accessibility) */
.owl-carousel.js-deals-carousel .owl-nav button:focus-visible{
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

.breadcrumb a {
  color: #323232 !important;
}

.breadcrumb a .is-active {
  color: #404040 !important;
  cursor:pointer;
}