/* ==========================================================================
   Net's Fetz – Gestaltung
   Ruhige Grundfläche, ein starker Markenmoment (Aubergine + Limette wie die
   Schachtel), Themenfarben nur als Tönung. Figuren und Karten von Simon Junker.
   ========================================================================== */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../schriften/figtree.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(../schriften/figtree-kursiv.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../schriften/bricolage-grotesque.woff2) format('woff2'); }
@font-face { font-family: 'Sigmar One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../schriften/sigmar-one.woff2) format('woff2'); }

/* ---------- Grundwerte ---------- */
:root {
  --aubergine: #3e0a2f;
  --aubergine-900: #26051c;
  --aubergine-700: #5c1a48;
  --aubergine-100: #f3e9ef;
  --limette: #b8d63a;
  --limette-700: #8fae1c;

  --grund: #fbf8f4;
  --flaeche: #ffffff;
  --sand: #f4eee5;
  --linie: #e8e0d4;
  --tinte: #1f1a1e;
  --tinte-2: #5b525a;
  --tinte-3: #857b83;

  --schrift: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titel: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --marke: 'Sigmar One', 'Bricolage Grotesque', sans-serif;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --t-xl: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --t-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  --t-3xl: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  --abschnitt: clamp(3.5rem, 2.25rem + 5vw, 6.5rem);
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 1160px;
  --text-breite: 62ch;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 36px;
  --karte-rund: 9% / 5.8%;  /* Eckenrundung der Kartenbilder (Radius bis 60 px bei 662 × 1028), bei jeder Grösse gleich */

  --schatten-1: 0 1px 2px rgba(31, 26, 30, .05), 0 2px 10px rgba(31, 26, 30, .05);
  --schatten-2: 0 2px 6px rgba(31, 26, 30, .06), 0 16px 40px rgba(31, 26, 30, .10);
  --schatten-karte: 0 1px 2px rgba(31, 26, 30, .14), 0 6px 18px rgba(31, 26, 30, .12);

  --thema: var(--aubergine);
  --thema-text: var(--aubergine);
  --thema-ton: var(--aubergine-100);
  --thema-ton-2: #eadbe5;
  --uebergang: 180ms cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: var(--t-m);
  line-height: 1.6;
  color: var(--tinte);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--aubergine-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--aubergine); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--limette-700); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--titel); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.huelle { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.laedt, .hinweis { padding: 4rem var(--rand); text-align: center; color: var(--tinte-2); }
/* Lädt es länger als eine halbe Sekunde (langsames Netz), hüpft eine Figur – sonst sieht man nichts davon */
.laedt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding-block: 0;
         font-size: var(--t-l); opacity: 0; animation: einblenden .3s ease .5s forwards; }
.laedt::before { content: ""; display: block; width: clamp(150px, 22vw, 210px); aspect-ratio: 1; margin-bottom: 1.25rem; background: url(../../labor/figuren/snap.webp) center / contain no-repeat;
                 transform-origin: 50% 100%; animation: laden-huepfen .9s cubic-bezier(.34, 1.4, .5, 1) infinite; }
@keyframes einblenden { to { opacity: 1; } }
@keyframes laden-huepfen { 0%, 100% { transform: translateY(0) scaleY(1); } 15% { transform: scaleY(.9); } 45% { transform: translateY(-18px) rotate(-6deg); } 70% { transform: translateY(0) scaleY(.95); } }
@media (prefers-reduced-motion: reduce) { .laedt, .laedt::before { animation: none; opacity: 1; } }
.hinweis-zeile { max-width: var(--breite); margin: 1.5rem auto 0; padding: .9rem 1.1rem; border-radius: var(--r-m); background: #fff4d6; color: #6b4e00; font-weight: 600; }
.symbol { width: 1.25em; height: 1.25em; flex: none; }

.augenbraue {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--thema-text);
}
.lead { font-size: var(--t-l); color: var(--tinte-2); max-width: var(--text-breite); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background var(--uebergang), color var(--uebergang), border-color var(--uebergang), transform var(--uebergang);
}
.knopf:active { transform: translateY(1px); }
.knopf .symbol { width: 1.15em; height: 1.15em; transition: transform var(--uebergang); }
.knopf:hover .symbol--pfeil { transform: translateX(3px); }
.knopf--primaer { background: var(--aubergine); color: #fff; }
.knopf--primaer:hover { background: var(--aubergine-700); color: #fff; }
.knopf--limette { background: var(--limette); color: var(--aubergine-900); }
.knopf--limette:hover { background: #c8e450; color: var(--aubergine-900); }
.knopf--rand { border-color: currentColor; color: inherit; background: transparent; }
.knopf--rand:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.knopf--hell { background: var(--flaeche); color: var(--aubergine); border-color: var(--linie); }
.knopf--hell:hover { border-color: var(--aubergine); color: var(--aubergine); }
.knopf--klein { min-height: 40px; padding: 0 1rem; font-size: var(--t-s); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--aubergine); }
.textlink:hover .symbol--pfeil { transform: translateX(3px); }
.textlink .symbol { transition: transform var(--uebergang); }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 244, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.wortmarke { font-family: var(--marke); font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--aubergine); white-space: nowrap; line-height: 1; }
.wortmarke span { color: var(--limette-700); }
.kopf__nav { display: flex; gap: .25rem; margin-left: auto; }
.kopf__nav a { padding: .5rem .8rem; border-radius: 999px; color: var(--tinte-2); font-weight: 600; font-size: var(--t-s); text-decoration: none; }
.kopf__nav a:hover, .kopf__nav a[aria-current] { color: var(--tinte); background: rgba(31, 26, 30, .05); }
.kopf .knopf { margin-left: .25rem; }
.menue { display: none; position: relative; }
.menue summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; color: var(--tinte); }
.menue summary::-webkit-details-marker { display: none; }
.menue summary:hover { background: rgba(31, 26, 30, .06); }
.menue summary .symbol { width: 24px; height: 24px; }
.menue[open] summary .zu { display: block; }
.menue summary .zu, .menue[open] summary .auf { display: none; }
.menue__tafel {
  position: fixed; left: 0; right: 0; top: 68px;
  padding: .5rem var(--rand) 1.5rem;
  background: var(--grund); border-bottom: 1px solid var(--linie);
  box-shadow: 0 24px 40px rgba(31, 26, 30, .12);
  display: grid;
  animation: herab .2s ease;
}
.menue__tafel a { padding: .95rem 0; border-bottom: 1px solid var(--linie); font-family: var(--titel); font-size: 1.35rem; font-weight: 600; color: var(--tinte); text-decoration: none; letter-spacing: -.01em; }
.menue__tafel a:last-child { border-bottom: 0; }
@keyframes herab { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .kopf__nav { display: none; }
  .kopf .knopf { margin-left: auto; }
  .menue { display: block; }
  .kopf__innen { gap: .5rem; min-height: 64px; }
  .menue__tafel { top: 64px; }
}

/* Dunkle Kopfzeile auf der Startseite (liegt auf der Aubergine-Bühne) */
.kopf--dunkel { background: rgba(38, 5, 28, .82); border-bottom-color: rgba(255, 255, 255, .08); }
.kopf--dunkel .wortmarke { color: #fff; }
.kopf--dunkel .wortmarke span { color: var(--limette); }
.kopf--dunkel .kopf__nav a { color: rgba(255, 255, 255, .78); }
.kopf--dunkel .kopf__nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.kopf--dunkel .menue summary { color: #fff; }
.kopf--dunkel .menue summary:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Bühne (Startseite) ---------- */
.buehne {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(184, 214, 58, .14), transparent 60%),
    radial-gradient(80% 90% at 10% 0%, var(--aubergine-700), transparent 70%),
    var(--aubergine);
  color: #fff;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}
.buehne__raster { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .buehne__raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.buehne .augenbraue { color: var(--limette); }
.buehne h1 { margin: .9rem 0 1.1rem; font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; color: #fff; }
.buehne .lead { color: rgba(255, 255, 255, .78); }
.buehne .knoepfe { margin-top: 2rem; }
.fakten { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); font-size: var(--t-s); font-weight: 600; }
.fakten li { display: inline-flex; align-items: center; gap: .45rem; }
.fakten li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--limette); }
/* Simons Tentakel sind am rechten Bildrand angeschnitten: immer bündig rechts, nie drehen */
.buehne__tentakel { position: absolute; z-index: -1; right: 0; bottom: -12px; width: clamp(150px, 24vw, 340px); pointer-events: none; }

.video {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden;
  background: #e9e6e3; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}
.video img, .video video { width: 100%; height: 100%; object-fit: cover; }
.video__knopf {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1.1rem; border: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 50%, rgba(38, 5, 28, .55));
}
.video__knopf .rund {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--limette); color: var(--aubergine-900);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform var(--uebergang);
}
.video__knopf .rund .symbol { width: 30px; height: 30px; }   /* das Dreieck im Symbol ist schon optisch zentriert */
.video__knopf:hover .rund { transform: translate(-50%, -50%) scale(1.06); }
.video__knopf .beschriftung { color: #fff; font-weight: 700; font-size: var(--t-s); display: flex; gap: .5rem; align-items: center; }
.video__knopf .beschriftung small { font-weight: 500; opacity: .75; }

/* ---------- Suche (im Abschnitt „Alle Karten“) ---------- */
.suche { max-width: 720px; margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.suchzeile { display: flex; gap: .6rem; }
.suchfeld { position: relative; flex: 1; min-width: 0; }
.suchfeld .symbol { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--tinte-3); pointer-events: none; }
.suchfeld input {
  width: 100%; min-height: 52px; padding: 0 1rem 0 2.9rem;
  font: inherit; font-size: 1.0625rem; color: var(--tinte);
  background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: 999px;
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}
.suchfeld input::placeholder { color: var(--tinte-3); }
.suchfeld input:focus { outline: none; background: #fff; border-color: var(--aubergine-700); box-shadow: 0 0 0 4px rgba(92, 26, 72, .12); }
.suchzeile .knopf { min-height: 52px; }
@media (max-width: 480px) { .suchzeile .knopf span { display: none; } .suchzeile .knopf { width: 52px; padding: 0; } }
.treffer { list-style: none; margin: .6rem 0 0; padding: .4rem; display: grid; gap: 2px; max-height: 58vh; overflow: auto;
  background: var(--flaeche); border-radius: var(--r-m); box-shadow: var(--schatten-2); }
.treffer:empty { display: none; }
.treffer a { display: flex; align-items: center; gap: .9rem; padding: .55rem .6rem; border-radius: var(--r-s); color: var(--tinte); text-decoration: none; }
.treffer a:hover, .treffer a:focus-visible { background: var(--grund); }
.treffer img { width: 40px; border-radius: var(--karte-rund); box-shadow: var(--schatten-1); }
.treffer__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--thema-ton); }
.treffer .treffer__icon img { width: 24px; border-radius: 0; box-shadow: none; }
.treffer strong { display: block; font-weight: 700; line-height: 1.25; }
.treffer small { display: block; color: var(--tinte-3); font-size: var(--t-xs); }
.treffer .leer { display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; color: var(--tinte-2); }
.treffer .leer img { width: 64px; border-radius: 0; box-shadow: none; flex: none; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--sand { background: var(--sand); }
.abschnitt__kopf { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.abschnitt__kopf h2 { font-size: var(--t-2xl); margin-top: .6rem; }
.abschnitt__kopf .lead { margin-top: .9rem; }

/* Erklärvideo: gross vorne, Teile und Spielanleitung daneben (Handy: darunter) */
.erklaer { display: grid; gap: 1.25rem; grid-template-areas: "kopf" "video" "mehr"; }
@media (min-width: 900px) {
  .erklaer { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "video kopf" "video mehr"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
  .erklaer__kopf { align-self: end; }
}
.erklaer__kopf { grid-area: kopf; }
.erklaer__kopf h2 { font-size: var(--t-2xl); margin-top: .6rem; }
.erklaer__kopf .lead { margin-top: .9rem; }
.erklaer__videohuelle { grid-area: video; position: relative; }
.erklaer__video { aspect-ratio: 16 / 9; background: #000; box-shadow: var(--schatten-2); }
/* Figur zeigt auf den Play-Knopf: sitzt oben rechts auf dem Rand des Videos und zeigt schräg hinunter zur Mitte */
.erklaer__zeiger { position: absolute; z-index: 1; right: clamp(-.5rem, 1vw, 1.5rem); bottom: calc(100% - clamp(1.4rem, 2.6vw, 2.2rem)); width: clamp(84px, 9vw, 118px);
                   height: auto; rotate: 14deg; transform-origin: 60% 100%; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(31, 26, 30, .18));
                   transition: transform .5s cubic-bezier(.34, 1.4, .5, 1), opacity .4s ease; }
.erklaer__zeiger.hallo { animation: zeigen 1.6s cubic-bezier(.34, 1.4, .5, 1) .2s 1; }
.erklaer__videohuelle:hover .erklaer__zeiger { transform: rotate(8deg) translateY(-4px); }
.erklaer__videohuelle.spielt .erklaer__zeiger { opacity: 0; transform: translateY(30px); }
@keyframes zeigen { 0%, 100% { translate: 0 0; rotate: 14deg; } 18% { translate: 0 -20px; rotate: 6deg; } 36% { translate: 0 0; rotate: 14deg; } 55% { rotate: 24deg; } 70% { rotate: 14deg; } 82% { rotate: 22deg; } }
@media (prefers-reduced-motion: reduce) { .erklaer__zeiger.hallo { animation: none; } }
@media (max-width: 899px) { .erklaer__videohuelle { margin-top: 2.75rem; } .erklaer__zeiger { width: 74px; right: .25rem; bottom: calc(100% - 1.1rem); } }
.erklaer__video .video__knopf { background: none; }
.erklaer__bald { position: absolute; left: 1rem; top: 1rem; }
.erklaer__mehr { grid-area: mehr; display: grid; justify-items: start; gap: 1.25rem; }
.erklaer__teile { display: grid; gap: .5rem; width: 100%; }
.erklaer__teil {
  display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem 1.1rem;
  border: 1.5px solid var(--linie); border-radius: var(--r-m); background: var(--flaeche);
  font: inherit; font-weight: 700; color: var(--tinte); text-align: left; cursor: pointer;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.erklaer__teil:hover { border-color: var(--aubergine); }
.erklaer__teil .symbol { width: 1.1em; height: 1.1em; flex: none; color: var(--aubergine); }
.erklaer__teil[aria-pressed="true"] { border-color: var(--aubergine); background: var(--aubergine-100); }

/* Weitere Einstiege (online spielen, alternativ einsteigen): Bild links, Text rechts */
.einstiege { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); grid-template-columns: minmax(0, 1fr); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 720px) { .einstiege { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.einstieg {
  display: flex; align-items: center; overflow: hidden;
  background: var(--flaeche); border-radius: var(--r-l); box-shadow: var(--schatten-1);
  color: var(--tinte); text-decoration: none;
  transition: box-shadow var(--uebergang), transform var(--uebergang);
}
.einstieg:hover { box-shadow: var(--schatten-2); transform: translateY(-3px); color: var(--tinte); }
.einstieg__bild { flex: none; width: clamp(96px, 26%, 150px); aspect-ratio: 1; align-self: stretch; background: var(--sand); overflow: hidden; }
.einstieg__bild img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .4s ease; }
.einstieg:hover .einstieg__bild img { transform: scale(1.04) rotate(-1deg); }
.einstieg__text { padding: 1.1rem 1.25rem; display: grid; gap: .3rem; }
.einstieg h3 { font-size: var(--t-l); }
.einstieg p { color: var(--tinte-2); }
.einstieg .textlink { margin-top: .4rem; }
.einstieg--bald { box-shadow: none; border: 1.5px dashed var(--linie); background: transparent; }
.einstieg--bald:hover { transform: none; box-shadow: none; }
.einstieg--bald .einstieg__bild { opacity: .75; }
.marke-bald { justify-self: start; padding: .15rem .6rem; border-radius: 999px; background: #fff1c7; color: #6b4e00; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; }

/* Themen-Sprungmarken */
.sprungmarken { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sprungmarke {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem .45rem .5rem; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie);
  color: var(--tinte); font-weight: 600; font-size: var(--t-s); text-decoration: none;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.sprungmarke:hover { border-color: var(--thema); color: var(--tinte); }
.sprungmarke img { width: 26px; height: 26px; }

/* Themen mit ihren Kategorien */
.thema + .thema { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.thema__kopf { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; margin-bottom: 1.5rem; }
.thema__kopf img { grid-row: span 2; width: 52px; height: 52px; padding: 8px; border-radius: 16px; background: var(--thema-ton); }
.thema__kopf h3 { font-size: var(--t-xl); }
.thema__kopf p { color: var(--tinte-2); font-size: var(--t-s); }
/* Kacheln der Startseite: festes, linksbündiges Raster */
.kacheln { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 680px) { .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Karten der Kategorieseiten: ausgeglichene Reihen. Die Spaltenzahl (--sp-s/m/l) rechnet netsfetz.js
   aus der Anzahl aus, damit keine Karte allein in der letzten Reihe steht. Bleibt doch eine übrig, steht sie mittig. */
.kartenraster { --sp: var(--sp-s, 2); display: flex; flex-wrap: wrap; justify-content: center; }
@media (min-width: 640px) { .kartenraster { --sp: var(--sp-m, 3); } }
@media (min-width: 1000px) { .kartenraster { --sp: var(--sp-l, 4); } }
.kachel {
  position: relative; display: flex; flex-direction: column;
  padding: 1.25rem 1rem 1rem; border-radius: var(--r-l);
  background: var(--thema-ton); color: var(--tinte); text-decoration: none;
  transition: background var(--uebergang), transform var(--uebergang);
}
.kachel:hover { background: var(--thema-ton-2); color: var(--tinte); transform: translateY(-2px); }
.faecher { position: relative; width: 58%; margin: .25rem auto 1.1rem; aspect-ratio: 662 / 1028; }
.faecher > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: var(--karte-rund); box-shadow: var(--schatten-karte);
  transform-origin: 50% 120%; transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.faecher > img { object-fit: cover; }
.faecher > :nth-child(1) { transform: rotate(-9deg); }
.faecher > :nth-child(3) { transform: rotate(9deg); }
.faecher > :only-child { transform: none; }
.kachel:hover .faecher > :nth-child(1) { transform: rotate(-16deg) translateX(-4%); }
.kachel:hover .faecher > :nth-child(2) { transform: translateY(-4%); }
.kachel:hover .faecher > :nth-child(3) { transform: rotate(16deg) translateX(4%); }
.kachel__fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.kachel__fuss > strong { min-width: 0; }
.kachel strong { display: block; font-size: clamp(.875rem, .8rem + .4vw, 1.0625rem); line-height: 1.25; font-weight: 700; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 639px) { .kachel .symbol--pfeil { display: none; } } /* ganze Kachel ist der Link; der Titel bekommt die volle Breite */
.kachel .symbol { color: var(--thema-text); flex: none; transition: transform var(--uebergang); }
.kachel:hover .symbol { transform: translateX(3px); }

/* Abschluss-Band */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  padding-bottom: clamp(9rem, 6rem + 10vw, 3.5rem);
  border-radius: var(--r-xl);
  background: radial-gradient(70% 120% at 100% 100%, var(--aubergine-700), transparent 70%), var(--aubergine);
  color: #fff;
}
.band h2 { font-size: var(--t-2xl); color: #fff; }
.band p { color: rgba(255, 255, 255, .75); margin-top: .6rem; max-width: 44ch; }
.band .knoepfe { margin-top: 1.75rem; }
.band__figur { position: absolute; z-index: -1; right: clamp(-10px, 3vw, 56px); bottom: -22px; width: clamp(150px, 22vw, 270px); transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
@media (min-width: 760px) { .band { padding-right: 320px; } }

/* ---------- Seitenkopf (Kategorie- und Inhaltsseiten) ---------- */
.seitenkopf { position: relative; overflow: hidden; isolation: isolate; background: var(--thema-ton); padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: var(--t-s); font-weight: 600; color: var(--tinte-2); }
.brotkrumen a { color: var(--tinte-2); text-decoration: none; }
.brotkrumen a:hover { color: var(--tinte); text-decoration: underline; }
.brotkrumen .symbol { width: 1em; height: 1em; opacity: .5; }
.seitenkopf__titel { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.seitenkopf__titel img { width: 56px; height: 56px; padding: 9px; border-radius: 18px; background: var(--flaeche); box-shadow: var(--schatten-1); flex: none; }
.seitenkopf h1 { font-size: clamp(1.875rem, 1rem + 4.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; overflow-wrap: break-word; min-width: 0; }
@media (max-width: 560px) {
  .seitenkopf__titel { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .seitenkopf__titel img { width: 48px; height: 48px; padding: 8px; border-radius: 15px; }
}
.seitenkopf .lead { margin-top: 1rem; }
.seitenkopf__meta { margin-top: .9rem; color: var(--tinte-2); font-weight: 600; font-size: var(--t-s); }
.seitenkopf__figur { position: absolute; z-index: -1; right: max(var(--rand), calc((100vw - var(--breite)) / 2)); bottom: -14px; width: clamp(110px, 18vw, 210px); pointer-events: none; }
@media (max-width: 560px) { .seitenkopf__figur { right: -18px; top: 1rem; bottom: auto; width: 96px; } }
/* Tentakel im Kategoriekopf: bündig am rechten Rand, Text hält Abstand */
.seitenkopf__tentakel { position: absolute; z-index: -1; right: 0; top: 50%; transform: translateY(-50%); height: min(84%, 230px); width: auto; pointer-events: none; }
@media (min-width: 561px) { .seitenkopf--kategorie .huelle { padding-right: calc(var(--rand) + clamp(140px, 18vw, 230px)); } }
@media (max-width: 560px) { .seitenkopf__tentakel { top: .6rem; transform: none; height: 96px; } }

/* ---------- Kartenraster ---------- */
.kartenbereich { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--abschnitt); }
.gruppe + .gruppe { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.gruppe__titel { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.25rem; font-size: var(--t-xl); }
.kartenraster { --luecke: clamp(.75rem, .5rem + 1vw, 1.5rem); list-style: none; margin: 0; padding: 0; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem) var(--luecke); }
.kartenraster > li { flex: 0 0 calc((100% - (var(--sp) - 1) * var(--luecke)) / var(--sp)); max-width: 220px; min-width: 0; }
.kartenknopf { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; display: grid; gap: .7rem; }
.kartenknopf img {
  width: 100%; aspect-ratio: 662 / 1028; object-fit: cover; border-radius: var(--karte-rund);
  box-shadow: var(--schatten-karte);
  transition: transform var(--uebergang), box-shadow var(--uebergang);
}
.kartenknopf:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 26, 30, .12), 0 18px 36px rgba(31, 26, 30, .18); }
.nachbarn { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--linie); }

/* ---------- Für die Schule: Online-Labor und Arbeitsblatt, gleich nach dem Merksatz – die ersten Klicks ---------- */
.auftraege { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); }   /* Tablet: untereinander, damit die Titel nicht zerfallen */
.auftrag {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem;
  min-height: 14rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); border-radius: var(--r-l); color: var(--tinte); text-decoration: none;
  box-shadow: var(--schatten-2); transition: box-shadow var(--uebergang), transform var(--uebergang);
}
.auftrag:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(31, 26, 30, .08), 0 26px 54px rgba(31, 26, 30, .16); color: var(--tinte); }
.auftrag__text { position: relative; z-index: 1; display: grid; gap: .45rem; align-content: start; align-self: stretch; }
.auftrag .augenbraue { margin: 0; }
.auftrag strong { font: 800 var(--t-2xl)/1.05 var(--titel); letter-spacing: -.025em; color: var(--aubergine); text-wrap: balance; }
.auftrag .knopf { justify-self: start; margin-top: auto; }
.auftrag strong { margin-bottom: 1rem; }
.auftrag--labor { background: radial-gradient(110% 100% at 90% 100%, rgba(255, 255, 255, .75), transparent 60%), var(--thema-ton-2); }
.auftrag__figur { width: clamp(110px, 13vw, 180px); margin: 0 -.5rem -.75rem 0; filter: drop-shadow(0 8px 12px rgba(31, 26, 30, .14));
                  transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.34, 1.4, .5, 1); }
.auftrag--labor:hover .auftrag__figur { transform: translateY(-8px) rotate(-4deg); }
.auftrag--blatt { background: var(--flaeche); }
.auftrag__blatt { width: clamp(92px, 10vw, 132px); aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 3px; margin-bottom: -3.5rem;
                  box-shadow: 0 1px 3px rgba(31, 26, 30, .12), 0 14px 28px rgba(31, 26, 30, .16); transform: rotate(5deg);
                  transition: transform .45s cubic-bezier(.34, 1.4, .5, 1); }
.auftrag--blatt:hover .auftrag__blatt { transform: rotate(0) translateY(-10px); }
@media (max-width: 560px) {
  .auftrag { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 1.4rem; }
  .auftrag strong { font-size: var(--t-xl); }
  .auftrag__figur { position: absolute; right: .5rem; bottom: .25rem; width: 92px; margin: 0; }
  .auftrag__blatt { position: absolute; right: 1rem; bottom: -2.2rem; width: 70px; margin: 0; }
}
/* Die Abschnitte darunter treten etwas zurück */
.unterricht .material__abschnitt h3 { font-size: var(--t-l); }

/* ---------- Unterrichtsmaterial (Merksatz, Erfahrungen sammeln, Willst du mehr wissen?) ---------- */
.unterricht { padding-block: var(--abschnitt) 0; background: linear-gradient(var(--sand), var(--grund)); }
.material { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); }
.merksatz {
  position: relative; margin: 0;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--r-l); background: var(--thema-ton);
  border-left: 5px solid var(--thema);
}
.merksatz > div { margin-top: .4rem; font-family: var(--titel); font-size: var(--t-xl); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--tinte); text-wrap: pretty; }
.merksatz em { font-style: normal; }
.material__abschnitte { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .unterricht .material__abschnitte { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.material__abschnitt {
  display: grid; gap: 1rem; align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--flaeche); border-radius: var(--r-l); box-shadow: var(--schatten-1);
}
.material__abschnitt h3 { font-size: var(--t-xl); }
/* Pinnwand (nur Desktop): Die Abschnitte liegen gerade (gut lesbar) auf einem schräg hervorschauenden Blatt in der
   Themenfarbe und sind mit Klebeband befestigt; die rechte Spalte sitzt etwas tiefer.  Beim Zeigen dreht sich das Blatt weiter. */
@media (min-width: 900px) and (hover: hover) {
  .unterricht .material { gap: 2.5rem; padding-top: .5rem; }
  .unterricht .material__abschnitte { gap: 2.5rem; padding-bottom: 1rem; }
  .unterricht .merksatz { position: relative; }
  .unterricht .material__abschnitt { position: relative; z-index: 0; background: none; box-shadow: none; }
  .unterricht .material__abschnitt:nth-child(even) { margin-top: 2rem; }
  .unterricht .material__abschnitt::before, .unterricht .material__abschnitt::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--r-l); pointer-events: none; transition: transform .45s cubic-bezier(.34, 1.4, .5, 1); }
  .unterricht .material__abschnitt::before { z-index: -1; background: var(--flaeche); box-shadow: var(--schatten-1); }
  .unterricht .material__abschnitt::after { z-index: -2; background: var(--thema-ton); transform: rotate(2deg) translate(5px, 7px); }
  .unterricht .material__abschnitt:nth-child(even)::after { transform: rotate(-2deg) translate(-5px, 8px); }
  .unterricht .material__abschnitt:hover::after { transform: rotate(3.4deg) translate(8px, 9px); }
  .unterricht .material__abschnitt:nth-child(even):hover::after { transform: rotate(-3.4deg) translate(-8px, 10px); }
  .unterricht .merksatz::before, .unterricht .material__abschnitt > h3::before {
    content: ""; position: absolute; z-index: 1; top: -13px; left: calc(50% - 56px); width: 112px; height: 28px; pointer-events: none;
    background: rgba(184, 214, 58, .6); box-shadow: 0 1px 2px rgba(31, 26, 30, .08); transform: rotate(-3deg);
    clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
  }
  .unterricht .merksatz::before { left: auto; right: 2.5rem; transform: rotate(4deg); }
  .unterricht .material__abschnitt:nth-child(even) > h3::before { left: calc(42% - 56px); background: rgba(92, 26, 72, .16); transform: rotate(5deg); }
}
.material__text { color: #3a3339; }
.material__text + .material__text { padding-top: .25rem; }
.material__text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.material__text ul li { position: relative; padding-left: 1.6rem; }
.material__text ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--thema-ton-2)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b525a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9.5 8H16v6.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.material__text a { font-weight: 600; text-decoration-color: rgba(92, 26, 72, .35); }
.material__text a:hover { text-decoration-color: currentColor; }
.material__text a[href^='http']::after { content: '\00a0↗'; font-size: .85em; opacity: .6; }   /* geschütztes Leerzeichen: Pfeil bleibt beim Wort */
.material__text li a[href^='http']::after { content: none; }   /* in Listen steht der Pfeil schon davor */
.material__bild { margin: 0; }
.material__bild img { width: 100%; border-radius: var(--r-m); box-shadow: var(--schatten-1); border: 1px solid var(--linie); }
.material .yt { margin-top: 0; max-width: none; }
.ansicht__text .material__abschnitt { box-shadow: none; border: 1px solid var(--linie); }
.ansicht__text .auftrag { box-shadow: none; border: 1px solid var(--linie); }
.nachbarn h2 { font-size: var(--t-l); margin-bottom: 1rem; }
.nachbarn__liste { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Kartenansicht (nach dem Scannen) ---------- */
.kartenansicht {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--grund); color: var(--tinte);
}
.kartenansicht[open] { display: flex; flex-direction: column; animation: einblenden .25s ease; }
.kartenansicht:focus { outline: none; }
.kartenansicht::backdrop { background: rgba(38, 5, 28, .5); }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.ansicht__leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: .5rem var(--rand);
  background: var(--thema-ton); color: var(--tinte);
}
.ansicht__zurueck { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem .5rem .5rem; margin-left: -.5rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.ansicht__zurueck:hover { background: rgba(31, 26, 30, .06); }
.ansicht__rumpf { flex: 1; overflow: auto; overscroll-behavior: contain; }
.ansicht__buehne { background: var(--thema-ton); padding: .75rem var(--rand) 1.25rem; display: grid; justify-items: center; gap: .9rem; }
.ansicht__drehen {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .7); color: var(--tinte-2); font-weight: 700; font-size: var(--t-s);
}
.ansicht__drehen:hover { background: #fff; color: var(--tinte); }
.ansicht__text { max-width: 760px; margin-inline: auto; padding: 1.75rem var(--rand) 3rem; }
.ansicht__text .augenbraue { letter-spacing: .07em; line-height: 1.4; }
.ansicht__text .augenbraue img { width: 22px; height: 22px; }
.ansicht__titel { margin: .5rem 0 1.5rem; font-size: var(--t-xl); }

/* Drehbare Karte: vorne Simons Bild, hinten Name und Text */
.wendekarte {
  width: min(86vw, 380px);
  aspect-ratio: 662 / 1028;
  perspective: 1800px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: karte-rein .45s cubic-bezier(.2, .7, .3, 1);
}
.wendekarte:focus-visible { outline: none; }
.wendekarte:focus-visible .wendekarte__innen { outline: 3px solid var(--limette-700); outline-offset: 6px; border-radius: var(--karte-rund); }
.wendekarte__innen {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, .7, .2, 1);
}
.wendekarte.gedreht .wendekarte__innen { transform: rotateY(180deg); }
.wendekarte__vorne, .wendekarte__hinten {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--karte-rund); overflow: hidden;
  box-shadow: 0 2px 4px rgba(31, 26, 30, .12), 0 24px 50px rgba(31, 26, 30, .22);
}
.wendekarte__vorne img { width: 100%; height: 100%; object-fit: cover; }
.wendekarte__hinten {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: .55rem;
  padding: clamp(1rem, .6rem + 2vw, 1.5rem);
  background: #fff; border: clamp(8px, 2.4vw, 12px) solid #e6d6bf;
  overflow-y: auto; overscroll-behavior: contain;
}
.wendekarte__marke { flex: none; display: flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--thema-text); }
/* Mitte füllt den Platz; kurze Texte stehen vertikal zentriert wie auf einer Spielkarte */
.wendekarte__mitte { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; gap: .55rem; padding-block: .25rem; }
.wendekarte__fuss { flex: none; display: flex; align-items: center; justify-content: space-between; padding-top: .7rem; border-top: 1px solid #efe5d6; }
.wendekarte__fuss .wortmarke { font-size: .78rem; color: var(--aubergine); }
.wendekarte__fuss img { width: 28px; height: 28px; opacity: .85; transform: rotate(-8deg); }
.wendekarte__marke img { width: 20px; height: 20px; }
.wendekarte__hinten h2 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; }
.wendekarte__text { font-size: clamp(.95rem, .88rem + .35vw, 1.0625rem); line-height: 1.55; color: #2e282d; }
.wendekarte--lang .wendekarte__text { font-size: clamp(.84rem, .8rem + .3vw, .97rem); line-height: 1.5; }
.wendekarte--lang .wendekarte__hinten h2 { font-size: clamp(1.15rem, 1rem + .9vw, 1.5rem); }
.ansicht__text .merksatz > div { font-size: var(--t-l); }
@keyframes karte-rein { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.ansicht__blaettern {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  padding: .75rem var(--rand) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 244, .94); border-top: 1px solid var(--linie);
}
.ansicht__blaettern .knopf { width: 100%; }
.ansicht__blaettern .knopf:disabled { opacity: .35; cursor: default; }
@media (min-width: 900px) {
  /* Karte steht links fest, nur das Material rechts scrollt */
  .ansicht__rumpf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; }
  .ansicht__rumpf.ohne-material { grid-template-columns: 1fr; }
  .ansicht__buehne { height: 100%; min-height: 0; align-content: center; padding: 2rem 3rem; overflow: hidden; }
  .wendekarte { width: min(400px, calc(64vh * 662 / 1028)); }
  .ansicht__text { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 3rem clamp(2rem, 4vw, 4rem) 4rem; margin: 0; max-width: none; }
  .ansicht__blaettern { grid-template-columns: auto auto; justify-content: end; }
  .ansicht__blaettern .knopf { width: auto; min-width: 180px; }
}

/* ---------- Inhaltsseiten ---------- */
.bloecke { display: grid; gap: clamp(2.75rem, 2rem + 3vw, 5rem); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--abschnitt); }
.block { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
.block__bild { width: min(100%, 200px); aspect-ratio: 1; display: grid; place-items: center; padding: 1.25rem; border-radius: var(--r-l); background: var(--flaeche); box-shadow: var(--schatten-1); }
.block__bild img { width: 100%; height: 100%; object-fit: contain; }
.block__bild--icon { width: 88px; padding: 16px; border-radius: 22px; }
.block__text { max-width: var(--text-breite); }
.block h2 { font-size: var(--t-2xl); margin-bottom: 1rem; }
.fliesstext { color: #3a3339; }
.fliesstext > * + * { margin-top: 1rem; }
.fliesstext ul, .fliesstext ol { padding-left: 1.25rem; }
.fliesstext li + li { margin-top: .35rem; }
.fliesstext li::marker { color: var(--limette-700); }
.fliesstext h3 { font-size: var(--t-l); margin-top: 1.75rem; }
.fliesstext strong { color: var(--tinte); }
.block .knoepfe { margin-top: 1.75rem; }
@media (min-width: 800px) {
  .block--mit-bild { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .block--mit-bild .block__bild:not(.block__bild--icon) { width: 260px; }
  .block--mit-bild:has(.block__bild--icon) { grid-template-columns: 88px minmax(0, 1fr); gap: 2rem; }
}
.block--zwischentitel { padding-top: 1rem; border-top: 1px solid var(--linie); }
.block--zwischentitel h2 { font-size: var(--t-xl); margin: 0; color: var(--tinte-2); }
.yt { position: relative; margin-top: 1.75rem; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: #171215; max-width: 640px; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
             background: radial-gradient(80% 90% at 50% 45%, #3a2533, #171215); }
.yt .rund { width: 72px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--limette); color: var(--aubergine-900);
            box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform var(--uebergang); }
.yt .rund .symbol { width: 24px; height: 24px; }
.yt button:hover .rund { transform: scale(1.07); }
.yt__leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem;
              background: linear-gradient(transparent, rgba(0, 0, 0, .45)); font-size: var(--t-xs); color: rgba(255, 255, 255, .8); }
.yt__leiste b { color: #fff; font-weight: 700; }
/* Titel oben wie bei YouTube: Titel, darunter der Kanal */
.yt__titel { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: .15rem; padding: .8rem 1rem 1.8rem; text-align: left;
             background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.yt__titel strong { font-size: var(--t-s); font-weight: 700; line-height: 1.3; color: #fff;
                    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt__titel small { font-size: var(--t-xs); color: rgba(255, 255, 255, .78); }
.yt iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Liste der QR-Codes (intern) ---------- */
.codes { width: 100%; margin-block: 2rem var(--abschnitt); border-collapse: collapse; font-size: var(--t-s); background: var(--flaeche); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--schatten-1); }
.codes th, .codes td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.codes th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--tinte-3); }
.codes code { word-break: break-all; }
.codes tr.kat td { background: var(--sand); font-weight: 700; }

/* ---------- QR-Scanner ---------- */
.scanner { width: min(94vw, 440px); padding: 1.5rem; border: 0; border-radius: var(--r-l); background: var(--flaeche); box-shadow: var(--schatten-2); }
.scanner::backdrop { background: rgba(38, 5, 28, .6); backdrop-filter: blur(3px); }
.scanner h2 { font-size: var(--t-xl); }
.scanner #qr-leser { margin-top: 1rem; border-radius: var(--r-m); overflow: hidden; background: var(--sand); }
.scanner .meldung { min-height: 1.5em; margin-top: .9rem; color: var(--tinte-2); font-size: var(--t-s); }
.scanner .knopf { width: 100%; margin-top: 1rem; }

/* ---------- Fusszeile ---------- */
.fuss { margin-top: var(--abschnitt); background: var(--aubergine-900); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom)); font-size: var(--t-s); }
.fuss__raster { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fuss__marke { grid-column: 1 / -1; }
@media (min-width: 760px) { .fuss__raster { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } .fuss__marke { grid-column: auto; } }
.fuss .wortmarke { color: #fff; font-size: 1.35rem; }
.fuss .wortmarke span { color: var(--limette); }
.fuss__marke p { margin-top: .9rem; max-width: 32ch; }
.fuss h2 { font-family: var(--schrift); font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: .9rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fuss a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--t-xs); color: rgba(255, 255, 255, .5); }

/* Startseite: Fusszeile ohne Abstand, das Band davor sorgt für Luft */
body[data-seite='start'] .fuss { margin-top: 0; }

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