/* Inhaltsseiten (hexfolk.de ohne App): Look der App mit Meer, Pergament-Chips und Tintenkonturen, ohne Tailwind */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fredoka-latin-500-normal-B0JifZgm.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fredoka-latin-600-normal-C4zohCW5.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fredoka-latin-700-normal-BOIZVyIN.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/nunito-latin-400-normal-r8SDr6Up.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/nunito-latin-600-normal-Br8yIETf.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/nunito-latin-700-normal-Dort48En.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/nunito-latin-800-normal-Dz8SOQK_.woff2") format("woff2"); }
/*
 * Ersatzschriften mit den Maßen der Webschriften: Bis Nunito und Fredoka geladen sind, steht Arial in derselben Breite
 * und Zeilenhöhe da, der Tausch verschiebt dann nichts (Layout Shift). Breiten gemessen am Seitentext der Startseite,
 * Ober- und Unterlängen aus hhea der Schriftdateien (Nunito 1011/353, Fredoka 974/236 bei 1000 Einheiten).
 */
@font-face { font-family: "Nunito Fallback"; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"); size-adjust: 100.5%; ascent-override: 100.6%; descent-override: 35.1%; line-gap-override: 0%; }
@font-face { font-family: "Nunito Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 94.9%; ascent-override: 106.5%; descent-override: 37.2%; line-gap-override: 0%; }
@font-face { font-family: "Nunito Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 97.0%; ascent-override: 104.2%; descent-override: 36.4%; line-gap-override: 0%; }
@font-face { font-family: "Nunito Fallback"; font-weight: 800; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 99.3%; ascent-override: 101.8%; descent-override: 35.5%; line-gap-override: 0%; }
@font-face { font-family: "Fredoka Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 94.1%; ascent-override: 103.5%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Fredoka Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 94.2%; ascent-override: 103.4%; descent-override: 25.1%; line-gap-override: 0%; }

:root {
  --sea: #2c7db3;
  --sea-deep: #1f5f8f;
  --sea-dark: #164a70;
  --abyss: #123a57;
  --ink: #2b1d12;
  --ink-soft: #5c4a3a;
  --paper: #fbf1d8;
  --paper-light: #fff8e6;
  --paper-deep: #ecd9b0;
  --paper-edge: #c9a978;
  --sun: #f6c545;
  --sun-light: #ffd66a;
  --sun-dark: #b86a12;
  /* Ziegel dunkler als in der App: als Akzent auf Papier lesbar (5,3:1) */
  --brick: #b5482a;
  --brick-hover: #9f3d22;
  --night: #1a130e;
  --sans: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Fredoka Fallback", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chip-shadow: 0 5px 0 rgba(43, 29, 18, 0.35), 0 12px 24px -8px rgba(0, 20, 40, 0.45);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='736' viewBox='0 0 90 736'%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='736' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='.35' stop-color='%23fff' stop-opacity='.13'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpath d='M45 26 90 52v52L45 130 0 104V52ZM45 0v26M45 130v26M45 182 90 208v52L45 286 0 260V208ZM45 156v26M45 286v26M45 338 90 364v52L45 442 0 416V364ZM45 312v26M45 442v26M45 494 90 520v52L45 598 0 572V520ZM45 468v26M45 598v26M45 650 90 676v52L45 754 0 728V676ZM45 624v26M45 754v26' fill='none' stroke='url(%23g)' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* CJK über Systemschriften wie in der App, Webfonts wären mehrere MB */
:root:lang(ja) { --sans: "Nunito", "Nunito Fallback", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", Meiryo, system-ui, sans-serif; --display: "Fredoka", "Fredoka Fallback", var(--sans); }
:root:lang(zh-Hans) { --sans: "Nunito", "Nunito Fallback", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; --display: "Fredoka", "Fredoka Fallback", var(--sans); }
:root:lang(ko) { --sans: "Nunito", "Nunito Fallback", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", system-ui, sans-serif; --display: "Fredoka", "Fredoka Fallback", var(--sans); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font: 400 1.0625rem/1.65 var(--sans);
  color: #fff;
  /* Wabenraster nur oben, damit lange Seiten ruhig bleiben. Deckkraft und Ausblenden stecken im SVG:
     eine CSS-Maske darüber ließ Firefox beim schnellen Scrollen ruckeln */
  background:
    var(--hex) 0 0 / 90px 736px repeat-x,
    var(--sea-dark) linear-gradient(180deg, var(--sea-deep) 0, #1a5682 32rem, var(--sea-dark) 64rem, var(--abyss));
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, summary { font-family: var(--display); font-weight: 600; line-height: 1.2; }
::selection { background: rgba(246, 197, 69, 0.45); }
:focus-visible { outline: 3px solid var(--focus, var(--sun)); outline-offset: 2px; }
.card, .cta-box, .lang-hint { --focus: var(--ink); }

/* Kopf */
/* Oben bleibt eine Zeile frei für die Sprachwahl in der Ecke, sonst läge sie über dem Spielen-Knopf */
.top { position: relative; padding: 46px 16px 6px; }
.top-in {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand play" "nav nav";
  align-items: center;
  gap: 10px 16px;
}
.brand { grid-area: brand; justify-self: start; display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; border-radius: 8px; }
.brand-name {
  font: 700 clamp(2.1rem, 8vw, 2.75rem)/1 var(--display);
  color: var(--sun);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}
.brand-sub {
  margin: 3px 0 0 3px;
  font: 600 0.82rem/1 var(--display);
  color: var(--paper);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
}
.btn-play { grid-area: play; }
.nav { grid-area: nav; }
/* Schmal: eine wischbare Zeile statt Umbruch, angeschnittene Einträge zeigen, dass es weitergeht */
.nav ul { list-style: none; margin: 0 -16px; padding: 0 6px; display: flex; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: none; }
.nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 12px;
  color: #fff;
  font: 600 1rem/1.3 var(--display);
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.nav a[aria-current] { color: var(--sun); background: rgba(0, 25, 50, 0.3); }
@media (min-width: 860px) {
  .top { padding-top: 58px; }
  .top-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav play"; }
  .nav ul { margin: 0; padding: 0; justify-content: flex-end; gap: 4px; overflow: visible; }
  .nav a { padding: 8px 14px; font-size: 1.05rem; }
}

/* Knöpfe in der Chip-Form der App: Gelb für die Hauptaktion, Creme für Nebenaktionen (wie btn-sun und btn-paper) */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 0.6em 1.3em;
  border: 3px solid var(--ink);
  border-radius: 14px;
  font: 600 1.1rem/1.2 var(--display);
  text-align: center;
  text-decoration: none;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { color: var(--ink); background: var(--sun); box-shadow: 0 3px 0 var(--sun-dark), 0 8px 16px -8px rgba(0, 0, 0, 0.6); }
.btn-primary:hover { background: var(--sun-light); }
.btn-primary small { font: 700 0.8rem/1.3 var(--sans); }
.btn-secondary { color: var(--ink); background: var(--paper); box-shadow: 0 3px 0 var(--paper-edge), 0 8px 16px -8px rgba(0, 0, 0, 0.6); }
.btn-secondary:hover { background: var(--paper-light); }
.btn-play { min-height: 44px; padding: 0.35em 1.1em; font-size: 1.05rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ctas .btn { flex: 1 1 auto; }

/* Einstieg: Brotkrumen, H1 und Lead direkt auf dem Meer */
.intro { width: min(48rem, 100% - 32px); margin: 0 auto; padding: 22px 0 34px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 14px; padding: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.crumbs li + li::before { content: "\203A"; margin: 0 0.5em; color: var(--sun); }
.crumbs a { color: #fff; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-wrap: balance;
}
.lead { margin: 0; font-size: 1.13rem; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.lead a { color: var(--sun); }
.hero .shot { margin: 30px 0 0; }
@media (min-width: 960px) {
  .hero { width: min(72rem, 100% - 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 56px; }
  .hero .shot { margin: 0; }
}

/* Videovorschau im Einstieg: Bildschirm im Kartenrahmen, darunter Reiter je Spielvariante */
.showcase { margin: 30px 0 0; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--sea-deep);
  box-shadow: var(--chip-shadow);
}
.screen img, .screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.screen video { opacity: 0; }
.showcase.is-playing video { opacity: 1; }
.screen-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(43, 29, 18, 0.45);
  cursor: pointer;
  --focus: var(--paper);
}
.screen-toggle[hidden] { display: none; }
/* Dreieck zum Abspielen, zwei Balken zum Anhalten */
.screen-toggle span { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.showcase.is-playing .screen-toggle span { width: 13px; height: 15px; margin: 0; border: 0; border-inline: 4px solid var(--ink); }
.screen-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.screen-tabs li { flex: 1 1 auto; }
.screen-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Gleiche Höhe und gleicher Abstand wie die Knöpfe links, damit beide Spalten unten bündig enden */
  min-height: 48px;
  overflow: hidden;
  padding: 4px 12px;
  text-align: center;
  font: 600 0.98rem/1.2 var(--display);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--paper-edge);
  --focus: var(--sun);
}
.screen-tabs a:hover { background: var(--paper-light); }
.screen-tabs a[aria-current] { background: var(--sun); }
/* Fortschritt des laufenden Ausschnitts als Leiste am unteren Rand des Reiters */
.screen-tabs a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--brick);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
@media (min-width: 960px) {
  /* Das Video braucht mehr Breite als der Text, sonst ist die Spieloberfläche darin zu klein */
  .page-home .hero { grid-template-columns: 5fr 6fr; gap: 40px; align-items: end; }
  .hero .showcase { margin: 0; }
}

/* Bildkacheln: Bild oben, Titel und ein Satz darunter */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; margin: 1.2em 0 0.4em; padding: 0; }
.card .tiles li { margin: 0; padding: 0; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-light);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(43, 29, 18, 0.3);
}
/* Rahmen liegt über dem Bild: Das Bild endet 1px innerhalb der Außenkante und damit unter dem
   deckenden Rahmen, so bleibt an den runden Ecken weder eine Bildkante noch eine Lücke sichtbar */
.tile::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: inherit; pointer-events: none; }
.tile img { display: block; width: calc(100% - 2px); margin: 1px 1px 0; aspect-ratio: 5 / 4; object-fit: cover; border-bottom: 3px solid var(--ink); border-radius: 13px 13px 0 0; background: var(--paper-deep); }
.tile-title { margin: 12px 17px 4px; font: 600 1.15rem/1.25 var(--display); }
.tile-text { margin: 0 17px 17px; font-size: 0.97rem; line-height: 1.5; }
.card a.tile { color: var(--ink); }
a.tile .tile-title::after { content: " \203A"; color: var(--brick); }
a.tile:hover { background: #fff; }
a.tile:hover .tile-title { color: var(--brick); }
/* Schmal: Bild links neben dem Text, sonst wird jede Kachel bildschirmhoch */
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { display: grid; grid-template-columns: 7.5rem 1fr; grid-template-rows: auto 1fr; }
  .tile img { grid-row: 1 / 3; width: calc(100% - 1px); height: calc(100% - 2px); margin: 1px 0 1px 1px; aspect-ratio: auto; border-bottom: 0; border-right: 3px solid var(--ink); border-radius: 13px 0 0 13px; }
  .tile-title { margin: 13px 15px 2px 12px; font-size: 1.05rem; }
  .tile-text { margin: 0 15px 13px 12px; font-size: 0.92rem; }
}
/* Startseite: breitere Karten, damit drei Kacheln nebeneinander passen */
.page-home .card { width: min(64rem, 100% - 24px); }

/* Inhaltskarten aus Pergament */
.card {
  display: flow-root;
  width: min(48rem, 100% - 24px);
  margin: 0 auto 24px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--chip-shadow);
}
.card h2 { margin: 0 0 0.6em; font-size: clamp(1.45rem, 4vw, 1.85rem); scroll-margin-top: 16px; }
/* Kleines Sechseckfeld vor jeder Abschnittsüberschrift, wie ein Zahlenchip auf dem Brett */
.card h2::before {
  content: "";
  display: inline-block;
  width: 0.78em;
  height: 0.9em;
  margin-right: 0.4em;
  vertical-align: -0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 2 24 8.5v13L13 28 2 21.5v-13Z' fill='%23f6c545' stroke='%232b1d12' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card h3 { margin: 1.5em 0 0.4em; font-size: 1.22rem; }
.card p { margin: 0 0 1em; }
.card > :last-child, .card details:last-child p { margin-bottom: 0; }
.card a { color: var(--sea-dark); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.card a:hover { color: var(--brick); }
.card ul, .card ol { margin: 0 0 1em; padding-left: 1.4em; }
.card li { margin: 0.35em 0; padding-left: 0.15em; }
.card ul li::marker { color: var(--brick); }
.card ol li::marker { color: var(--brick); font-family: var(--display); font-weight: 600; }

.shot { margin: 1.4em 0; }
.shot img { display: block; width: 100%; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper-deep); box-shadow: var(--chip-shadow); }
.shot figcaption { margin-top: 0.6em; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
/* Hochformat-Screenshots vom Handy: schmal statt seitenfüllend */
.shot.tall { width: min(17rem, 100%); margin-inline: auto; }
@media (min-width: 720px) {
  .card .shot.tall { float: right; width: 15rem; margin: 0.3em 0 1em 1.6em; }
}

.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-light); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
th, td { padding: 0.55em 0.65em; text-align: left; vertical-align: top; border-top: 1px solid rgba(43, 29, 18, 0.16); }
thead th { border: 0; color: var(--paper); background: var(--ink); font-family: var(--display); font-weight: 600; }
tbody th { font-weight: 700; }
tbody tr:nth-child(even) { background: rgba(236, 217, 176, 0.45); }

/* Faktenkasten: gut extrahierbar für Suchmaschinen, auffällig für Menschen */
.facts { margin: 1.2em 0; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper-light); }
.facts > div { display: grid; border-top: 2px solid rgba(43, 29, 18, 0.14); }
.facts > div:first-child { border-top: 0; }
.facts dt { padding: 0.5em 0.9em 0; font-family: var(--display); font-weight: 600; color: var(--brick); }
.facts dd { margin: 0; padding: 0.1em 0.9em 0.55em; }
@media (min-width: 560px) {
  .facts > div { grid-template-columns: 11rem 1fr; }
  .facts dt { padding: 0.6em 0.9em; color: var(--ink); background: var(--sun); border-right: 2px solid rgba(43, 29, 18, 0.2); }
  .facts dd { padding: 0.6em 0.9em; }
}

.sources { font-size: 0.92rem; }

.faq details { border-top: 2px solid rgba(43, 29, 18, 0.14); }
.faq summary {
  position: relative;
  padding: 0.75em 2.6em 0.75em 0;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: -0.85rem;
  display: grid;
  place-items: center;
  font: 700 1.35rem/1 var(--display);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1em; }

/* Fußzeile */
.cta-box {
  width: min(48rem, 100% - 24px);
  margin: 40px auto 0;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--chip-shadow);
}
.cta-box h2 { margin: 0; font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 700; }
.cta-box .ctas { justify-content: center; margin-top: 18px; }
.foot-base { margin-top: 48px; padding: 36px 16px 40px; color: rgba(251, 241, 216, 0.88); background: var(--night); font-size: 0.95rem; }
.foot-base > * { width: min(72rem, 100%); margin-inline: auto; }
.foot-base a { color: var(--paper); }
.foot-cols { display: grid; gap: 28px; margin-bottom: 28px; }
.foot-pages { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.foot-pages li { break-inside: avoid; padding: 3px 0; }
.foot-pages a { text-decoration: none; }
.foot-pages a:hover, .foot-pages a[aria-current] { color: var(--sun); text-decoration: underline; }
.lang-menu { position: absolute; z-index: 30; top: 10px; right: 12px; max-width: 9rem; }
.lang-menu summary {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 999px; cursor: pointer; list-style: none;
  font: 700 0.875rem/1.25 var(--sans); color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.lang-menu summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "\25BE"; font-size: 0.65em; opacity: 0.7; }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 4px); width: max-content; min-width: 100%;
  max-height: min(26rem, 70vh); overflow-y: auto; margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); border: 2px solid rgba(43, 29, 18, 0.25); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.lang-menu li a {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; white-space: nowrap;
  font: 700 0.875rem/1.25 var(--sans); color: var(--ink); text-decoration: none;
}
.lang-menu li a:hover { background: rgba(43, 29, 18, 0.1); }
.lang-menu li a[aria-current] { font-weight: 800; background: rgba(43, 29, 18, 0.06); }
@media (min-width: 1024px) { .lang-menu { top: 20px; right: 24px; } }
.flag { width: 20px; height: 15px; flex-shrink: 0; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-block: 0 14px; padding-top: 22px; border-top: 1px solid rgba(251, 241, 216, 0.15); }
.disclaimer, .updated { margin-block: 0 6px; font-size: 0.85rem; color: rgba(251, 241, 216, 0.7); }

/* Sprachhinweis aus boot.js */
.lang-hint {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(34rem, 100% - 24px);
  padding: 6px 6px 6px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--chip-shadow);
  transform: translateX(-50%);
}
body.has-lang-hint { padding-bottom: calc(var(--lang-hint-h, 72px) + 16px); }
.lang-hint a { flex: 1; color: var(--sea-dark); font-weight: 700; }
.lang-hint button { flex: none; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; color: var(--ink); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.lang-hint button:hover { background: var(--paper-deep); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .screen video { transition: opacity 250ms; }
  .tile { transition: transform 120ms; }
  a.tile:hover { transform: translateY(-2px); }
  .btn { transition: transform 80ms, box-shadow 80ms, background-color 120ms; }
}
