/* Jollix – Design
   Idee: warmes Creme + Gold aus dem Logo (klassisch), Spielzeugfarben der Produkte
   als Akzente (Wimpelkette, Farbpunkte, Kartenkanten), runde Formen (modern, kindgerecht).
   Inhalt: 1 Schrift · 2 Variablen · 3 Grundlagen · 4 Kopf · 5 Sprachwahl · 6 Hero
   7 Abschnitte/Karten · 8 Produkte · 9 Produktseite · 10 FAQ/Text · 11 Fuß · 12 Lightbox · 13 Bewegung */

/* 1 Schrift: Karla (SIL OFL 1.1, Lizenz: ../fonts/OFL-Karla.txt); Überschriften mit Systemschrift Georgia */
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/karla-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 Variablen */
:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --wood: #efe1c4;
  --ink: #2e2219;
  --muted: #6b5a4a;
  --gold: #c9953c;
  --gold-dark: #8a5f1d;
  --green: #2f6b4f;
  --green-dark: #224f3a;
  --red: #d9473b;
  --yellow: #f2c230;
  --sky: #7fb8d9;
  --pink: #e98ba6;
  --leaf: #8cc63f;
  --radius: 24px;
  --shadow: 0 2px 4px rgb(46 34 25 / 6%), 0 12px 32px rgb(46 34 25 / 8%);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  color-scheme: light;
}

/* 3 Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .9rem; display: inline-flex; gap: .5em; align-items: center; }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
mark.todo { background: repeating-linear-gradient(45deg, #fff3b0 0 8px, #ffe680 8px 16px); color: #6b4b00; padding: 0 .3em; border-radius: 4px; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-dark); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Wimpelkette in Spielzeugfarben (unter dem Kopf und als Trenner) */
.bunting {
  height: 16px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--yellow) 0 40%, var(--leaf) 0 60%, var(--sky) 0 80%, var(--pink) 0) 0 0 / 160px 100%;
  mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 0 / 32px 100% repeat-x;
}

/* 4 Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 246 236 / 94%); backdrop-filter: blur(8px); }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav { margin: 0; border: 0; padding: 24px; background: var(--paper); box-shadow: var(--shadow); border-radius: var(--radius); inset: 84px 16px auto auto; width: min(320px, calc(100% - 32px)); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav a { white-space: nowrap; display: block; padding: .55em .8em; border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--wood); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; inset: auto; width: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { padding: .5em .85em; border-radius: 999px; }
}

/* 5 Sprachwahl (details/summary, ohne JavaScript bedienbar) */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; padding: .5em .8em; border-radius: 999px; border: 2px solid var(--wood); font-weight: 700; background: var(--paper); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.flag { width: 1.35em; height: auto; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(46 34 25 / 18%); }
.lang summary .flag { width: 22px; height: auto; }
.lang a b { font-weight: 400; margin-right: auto; }
.lang a { align-items: center; }
.btn .flag { width: 1.4em; }
.lang ul { max-height: calc(100vh - 110px); overflow-y: auto; position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; min-width: 190px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); z-index: 60; }
.lang a { display: flex; justify-content: space-between; gap: 1em; padding: .5em .75em; border-radius: 10px; text-decoration: none; color: var(--ink); }
.lang a:hover, .lang a[aria-current="true"] { background: var(--wood); }
.lang a span { color: var(--muted); font-size: .85em; }

/* 6 Hero */
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__media { position: relative; }
.hero__media img { border-radius: 32px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hero__media::before, .hero__media::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero__media::before { width: 120px; height: 120px; background: var(--yellow); top: -24px; right: -18px; }
.hero__media::after { width: 70px; height: 70px; background: var(--sky); bottom: -20px; left: 12%; }
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 5fr 6fr; } }

/* 7 Abschnitte und Karten */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--wood { background: var(--wood); }
.section__head { max-width: 720px; margin-bottom: 2.4rem; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 8px solid var(--accent, var(--gold)); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin: 0; }
.card--red { --accent: var(--red); } .card--yellow { --accent: var(--yellow); } .card--green { --accent: var(--leaf); }
.card--sky { --accent: var(--sky); } .card--pink { --accent: var(--pink); } .card--gold { --accent: var(--gold); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split img { border-radius: 28px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > :first-child { order: 2; } }
.brandline { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; text-align: center; color: var(--muted); }

/* 8 Produkte */
.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; margin: 0; padding: 0; }
.product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease; }
.product-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.product-card__img { background: #fff; aspect-ratio: 4 / 3; padding: 16px; border-bottom: 8px solid var(--accent, var(--gold)); overflow: hidden; }
/* Bild füllt die feste 4:3-Fläche, egal welches Seitenverhältnis das Foto hat → Farbkante überall auf gleicher Höhe */
.product-card__img picture { display: block; width: 100%; height: 100%; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: .4em; flex: 1; }
.product-card h3 { margin: 0; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card p { color: var(--muted); margin: 0; }
.product-card .more { margin-top: auto; padding-top: .6em; font-weight: 700; color: var(--gold-dark); }
.accent-red { --accent: var(--red); } .accent-gold { --accent: var(--gold); } .accent-green { --accent: var(--leaf); }

/* 9 Produktseite */
.crumbs { font-size: .92rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.crumbs li + li::before { content: "›"; margin-right: .4em; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; gap: clamp(24px, 4vw, 56px); padding: 24px 0 56px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 7fr 5fr; align-items: start; } .pdp__info { position: sticky; top: 100px; } }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.gallery a { display: block; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.buy { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 8px solid var(--accent, var(--gold)); margin: 1.4rem 0; }
.buy .btn { width: 100%; justify-content: center; }
.buy__note { font-size: .9rem; color: var(--muted); margin: .9em 0 0; }
.buy details { margin-top: .8em; font-size: .95rem; }
.buy summary { cursor: pointer; color: var(--gold-dark); font-weight: 700; }
.buy details ul { margin: .5em 0 0; padding-left: 1.2em; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .65em 0; border-bottom: 1px dashed #d9c9a8; }
.facts th { width: 42%; color: var(--muted); font-weight: 400; padding-right: 1em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; }
.fsc-link { display: inline-block; margin: 0 0 .4rem; }
.fsc-link img { width: 240px; height: auto; border-radius: 6px; }
.fsc-note { margin: 0 0 1rem; font-size: .92rem; max-width: 34em; }
.site-footer__fsc { margin: 0 0 .5rem; }
.site-footer__ki { margin: .5rem 0 0; font-size: .8125rem; opacity: .75; }
.fsc-figure { float: right; width: 160px; margin: .3rem 0 1rem 1.5rem; }
.fsc-figure img { width: 160px; height: auto; border-radius: 6px; }
@media (max-width: 599px) { .fsc-figure { float: none; margin: 0 0 1rem; } }
.amfori-member { margin: 1rem 0 1.5rem; }
.amfori-member img { width: 100%; max-width: 480px; height: auto; border-radius: 6px; }
.badges li { background: var(--wood); border-radius: 999px; padding: .3em .9em; font-size: .9rem; font-weight: 700; }

/* 10 FAQ und Fließtext */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; clear: both; }
.prose ul { padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6em .7em; border-bottom: 1px dashed #d9c9a8; }
.prose thead th { background: var(--wood); border-bottom: 0; }
.page-head { padding: clamp(32px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); }
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.6rem; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; }
.checked { font-size: .9rem; color: var(--muted); }

/* 11 Fuß */
.site-footer { background: var(--ink); color: #eadfcd; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 28px; padding: 56px 0 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 1.05rem; color: var(--gold); font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.site-footer__legal { border-top: 1px solid rgb(255 255 255 / 15%); padding: 18px 0 28px; font-size: .9rem; }

/* 12 Lightbox (main.js) */
.lightbox { border: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: rgb(46 34 25 / 92%); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: absolute; inset: 56px 16px; display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100%; }
.lightbox__img { max-height: calc(100vh - 160px); width: auto; border-radius: 16px; background: #fff; }
.lightbox__caption, .lightbox__counter { font-size: .95rem; text-align: center; margin: 0; }
.lightbox__counter { position: absolute; top: 18px; left: 0; right: 0; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; }
.lightbox__next { right: 10px; top: 50%; }

/* 13 Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 14 Saison „Weihnachten“ (aktiv, wenn site.json "saison": "weihnachten" → <body class="season-weihnachten">)
   Gleiches Layout, nur Farben und Deko: Tannengrün + Weihnachtsrot + Gold, Wimpel in Rot/Grün/Gold/Weiß,
   rieselnder Schnee über dem Titelbild, Fuß mit Schneekante. Ohne die Klasse bleibt alles wie oben. */
.season-weihnachten {
  --cream: #fbf5ea;
  --paper: #fffcf6;
  --wood: #f3e3c8;
  --red: #b8262e;
  --leaf: #2f6b4f;
  --yellow: #d9a441;
  --sky: #e9e4da;
  --pink: #b8262e;
  --green: #b8262e;
  --green-dark: #7f1a20;
}
.season-weihnachten .bunting {
  background: linear-gradient(90deg, #b8262e 0 25%, #2f6b4f 0 50%, #c9953c 0 75%, #fff 0) 0 0 / 128px 100%;
}
.season-bar { margin: 0; background: #1f4d3a; text-align: center; font-weight: 700; font-size: .95rem; padding: .55em 16px; }
.season-bar a { color: #fff; text-decoration: none; }
.season-bar a:hover { text-decoration: underline; }
.season-weihnachten .hero__media::before { background: #b8262e; }
.season-weihnachten .hero__media::after { background: #2f6b4f; }
.season-weihnachten .hero__media { isolation: isolate; }
.season-weihnachten .hero__media picture { position: relative; display: block; }
.season-weihnachten .hero__media picture::after {
  content: ""; position: absolute; inset: 0; border-radius: 32px; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20% 30%, #fff 50%, #0000 51%),
    radial-gradient(2px 2px at 60% 70%, #fff 50%, #0000 51%),
    radial-gradient(4px 4px at 80% 20%, #fffd 50%, #0000 51%),
    radial-gradient(2px 2px at 40% 90%, #fff 50%, #0000 51%),
    radial-gradient(3px 3px at 90% 60%, #fffc 50%, #0000 51%),
    radial-gradient(2px 2px at 10% 75%, #fff 50%, #0000 51%);
  background-size: 180px 180px;
  animation: snow 14s linear infinite;
}
@keyframes snow { to { background-position: 40px 540px; } }
.season-weihnachten .eyebrow { color: #b8262e; }
.season-weihnachten .hero h1 em { color: #b8262e; }
.season-weihnachten .site-footer { background: #1f4d3a; position: relative; padding-top: 8px; }
.season-weihnachten .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: radial-gradient(circle at 12px 0, #fff 11px, #0000 12px) 0 0 / 24px 14px repeat-x;
}
.season-weihnachten .site-footer h2 { color: #f0c66a; }
@media (prefers-reduced-motion: reduce) { .season-weihnachten .hero__media picture::after { animation: none; } }

/* 14b Saison „Ostern“: Pastell (Frühlingsgrün, Zitronengelb, Rosa, Himmelblau), Deko-Kreise als Ostereier */
.season-ostern {
  --cream: #fbf8ef;
  --wood: #eef3dc;
  --red: #e98ba6;
  --yellow: #f2d45c;
  --leaf: #9ccc65;
  --sky: #9fd0ea;
  --pink: #f3b5c8;
  --green: #4f8a3a;
  --green-dark: #3a6a2a;
}
.season-ostern .bunting {
  background: linear-gradient(90deg, #f3b5c8 0 25%, #f2d45c 0 50%, #9ccc65 0 75%, #9fd0ea 0) 0 0 / 128px 100%;
}
.season-ostern .season-bar { background: #4f8a3a; }
.season-ostern .eyebrow, .season-ostern .hero h1 em { color: #4f8a3a; }
.season-ostern .hero__media::before, .season-ostern .hero__media::after { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.season-ostern .hero__media::before {
  width: 96px; height: 124px;
  background: radial-gradient(circle, #fff8 22%, #0000 24%) 0 0 / 22px 22px, #f2d45c;
}
.season-ostern .hero__media::after {
  width: 64px; height: 84px;
  background: repeating-linear-gradient(0deg, #f3b5c8 0 12px, #fff 0 18px);
}
.season-ostern .site-footer { background: #3a6a2a; }
.season-ostern .site-footer h2 { color: #f2d45c; }

/* 14c Saison „Halloween“: Kürbisorange, Pflaumenlila, Nachtblau – freundlich, nicht gruselig (Zielgruppe Kinder) */
.season-halloween {
  --cream: #fbf3ea;
  --wood: #f4dcc4;
  --red: #e2711d;
  --yellow: #f2a93b;
  --leaf: #6b3f86;
  --sky: #6b3f86;
  --pink: #e2711d;
  --green: #d9611a;
  --green-dark: #9c4211;
}
.season-halloween .bunting {
  background: linear-gradient(90deg, #e2711d 0 33.3%, #4b2a5e 0 66.6%, #2e2219 0) 0 0 / 96px 100%;
}
.season-halloween .season-bar { background: #4b2a5e; }
.season-halloween .eyebrow, .season-halloween .hero h1 em { color: #c0561a; }
.season-halloween .hero__media::before {
  width: 120px; height: 104px; border-radius: 48% 48% 44% 44% / 56% 56% 44% 44%;
  background: repeating-linear-gradient(90deg, #e2711d 0 22px, #d4651a 0 30px);
}
.season-halloween .hero__media::after { background: #4b2a5e; }
.season-halloween .site-footer { background: #2b1838; }
.season-halloween .site-footer h2 { color: #f2a93b; }
