/* Mondfährte – Stylesheet
   Farben und Schriften nach Label-Branding-und-Markenpruefung.md
   Schriften liegen auf dem eigenen Server (kein Abruf bei Google Fonts). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Markenfarben */
  --nachtblau: #1A2A44;
  --nachtblau-tief: #111C30;
  --waldgruen: #2D4737;
  --waldgruen-tief: #1F3329;
  --mondblau: #507CA6;
  --kaminlicht: #EE9A45;
  --creme: #FCF6E7;
  --rotbraun: #7E3F2C;

  /* Rollen (helles Thema) */
  --bg: var(--creme);
  --bg-soft: #F4EAD5;
  --card: #FFFCF4;
  --text: #262B35;
  --text-soft: #52535C;
  --heading: var(--nachtblau);
  --link: #7A3B28;
  --link-hover: var(--nachtblau);
  --line: #E0D4BC;
  --accent: var(--kaminlicht);
  /* Fokusrahmen: Kaminlicht auf Creme erreicht nur rund 2:1, daher Nachtblau (dunkel: Kaminlicht) */
  --focus: var(--nachtblau);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 42, 68, 0.12);
  --max: 1120px;
  --text-max: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131D30;
    --bg-soft: #18243A;
    --card: #1E2C44;
    --text: #EEE7D7;
    --text-soft: #BEB8AA;
    --heading: var(--creme);
    --link: #F4B062;
    --link-hover: var(--creme);
    --line: #2C405E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --focus: var(--kaminlicht);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  /* Fußzeile bleibt auch bei kurzen Seiten unten */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h3.h2-size { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Auf dunklen Flächen wäre ein nachtblauer Rahmen unsichtbar, dort bleibt er Kaminlicht */
.site-header,
.hero,
.section--night,
.site-footer,
.ohne-rahmen { --focus: var(--kaminlicht); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--kaminlicht);
  color: var(--nachtblau);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .container { padding: 0 28px; }
}

/* ---------- Kopfzeile ---------- */

.site-header {
  background: var(--nachtblau);
  color: var(--creme);
  border-bottom: 1px solid rgba(252, 246, 231, 0.08);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--creme);
  text-decoration: none;
}
.brand:hover { color: var(--creme); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.site-nav a {
  color: var(--creme);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.site-nav a:hover { border-bottom-color: var(--kaminlicht); color: var(--creme); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--kaminlicht); }

@media (max-width: 639px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 0.1rem 1.1rem; }
  .site-nav a { font-size: 0.97rem; }
}

/* ---------- Bühnen (Hero) ---------- */

.hero {
  position: relative;
  background:
    url("../img/sterne.svg") repeat top left / 400px 400px,
    linear-gradient(180deg, var(--nachtblau-tief) 0%, var(--nachtblau) 55%, #22385A 100%);
  color: var(--creme);
  overflow: hidden;
}
.hero--wald {
  background:
    url("../img/sterne.svg") repeat top left / 400px 400px,
    linear-gradient(180deg, #18281F 0%, var(--waldgruen) 60%, #34503F 100%);
}
.hero--schmal .container {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 9vw, 6.5rem);
  padding-bottom: clamp(3rem, 9vw, 6.5rem);
}
.hero h1 { color: var(--creme); }
.hero p { color: rgba(252, 246, 231, 0.9); }
.hero a:not(.button) { color: var(--kaminlicht); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kaminlicht);
  margin-bottom: 1rem;
}

.claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  line-height: 1.1;
  margin: 0 0 1.4rem;
  color: var(--creme);
}
.claim .glow { color: var(--kaminlicht); display: block; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38rem;
}

.hero-art {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
@media (max-width: 899px) {
  .hero-art { max-width: 260px; }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--night {
  background: var(--nachtblau);
  color: var(--creme);
}
.section--night h2,
.section--night h3 { color: var(--creme); }
.section--night p { color: rgba(252, 246, 231, 0.88); }
.section--night a:not(.button) { color: var(--kaminlicht); }

.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--text-soft); font-size: 1.12rem; }
.section--night .section-head p { color: rgba(252, 246, 231, 0.8); }

.prose { max-width: var(--text-max); }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .two-col--cover { grid-template-columns: 380px 1fr; }
}

/* ---------- Karten ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.series-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
@media (min-width: 800px) {
  .series-card { grid-template-columns: 1fr 1fr; }
}
.series-card__art { background: var(--nachtblau); }
.series-card__art svg { width: 100%; height: 100%; object-fit: cover; }
.series-card__body { padding: clamp(1.5rem, 4vw, 2.6rem); }
.series-card__line {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rotbraun);
  margin-bottom: 0.6rem;
}
@media (prefers-color-scheme: dark) {
  .series-card__line { color: var(--kaminlicht); }
}

.grid-3 {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.figure-card h3 { margin-bottom: 0.3rem; }
.figure-card .role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}
.figure-card p:last-child { margin-bottom: 0; }

/* Pfotenspur als Aufzählungszeichen */
.paw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.paw-list li {
  position: relative;
  padding-left: 2.1rem;
}
.paw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.3rem;
  height: 1.3rem;
  background: url("../img/pfote.svg") no-repeat center / contain;
}

/* ---------- Cover und Band ---------- */

.cover {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 22, 32, 0.35);
  background: var(--nachtblau);
}
.cover__bild { width: 100%; height: 100%; object-fit: cover; }
.cover__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8% 7% 0;
  color: var(--creme);
}
.cover__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 8vw, 2.45rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 12px rgba(10, 14, 22, 0.6);
}
.cover__series {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kaminlicht);
  margin: 0 0 0.5rem;
}
.cover__author {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0.6rem 0 0;
  opacity: 0.92;
}
.cover__label {
  position: absolute;
  right: 4%;
  bottom: 3.5%;
  width: 11%;
}
.cover-caption {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
  max-width: 380px;
}

.book-title { margin-bottom: 0.2rem; }
.book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.2rem;
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.facts dt { font-weight: 700; color: var(--heading); }
.facts dd { margin: 0; }
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kaminlicht);
  color: var(--nachtblau);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* ---------- Hörprobe und Leseprobe ---------- */

.listen {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
@media (min-width: 720px) {
  .listen { grid-template-columns: auto 1fr; gap: 1.6rem; }
}
.listen__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(238, 154, 69, 0.15);
  border: 2px dashed rgba(238, 154, 69, 0.6);
  display: grid;
  place-items: center;
}
.listen__icon svg { width: 40px; height: 40px; }
.listen audio { width: 100%; margin-top: 0.6rem; }

.excerpt-head { margin-top: 2.8rem; }
.excerpt {
  margin: 1.2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: var(--text-max);
  border-left: 3px solid var(--kaminlicht);
  padding-left: clamp(1rem, 3vw, 1.8rem);
}
.excerpt p { margin-bottom: 0.9em; }
.excerpt-hinweis { font-size: 0.88rem; color: var(--text-soft); margin-top: 1rem; }
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: 0.6rem; }

/* ---------- Knöpfe ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kaminlicht);
  color: var(--nachtblau);
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--kaminlicht);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { color: var(--nachtblau); background: #F4B062; transform: translateY(-1px); }
.button--ghost {
  background: transparent;
  color: var(--creme);
  border-color: rgba(252, 246, 231, 0.5);
}
.button--ghost:hover { background: rgba(252, 246, 231, 0.08); color: var(--creme); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.mail-link {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 600;
  word-break: break-word;
}

/* ---------- Hinweiskasten ---------- */

.note {
  border-left: 4px solid var(--mondblau);
  background: var(--bg-soft);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--text-max);
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Fußzeile ---------- */

.site-footer {
  background: var(--nachtblau-tief);
  color: rgba(252, 246, 231, 0.8);
  padding: 3rem 0 2.2rem;
  font-size: 0.96rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .brand-name { font-size: 1.35rem; }
.footer-claim {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--kaminlicht);
  margin: 0.8rem 0 0;
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 246, 231, 0.6);
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--creme); text-decoration: none; }
.site-footer a:hover { color: var(--kaminlicht); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(252, 246, 231, 0.12);
  font-size: 0.88rem;
  color: rgba(252, 246, 231, 0.6);
}
.footer-bottom p { margin: 0; }

/* ---------- Rechtstexte ---------- */

.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h2:first-of-type { margin-top: 1.4rem; }
.legal address { font-style: normal; }
.legal .stand { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 404 ---------- */

.notfound { text-align: center; }
.notfound .hero-art { max-width: 220px; margin: 0 auto 1.6rem; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .button-row { justify-content: center; }

/* ---------- Coming-Soon-Seite (node bauen.mjs bald) ---------- */

body.ohne-rahmen {
  background: var(--nachtblau-tief);
  color: var(--creme);
}
.bald {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    url("../img/sterne.svg") repeat top left / 400px 400px,
    radial-gradient(ellipse at 50% 35%, #24406A 0%, var(--nachtblau) 45%, var(--nachtblau-tief) 100%);
}
/* Ersatzbild liegt unter dem Video und ist sichtbar, solange kein Video läuft */
.bald__ersatz {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 16px 5rem;
}
.bald__spur { width: min(300px, 62vw); height: auto; margin-bottom: 0.6rem; }
.bald__marke {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 1.05;
  color: var(--creme);
  margin: 0;
  animation: bald-auftauchen 1.6s ease-out both;
}
.bald__claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.6vw, 2rem);
  color: var(--kaminlicht);
  margin: 0.5rem 0 1.6rem;
  animation: bald-auftauchen 1.6s ease-out 0.4s both;
}
.bald__info {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(252, 246, 231, 0.75);
  margin: 0;
  animation: bald-auftauchen 1.6s ease-out 0.8s both;
}
.bald__schein { animation: bald-schein 6s ease-in-out infinite alternate; }
.bald__pfoten use { opacity: 0; animation: bald-pfote 8s ease-in-out infinite; }
.bald__pfoten use:nth-child(2) { animation-delay: 0.35s; }
.bald__pfoten use:nth-child(3) { animation-delay: 0.7s; }
.bald__pfoten use:nth-child(4) { animation-delay: 1.05s; }
.bald__pfoten use:nth-child(5) { animation-delay: 1.4s; }
.bald__pfoten use:nth-child(6) { animation-delay: 1.75s; }
.bald__pfoten use:nth-child(7) { animation-delay: 2.1s; }
.bald__pfoten use:nth-child(8) { animation-delay: 2.45s; }

.bald__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
}

.bald__fuss {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem;
}
.bald__fuss a {
  color: rgba(252, 246, 231, 0.82);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.bald__fuss a:hover { color: var(--kaminlicht); text-decoration: underline; }

@keyframes bald-auftauchen {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes bald-schein {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@keyframes bald-pfote {
  0% { opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bald__video { display: none; }
  .bald__marke, .bald__claim, .bald__info, .bald__schein { animation: none; }
  .bald__pfoten use { animation: none; opacity: 1; }
}

/* ---------- Bertha fährt einmal beim Laden durchs Bild ---------- */
/* Startseite (Bühne) und Coming-Soon-Seite. Die Fahrt steuert assets/js/bertha.js mit Motion.
   Der Bus ist zunächst unsichtbar, das Skript übernimmt. Ohne JavaScript (assets/css/ohne-js.css),
   bei reduzierter Bewegung und als Notlösung, falls das Skript nicht lädt, steht er an seinem Platz. */

.fahrt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 1;
  pointer-events: none;
}
.fahrt__bus {
  /* Overlays in Prozent der Busfläche (x: Breite, y: Höhe), unabhängig vom Seitenverhältnis */
  /* Werte gemessen am freigestellten Cover-Bus bertha-fahrt.webp (480 × 289) */
  --licht-x: 92%;        /* Mitte des Scheinwerferscheins */
  --licht-y: 58%;
  --licht-breite: 20%;   /* Größe des Scheins, Anteil der Busbreite */
  --licht2-x: 78%;       /* zweiter Scheinwerfer (Dreiviertelansicht), 0% Breite = aus */
  --licht2-y: 61%;
  --licht2-breite: 18%;
  --auspuff-x: 3%;       /* Auspuff hinten links, dort entstehen die Wölkchen */
  --auspuff-y: 70%;
  --nick-x: 66%;         /* Drehpunkt fürs Bremsnicken: unten, an der Vorderachse */
  position: absolute;
  right: 6%;
  bottom: 0;
  width: clamp(120px, 17vw, 220px);
  transform-origin: 50% 100%;
  opacity: 0;
  /* Notlösung: Lädt das Skript nicht, erscheint der Bus nach 6 s an seinem Platz */
  animation: fahrt-notfall 0.8s ease-out 6s forwards;
}
.fahrt--js .fahrt__bus { animation: none; }
.fahrt--los .fahrt__bus,
.fahrt--steht .fahrt__bus { opacity: 1; }
.fahrt__nick,
.fahrt__ruckel { position: relative; }
.fahrt__nick { transform-origin: var(--nick-x) 100%; }
.fahrt__ruckel { transform-origin: 50% 100%; }
.fahrt__bus img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(10, 14, 22, 0.45));
}
.fahrt__licht {
  position: absolute;
  left: var(--licht-x);
  top: var(--licht-y);
  width: var(--licht-breite);
  aspect-ratio: 1.5;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 220, 0.95), rgba(247, 205, 134, 0.6) 28%, rgba(238, 154, 69, 0.2) 60%, rgba(238, 154, 69, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: fahrt-notfall 0.8s ease-out 6s forwards;
}
.fahrt__licht--zwei {
  left: var(--licht2-x);
  top: var(--licht2-y);
  width: var(--licht2-breite);
}
.fahrt--js .fahrt__licht { animation: none; }
.fahrt--steht .fahrt__licht { opacity: 1; }
.fahrt__auspuff {
  position: absolute;
  left: var(--auspuff-x);
  top: var(--auspuff-y);
  width: 0;
  height: 0;
}
/* Auspuffwölkchen, von bertha.js angelegt und wieder entfernt */
.fahrt__wolke {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 246, 231, 0.85), rgba(252, 246, 231, 0.4) 55%, rgba(252, 246, 231, 0) 100%);
  opacity: 0;
}
@keyframes fahrt-notfall {
  to { opacity: 1; }
}
/* Platz unter Text und Knöpfen, damit der Bus nie darüber fährt */
.hero--fahrt .container {
  padding-bottom: calc(clamp(3rem, 9vw, 6.5rem) + clamp(70px, 9vw, 120px));
}
/* Auf großen Bildschirmen füllt die Bühne den ersten Bildschirm, damit man die Einfahrt sieht */
@media (min-width: 900px) {
  .hero--fahrt {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
  }
  .hero--fahrt .container {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: calc(clamp(2rem, 4vw, 3rem) + clamp(70px, 9vw, 120px));
  }
  .hero--fahrt .hero-art { max-width: 400px; }
}
/* Niedrige Fenster (z. B. 1280 × 720): weniger Luft über dem Text, damit der geparkte Bus
   ganz im ersten Bildschirm steht. Der Abstand zwischen Knöpfen und Bus bleibt gleich. */
@media (min-width: 900px) and (max-height: 760px) {
  .hero--fahrt .container { padding-top: 1.5rem; }
}
.bald .fahrt { bottom: 3.4rem; }

@media (prefers-reduced-motion: reduce) {
  .fahrt__bus, .fahrt__licht { opacity: 1; animation: none; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
