/* ============================================================
   EAN-Finder.de — Modernes Design
   Eine einzige CSS-Datei ersetzt: bootstrap.min.css, animate.min.css,
   flaticon.css, boxicons.min.css, magnific-popup.css, owl.carousel,
   nice-select, meanmenu, jquery-ui.css, style.css, responsive.css,
   theme-dark.css
   ------------------------------------------------------------
   Theming über CSS-Variablen. Das Farbschema wird über
   <html data-theme="light|dark"> gesteuert (js/modern.js).
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
    /* Markenfarben (aus dem Logo abgeleitet) */
    --brand: #FA8072;
    --brand-deep: #E05545;
    --brand-dark: #C74534;
    /* texttragender Verlauf (Buttons): Weiß erreicht darauf WCAG AA */
    --brand-cta: #C74534;
    --brand-cta-deep: #A63523;

    /* Dunkle Flächen (Header/Footer, in beiden Themes identisch,
       damit das weiße Logo immer sichtbar bleibt) */
    --navy-900: #0E1726;
    --navy-solid: #142033;
    --navy-700: #1C2B44;

    /* Helles Theme (Standard) */
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --surface-2: #FAFBFC;
    --text: #1C2534;
    --text-muted: #5B6678;
    --border: #E4E8EE;
    /* Textfarben mit ausreichend Kontrast je Theme (WCAG AA) */
    --accent-text: #C7402F;
    --accent-text-hover: #A63523;
    --ship: #1F7A45;
    color-scheme: light;
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-hover: 0 4px 8px rgba(16, 24, 40, .08), 0 16px 36px rgba(16, 24, 40, .12);

    --radius: 14px;
    --radius-sm: 10px;
    --container: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

[data-theme="dark"] {
    --bg: #0C1220;
    --surface: #151E30;
    --surface-2: #1A2438;
    --text: #E7EBF2;
    --text-muted: #97A2B5;
    --border: #263248;
    --accent-text: #FA8072;
    --accent-text-hover: #FFA396;
    --ship: #4ADE80;
    color-scheme: dark;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, .45), 0 16px 36px rgba(0, 0, 0, .5);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text-hover); }

h1, h2, h3, h4, h5 {
    line-height: 1.3;
    margin: 0 0 .5em;
    font-weight: 700;
    color: var(--text);
}

p { margin: 0 0 1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-solid) 55%, var(--navy-700) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow .25s ease;
}
/* Schatten, sobald gescrollt wurde (Klasse setzt js/modern.js) */
html.eanf-scrolled .site-header { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    flex-wrap: wrap;
}

/* 44px = native Höhe von logo.png (kein Hochskalieren) */
.site-header .logo img { display: block; height: 44px; width: auto; }

.header-claim {
    flex: 1 1 auto;
    min-width: 220px;
    color: #fff;
}
.header-claim strong { display: block; font-size: 18px; letter-spacing: .01em; }
.header-claim span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* Kompakte Suche im Sticky-Header — erscheint erst, wenn die große
   Suchleiste aus dem Sichtfeld gescrollt ist (Klasse via js/modern.js) */
.search-form.header-search {
    display: none;
    flex: 1 1 220px;
    max-width: 460px;
    margin: 0;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}
.search-form.header-search input[type="search"] {
    padding: 6px 16px;
    font-size: 16px; /* mind. 16px, sonst zoomt iOS Safari beim Fokus */
    min-height: 40px;
}
.search-form.header-search button { padding: 0 16px; min-height: 40px; }
.search-form.header-search button svg { width: 15px; height: 15px; }

html.eanf-scrolled .header-search {
    display: flex;
    animation: eanf-fade-in .25s ease;
}
html.eanf-scrolled .header-claim { display: none; }

@keyframes eanf-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html.eanf-scrolled .header-search { animation: none; }
}

/* Umschalter (Theme + Sprache) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 32px 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08)
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    color: #fff;
    font: 600 13.5px/1 var(--font);
    cursor: pointer;
}
.lang-select { min-height: 40px; }
.lang-select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Aufklappliste im Seitendesign (Navy) — color-scheme: dark sorgt dafür,
   dass der Browser auch den Rahmen der Liste dunkel rendert */
.lang-select { color-scheme: dark; }
.lang-select option {
    color: #E7EBF2;
    background-color: #142033;
    font-weight: 500;
    padding: 8px 12px;
}
.lang-select option:checked { color: #FA8072; }

/* ============================================================
   HERO / SUCHBEREICH
   ============================================================ */
.search-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-solid) 55%, var(--navy-700) 100%);
    color: #fff;
    padding: 34px 0 66px;
    position: relative;
}

/* dezente Barcode-Deko passend zur Marke */
.search-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .028) 0 3px,
            transparent 3px 9px,
            rgba(255, 255, 255, .02) 9px 11px,
            transparent 11px 22px);
    mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}

.search-hero h1 {
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.search-hero .hero-sub {
    text-align: center;
    color: rgba(255, 255, 255, .75);
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 16px;
}

.search-form {
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    position: relative;
    z-index: 1;
}
.search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 20px;
    font: 400 16px/1.4 var(--font);
    color: #1C2534;
    min-width: 0;
}
.search-form input[type="search"]:focus { outline: none; }
.search-form input[type="search"]::placeholder { color: #6B7386; }

.search-form button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-cta) 0%, var(--brand-cta-deep) 100%);
    color: #fff;
    font: 600 15.5px/1 var(--font);
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
    white-space: nowrap;
}
.search-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.search-form button svg { width: 17px; height: 17px; }

.search-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    margin: 12px auto 0;
}

/* schlanke Variante des Heros auf Unterseiten */
.search-hero.compact { padding: 22px 0 46px; }
.search-hero.compact h1 { font-size: clamp(20px, 3vw, 26px); }

/* ============================================================
   INHALTSBEREICHE
   ============================================================ */
.page-section { padding: 56px 0 72px; }

.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title h2 {
    font-size: clamp(22px, 3.2vw, 30px);
    letter-spacing: -.01em;
    margin-bottom: 6px;
}
.section-title h1 {
    font-size: clamp(24px, 3.5vw, 32px);
    letter-spacing: -.01em;
    margin-bottom: 6px;
}
.section-title .subtitle { color: var(--text-muted); font-size: 15.5px; }
.section-title .title-accent {
    display: block;
    width: 56px; height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}

/* Info-Karten (Startseite / Impressum / Datenschutz) */
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 30px;
    margin-bottom: 20px;
    transition: background-color .25s ease, border-color .25s ease;
}
.content-card h3 { font-size: 19px; margin-bottom: 10px; }
.content-card h3::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    margin-right: 10px;
    vertical-align: 2px;
}
.content-card p { color: var(--text-muted); }
/* Lange deutsche Komposita (z.B. in Rechtstexten) sicher umbrechen */
.content-card p, .content-card li,
.legal-wrap p, .legal-wrap li,
.faq-answer p, .faq-answer li {
    overflow-wrap: anywhere;
    hyphens: auto;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { color: var(--text-muted); margin: 0 0 1em; padding-left: 22px; }
.content-card ul li { margin-bottom: 6px; }
.content-card h5 { font-size: 15.5px; margin: 18px 0 6px; }

/* zweispaltiges Karten-Raster auf großen Screens (Startseite) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}
.card-grid .content-card { margin-bottom: 0; }
.card-grid .content-card.span-2 { grid-column: 1 / -1; }

/* ============================================================
   ZERTIFIZIERUNGEN / GOOGLE-BADGES
   Jedes Badge liegt auf einer eigenen weißen Kachel — so wirken
   die Pixelgrafiken auch im dunklen Theme aufgeräumt.
   ============================================================ */
.trust-section { padding: 8px 0 72px; }
.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color .25s ease, border-color .25s ease;
}
/* dezente Akzentlinie oben in Markenfarbe */
.trust-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}
.trust-card h2 { font-size: 20px; color: var(--text); margin-bottom: 4px; }
.trust-card .trust-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
}
.trust-badges img {
    /* feste Höhe: das Google-Partner-SVG hat keine intrinsische Größe
       (nur viewBox) und würde mit height:auto winzig gerendert */
    height: 116px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.trust-badges a { display: block; }
.trust-badges a:hover img, .trust-badges img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   SUCHERGEBNISSE (Produktkarten)
   ============================================================ */
.results-header { text-align: center; margin-bottom: 34px; }
.results-header h2 { font-size: clamp(20px, 3vw, 26px); }
.results-header .results-count {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease,
                background-color .25s ease, border-color .25s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card .product-image {
    display: block;
    background: #fff; /* Produktbilder kommen mit weißem Hintergrund */
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.product-card .product-image img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-card .product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-card .product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}
.product-card .product-title a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere; /* lange Titel ohne Leerzeichen umbrechen */
}
.product-card .product-title a:hover { color: var(--accent-text); }

.product-card .product-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-text);
    white-space: nowrap;
}

/* Streichpreis (UVP/vorher) — dezent durchgestrichen neben dem Preis */
.product-card .product-old-price {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

/* Grundpreis inkl. Einheit (Preisangabenverordnung), z.B. "21.00 € / 1 l" */
.product-card .product-baseprice {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: -6px; /* rückt näher an die Preiszeile */
}
.product-card .product-baseprice:empty { display: none; }

.product-card .product-shipping {
    font-size: 12.5px;
    color: var(--ship);
    /* hängender Einzug: Icon fest links, Text bricht sauber daneben um —
       auch bei langen Angaben wie "in 1 bis 2 Werktagen lieferbar" */
    display: block;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
    min-height: 18px;
}
.product-card .product-shipping svg {
    width: 14px; height: 14px;
    position: absolute;
    left: 0;
    top: 2.5px;
}
.product-card .product-shipping:empty { display: none; }

/* "Keine Treffer"-Zustand */
.no-results {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
    color: var(--text-muted);
}
.no-results strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 44px 0 8px;
}
.pagination-area .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14.5px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.pagination-area .page-numbers:hover {
    transform: translateY(-2px);
    color: var(--accent-text);
}
.pagination-area .page-numbers.current {
    background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-deep));
    border-color: transparent;
    color: #fff;
    cursor: default;
}
.pagination-area .page-numbers.prev,
.pagination-area .page-numbers.next { font-size: 17px; }

/* ============================================================
   FAQ (Akkordeon auf <details>-Basis, ohne JavaScript-Pflicht)
   ============================================================ */
.faq-group { margin-bottom: 40px; }
.faq-group-title {
    font-size: 21px;
    margin-bottom: 16px;
    padding-left: 2px;
}
.faq-group-title::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    margin-right: 10px;
    vertical-align: 2px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, background-color .25s ease;
}
.faq-item[open] { border-color: var(--brand); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 54px 18px 22px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 20px; top: 50%;
    width: 22px; height: 22px;
    transform: translateY(-50%);
    background:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10.5' fill='none' stroke='%23FA8072' stroke-width='1'/%3E%3Cpath d='M11 6.5v9M6.5 11h9' stroke='%23FA8072' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat center / contain;
    transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent-text); }

.faq-item .faq-answer {
    padding: 0 22px 20px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 14px;
    margin: 0 0;
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-item .faq-answer ul { margin: 0 0 1em; padding-left: 22px; }

/* ============================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ============================================================ */
.legal-note {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}
.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-wrap .content-card strong { color: var(--text); }

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.contact-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text);
}
.contact-chips .chip svg { width: 15px; height: 15px; color: var(--accent-text); flex: none; }

/* ============================================================
   404-SEITE
   ============================================================ */
.notfound-card {
    max-width: 640px;
    margin: 24px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 32px;
    text-align: center;
}
.notfound-code {
    font-size: clamp(64px, 12vw, 110px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.notfound-card h1 { font-size: clamp(20px, 3vw, 26px); }
.notfound-card p { color: var(--text-muted); max-width: 460px; margin: 0 auto 24px; }
.notfound-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-deep));
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 999px;
    transition: filter .2s ease, transform .2s ease;
}
.notfound-btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-solid) 70%);
    color: rgba(255, 255, 255, .78);
    margin-top: 40px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 56px 0 36px;
    align-items: start;
}
.footer-brand img { max-width: 200px; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, .6); margin: 0; max-width: 300px; }

.site-footer h3 {
    color: #fff;
    font-size: 15.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}
.site-footer .footer-list { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-list li { margin-bottom: 10px; }
.site-footer .footer-list a {
    color: rgba(255, 255, 255, .78);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-list a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 2px;
    background: var(--brand);
    flex: none;
}
.site-footer .footer-list a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0;
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .8); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .site-header .header-inner { justify-content: center; text-align: center; }
    .header-claim { display: none; }
    .search-hero { padding-top: 24px; }
    /* Auf Mobil nur die Lupe zeigen — Text bleibt für Screenreader
       erhalten (display:none würde den Button namenlos machen) */
    .search-form button span {
        position: absolute; width: 1px; height: 1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .search-form button { padding: 0 18px; }
    .content-card { padding: 22px 20px; }
    .trust-badges { gap: 12px; }
    .trust-badges img { height: 92px; padding: 9px; }
    .footer-top { text-align: center; }
    .footer-brand img { margin: 0 auto 14px; }
    .footer-brand p { margin: 0 auto; }
    .site-footer .footer-list a { justify-content: center; padding: 7px 0; }
    .footer-bottom a { display: inline-block; padding: 11px 0; }

    /* Sticky-Header im gescrollten Zustand kompaktieren:
       Suche bekommt eine eigene (einzige zusätzliche) Zeile */
    html.eanf-scrolled .site-header .header-inner { padding: 8px 0; gap: 8px; }
    html.eanf-scrolled .site-header .logo img { height: 32px; }
    html.eanf-scrolled .header-search { order: 3; flex: 1 1 100%; min-width: 0; }
    html.eanf-scrolled .header-controls { order: 2; }
}

@media (max-width: 480px) {
    /* Puffer gegen Header-Umbruch auf schmalen Handys */
    .site-header .header-inner { gap: 8px; }
    .site-header .logo img { height: 40px; }
    /* Sprachauswahl zeigt hier nur die Kürzel (Labels via js/modern.js) */
}

@media print {
    .site-header, .search-hero, .site-footer, .header-controls { display: none; }
}

/* ============================================================
   LEGACY-KOMPATIBILITÄT
   Falls das bisherige Server-Partial der Produktkarten
   (col-lg-3 / room-card) zunächst unverändert bleibt, sehen die
   Karten mit diesen Regeln trotzdem nach dem neuen Design aus.
   Kann entfernt werden, sobald das Partial auf .product-card
   umgestellt ist.
   ============================================================ */
.preloader { display: none; }

.room-area { padding: 56px 0 72px; }
.room-area .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}
.room-area .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }

.room-area .section-title { text-align: center; margin-bottom: 34px; }
/* deckt Trefferzahl UND die "Keine Treffer"-Meldung des Servers ab */
.room-area .section-title span {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 14px;
    padding: 8px 18px;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 100%;
    box-shadow: var(--shadow);
}

/* Lieferzeit (Server-Inline-Styles "color: green" / "font-size: 12px") lesbar
   machen; die Preis-Liste liegt in .price-container und ist bewusst ausgenommen */
.room-card .content > ul > li { font-size: 12.5px !important; }
[data-theme="dark"] .room-card .content > ul > li { color: var(--ship) !important; }

.room-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.room-card > a {
    display: block;
    background: #fff;
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.room-card > a img { width: 100%; max-width: 200px; aspect-ratio: 1 / 1; object-fit: contain; }
.room-card .content { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-card .content h3 { font-size: 15px; line-height: 1.45; margin: 0; flex: 1; }
.room-card .content h3 a { color: var(--text); overflow-wrap: anywhere; }
.room-card .content h3 a:hover { color: var(--accent-text); }
.room-card .content ul { list-style: none; margin: 0; padding: 0; }
.room-card .price-container li {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-text);
}
/* Streichpreis des Servers (zweites <li> mit Inline-Style
   "line-through; color: red") — dezent statt rot, in beiden Themes lesbar */
.room-card .price-container li + li {
    font-size: 13.5px !important;
    font-weight: 500;
    color: var(--text-muted) !important;
    text-decoration: line-through;
    align-self: center;
}

/* Boxicons-Ersatz (ohne Icon-Font) für Server-Ausgaben */
i.bx { font-style: normal; }
i.bx-chevrons-right::before { content: "»"; }
i.bx-chevrons-left::before { content: "«"; }
i.bx-timer::before { content: "⏱ "; font-size: 11px; }
i.bx-caret-right::before { content: "› "; }
i.bx-search::before { content: "🔍"; font-size: 15px; }
