/* ==========================================================================
   stil.css – Entwurf C „Licht und Bewegung“ für PVmedo
   Eine einzige Stildatei für alle Seiten. Keine Webfonts, keine externen Aufrufe.
   Aufbau: 1 Farben und Grundlagen · 2 Kopfzeile und Menü · 3 Lichtband ·
           4 Seitenkopf und Startseiten-Hero · 5 Abschnitte, Bilder, Karten ·
           6 Zeitleiste · 7 Bildbänder mit Zitat · 8 Fußzeile · 9 Bewegung und Ruhe
   Wichtig: Einblend-Effekte wirken nur, wenn bewegung.js die Klasse "js" auf
   <html> gesetzt hat. Ohne JavaScript ist alles sofort sichtbar.
   ========================================================================== */

/* ---------- 1. Farben und Grundlagen ---------- */
:root {
  --nacht: #0e1a2b;          /* Hero, Fußzeile, Menü */
  --nacht-hell: #16263d;     /* dunkle Flächen im Wechsel */
  --weiss: #f5f7f9;          /* Seitenhintergrund */
  --flaeche: #ffffff;        /* Karten, helle Flächen */
  --tinte: #101820;          /* Text auf hellem Grund */
  --tinte-weich: #4d5866;    /* Nebentext */
  --koralle: #ff7a45;        /* Hauptknopf, Akzent auf dunklem Grund */
  --koralle-hell: #ff9458;   /* Hover des Knopfes */
  --koralle-dunkel: #b8431a; /* Kicker auf hellem Grund (Kontrast AA) */
  --teal: #1b8a8f;           /* Akzent, Linien */
  --teal-dunkel: #146a6e;    /* Links auf hellem Grund (Kontrast AA) */
  --teal-hell: #8fe0e4;      /* Links auf dunklem Grund */
  --linie: #dfe4ea;
  --text-hell: #dbe4ee;      /* Fließtext auf dunklem Grund */
  /* Das Lichtband aus dem Original-Banner von Dorian Schmidt */
  --band: linear-gradient(100deg, #788762, #799655, #8eb186, #bfdb61, #cbdd62, #afc6a2, #adb2d3, #cea8d1, #e7949d, #ff926c, #ff9458);
  --schrift: "Segoe UI Variable Display", "Segoe UI", system-ui, Arial, sans-serif;
  --breite: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--teal-dunkel); text-underline-offset: .2em; }
a:hover { color: var(--tinte); }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { font-weight: 600; margin: 0 0 1rem; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
sub { font-size: .7em; }

:focus-visible { outline: 3px solid var(--teal-dunkel); outline-offset: 3px; }
.dunkel :focus-visible, .dunkel-abschnitt :focus-visible, .kopf :focus-visible, .band :focus-visible, .fuss :focus-visible { outline-color: var(--koralle); }

.inhalt { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.spalte { max-width: 68ch; }
.sprunglink {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--flaeche); color: var(--tinte); padding: .6rem 1rem; border-radius: 8px;
}
.sprunglink:focus { top: 1rem; }

.kicker {
  margin: 0 0 1rem; font-size: .75rem; font-weight: 700; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .14em; color: var(--koralle-dunkel);
}
.dunkel .kicker, .dunkel-abschnitt .kicker, .band .kicker { color: var(--koralle); }
.einleitung { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; max-width: 60ch; }

/* ---------- 2. Kopfzeile und Menü ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 1rem 0;
  background: var(--nacht); color: #fff;
  transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.js .kopf:not(.kompakt) { background: transparent; }
.kopf.kompakt { padding: .45rem 0; background: rgba(14, 26, 43, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--band); background-size: 200% 100%; animation: bandlauf 18s ease-in-out infinite alternate; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wortmarke { position: relative; z-index: 2; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.wortmarke .o { color: var(--koralle); }
.wortmarke:hover { color: #fff; }

.menue-schalter { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menue-knopf {
  position: relative; z-index: 2; cursor: pointer; color: #fff; font-size: 1rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .4rem 1rem;
}
.menue-schalter:focus-visible + .menue-knopf { outline: 3px solid var(--koralle); outline-offset: 3px; }
.balken { display: inline-block; width: 18px; height: 2px; margin: 0 .7rem .25rem 0; vertical-align: middle; background: currentColor; box-shadow: 0 6px currentColor, 0 -6px currentColor; }

/* Mobil: Menü als Vollbild-Overlay in Nachtblau */
.hauptmenue {
  position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: var(--nacht); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s;
}
.menue-schalter:checked ~ .hauptmenue { visibility: visible; opacity: 1; }
.hauptmenue ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.hauptmenue li { margin: .6rem 0; }
.hauptmenue a { color: #fff; text-decoration: none; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600; }
.hauptmenue a[aria-current="page"] { color: var(--koralle); }
.hauptmenue a:hover { color: var(--koralle); }
@media (max-width: 859px) { body:has(.menue-schalter:checked) { overflow: hidden; } }

@media (min-width: 860px) {
  .menue-knopf, .menue-schalter { display: none; }
  .hauptmenue { position: static; visibility: visible; opacity: 1; background: none; display: block; }
  .hauptmenue ul { display: flex; gap: 2rem; }
  .hauptmenue li { margin: 0; }
  .hauptmenue a { font-size: 1rem; font-weight: 500; color: #fff; padding: .3rem 0; background: linear-gradient(var(--koralle), var(--koralle)) left bottom / 0 2px no-repeat; transition: background-size .3s ease; }
  .hauptmenue a:hover { color: #fff; background-size: 100% 2px; }
  .hauptmenue a[aria-current="page"] { color: #fff; background: var(--band) left bottom / 100% 2px no-repeat; }
}

/* ---------- 3. Lichtband (Markenzeichen) ---------- */
.lichtband {
  position: absolute; left: -10%; right: -10%; bottom: 16%; height: 90px; pointer-events: none;
  background: var(--band); background-size: 300% 100%; filter: blur(30px); opacity: .5; transform: rotate(-3deg);
  animation: bandlauf 18s ease-in-out infinite alternate;
}
@keyframes bandlauf { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- 4. Seitenkopf (Unterseiten) und Hero (Startseite) ---------- */
.dunkel { background: var(--nacht); color: #fff; }
.seitenkopf {
  position: relative; overflow: hidden; padding: 9.5rem 0 5rem; min-height: 44vh; display: flex; align-items: flex-end;
  background: radial-gradient(60rem 28rem at 85% 0%, rgba(27, 138, 143, .28), transparent 70%), var(--nacht); color: #fff;
}
.seitenkopf .inhalt { position: relative; }
.seitenkopf .lichtband { bottom: 8%; height: 60px; }
.seitenkopf .einleitung { color: var(--text-hell); margin-bottom: 0; }

.hero {
  position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; padding: 8rem 0 8rem; color: #fff;
  background: radial-gradient(56rem 34rem at 78% 20%, rgba(27, 138, 143, .3), transparent 70%), radial-gradient(40rem 24rem at 5% 100%, rgba(255, 122, 69, .12), transparent 70%), var(--nacht);
}
.hero-raster { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero .einleitung { color: var(--text-hell); }
.hero-bild { position: relative; }
.hero-bild figcaption { color: var(--text-hell); }
.parallaxe { transform: translateY(calc(var(--p, 0) * 1px)); will-change: transform; }
.hero .rahmen { border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sonne { position: absolute; z-index: 2; top: -2.6rem; right: -.6rem; width: 6rem; height: 6rem; pointer-events: none; animation: aufgang 2s ease-out both; }
.scrollhinweis { position: absolute; left: 50%; bottom: 1.2rem; width: 28px; height: 28px; margin-left: -14px; color: #fff; animation: huepfen 2.2s ease-in-out infinite; }
.scrollhinweis svg { display: block; }
@keyframes aufgang { from { opacity: 0; transform: translateY(110px); } to { opacity: 1; transform: none; } }
@keyframes huepfen { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }

@media (min-width: 860px) {
  .hero-raster { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
  .sonne { top: -4.5rem; right: -2rem; width: 11rem; height: 11rem; }
}

/* ---------- 5. Abschnitte, Bilder, Karten, Knöpfe ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 8rem) 0; }
.flaeche { background: var(--flaeche); }
.flaeche .kachel, .flaeche .karte { background: var(--weiss); }
.dunkel-abschnitt { background: var(--nacht-hell); color: #fff; }
.dunkel-abschnitt a:not(.knopf), .band a:not(.knopf) { color: var(--teal-hell); }
.dunkel-abschnitt a:not(.knopf):hover, .band a:not(.knopf):hover { color: #fff; }
.dunkel-abschnitt p { color: var(--text-hell); }

.bildpaar { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) {
  .bildpaar { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .bildpaar.umgekehrt figure { order: -1; }
}
.rahmen { overflow: hidden; border-radius: 14px; background: var(--linie); }
.rahmen img { width: 100%; transition: transform .7s ease; }
.rahmen:hover img { transform: scale(1.03); }
figcaption { margin-top: .7rem; font-size: .95rem; line-height: 1.5; color: var(--tinte-weich); }
.figur-abstand { margin: 2.5rem 0; }
.bild-mitte { max-width: 44rem; margin-inline: auto; }
.bildreihe { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .bildreihe { grid-template-columns: 1fr 1fr; align-items: start; } }
/* Beide Bilder gleich hoch: gleiche Spaltenbreite + festes Seitenverhältnis */
.bildreihe .rahmen img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 0; }
.knopf {
  display: inline-block; padding: .95rem 1.8rem; border-radius: 999px; border: 2px solid var(--koralle);
  background: var(--koralle); color: var(--tinte); font-weight: 700; text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease;
}
.knopf:hover { background: var(--koralle-hell); border-color: var(--koralle-hell); color: var(--tinte); }
.knopf-zweit { background: transparent; border-color: var(--teal-dunkel); color: var(--teal-dunkel); }
.knopf-zweit:hover { background: var(--teal-dunkel); border-color: var(--teal-dunkel); color: #fff; }
.dunkel .knopf-zweit, .dunkel-abschnitt .knopf-zweit { border-color: #fff; color: #fff; }
.dunkel .knopf-zweit:hover, .dunkel-abschnitt .knopf-zweit:hover { background: #fff; border-color: #fff; color: var(--nacht); }

.kacheln { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel, .karte { position: relative; overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 2.2rem 1.8rem 1.8rem; }
.kachel::before, .karte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--band); }
.kachel p { margin: 0; }
.karte { padding: 1.3rem 1.5rem 1.1rem; }
.karte dt { font-weight: 700; color: var(--tinte); }
.karte dd { margin: .2rem 0 0; color: var(--tinte-weich); }

.angaben { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .angaben { grid-template-columns: 1fr 1fr; } }
.angaben li { padding: 1.1rem 1.4rem; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--koralle); }
.dunkel-abschnitt .angaben li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); border-left-color: var(--koralle); color: #fff; }

.hinweis { margin-top: 2rem; padding: 1.2rem 1.5rem; background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--teal); border-radius: 12px; max-width: 68ch; }
.hinweis p { margin: 0; }
.legende { max-width: 68ch; margin: 1.5rem 0; }
.legende dt { font-weight: 700; margin-top: 1.1rem; color: var(--teal-dunkel); }
.legende dd { margin: .15rem 0 0; }
.diagramm-feld { display: grid; gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
.diagramm-feld figure { background: var(--flaeche); padding: 1.2rem; border-radius: 20px; box-shadow: 0 20px 60px rgba(16, 24, 32, .1); }
.varianten { display: grid; gap: .9rem; margin: 0; }
@media (min-width: 960px) { .diagramm-feld { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }

.zitat { margin: 2.5rem 0; padding: .3rem 0 .3rem 1.8rem; max-width: 62ch; border-left: 5px solid; border-image: linear-gradient(to bottom, #bfdb61, #e7949d, #ff926c) 1; }
.zitat p { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; font-weight: 500; }
.zitat footer { color: var(--tinte-weich); font-size: .95rem; }
.zitat cite { font-style: normal; font-weight: 700; }

.rechtstext { max-width: 68ch; }
.rechtstext h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 2.2rem; letter-spacing: 0; }
.rechtstext h2:first-child { margin-top: 0; }
.platzhalter { background: #fbe9a0; color: var(--tinte); border: 1px dashed var(--koralle-dunkel); padding: .05em .35em; border-radius: 3px; font-size: .92em; }
.platzhalter-bild { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 18rem; padding: 1rem; background: #fbe9a0; color: var(--tinte); border: 1px dashed var(--koralle-dunkel); border-radius: 14px; font-size: .95rem; }

/* ---------- 6. Zeitleiste (Forschung) ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 0; right: 0; top: calc(.6rem - 2px); height: 4px; border-radius: 2px; background: var(--band); transform-origin: left center; transition: transform 1.8s ease; }
.js .zeitleiste:not(.sichtbar)::before { transform: scaleX(0); }
.zeitleiste li { position: relative; padding-top: 2rem; }
.zeitleiste li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 5px var(--weiss); }
.zeitleiste .jahr { display: block; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.zeitleiste .ereignis { display: block; margin-top: .4rem; font-size: clamp(.9rem, 1.6vw, 1.05rem); line-height: 1.45; color: var(--tinte-weich); }

/* ---------- 7. Bildbänder mit Zitat ---------- */
.band {
  position: relative; padding: clamp(5rem, 12vw, 10rem) 0; color: #fff;
  background: linear-gradient(rgba(14, 26, 43, .88), rgba(14, 26, 43, .86)), url("bilder/anlage-uebersicht.jpg") center / cover no-repeat var(--nacht);
}
@media (min-width: 1024px) { .band { background-attachment: fixed; } }
.band p { color: var(--text-hell); }
.band h2, .band .zitat p { color: #fff; }
.band .zitat footer { color: var(--text-hell); }

/* ---------- 8. Fußzeile ---------- */
.fuss { position: relative; background: var(--nacht); color: var(--text-hell); padding: 4rem 0 3rem; }
.fuss::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--band); background-size: 200% 100%; animation: bandlauf 18s ease-in-out infinite alternate; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.fuss a { color: var(--text-hell); }
.fuss a:hover { color: #fff; }
.fuss .wortmarke { color: #fff; }
.fuss p { margin: .4rem 0 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .4rem; }

/* ---------- 9. Bewegung (nur mit JavaScript) und Ruhe ---------- */
.js .erscheint { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--verzoegerung, 0s); }
.js .erscheint.sichtbar { opacity: 1; transform: none; }
.sofort *, .sofort *::before, .sofort *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .erscheint { opacity: 1; transform: none; }
  .js .zeitleiste:not(.sichtbar)::before { transform: none; }
  .parallaxe { transform: none; }
  .rahmen:hover img { transform: none; }
}
