/* vatertagstour.de - plain CSS, no build step (host has no Node). */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --red: #b91c1c;          /* white text 6.5:1 */
    --red-dark: #7f1d1d;
    --gold: #f59e0b;         /* beer; ink text 9:1 */
    --gold-soft: #fef3c7;
    --cream: #fffbeb;
    --ink: #1c1917;
    --muted: #57534e;        /* on cream 7.3:1 */
    --line: #e7e0d0;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgb(28 25 23 / .06), 0 4px 16px rgb(28 25 23 / .06);
    --font-body: "Barlow", system-ui, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
/* A display rule on a component must never un-hide an element carrying [hidden]. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.125rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: var(--red) repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / .04) 22px 44px); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-name { display: block; font: 800 1.9rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.brand-tagline { display: block; font-weight: 600; color: var(--gold-soft); }
.date-chip { margin: 0; display: grid; text-align: right; line-height: 1.2; }
.date-chip span { font-size: .9rem; opacity: .9; }
.date-chip strong { font: 800 1.5rem/1.1 var(--font-display); color: var(--gold); text-transform: uppercase; }

/* Navigation */
.site-nav { background: var(--ink); }
.nav-list, .nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: .8rem 1rem; color: var(--cream); font: 700 1.15rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-list a:hover { color: #fff; border-bottom-color: var(--gold); }
.nav-toggle, .sub-toggle { background: none; border: 0; color: var(--cream); cursor: pointer; font: 700 1.15rem var(--font-display); text-transform: uppercase; min-height: 44px; min-width: 44px; }
.nav-toggle { display: none; padding: .6rem 0; }
.sub-toggle::after { content: ""; display: inline-block; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(15%) rotate(-135deg); }
.nav-sub { display: none; }
.sub-toggle[aria-expanded="true"] + .nav-sub, html:not(.js) .nav-sub { display: block; }

@media (min-width: 900px) {
    .nav-sub { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 240px; background: var(--ink); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
    .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { display: block; }
    html:not(.js) .nav-sub { display: none; }
    .nav-sub a { text-transform: none; font: 600 1rem var(--font-body); }
}

@media (max-width: 899px) {
    .header-inner { flex-wrap: wrap; }
    .date-chip { text-align: left; }
    .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
    .nav-toggle::before { content: ""; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
    .js .nav-toggle[aria-expanded="false"] + .nav-list { display: none; }
    .nav-list { flex-direction: column; padding-bottom: .5rem; }
    .nav-list > li { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid rgb(255 255 255 / .1); }
    .nav-list > li > a { flex: 1; }
    .nav-sub { width: 100%; padding-left: 1rem; }
    .nav-sub a { text-transform: none; font: 600 1rem var(--font-body); }
}

/* Hero (home) */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--red-dark); color: #fff; border-bottom: 6px solid var(--gold); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Red wash keeps hero text above 4.5:1 regardless of the photo underneath. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(127 29 29 / .96) 0%, rgb(127 29 29 / .88) 40%, rgb(127 29 29 / .35) 75%, rgb(127 29 29 / .15) 100%); }
@media (max-width: 719px) { .hero::before { background: rgb(127 29 29 / .85); } }
.hero-inner { padding-block: clamp(3rem, 9vw, 6.5rem); text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
.hero-kicker { margin: 0; color: var(--gold); font: 700 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.hero-title { margin: .2em 0 .3em; font: 800 clamp(2.8rem, 9vw, 5.5rem)/.95 var(--font-display); text-transform: uppercase; max-width: 14ch; }
.hero-text { max-width: 46ch; font-size: 1.25rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Layout */
.layout { display: grid; gap: 2.5rem; padding-block: 2.5rem 4rem; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.content { min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid transparent; font: 700 1.05rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-gold, .btn-buy { background: var(--gold); color: var(--ink); }
.btn-gold:hover, .btn-buy:hover { background: #d97706; color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { border-color: rgb(255 255 255 / .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--red-dark); }
.btn-large { font-size: 1.25rem; padding: .8rem 1.5rem; margin: .5rem 0; }

/* Prose (CMS content) */
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-block: .3em; }
.prose figure { margin: 0 0 1rem; max-width: 100%; }
.prose figure.alignleft { float: left; margin-right: 1.5rem; max-width: 45%; }
.prose figure.alignright { float: right; margin-left: 1.5rem; max-width: 45%; }
/* Caption photos: the original at up to 320 px; full width on phones instead of a squeezed float. */
.prose figure img { width: 320px; }
@media (max-width: 599px) { .prose figure.alignleft, .prose figure.alignright { float: none; max-width: 100%; margin: 0 0 1rem; } }
.prose figcaption { font-size: .95rem; color: var(--muted); font-style: italic; margin-top: .35rem; }
.prose img { border-radius: var(--radius); }
.prose h2 { clear: both; }
.eyebrow { margin: 0 0 .25rem; font: 700 1rem var(--font-display); text-transform: uppercase; letter-spacing: .1em; }
.lead { font-size: 1.25rem; color: var(--muted); }

/* Rating stars: width driven by --rating (0-5) */
.rating { margin: 0 0 .25rem; line-height: 1; }
.rating::before { content: "★★★★★"; font-size: 1.15rem; letter-spacing: .1em; background: linear-gradient(90deg, var(--gold) calc(var(--rating) / 5 * 100%), #d6d3d1 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Product cards */
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin-block: 1.25rem 2rem; clear: both; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgb(28 25 23 / .1); }
.card-media { display: block; aspect-ratio: 1; background: #fff; padding: 1rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; border-top: 1px solid var(--line); }
.card-title { font-size: 1.25rem; margin: .25rem 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); text-decoration: underline; }
.card-verdict { margin: 0 0 1rem; font-size: 1rem; color: var(--muted); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-actions .btn { flex: 1; font-size: .95rem; padding-inline: .75rem; }

/* Consent placeholders */
.no-img { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; background: repeating-linear-gradient(135deg, var(--gold-soft) 0 12px, #fff 12px 24px); border-radius: 6px; font: 700 .9rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html:not(.js) .consent-embed button { display: none; }
.consent-embed { display: grid; gap: .75rem; justify-items: start; margin: 1.5rem 0; padding: 1.5rem; background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); }
.consent-embed p { margin: 0; }
.consent-embed.is-loaded { padding: 0; border: 0; }
.consent-embed iframe { width: 100%; border: 0; border-radius: var(--radius); }

/* Sidebar */
.sidebar { display: grid; gap: 1.25rem; align-content: start; }
.sidebar h2 { font-size: 1.35rem; margin: 0 0 .75rem; text-transform: uppercase; }
.countdown { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 1.25rem; text-align: center; border-bottom: 5px solid var(--gold); }
.countdown h2 { color: var(--gold); }
.countdown p { margin: 0; }
.countdown-days { display: block; font: 800 4rem/1 var(--font-display); color: #fff; }
.countdown-date, .countdown-today { color: var(--gold-soft); }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.side-links li:last-child a { border-bottom: 0; }
.side-photos p { margin-top: 0; font-size: 1rem; color: var(--muted); }

/* Photos */
.photo-grid, .year-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.photo-grid img, .year-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.photo-grid a:hover img { outline: 3px solid var(--gold); }
.year-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.year-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.year-card img { border-radius: 0; transition: transform .3s; }
.year-card:hover img { transform: scale(1.05); }
.year-label { position: absolute; left: 0; bottom: 0; padding: .3rem .8rem; background: var(--red); color: #fff; font: 800 1.6rem/1 var(--font-display); border-top-right-radius: var(--radius); }

/* Product detail */
.breadcrumb { font-size: 1rem; margin-bottom: 1rem; display: flex; gap: .5rem; }
.product { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.product-media { display: grid; gap: .75rem; align-content: start; }
.product-image { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; }
.thumb { display: block; width: 100%; aspect-ratio: 1; padding: .25rem; background: #fff; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .2s; }
.thumb:hover { border-color: var(--muted); }
.thumb[aria-pressed="true"] { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-transform: none; }
.verdict { margin: 1rem 0; padding: 1rem 1.25rem; background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.verdict p { margin: 0; font-size: 1.2rem; font-weight: 600; }
.verdict footer { margin-top: .4rem; font: 700 .9rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: .95rem; }
.related { margin-top: 3rem; }

/* eRecht24 seal: its own right-aligned row; a float squeezed the legal text into a narrow column (ollis). */
.erecht24-seal { display: block; width: 200px; max-width: 50%; margin: 0 0 1rem auto; line-height: 0; }
.erecht24-seal img { width: 100%; height: auto; border-radius: 0; }

/* 404 */
.not-found { text-align: center; padding-block: 1rem; }
.not-found-code { display: flex; justify-content: center; align-items: center; gap: .1em; margin: 0 0 .5rem; font: 800 clamp(5rem, 18vw, 9rem)/1 var(--font-display); color: var(--red); }
.not-found-code svg { width: .9em; height: .9em; filter: drop-shadow(0 4px 6px rgb(28 25 23 / .2)); }
.not-found h1 { margin-top: 0; }
.not-found .lead { max-width: 34rem; margin-inline: auto; }
.not-found-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Songs */
.songs { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: song; }
.song { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.song h3 { margin: 0 0 .25rem; }
.song p { margin: 0 0 .75rem; color: var(--muted); font-size: 1rem; }
.song audio { width: 100%; }

/* Tour map (replaces Google My Maps) */
.tour-map { margin: 2rem 0; clear: both; }
.map-canvas { position: relative; max-width: 520px; margin: 0 auto; aspect-ratio: 628 / 820; }
.map-canvas > img { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgb(127 29 29 / .15)); }
.pin { position: absolute; width: 44px; height: 44px; margin: -44px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 26px; height: 26px; margin-left: -13px; background: var(--red); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgb(0 0 0 / .3); transition: transform .2s, background-color .2s; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 8px; height: 8px; margin-left: -4px; background: var(--gold); border-radius: 50%; }
.pin:hover::before, .pin:focus-visible::before, .pin:has(+ :popover-open)::before { background: var(--red-dark); transform: rotate(-45deg) scale(1.2); }
.pin-card { width: min(300px, calc(100vw - 2rem)); padding: 1.25rem 2.5rem 1.25rem 1.25rem; border: 0; border-top: 5px solid var(--gold); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgb(28 25 23 / .25); }
.pin-card h3 { margin: 0 0 .4rem; }
.pin-card p { margin: 0 0 .6rem; font-size: 1rem; }
.pin-card-close { position: absolute; top: .4rem; right: .4rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
@supports (anchor-name: --a) {
    .pin-card { margin: 0; inset: auto; position-area: top; margin-bottom: 8px; position-try-fallbacks: flip-block; }
}
.tour-list { columns: 2 260px; gap: 2rem; padding-left: 1.2em; font-size: 1rem; }
.tour-list li { break-inside: avoid; margin-bottom: .4rem; }

/* Vatertag test (replaces Google Forms) */
.quiz { margin: 2rem 0; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--ink); color: var(--cream); border-radius: calc(var(--radius) * 1.5); border-bottom: 6px solid var(--gold); scroll-margin-top: 1rem; }
.quiz h2 { margin-top: 0; color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; }
.quiz-kicker { margin: 0; color: var(--gold); font: 700 1rem var(--font-display); text-transform: uppercase; letter-spacing: .1em; }
.quiz-name { display: grid; gap: .4rem; max-width: 420px; margin-top: 1.5rem; font-weight: 600; }
.quiz-name input { min-height: 48px; padding: .5rem .9rem; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--cream); color: var(--ink); font: inherit; }
.quiz-hint { font-size: .95rem; color: #d6d3d1; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { padding: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.45; }
.quiz-count { display: block; margin-bottom: .5rem; color: var(--gold); font: 800 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.quiz-progress { height: 8px; margin-bottom: 1.5rem; background: rgb(255 255 255 / .12); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.quiz-answers { display: grid; gap: .75rem; margin-top: 1.25rem; }
.quiz-answer { display: flex; gap: 1rem; align-items: flex-start; width: 100%; padding: 1rem 1.25rem; text-align: left; font: inherit; font-size: 1.05rem; line-height: 1.5; color: var(--ink); background: var(--cream); border: 3px solid transparent; border-radius: var(--radius); cursor: pointer; transition: transform .15s, border-color .15s, background-color .15s; }
.quiz-answer:hover, .quiz-answer:focus-visible { border-color: var(--gold); background: #fff; transform: translateX(4px); }
.quiz-letter { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.2rem var(--font-display); }
.quiz-step:not([hidden]) { animation: quiz-in .3s ease-out; }
@keyframes quiz-in { from { opacity: 0; transform: translateY(8px); } }
.quiz-result:focus { outline: none; }
.license { position: relative; max-width: 480px; margin: 0 auto 1.5rem; padding: 1.5rem 1.75rem; color: var(--ink); background: linear-gradient(135deg, #fffbeb, #fde68a); border: 3px solid var(--red); border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transform: rotate(-1.5deg); }
.license-head { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--red); color: var(--red); font: 800 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.license-name { margin: 0; font: 800 clamp(1.8rem, 6vw, 2.4rem)/1.05 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.license-title { margin: .3rem 0; color: var(--red); font: 800 1.5rem var(--font-display); text-transform: uppercase; }
.license-stats { margin: 0 0 .75rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.license-sep { margin-inline: .25rem; }
.license-rank { margin: .75rem 0 0; display: inline-block; padding: .2rem .7rem; background: var(--red); color: #fff; border-radius: 999px; font: 800 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.license-text { margin: 0; padding-right: 4.5rem; font-size: 1rem; }
.license-stamp { position: absolute; right: 1.25rem; bottom: 1rem; display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0; border: 3px solid var(--red); border-radius: 50%; color: var(--red); font: 800 1.5rem var(--font-display); transform: rotate(12deg); opacity: .85; }
.license[data-level="1"] .license-stamp, .license[data-level="2"] .license-stamp { border-style: dashed; opacity: .5; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.quiz .btn-ghost { background: transparent; color: var(--cream); border-color: rgb(255 255 255 / .5); }
.quiz .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Game: clock, opt-in, Kronkorken, highscore */
.quiz-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.quiz-bar .quiz-count { margin-bottom: .5rem; }
.quiz-clock { font: 800 1.6rem/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.quiz-check { display: flex; gap: .6rem; align-items: flex-start; max-width: 520px; margin-top: 1rem; cursor: pointer; }
.quiz-check input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--gold); }
.quiz-error { margin-top: 1rem; padding: .6rem 1rem; background: #fee2e2; color: #7f1d1d; border-radius: var(--radius); font-weight: 600; }
.cap { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--gold) 0 52%, #b45309 53% 60%, transparent 61%), repeating-conic-gradient(#b45309 0 10deg, #d97706 10deg 20deg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.highscore { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .15); }
.highscore h3 { margin: 0 0 .75rem; color: var(--gold); text-transform: uppercase; }
.highscore-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; display: grid; gap: .35rem; }
.highscore-list li { counter-increment: rank; display: grid; grid-template-columns: 2.2rem 1fr auto 3.5rem; gap: .75rem; align-items: center; padding: .45rem .75rem; background: rgb(255 255 255 / .06); border-radius: 8px; }
.highscore-list li::before { content: counter(rank) "."; font: 800 1.2rem var(--font-display); color: var(--gold); }
.highscore-list li:nth-child(-n+3)::before { color: #fff; }
.highscore-list li.is-you { background: var(--gold); color: var(--ink); }
.highscore-list li.is-you::before { color: var(--ink); }
.highscore-list li.highscore-empty { display: block; color: #d6d3d1; }
.highscore-list li.highscore-empty::before { content: none; }
.hs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hs-caps, .hs-time { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hs-season { margin-left: .35rem; padding: 0 .4rem; border-radius: 4px; background: rgb(255 255 255 / .12); font-size: .8rem; font-weight: 600; }
.highscore-alltime { margin-top: 1.5rem; }

/* Answer stats ("Was haben die anderen geantwortet?") - bars validated on cream: #d97706 / #b91c1c */
.answer-stats { margin: 2rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.answer-stats summary { padding: 1rem 1.25rem; cursor: pointer; font: 800 1.4rem var(--font-display); text-transform: uppercase; list-style-position: inside; }
.answer-stats summary:hover { color: var(--red); }
.answer-stats[open] summary { border-bottom: 1px solid var(--line); }
.stat-questions { margin: 0; padding: .5rem 1.25rem 1.25rem; list-style: none; counter-reset: q; }
.stat-q { counter-increment: q; padding-top: 1rem; }
.stat-q h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.stat-q h3::before { content: "Frage " counter(q) ": "; color: var(--red); }
.stat-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.stat-row { display: grid; grid-template-columns: 1fr 8.5rem; gap: .3rem 1rem; align-items: center; padding: .5rem .6rem; border-radius: 8px; }
.stat-row.is-mine { background: var(--gold-soft); }
.stat-text { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; color: var(--muted); }
.stat-text .quiz-letter { display: inline-grid; width: 1.5rem; height: 1.5rem; margin-right: .35rem; font-size: .9rem; vertical-align: .05em; }
.stat-bar { height: 12px; background: #f5efe0; border-radius: 4px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; min-width: 4px; background: #d97706; border-radius: 0 4px 4px 0; transition: width .6s ease-out; }
.stat-row.is-mine .stat-bar span { background: var(--red); }
.stat-value { text-align: right; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.stat-mine { grid-column: 1 / -1; justify-self: start; padding: .1rem .55rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; }

/* Photo lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgb(12 10 9 / .94); color: #fff; overscroll-behavior: contain; touch-action: pan-y; }
.lightbox::backdrop { background: rgb(12 10 9 / .6); }
.lightbox figure { display: grid; place-items: center; gap: .75rem; height: 100%; margin: 0; padding: 3.5rem 4rem 1.5rem; pointer-events: none; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; border-radius: 6px; pointer-events: auto; user-select: none; }
.lightbox figcaption { font: 700 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); }
.lightbox-btn, .lightbox-close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox-btn:hover, .lightbox-close:hover { background: var(--red); }
.lightbox-btn { top: 50%; margin-top: -26px; }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }
.lightbox-btn::before { content: ""; width: 14px; height: 14px; border: solid currentColor; border-width: 0 3px 3px 0; }
.lightbox-prev::before { transform: translateX(3px) rotate(135deg); }
.lightbox-next::before { transform: translateX(-3px) rotate(-45deg); }
.lightbox-close { top: .75rem; right: .75rem; font-size: 2rem; line-height: 1; }
@media (max-width: 599px) {
    .lightbox figure { padding-inline: .5rem; }
    .lightbox-btn { top: auto; bottom: 1rem; margin-top: 0; }
}

/* Print: only the licence when printing from the test */
@media print {
    body:has(.quiz-result:not([hidden])) > :not(.layout), body:has(.quiz-result:not([hidden])) .sidebar,
    body:has(.quiz-result:not([hidden])) .content > :not(.prose), body:has(.quiz-result:not([hidden])) .prose > :not(.quiz),
    .quiz-actions, .quiz-result script, .quiz .highscore, .answer-stats { display: none !important; }
    .quiz { background: none; border: 0; padding: 0; }
    .license { transform: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Footer */
.site-footer { background: var(--ink); color: #d6d3d1; font-size: 1rem; }
.footer-inner { padding-block: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer-inner p { margin: 0; max-width: 60ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
