/* versurft-Portale, statische Fassung. Mobil zuerst, Systemschrift, flache Flächen.
   Portalfarbe kommt als --ac / --ac-l aus dem Seitenkopf. */
:root {
  --bg: #f3f4f6; --sf: #ffffff; --sf2: #e7e9ed; --ink: #14161b; --ink2: #4b515c; --line: #d9dce2;
  --on-ac: #111; --t-ink: #111; --link: var(--ac-l);
  --r: 12px; --pad: 16px; --tab: 62px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e1014; --sf: #171a20; --sf2: #22262e; --ink: #eceef2; --ink2: #a6adb9; --line: #2b3039;
  --t-ink: #fff; --link: var(--ac); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.55 var(--font); overflow-x: hidden;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
p a, .lede a, .legal a, .crumbs a, blockquote a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(28px, 7.4vw, 46px); font-weight: 760; }
h2 { font-size: clamp(19px, 4.6vw, 24px); font-weight: 720; margin: 0 0 14px; }
main { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
section { margin: 36px 0; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px var(--pad);
  background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--link); }
.brand-ic { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: var(--ac); fill: none; stroke: var(--on-ac);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav { display: none; gap: 20px; font-weight: 600; font-size: 15px; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.sform { flex: 1; min-width: 0; margin-left: auto; max-width: 420px; }
.sform input, .bigsearch input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--sf2);
  border: 0; border-radius: 10px; padding: 9px 12px; }
.crumbs { font-size: 13.5px; color: var(--ink2); margin: 14px 0 -18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Kopfbereich je Seite */
.hero { padding: 26px 0 4px; margin: 0; }
.hero.small { padding-top: 22px; }
.lede { font-size: 17px; color: var(--ink); max-width: 44em; margin: 12px 0 0; }
.hero .lede { color: var(--ink2); }

/* Kategorien als wischbare Zeile */
.catrow { margin: 18px calc(-1 * var(--pad)) 0; }
.catrow ul { list-style: none; margin: 0; padding: 0 var(--pad) 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catrow ul::-webkit-scrollbar { display: none; }
.catrow a { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; background: var(--sf); padding: 9px 14px;
  border-radius: 999px; font-weight: 600; font-size: 15px; }
.catrow b { font-weight: 600; color: var(--ink2); font-size: 13px; }
.catrow a:active, .catrow a:hover { background: var(--sf2); }

/* Vorschaubild: flache Fläche in Portalfarbe je Kategorie, Portal-Symbol */
.t { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r) var(--r) 0 0;
  background: color-mix(in oklab, var(--ac) calc(32% + var(--k) * 10%), var(--sf2)); color: var(--t-ink); }
.t-ic { position: absolute; right: 6%; top: 50%; width: 46%; height: 82%; transform: translateY(-50%);
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .28; }
.t-cat { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.t-year { position: absolute; left: 12px; top: 9px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Karten: Handy zwei Spalten, groß mehr */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c a { display: flex; flex-direction: column; height: 100%; background: var(--sf); border-radius: var(--r); transition: transform .12s ease; }
.c a:hover { transform: translateY(-2px); }
.c a:active { transform: scale(.985); }
.c-b { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; min-width: 0; }
.c-t { font-weight: 680; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.c-m { font-size: 12.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.c-portal { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--on-ac); background: var(--pc); padding: 2px 8px; border-radius: 999px; }
/* Liste mit kleinem Bild links */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows .c a { flex-direction: row; align-items: stretch; }
.rows .t { width: 132px; flex: 0 0 132px; aspect-ratio: auto; min-height: 76px; border-radius: var(--r) 0 0 var(--r); }
.rows .t-cat, .rows .t-year { display: none; }
.rows .t-ic { width: 70%; right: 15%; }

/* Kategorie-Übersicht */
.catgrid { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.catgrid a { display: block; background: var(--sf); border-radius: var(--r); padding: 16px; }
.catgrid h2 { margin: 0 0 6px; font-size: 18px; }
.catgrid p { margin: 0 0 8px; color: var(--ink2); font-size: 15px; }
.catgrid b { font-size: 14px; color: var(--link); }

/* Jahre (Retro) */
.tapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tapes a, .tapes li.empty { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: var(--sf); }
.tapes a { background: hsl(calc(330 - var(--y) * 1deg) 70% 55%); color: #111; }
.tapes b { font-size: 17px; font-weight: 800; }
.tapes span { font-size: 12px; }
.tapes .empty { opacity: .45; }

/* Videoseite */
.video { max-width: 820px; margin: 0 auto; padding-top: 18px; }
.player { position: relative; margin: 0 calc(-1 * var(--pad)); }
.play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.play .t { border-radius: 0; }
.play-b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  background: var(--ac); color: var(--on-ac); font-weight: 750; padding: 12px 20px; border-radius: 999px; font-size: 16px; white-space: nowrap; }
.play:hover .play-b { filter: brightness(1.06); }
.play-i { font-size: 13px; }
.play-n { font-size: 13px; color: var(--ink2); margin: 8px var(--pad) 0; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video h1 { font-size: clamp(24px, 6vw, 36px); margin-top: 18px; }
.v-m { color: var(--ink2); margin: 8px 0 0; font-size: 15px; }
.v-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.video h2 { font-size: 18px; margin: 26px 0 6px; }
.video p { margin: 0 0 10px; }
.q { margin: 6px 0; padding: 12px 16px; background: var(--sf); border-radius: var(--r); }
.q p { margin: 0; font-size: 17px; }
.q cite { display: block; margin-top: 6px; font-style: normal; color: var(--ink2); font-size: 13.5px; }
.v-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { background: var(--sf); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
  border: 0; border-radius: 999px; padding: 10px 18px; background: var(--ac); color: var(--on-ac); cursor: pointer; min-height: 44px; }
.btn.ghost { background: var(--sf2); color: var(--ink); }
.btn.on { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.98); }

/* Suche, Einstellungen */
.bigsearch { display: flex; gap: 8px; margin-top: 16px; max-width: 640px; }
.bigsearch input { padding: 12px 14px; }
.settings p { margin: 0 0 12px; }
.empty-note { color: var(--ink2); }

/* Über */
.about p { max-width: 46em; color: var(--ink2); }

/* Fuß */
.foot { background: var(--sf); margin-top: 56px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px var(--pad) 30px; }
.foot-name { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin: 0; }
.foot-tag { color: var(--ink2); margin: 8px 0 22px; }
.foot-h { font-size: 15px; margin: 0 0 8px; }
.others { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 6px; }
.others a { font-weight: 700; border-bottom: 2px solid var(--pc); }
.others span { color: var(--ink2); font-size: 14px; }
.legal { font-size: 14px; color: var(--ink2); margin: 0; }

/* Untere Leiste (Handy) */
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--sf); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab); font-size: 11.5px; font-weight: 600; color: var(--ink2); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tb-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Einwilligung YouTube: gleichwertige Knöpfe, nicht blockierend (schwebt, daher Schatten erlaubt) */
.ytbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--tab) + 12px + env(safe-area-inset-bottom));
  background: var(--sf); color: var(--ink); border-radius: 14px; padding: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.28);
  max-width: 720px; margin: 0 auto; }
.ytbar p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.ytbar a { color: var(--link); text-decoration: underline; }
.ytbar div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ytbar button { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; border-radius: 999px; border: 0; background: var(--sf2); color: var(--ink); cursor: pointer; }

/* Größere Bildschirme */
@media (min-width: 700px) {
  :root { --pad: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .c-t { font-size: 15.5px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .tapes { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .player { margin: 0; }
  .play .t { border-radius: var(--r); }
  .play-n { margin: 8px 0 0; }
  .player iframe { border-radius: var(--r); }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav { display: flex; margin-left: 18px; }
  .ytbar { bottom: 18px; display: flex; gap: 16px; align-items: center; }
  .ytbar p { margin: 0; }
  .ytbar div { flex: 0 0 300px; }
  .catrow ul { flex-wrap: wrap; }
  .hero { padding-top: 40px; }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .c a:hover { transform: none; } }
.learn { margin: 0 0 10px; padding-left: 20px; }
.learn li { margin: 4px 0; }
.intro p { max-width: 46em; }
.faq details { background: var(--sf); border-radius: var(--r); padding: 12px 16px; margin: 0 0 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink2); }
.checked { font-size: 13px; color: var(--ink2); margin: 0 0 8px; }
.player .play-n { margin: 8px 0 0; padding: 0 var(--pad); }
@media (min-width: 700px) { .player .play-n { padding: 0; } }
/* Ausrüstung zum Thema (Amazon-Partnerlinks, gekennzeichnet) */
.gear { background: var(--sf); border-radius: var(--r); padding: 16px; }
.gear h2 { margin-bottom: 10px; }
.gear ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gear a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--sf2); font-weight: 650; font-size: 15px; }
.gear a span { font-size: 11.5px; font-weight: 600; color: var(--ink2); }
.gear-n { margin: 10px 0 0; font-size: 13px; color: var(--ink2); }
/* Mitmachen */
.mform { display: grid; gap: 8px; max-width: 640px; margin: 18px 0; }
.mform label { font-weight: 700; font-size: 15px; margin-top: 6px; }
.mform input, .mform textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--sf); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.mform .btn { justify-self: start; margin-top: 6px; }
.mform .msg { margin: 4px 0 0; font-weight: 600; }
.mnote { font-size: 13px; color: var(--ink2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mit { margin: 0 0 8px; font-size: 14.5px; }
.mit a { color: var(--link); text-decoration: underline; }
.btn:disabled { opacity: .7; cursor: default; }
/* Mitmachen: Fehlerkasten (Erfolgszustand bringt mitmach.js mit) */
.fbox { border: 2px solid #d33; background: rgba(221, 51, 51, .08); border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.mform [aria-invalid] { border-color: #d33; }
/* Favoriten-Herz */
.c { position: relative; }
.fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .38); color: #fff; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav.on svg, .fav-btn.on svg { fill: #ef4444; stroke: #ef4444; }
.rows .fav { top: 50%; transform: translateY(-50%); background: transparent; color: var(--ink); }
.fav-btn { gap: 8px; }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav.pop svg, .fav-btn.pop svg { animation: favpop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes favpop { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .fav.pop svg, .fav-btn.pop svg { animation: none; } }
.rows .c a { padding-right: 50px; }
/* Nachbarkategorien (auch per Wischen) */
.katnav { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.katnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--sf); font-weight: 600; font-size: 14px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Gesten-Rückmeldung */
.burst { position: fixed; z-index: 90; width: 90px; height: 90px; margin: -45px 0 0 -45px; pointer-events: none; animation: burst .7s ease-out forwards; }
.burst svg { width: 100%; height: 100%; fill: #ef4444; }
.burst.hilf svg { fill: #16a34a; }
@keyframes burst { 0% { transform: scale(.2); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.4) translateY(-30px); opacity: 0; } }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; pointer-events: none; animation: toast 1.8s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.zu-griff { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 40px; border: 0; background: var(--sf); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 700; cursor: grab; touch-action: none; }
.zu-griff:before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: currentColor; opacity: .5; }
.c a { -webkit-touch-callout: none; }
@media (prefers-reduced-motion: reduce) { .burst, .toast { animation-duration: .01s; } }

.hero.deko-on { position: relative; }
.hero.deko-on h1 { padding-right: 104px; min-height: 96px; }
.deko { position: absolute; top: 18px; right: 0; width: 96px; height: 96px; pointer-events: none; }
.deko svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 900px) { .deko { width: 150px; height: 150px; top: 10px; } .hero.deko-on h1 { padding-right: 170px; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  .deko *, .deko *::before, .deko *::after { animation: none !important; }
  @view-transition { navigation: none; }
}
.deko-imkern{color:var(--ink2)}.deko-imkern .waben{stroke:var(--ac)}.deko-imkern .waben path{animation:dk-wabe 3s ease-in-out infinite}
.deko-imkern .waben path:nth-child(2){animation-delay:1s}.deko-imkern .waben path:nth-child(3){animation-delay:2s}
.deko-imkern .leib{fill:var(--ac)}.deko-imkern .biene{animation:dk-flug 6s ease-in-out infinite}
.deko-imkern .fl{transform-origin:52px 22px;animation:dk-fluegel .12s linear infinite alternate}
@keyframes dk-wabe{0%,100%{fill:transparent}50%{fill:color-mix(in srgb,var(--ac) 35%,transparent)}}
@keyframes dk-flug{0%,100%{transform:translate(0,0)}25%{transform:translate(-22px,10px)}50%{transform:translate(-8px,18px)}75%{transform:translate(10px,6px)}}
@keyframes dk-fluegel{from{transform:scaleY(1)}to{transform:scaleY(.4)}}