:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #fff7ed;
    --amazon: #ff9900;
    --amazon-hover: #e68a00;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --dark: #0f172a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    /* Systemschriften: keine Verbindung zu Google Fonts nötig (DSGVO) */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* Hinweisleisten */
.disclosure {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
    padding: 8px 16px;
}
.config-warning {
    display: none;
    background: #fef2f2;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
    font-size: 13px;
    text-align: center;
    padding: 8px 16px;
}
.config-warning.show { display: block; }

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; }
.logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #f59e0b);
    display: grid; place-items: center; font-size: 22px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, .3);
}
.header-inner .name { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.header-inner .tagline { margin: 0; font-size: 12px; color: var(--muted); }

main { flex: 1; padding: 32px 0 16px; }

.hero { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.pill {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: #ffedd5; color: var(--brand-dark);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.hero h1 { font-size: clamp(22px, 4vw, 30px); color: var(--ink); margin: 10px 0 6px; line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); }

/* Anlässe */
.occasions { margin: 0 0 28px; }
.occasions h2 { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.occasion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.occasion {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    text-decoration: none; font-size: 14px; color: var(--text); transition: border-color .15s;
}
.occasion:hover { border-color: var(--brand); color: var(--brand-dark); }
.occasion.soon { border-color: #fdba74; background: var(--brand-soft); font-weight: 600; }

/* Filter-Assistent */
.wizard {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; margin-bottom: 32px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-title {
    font-size: 12px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px;
}
.options { display: flex; flex-direction: column; gap: 8px; }
.opt {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; text-align: left; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    color: var(--text); font-size: 14px; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: #cbd5e1; }
.opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt .hint { color: #94a3b8; font-size: 12px; }
.opt .check { visibility: hidden; color: var(--brand); font-weight: 700; }
.opt[aria-pressed="true"] {
    background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark);
    font-weight: 600; box-shadow: 0 1px 2px rgba(234, 88, 12, .12);
}
.opt[aria-pressed="true"] .check { visibility: visible; }

.toolbar {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 13px;
}
.search {
    flex: 1 1 220px; max-width: 320px;
    border: 1px solid var(--line); background: #f1f5f9; border-radius: 10px;
    padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink);
}
.search:focus { outline: 2px solid var(--brand); background: #fff; }
.toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count { font-weight: 700; color: var(--ink); }
.link-btn {
    background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600;
    text-decoration: underline; font-size: 13px;
}
.link-btn:hover { color: var(--brand-dark); }

/* Produktkarten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.card-visual {
    position: relative; aspect-ratio: 16 / 10;
    display: grid; place-items: center; font-size: 64px;
}
.cat-kitchen { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.cat-tech    { background: linear-gradient(135deg, #f0f9ff, #e0e7ff); }
.cat-beauty  { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.cat-home    { background: linear-gradient(135deg, #f7fee7, #dcfce7); }
.cat-fun     { background: linear-gradient(135deg, #fefce8, #fef3c7); }
.cat-sport   { background: linear-gradient(135deg, #ecfeff, #ccfbf1); }
.cat-pets    { background: linear-gradient(135deg, #faf7f2, #efe6d8); }
.badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15, 23, 42, .82); color: #fff;
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); line-height: 1.3; }
.for { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.card-body ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; }
.card-body li { display: flex; gap: 8px; margin-bottom: 4px; }
.card-body li::before { content: "✓"; color: #10b981; font-weight: 700; }
.card-foot {
    margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price-band { font-size: 12px; color: var(--muted); line-height: 1.3; }
.price-band strong { display: block; color: var(--ink); font-size: 14px; }
.cta {
    background: var(--amazon); color: #111; text-decoration: none;
    font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 12px;
    white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); transition: background .15s;
}
.cta:hover { background: var(--amazon-hover); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.notice {
    background: var(--brand-soft); border: 1px solid #fdba74; color: var(--brand-dark);
    border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px;
}
.notice[hidden] { display: none; }

.empty {
    display: none; text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 48px 24px;
}
.empty.show { display: block; }
.empty h3 { margin: 8px 0 4px; color: var(--ink); }
.empty p { color: var(--muted); margin: 0 0 18px; }
.btn {
    background: var(--brand); color: #fff; border: 0; border-radius: 12px;
    padding: 10px 18px; font-weight: 600;
}
.btn:hover { background: var(--brand-dark); }
.btn-amazon {
    display: inline-block; background: var(--amazon); color: #111; text-decoration: none;
    margin: 0 8px 10px; font-weight: 700;
}
.btn-amazon:hover { background: var(--amazon-hover); }
.btn-amazon[hidden] { display: none; }

/* Ratgeber-Teil der Themen-Seiten */
.ratgeber {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: 28px; margin: 36px auto 0; max-width: 780px; font-size: 16px; line-height: 1.7;
}
.ratgeber h2 { color: var(--ink); font-size: 24px; margin: 0 0 12px; line-height: 1.3; }
.ratgeber h3 { color: var(--ink); font-size: 19px; margin: 28px 0 8px; }
.ratgeber h4 { color: var(--ink); font-size: 16px; margin: 0 0 4px; }
.ratgeber p { margin: 0 0 12px; }
.ratgeber a { color: var(--brand-dark); font-weight: 600; }
.ratgeber .idee { padding: 14px 0; border-top: 1px solid #f1f5f9; }
.ratgeber details { border-top: 1px solid #f1f5f9; padding: 12px 0; }
.ratgeber summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ratgeber details p { margin: 8px 0 0; }

.footnote { font-size: 12px; color: var(--muted); margin: 24px 0 0; }

footer { background: var(--dark); color: #94a3b8; font-size: 13px; margin-top: 48px; padding: 36px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
footer h4 { color: #fff; margin: 0 0 8px; font-size: 14px; }
footer p { margin: 0 0 8px; }
footer nav a { display: block; color: #cbd5e1; text-decoration: none; margin-bottom: 6px; }
footer nav a:hover { color: #fff; text-decoration: underline; }
.copy { border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 16px; text-align: center; color: #64748b; font-size: 12px; }

@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .options { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .opt { width: auto; padding: 7px 12px; font-size: 13px; border-radius: 999px; }
    .opt .hint, .opt .check { display: none; }
    .foot-grid { grid-template-columns: 1fr; }
    .wizard { padding: 16px; }
    .ratgeber { padding: 18px; }
    .search { max-width: none; }
}

/* ---- Überarbeitung: Fotokopf, kompakter Filter am Handy, ruhigere Karten ---- */
.hero-foto {
    position: relative; max-width: none; text-align: left; color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .25) 40%, rgba(15, 23, 42, .78) 100%),
                var(--hero) center 45% / cover no-repeat;
    border-radius: 22px; padding: 140px 40px 36px; margin: 0 0 28px; min-height: 340px;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.hero-foto h1 { color: #fff; font-size: clamp(26px, 4.2vw, 42px); max-width: 780px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero-foto p { color: rgba(255, 255, 255, .92); max-width: 640px; font-size: 17px; }
.hero-foto .pill { background: var(--brand); color: #fff; }
.hero-credit { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .7); }

.filter-toggle { display: none; }

.card { border-color: #edf0f5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card-visual { aspect-ratio: 16 / 9; font-size: 58px; }
.badge { background: rgba(255, 255, 255, .94); color: var(--ink); border: 1px solid rgba(15, 23, 42, .08); }

@media (max-width: 760px) {
    main { padding-top: 14px; }
    .hero-foto { padding: 96px 18px 22px; min-height: 240px; border-radius: 18px; margin-bottom: 14px; }
    .hero-foto h1 { font-size: 24px; }
    .hero-foto p { font-size: 14px; }
    .hero:not(.hero-foto) { margin-bottom: 14px; }
    .hero:not(.hero-foto) h1 { font-size: 22px; }

    .occasions { margin-bottom: 14px; }
    .occasions h2 { display: none; }
    .occasion-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .occasion-list::-webkit-scrollbar { display: none; }
    .occasion { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; }

    .wizard { padding: 0; margin-bottom: 16px; border-radius: 14px; }
    .filter-toggle {
        display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 0;
        padding: 13px 14px; border-radius: 14px; text-align: left; font-size: 14px; color: var(--ink);
    }
    .filter-toggle-label { font-weight: 700; white-space: nowrap; }
    .filter-summary { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .filter-chevron { color: var(--brand); transition: transform .2s; }
    .wizard.open .filter-chevron { transform: rotate(180deg); }
    .wizard-body { display: none; padding: 2px 14px 14px; }
    .wizard.open .wizard-body { display: block; }

    .grid { grid-template-columns: 1fr; gap: 12px; }
    .card { display: grid; grid-template-columns: 96px 1fr; border-radius: 16px; }
    .card:hover { transform: none; }
    .card-visual { aspect-ratio: auto; height: 100%; min-height: 124px; font-size: 40px; }
    .badge, .for { display: none; }
    .card-body { padding: 12px 14px; }
    .card-body h3 { font-size: 15px; margin-bottom: 6px; }
    .card-body ul { margin-bottom: 8px; font-size: 12.5px; }
    .card-body li:nth-child(n+2) { display: none; }
    .card-foot { padding-top: 8px; }
    .price-band { font-size: 11px; }
    .price-band strong { font-size: 13px; white-space: nowrap; }
    .cta { padding: 8px 12px; font-size: 12.5px; }
}

/* lange deutsche Wörter (z. B. „Weihnachtsgeschenke“) auf schmalen Handys sauber trennen */
h1, h2, h3, .card-body h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Werbehinweis direkt über den Produkten – sichtbar, aber unaufdringlich */
.ad-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

/* Kopfzeile mit Sprachumschalter DE ⇄ IT */
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-bar .header-inner { padding: 12px 0; }
.lang-switch {
    font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-name { font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .lang-name { display: none; } }
