/* =====================================================================
   ninklika – Stylesheet
   ---------------------------------------------------------------------
   FARBEN ÄNDERN: Nur die Blöcke unter "1. FARBPALETTEN" anpassen.
   Aktive Palette wählen: in index.html (und den Unterseiten) im
   <html>-Tag data-palette="gelb|neon|bonbon|retro" setzen.
   Zum Testen ohne Änderung: https://ninklika.de/?palette=retro
   Nach Änderungen in den HTML-Dateien style.css?v=… hochzählen.
   ===================================================================== */

/* ---------- 0. Schrift (lokal gehostet, kein Google-Server) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }

/* ---------- 1. FARBPALETTEN ------------------------------------------
   --bg       Seitenhintergrund
   --surface  Karten, Navigation, Footer
   --text     Fließtext / Überschriften
   --muted    Nebentext
   --ink      Konturen (dicke Ränder)
   --shadow   harte Schatten
   --accent   Hauptfarbe (Buttons) – Lila passend zum Logo
   --on-accent Textfarbe auf --accent
   --pop      Zweitfarbe (Band, Sticker, Kontaktbox)
   --third    Drittfarbe
   --on-pop   Textfarbe auf --pop und --third
   ------------------------------------------------------------------- */

/* Gelb (ursprüngliche Variante C) */
:root,
[data-palette="gelb"] {
  --bg: #F5F1FF; --surface: #FFFFFF; --text: #16121C; --muted: #4E4757;
  --ink: #16121C; --shadow: #16121C;
  --accent: #7A0FA8; --on-accent: #FFFFFF;
  --pop: #FFD23F; --third: #7EE0B8; --on-pop: #16121C;
}
[data-theme="dark"],
[data-palette="gelb"][data-theme="dark"] {
  --bg: #16121C; --surface: #221C2B; --text: #F5F1FF; --muted: #BDB5CA;
  --ink: #F5F1FF; --shadow: #C27BEA;
  --accent: #C27BEA; --on-accent: #16121C;
  --pop: #FFD23F; --third: #7EE0B8; --on-pop: #16121C;
}

/* C1 – Neon-Nacht */
[data-palette="neon"] {
  --bg: #F4F7EC; --surface: #FFFFFF; --text: #121212; --muted: #4A4D45;
  --ink: #121212; --shadow: #121212;
  --accent: #7A0FA8; --on-accent: #FFFFFF;
  --pop: #C6F432; --third: #FF9ECF; --on-pop: #121212;
}
[data-palette="neon"][data-theme="dark"] {
  --bg: #101014; --surface: #1B1B22; --text: #F3F5EC; --muted: #B4B6AC;
  --ink: #F3F5EC; --shadow: #C6F432;
  --accent: #C27BEA; --on-accent: #101014;
  --pop: #C6F432; --third: #FF9ECF; --on-pop: #121212;
}

/* C2 – Bonbon */
[data-palette="bonbon"] {
  --bg: #FFF0F6; --surface: #FFFFFF; --text: #241326; --muted: #5A4560;
  --ink: #241326; --shadow: #241326;
  --accent: #7A0FA8; --on-accent: #FFFFFF;
  --pop: #FF8CC6; --third: #8FD3FF; --on-pop: #241326;
}
[data-palette="bonbon"][data-theme="dark"] {
  --bg: #1E1220; --surface: #2B1A2E; --text: #FFF0F6; --muted: #CDB6CF;
  --ink: #FFF0F6; --shadow: #FF8CC6;
  --accent: #D08BF0; --on-accent: #1E1220;
  --pop: #FF8CC6; --third: #8FD3FF; --on-pop: #241326;
}

/* C3 – Retro-Orange */
[data-palette="retro"] {
  --bg: #FFF4E4; --surface: #FFFDF8; --text: #1D1A16; --muted: #554C40;
  --ink: #1D1A16; --shadow: #1D1A16;
  --accent: #7A0FA8; --on-accent: #FFFFFF;
  --pop: #FF7A2F; --third: #2BB3A3; --on-pop: #1D1A16;
}
[data-palette="retro"][data-theme="dark"] {
  --bg: #1A1714; --surface: #27221D; --text: #FFF4E4; --muted: #C7BBA9;
  --ink: #FFF4E4; --shadow: #FF7A2F;
  --accent: #C27BEA; --on-accent: #1A1714;
  --pop: #FF7A2F; --third: #2BB3A3; --on-pop: #1D1A16;
}

/* ---------- 1b. Kategorie-Farbplätze -------------------------------
   Jede Kategorie hat einen Farbplatz (1–8). Platz 1–3 = Hauptfarben,
   4–8 = Zusatzfarben je Farbschema. Text darauf: --on-slot-N.
   ------------------------------------------------------------------- */
:root {
  --slot-1: var(--accent); --on-slot-1: var(--on-accent);
  --slot-2: var(--pop);    --on-slot-2: var(--on-pop);
  --slot-3: var(--third);  --on-slot-3: var(--on-pop);
  --on-slot-4: var(--on-pop); --on-slot-5: var(--on-pop); --on-slot-6: var(--on-pop); --on-slot-7: var(--on-pop); --on-slot-8: var(--on-pop);
}
:root, [data-palette="gelb"]   { --slot-4: #FF8A5B; --slot-5: #8FB8FF; --slot-6: #FF9ECF; --slot-7: #B6E36B; --slot-8: #E6B8FF; }
[data-palette="neon"]          { --slot-4: #6EC6FF; --slot-5: #FFB86B; --slot-6: #B79CFF; --slot-7: #5FE3C0; --slot-8: #FFE45C; }
[data-palette="bonbon"]        { --slot-4: #FFD166; --slot-5: #B8F2A0; --slot-6: #C9B6FF; --slot-7: #FFB38A; --slot-8: #9DE7E0; }
[data-palette="retro"]         { --slot-4: #F2C14E; --slot-5: #E87A90; --slot-6: #8DB580; --slot-7: #9BB7D4; --slot-8: #D9A066; }
.slot-1 { --c: var(--slot-1); --on-c: var(--on-slot-1); }
.slot-2 { --c: var(--slot-2); --on-c: var(--on-slot-2); }
.slot-3 { --c: var(--slot-3); --on-c: var(--on-slot-3); }
.slot-4 { --c: var(--slot-4); --on-c: var(--on-slot-4); }
.slot-5 { --c: var(--slot-5); --on-c: var(--on-slot-5); }
.slot-6 { --c: var(--slot-6); --on-c: var(--on-slot-6); }
.slot-7 { --c: var(--slot-7); --on-c: var(--on-slot-7); }
.slot-8 { --c: var(--slot-8); --on-c: var(--on-slot-8); }

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500; line-height: 1.5; overflow-x: hidden;
  transition: background-color .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Kein Zoom durch schnelles Doppeltippen auf Knöpfe und Links (iOS, ab 1.10.4) – Zwei-Finger-Zoom bleibt */
a, button, .palette-toggle, .theme-toggle, .ticker__pause, .dot { touch-action: manipulation; }
/* Zum Inhalt springen (ab 1.10.0): nur sichtbar, wenn per Tastatur angesteuert */
.skip { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--pop); color: var(--on-pop); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--shadow); }
.skip:focus { top: 12px; }
main:focus, body:focus { outline: none; }
/* Lange Wörter in Überschriften trennen statt über den Rand laufen (z. B. „Datenschutzerklärung“ bei starkem Zoom) */
h1, h2, h3 { overflow-wrap: break-word; }
.legal h1, .legal h2, .legal h3 { hyphens: auto; -webkit-hyphens: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Logo: helle/dunkle Version */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Wiederkehrender "Sticker"-Look */
.box { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); }

/* ---------- 3. Navigation ---------- */
.site-header { padding: 20px 0; }
.nav {
  background: var(--surface); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 10px 12px 10px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.nav__links a { text-decoration: none; padding: 12px 14px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: var(--bg); } }
.nav__links .nav__cta { background: var(--accent); color: var(--on-accent); padding: 12px 18px; }
@media (hover: hover) and (pointer: fine) { .nav__links .nav__cta:hover { background: var(--accent); opacity: .9; } }
.theme-toggle {
  margin-left: 6px; width: 46px; height: 46px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--pop); color: var(--on-pop);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
/* Farbschema-Knopf: der Kreis zeigt die Farben des aktiven Schemas */
.palette-toggle {
  margin-left: 6px; width: 46px; height: 46px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.nav .theme-toggle { margin-left: 0; }
.swatch {
  width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--ink); display: block;
  background: conic-gradient(var(--accent) 0 33.3%, var(--pop) 0 66.6%, var(--third) 0);
  transition: transform .35s;
}
@media (hover: hover) and (pointer: fine) { .palette-toggle:hover .swatch { transform: rotate(120deg); } }
.no-palette-switch .palette-toggle { display: none; }
.nav__links a[aria-current="true"]:not(.nav__cta) { background: var(--pop); color: var(--on-pop); }

/* ---------- 3b. Menü beim Scrollen ----------------------------------
   Auswahl im <html>-Tag: data-nav="leiste" oder data-nav="seite"
   leiste = Menü bleibt oben und wird beim Scrollen schmaler
   seite  = beim Scrollen erscheint rechts eine senkrechte Symbolleiste
   (auf dem Handy wird immer die schmale obere Leiste verwendet)
   ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: padding .25s; }
.nav, .nav__logo img, .nav__links a, .theme-toggle { transition: padding .25s, height .25s, width .25s, font-size .25s, box-shadow .25s; }
.is-scrolled .site-header { padding: 10px 0; }
.is-scrolled .nav { padding: 5px 6px 5px 20px; box-shadow: 4px 4px 0 var(--shadow); }
.is-scrolled .nav__logo img { height: 22px; }
.is-scrolled .nav__links { font-size: 14px; }
.is-scrolled .nav__links a { padding: 10px 12px; }
.is-scrolled .nav .theme-toggle, .is-scrolled .nav .palette-toggle { width: 40px; height: 40px; }

/* Seitenleiste rechts */
.rail { display: none; }
@media (min-width: 761px) {
  [data-nav="seite"] .site-header { position: static; }
  [data-nav="seite"] .rail {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    position: fixed; right: 20px; top: 50%; z-index: 60;
    transform: translate(140%, -50%); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  [data-nav="seite"].is-scrolled .rail { transform: translate(0, -50%); opacity: 1; visibility: visible; }
}
/* Platz für die Seitenleiste, solange der Bildschirm nicht breit genug ist */
@media (min-width: 761px) and (max-width: 1439px) {
  [data-nav="seite"] main .wrap { padding-right: 96px; }
}
.rail__item {
  display: flex; align-items: center; gap: 0; height: 52px; min-width: 52px;
  border-radius: 999px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 0; cursor: pointer; font-family: inherit; overflow: hidden;
  transition: gap .2s, padding .2s, background .2s;
}
.rail__icon { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; }
.rail__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s; }
.rail__item:hover, .rail__item:focus-visible { padding-left: 16px; gap: 2px; }
.rail__item:hover .rail__label, .rail__item:focus-visible .rail__label { max-width: 180px; }
.rail__item[aria-current="true"] { background: var(--pop); color: var(--on-pop); }
.rail__item--cta { background: var(--accent); color: var(--on-accent); }
.rail .palette-toggle { width: auto; height: 52px; margin: 0; background: var(--surface); }
.rail .theme-toggle { margin: 0; width: 52px; height: 52px; box-shadow: 4px 4px 0 var(--shadow); }
/* Tablet & Co. (Touch, keine Maus): Beschriftung dauerhaft unter dem Symbol */
@media (hover: none) and (min-width: 761px) {
  .rail { gap: 8px; }
  .rail__item {
    flex-direction: column-reverse; justify-content: center; gap: 0;
    width: 76px; min-width: 76px; height: auto; min-height: 60px; padding: 6px 4px 8px; border-radius: 20px;
  }
  .rail__item:hover, .rail__item:focus-visible { padding: 6px 4px 8px; gap: 0; }
  .rail__icon { width: 30px; height: 30px; }
  .rail__label, .rail__item:hover .rail__label, .rail__item:focus-visible .rail__label {
    max-width: none; white-space: normal; text-align: center; font-size: 11px; line-height: 1.15;
  }
  .rail .palette-toggle { width: 76px; height: auto; }
  .rail .theme-toggle { width: 76px; height: 52px; border-radius: 20px; }
}
@media (hover: none) and (min-width: 761px) and (max-width: 1439px) {
  [data-nav="seite"] main .wrap { padding-right: 116px; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 16px;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); } }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: var(--surface); color: var(--text); }

/* ---------- 5. Hero ---------- */
.hero { padding: 64px 0 80px; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 900; font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1.04; letter-spacing: -.03em; }
.hero h1 mark { display: inline-block; margin-top: .1em; line-height: 1.08; background: var(--pop); color: var(--on-pop); padding: 0 .15em; border-radius: 12px; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { flex: 1 1 420px; min-width: 0; position: relative; padding: 24px; }
.hero__photo {
  aspect-ratio: 1 / 1; background: var(--surface); border-radius: 32px;
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(2deg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--empty { color: var(--muted); }
.tag {
  position: absolute; border: 3px solid var(--ink); padding: 10px 20px;
  font-weight: 800; font-size: 18px; border-radius: 999px;
  background: var(--c, var(--accent)); color: var(--on-c, var(--on-accent));
  max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Schildchen kommen aus den Kategorien (Farbe = Farbplatz der Kategorie) */
.tag--1 { top: 0; left: 0; transform: rotate(-8deg); }
.tag--2 { top: 42%; right: 0; border-radius: 16px; transform: rotate(7deg); }
.tag--3 { bottom: 4px; left: 12%; transform: rotate(-4deg); }
.tag--4 { top: 4%; right: 6%; border-radius: 16px; transform: rotate(5deg); }

/* ---------- 6. Laufband ---------- */
.ticker-wrap { overflow: hidden; padding: 24px 0; margin: -24px 0; }
.ticker {
  background: var(--pop); color: var(--on-pop);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(-1.5deg); margin: 0 -40px; padding: 18px 0;
  overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 22px; letter-spacing: .04em;
}
.ticker__track { display: inline-flex; gap: 0; animation: ticker 28s linear infinite; }
.ticker__track span { padding-right: 1.2em; }
/* Laufband anhalten (ab 1.10.0): Knopf und Maus darauf.
   Hover-Effekte gelten ab 1.10.3 nur mit echter Maus – auf Touch-Geräten „klebt“ :hover nach dem Antippen. */
.ticker-box { position: relative; }
.ticker-box.is-paused .ticker__track { animation-play-state: paused; }
/* Anhalten bei Mausberührung nur mit echter Maus – auf Touch-Geräten „klebt“ :hover nach dem Antippen (1.10.2) */
@media (hover: hover) and (pointer: fine) { .ticker-box:hover .ticker__track { animation-play-state: paused; } }
.ticker__pause {
  position: absolute; right: max(12px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 3px solid var(--ink); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 3px 3px 0 var(--shadow);
}
.ticker__pause[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .ticker__pause:hover { background: var(--pop); color: var(--on-pop); } }
.ticker__pause .i-play, .ticker-box.is-paused .ticker__pause .i-pause { display: none; }
.ticker-box.is-paused .ticker__pause .i-play { display: block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 7. Sektionen ---------- */
.section { padding: 80px 0; }
.section--first { padding-top: 104px; }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; }
.section__sub { font-size: 18px; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 28px; }

/* Kategorie-Karten: Farbe kommt aus dem Farbplatz der Kategorie (slot-1 … slot-8) */
.service {
  flex: 1 1 300px; min-width: 0; border-radius: 28px; padding: 34px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--c); color: var(--on-c);
}
.service h3 { font-weight: 800; font-size: 26px; }
.service p { font-size: 16px; line-height: 1.6; }

/* ---------- Produktkarten ---------- */
.products { display: flex; flex-wrap: wrap; gap: 32px; }
.product {
  flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.products .product:nth-child(6n+1) { transform: rotate(-1.2deg); }
.products .product:nth-child(6n+2) { transform: rotate(.8deg); }
.products .product:nth-child(6n+3) { transform: rotate(-.5deg); }
.products .product:nth-child(6n+4) { transform: rotate(1.1deg); }
.products .product:nth-child(6n+5) { transform: rotate(-.8deg); }
.products .product:nth-child(6n+6) { transform: rotate(.5deg); }

/* Bildfläche: Farbe wechselt von Karte zu Karte */
.media { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; border: 3px solid var(--ink); overflow: hidden; background: var(--pop); }
.products .product:nth-child(3n+2) .media { background: var(--third); }
.products .product:nth-child(3n+3) .media { background: var(--accent); }

/* Karussell: wischen, rastet pro Bild ein */
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 12%; }
.slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  /* Sticker-Look: weißer Rand + harter Schatten (für freigestellte Bilder) */
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
          drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff) drop-shadow(7px 7px 0 var(--shadow));
}
.slide:nth-child(odd) img { transform: rotate(-3deg); }
.slide:nth-child(even) img { transform: rotate(2.5deg); }
.slide--empty { color: var(--on-pop); opacity: .55; }

/* Punkte im Sticker-Look, unten über dem Bild */
.dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 2px; align-items: center;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--shadow); padding: 2px 6px;
}
.dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; transition: width .2s, background .2s; }
.dot[aria-current="true"]::before { width: 22px; background: var(--ink); }
.dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-radius: 999px; }

/* Hinweis-Sticker: positiv (z. B. NEU!) / neutral (z. B. Ausverkauft) */
.hint {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-weight: 800; font-size: 14px; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; border: 3px solid var(--ink); transform: rotate(-6deg);
}
.hint--positive { background: var(--surface); color: var(--accent); box-shadow: 3px 3px 0 var(--shadow); }
.hint--neutral { background: var(--ink); color: var(--bg); box-shadow: 3px 3px 0 var(--surface); }

/* Text der Produktkarte */
.info { display: flex; flex-direction: column; gap: 10px; padding: 2px 6px 6px; flex-grow: 1; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product h3 { font-weight: 700; font-size: 19px; line-height: 1.25; }
.chip {
  font-size: 13px; font-weight: 800; border: 2px solid var(--ink); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--c); color: var(--on-c);
}
.desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 4px; }
.price { font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.buy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.buy > span { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.buy a {
  text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 13px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--text); transition: transform .1s, box-shadow .1s;
}
@media (hover: hover) and (pointer: fine) { .buy a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); } }
.buy a:first-of-type { background: var(--accent); color: var(--on-accent); }

.shop {
  flex: 1 1 300px; min-width: 0; text-decoration: none; background: var(--surface); color: var(--text);
  border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 20px;
  transition: transform .12s, box-shadow .12s;
}
@media (hover: hover) and (pointer: fine) { a.shop:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); } }
.shop__name { font-weight: 900; font-size: 34px; }
.shop__text { font-size: 16px; color: var(--muted); flex-grow: 1; }
.shop__btn { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 10px 20px; font-weight: 700; }
.shop--soon { background: transparent; border: 3px dashed var(--ink); box-shadow: none; }
.shop--soon .shop__btn { background: transparent; color: var(--text); border: 2px solid var(--ink); transform: rotate(-3deg); }

.contact { padding: 56px 0 104px; }
.contact__box {
  background: var(--pop); color: var(--on-pop); border-radius: 36px; box-shadow: 10px 10px 0 var(--shadow);
  padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px;
}
.contact__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact__title { font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; }
.contact__text p { font-size: 18px; line-height: 1.6; }
.contact__mail {
  text-decoration: none; background: var(--on-pop); color: #FFFFFF; border: 3px solid var(--on-pop);
  border-radius: 18px; padding: 18px 28px; font-weight: 800; font-size: 18px; word-break: break-all;
}

/* ---------- 7b. Banner und Hinweis-Fenster (ab 1.8.0) ---------- */
.notice-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 10px 52px; border-bottom: 3px solid var(--ink); text-align: center; }
.notice-bar[hidden] { display: none; }
.notice-bar p { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.notice-bar a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.notice-bar__x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; background: none; color: inherit; font: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.notice-bar__x:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.notice-bar--accent { background: var(--accent); color: var(--on-accent); }
.notice-bar--pop { background: var(--pop); color: var(--on-pop); }
.notice-bar--third { background: var(--third); color: var(--on-pop); }
.notice-bar--ink { background: var(--ink); color: var(--bg); }
.notice-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px 24px 24px; background: rgba(22, 18, 28, .55); }
.notice-pop[hidden] { display: none; }
.notice-pop { overflow-y: auto; }
.notice-pop__box { position: relative; width: min(460px, 100%); margin: auto; background: var(--surface); color: var(--text); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--pop); padding: 34px 26px 24px; outline: none; }
.notice-pop__tag { position: absolute; top: -24px; left: 20px; background: var(--pop); color: var(--on-pop); border: 3px solid var(--ink); border-radius: 999px; padding: 5px 18px; font-weight: 800; font-size: 18px; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); }
.notice-pop__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.notice-pop__x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.notice-pop h2 { margin: 8px 50px 10px 0; font-size: 24px; line-height: 1.2; }
.notice-pop p { margin: 0 0 18px; line-height: 1.6; color: var(--muted); }
.notice-pop .notice-pop__text { margin: 0 0 18px; line-height: 1.6; color: var(--muted); }
.notice-pop .notice-pop__text p { margin: 0; }
.notice-pop__btn { margin-top: 2px; }
@media (max-width: 560px) { .notice-bar { padding: 9px 46px 9px 14px; text-align: left; justify-content: flex-start; } .notice-bar p { font-size: 14px; } .notice-pop__box { padding: 32px 20px 20px; } .notice-pop h2 { font-size: 21px; } }

/* ---------- 8. Footer ---------- */
.site-footer { border-top: 3px solid var(--ink); background: var(--surface); }
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  font-weight: 600; font-size: 14px;
}
.site-footer img { height: 26px; width: auto; }
.footer__logo { display: block; padding: 8px 0; border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); }
.site-footer nav > a, .site-footer nav > span { text-decoration: none; padding: 12px; }   /* nur direkte Einträge – nicht das Jahr im ©-Text (1.10.5) */

/* ---------- 9. Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 40px 0 96px; }
.legal__box { background: var(--surface); border-radius: 28px; padding: clamp(24px, 5vw, 56px); max-width: 860px; }
.legal h1 { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.legal h2 { font-weight: 800; font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal h3 { font-weight: 800; font-size: 18px; margin: 24px 0 8px; }
.legal ul, .legal ol { margin: 12px 0; padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--accent); font-weight: 700; text-underline-offset: 2px; }

/* ---------- 10. Mobil ---------- */
.menu-toggle, .mobile-menu { display: none; }
@media (max-width: 760px) {
  /* Kopfzeile: immer eine Zeile – Logo, Farbe, Hell/Dunkel, Menü-Knopf */
  .site-header .wrap { position: relative; }
  .nav { flex-wrap: nowrap; border-radius: 999px; padding: 6px 6px 6px 18px; }
  .nav__logo img { height: 24px; }
  .nav__links { flex-wrap: nowrap; gap: 6px; }
  .nav__links a { display: none; }
  .nav .palette-toggle, .nav .theme-toggle { margin: 0; width: 42px; height: 42px; }
  .is-scrolled .site-header { padding: 8px 0; }
  .is-scrolled .nav { padding: 4px 4px 4px 16px; }
  .is-scrolled .nav__logo img { height: 22px; }

  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
    border-radius: 999px; border: 3px solid var(--ink); background: var(--accent); color: var(--on-accent); cursor: pointer;
  }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  /* Ausklappendes Menü */
  .mobile-menu {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; left: 24px; right: 24px; top: calc(100% + 4px);
    background: var(--surface); border-radius: 28px; padding: 12px;
    animation: menu-in .18s ease-out;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a {
    text-decoration: none; font-weight: 700; font-size: 18px; padding: 14px 18px; border-radius: 18px;
  }
  .mobile-menu a[aria-current="true"] { background: var(--pop); color: var(--on-pop); }
  .mobile-menu .mobile-menu__cta { background: var(--accent); color: var(--on-accent); text-align: center; margin-top: 4px; }

  .hero { padding-top: 32px; }
  .hero__visual { padding: 20px 8px; }
  .tag { font-size: 15px; padding: 8px 14px; }
  .products .product { transform: none !important; }
  .dots { bottom: 10px; padding: 1px 4px; border-width: 2px; box-shadow: 2px 2px 0 var(--shadow); }
  .dot { width: 22px; height: 24px; }
  .dot::before { width: 8px; height: 8px; }
  .dot[aria-current="true"]::before { width: 18px; }
  .hint { font-size: 13px; padding: 5px 12px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Weniger Bewegung, wenn im System eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .mobile-menu { animation: none; }
  .ticker__pause { display: none !important; }
  .track { scroll-behavior: auto; }
  .btn, .shop { transition: none; }
}

/* ---------- Formatierte Texte aus der Werkstatt (ab 1.11.0) ---------- */
.md > * { margin: 0; }
.md > * + * { margin-top: .6em; }
.md ul, .md ol { padding-left: 1.3em; }
.md li + li { margin-top: .2em; }
.md strong { font-weight: 800; color: var(--text); }
.md a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
