/* Farben aus den Fotos: Himmel, Main, Ufergrün, Sandsteinrot der Brücken */
:root {
  --himmel: #8ec5f0;
  --himmel-hell: #0d1a2b;   /* Seitenhintergrund (dunkel) */
  --main: #1d3557;
  --main-tief: #0f2238;
  --wasser: #3a6ea5;
  --gruen: #5a8a3c;
  --sandstein: #b5533c;
  --text: #e6edf5;
  --text-hell: #f4f7fb;
  --karte: #16263b;
  --schatten: 0 10px 30px rgba(0, 0, 0, .4);
}
/* immer die dunkle Fassung, auf allen Geräten gleich (siehe color-scheme im HTML) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--text); background: var(--himmel-hell); line-height: 1.6; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4em; color: var(--himmel); }
a { color: inherit; }

/* ---- Kopf: Skyline mit Tiefenwirkung ---- */
.kopf { position: relative; z-index: 1; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: var(--text-hell); }
.kopf-bild { position: absolute; inset: -8% 0 0 0; background: url("bilder/header-frankfurt.webp") center 35% / cover no-repeat; will-change: transform; transform: translateY(var(--parallax, 0)); }
.kopf-schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,34,56,.05) 30%, rgba(15,34,56,.55) 70%, rgba(15,34,56,.92) 100%); }
.kopf-inhalt { position: relative; display: flex; gap: clamp(1rem, 4vw, 2.5rem); align-items: center; padding: 5rem clamp(1rem, 6vw, 5rem) 6rem; flex-wrap: wrap; }   /* senkrecht mittig im Kopf (Nutzerin 2026-11-08); oben Platz für E-Mail/LinkedIn, unten für „Meine Projekte“ */
.portraet { width: clamp(130px, 22vw, 230px); height: clamp(130px, 22vw, 230px); object-fit: cover; border-radius: 50%; border: 5px solid rgba(255,255,255,.85); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.verfuegbar { display: inline-block; margin: 1rem 0 0; padding: .35rem .9rem; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--main); font-size: .95rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.kopf h1 { margin: .1em 0 0; font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.unterzeile { margin: 0; font-size: clamp(.95rem, 2.2vw + .3rem, 1.3rem); }   /* direkt unter dem Namen */
.unterzeile strong { color: #ffd27a; white-space: nowrap; }   /* Künstliche Intelligenz hervorgehoben, nie getrennt */
/* Kurzblock im Kopf: eigene Zeile unter Porträt und Name, zentriert */
.kopf-inhalt > .kurzblock { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem clamp(1rem, 3vw, 2rem); max-width: 56rem; margin: .4rem auto 0; text-align: center; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(10,20,35,.45); border: 1px solid rgba(255,255,255,.15); font-size: .95rem; line-height: 1.5; }
.kurzblock p { margin: 0; }
/* breite Bildschirme (Porträt neben dem Namen): Kasten beginnt bündig mit dem „A“ von Anna statt mittig */
@media (min-width: 761px) {
  .kopf { min-height: 100vh; }   /* Desktop: Kopf füllt den ganzen Bildschirm, mehr Skyline sichtbar */
  /* Raster: links das Porträt, rechts der ganze Textblock (Name, Unterzeile, Verfügbar-Schild) senkrecht mittig
     daneben (Nutzerin 2026-11-08; vorher war nur der Name mittig zum Bild) */
  .kopf-inhalt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1rem, 4vw, 2.5rem); align-items: center; }
  .kopf-text { min-width: 0; }
}
.kopf-inhalt > div { flex: 1 1 18rem; min-width: 0; }   /* Textspalte darf schrumpfen, sonst wird der Kurzblock breiter als der Bildschirm */
.kurz-titel { margin: 0 0 .25rem; color: #ffd27a; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.weiter { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); text-decoration: none; font-size: .95rem; opacity: .9; display: inline-flex; white-space: nowrap; align-items: center; gap: .3em; min-height: 44px; padding: 0 1rem; animation: wippen 2.4s ease-in-out infinite; }
@keyframes wippen { 50% { transform: translate(-50%, 6px); } }

/* ---- Weg am Fluss ---- */
main section { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem); }
/* Überschrift nur für Screenreader und Suchmaschinen; die Flusslinie beginnt bündig unter dem Kopfbild */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.weg { padding-top: 0 !important; }
.fluss { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 0 2rem; }
.fluss-linie { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fluss-linie path { fill: none; stroke: var(--wasser); stroke-width: 14; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 4px 6px rgba(29,53,87,.25)); }
.kind-name { font-size: 1.35em; }
.portraet-kind { width: clamp(100px, 16vw, 180px); height: clamp(100px, 16vw, 180px); flex: none; }   /* Kinderfoto am Anfang des Weges, Gegenstück zum Porträt im Kopf */
/* Quelle ganz oben: See bei Stotel über die volle Seitenbreite, dort entspringt die Flusslinie */
.weg { overflow-x: clip; padding-bottom: 0 !important; }
.quelle { position: relative; width: 100vw; margin: calc(-1 * clamp(3rem, 8vw, 5rem)) 0 3.5rem calc(50% - 50vw); }   /* oben bündig mit dem Anfang von .fluss */
.quelle > img { display: block; width: 100%; height: clamp(220px, 26vw, 340px); object-fit: cover; }
.quelle figcaption { position: absolute; inset: 0; display: flex; flex-direction: row-reverse; text-align: right; align-items: center; gap: clamp(.8rem, 3vw, 1.8rem); padding: 1rem clamp(1rem, 6vw, 5rem); color: #fff; background: linear-gradient(180deg, rgba(15,34,56,.92), rgba(15,34,56,0) 20%), linear-gradient(90deg, rgba(10,20,35,.1) 20%, rgba(10,20,35,.75)); font-size: 1.1rem; }   /* über das ganze Bild, Foto rechts senkrecht mittig; oben 20 % Übergang wie am Kopfbild */
.station { position: relative; width: min(44%, 30rem); margin: 0 0 3.5rem; padding: 1.3rem 1.5rem; background: var(--karte); border-radius: 18px; box-shadow: var(--schatten); transition: opacity .7s ease, transform .7s ease; }
.mit-js .station:not(.sichtbar) { opacity: 0; transform: translateY(30px); }   /* nur mit Skript ausblenden, sonst bleibt der Lebensweg sichtbar */
.station:nth-of-type(odd) { margin-right: auto; }
.station:nth-of-type(even) { margin-left: auto; }
.station.sichtbar { opacity: 1; transform: none; }
.station time { font-weight: 700; color: var(--sandstein); font-size: .9rem; letter-spacing: .05em; }
.station h3 { margin: .2em 0 .4em; font-size: 1.3rem; }
.station p { margin: 0; }
.station p + p { margin-top: .6rem; }
.station .station-hinweis { margin-top: .6rem; font-size: .9rem; font-style: italic; opacity: .8; }
.station::before { content: ""; position: absolute; top: 1.6rem; width: 18px; height: 18px; border-radius: 50%; background: var(--sandstein); border: 4px solid var(--karte); box-shadow: 0 0 0 3px var(--sandstein); }
.station:nth-of-type(odd)::before { right: -2.1rem; }
.station:nth-of-type(even)::before { left: -2.1rem; }
.station-ziel { background: linear-gradient(135deg, var(--main), #2b4c7e); color: var(--text-hell); }
.station-ziel time { color: #ffd27a; }
.station-ziel::before { background: #ffd27a; box-shadow: 0 0 0 3px #ffd27a, 0 0 28px 8px rgba(255,210,122,.7); animation: leuchten 2.2s ease-in-out infinite; }
@keyframes leuchten { 50% { box-shadow: 0 0 0 3px #ffd27a, 0 0 40px 14px rgba(255,210,122,.4); } }

/* ---- Projekte (seit 2026-11-08 der ganze Inhalt unter dem Kopf): breite Karten untereinander, je Projekt eine
   Akzentfarbe und eine große Nummer; breit: links Titel und Schlagworte, rechts Annas Text ---- */
.projekte { background: var(--himmel-hell); color: var(--text-hell); }
.projekte > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.projekte h2 { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); color: #e3896d; font-size: clamp(.95rem, 2vw, 1.05rem); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }   /* wie ein Kapitel-Trenner */
.projekte h2::before, .projekte h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,137,109,.6)); }
.projekte h2::after { background: linear-gradient(90deg, rgba(227,137,109,.6), transparent); }
main section.projekte { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.projekt-karten { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); counter-reset: projekt; }
.projekt { --akzent: #e3896d; position: relative; overflow: hidden; display: grid; gap: .9rem 2.2rem; align-content: start; padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: 22px; border: 1px solid rgba(255,255,255,.07); border-left: 5px solid var(--akzent); background: linear-gradient(135deg, color-mix(in srgb, var(--akzent) 16%, transparent), transparent 45%), var(--karte); box-shadow: var(--schatten); color: var(--text); counter-increment: projekt; transition: opacity .7s ease, transform .7s ease, box-shadow .3s ease; }
.projekt-mhd { --akzent: #7fc25a; }       /* Ufergrün, aufgehellt */
.projekt-spiel { --akzent: #e3896d; }     /* Sandstein */
.projekt-website { --akzent: #8ec5f0; }   /* Himmel */
.projekt::after { content: counter(projekt, decimal-leading-zero); position: absolute; right: clamp(.8rem, 3vw, 1.6rem); top: clamp(.2rem, 1.5vw, .6rem); font-size: clamp(3.5rem, 10vw, 6.5rem); font-weight: 800; line-height: 1; color: var(--akzent); opacity: .12; pointer-events: none; }
.projekt h3 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--text-hell); }
.projekt p { margin: 0; }
.projekt-kopf { display: flex; flex-direction: column; gap: .35rem; padding-right: 3.5rem; }   /* Platz für die Nummer */
.projekt-art { color: var(--akzent); font-weight: 600; font-size: .95rem; }
.projekt-text { display: flex; flex-direction: column; gap: .9rem; font-size: 1.02rem; line-height: 1.75; color: #d5deea; }
.schlagworte { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; align-content: start; }
.schlagworte li { padding: .25rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--akzent) 12%, var(--himmel-hell)); border: 1px solid color-mix(in srgb, var(--akzent) 45%, transparent); font-size: .9rem; }
.schlagworte li.plattform { background: transparent; border-style: dashed; color: var(--akzent); }   /* Plattform statt Werkzeug */
/* Screenshots (2026-11-08): Reihe unter Text und Schlagworten, am Handy seitlich wischbar, Tippen öffnet groß */
.projekt { grid-template-columns: minmax(0, 1fr); }   /* schmal: eine Spalte, darf nie breiter als die Karte werden */
.bildreihe { display: flex; gap: .9rem; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .1rem .7rem; }
.bildreihe a { flex: 0 0 auto; scroll-snap-align: start; border-radius: 16px; }
.bildreihe img { display: block; height: clamp(280px, 40vw, 380px); width: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 22px rgba(0,0,0,.45); background: var(--himmel-hell); }
.bildreihe-quer img { height: clamp(170px, 28vw, 280px); }   /* Querformat (Spiel) */
.bildreihe img { cursor: zoom-in; }
/* Slider (2026-11-08): fluss.js blättert alle 3 s um ein Bild weiter; Knöpfe unter der Reihe */
.bildreihe-slider { scrollbar-width: none; }
.bildreihe-slider::-webkit-scrollbar { display: none; }
.bildreihe-steuerung { display: flex; justify-content: center; gap: .6rem; }
.bildreihe-steuerung[hidden] { display: none; }
.bildquelle { font-size: .9rem; text-align: center; color: #d5deea; }   /* Quellenangabe für die Fotos aus Open Food Facts */
.bildquelle a { display: inline-flex; align-items: center; min-height: 44px; color: var(--akzent); }
.bildreihe-steuerung button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--akzent) 45%, transparent); background: color-mix(in srgb, var(--akzent) 12%, var(--himmel-hell)); color: var(--text-hell); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bildreihe-steuerung button:hover, .bildreihe-steuerung button:focus-visible { border-color: var(--akzent); outline: 2px solid var(--akzent); }
/* Bild vergrößert auf der Seite (2026-11-08): <dialog> aus fluss.js; Pfeile/Wischen = nächstes Bild, ESC/✕/daneben = zu */
.lupe { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: transparent; color: var(--text-hell); }
.lupe::backdrop { background: rgba(5,10,18,.92); }
.lupe[open] { display: flex; align-items: center; justify-content: center; }
.lupe img { max-width: min(92vw, 1400px); max-height: 88dvh; width: auto; height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lupe button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,34,56,.85); color: var(--text-hell); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lupe button:hover, .lupe button:focus-visible { background: var(--main); outline: 2px solid var(--himmel); }
.lupe .lupe-zu { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lupe .lupe-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lupe .lupe-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
.lupe button[hidden] { display: none; }
.mit-js .projekt:not(.sichtbar) { opacity: 0; transform: translateY(28px); }   /* nur mit Skript ausblenden */
@media (hover: hover) { .projekt:hover { box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--akzent) 35%, transparent); } }
@media (min-width: 761px) {
  .projekt { grid-template-columns: minmax(12rem, 17rem) 1fr; grid-template-rows: auto 1fr auto; }   /* Zeile 2 nimmt die Resthöhe, Schlagworte bleiben oben */
  .projekt-kopf { grid-column: 1; grid-row: 1; padding-right: 0; }
  .schlagworte { grid-column: 1; grid-row: 2; align-self: start; }
  .projekt-text { grid-column: 2; grid-row: 1 / span 2; padding-right: 4.5rem; }   /* rechts Platz für die Nummer */
  .bildreihe-steuerung { grid-column: 1 / -1; grid-row: 4; }
  .bildquelle { grid-column: 1 / -1; grid-row: 5; }
  .bildreihe { grid-column: 1 / -1; grid-row: 3; }   /* Screenshots über die ganze Kartenbreite */
}
/* ---- Server-Status ---- */
.status { display: flex; align-items: center; gap: .7rem; font-weight: 600; margin: 0; }
.lampe { width: 14px; height: 14px; border-radius: 50%; background: #aaa; }
.lampe.an { background: #3cc46b; box-shadow: 0 0 12px #3cc46b; animation: blinken 2s ease-in-out infinite; }
.lampe.aus { background: #d9534f; }
@keyframes blinken { 50% { opacity: .55; } }

/* ---- Kontakt oben rechts im Kopfbild ---- */
.kontakt-oben { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 3vw, 2rem); z-index: 2; display: flex; gap: .6rem; }
.kontakt-oben .knopf { padding: .65rem 1.2rem; min-height: 44px; box-sizing: border-box; background: rgba(255,255,255,.85); color: var(--main); box-shadow: 0 6px 18px rgba(0,0,0,.3); }   /* gleiches Weiß wie der Rahmen ums Porträt */
.knopf { display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; background: #0a66c2; color: #fff; text-decoration: none; font-weight: 600; box-shadow: var(--schatten); transition: transform .2s ease; }
.knopf:hover { transform: translateY(-3px); }
footer { text-align: center; padding: .1rem .5rem; font-size: .9rem; white-space: nowrap; background: var(--main-tief); color: #b9c6d6; }
footer a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .4rem; }

@media (max-width: 1200px) { .kopf-bild { background-image: url("bilder/header-frankfurt-1200.webp"); } }
@media (max-width: 800px) { .kopf-bild { background-image: url("bilder/header-frankfurt-800.webp"); } }

/* ---- Schmale Bildschirme: Fluss links, Stationen rechts daneben ---- */
@media (max-width: 760px) {
  .verfuegbar { border-radius: 14px; } .verfuegbar strong { display: block; } .verfuegbar .trenner { display: none; }
  .quelle > img { height: clamp(240px, 62vw, 280px); }   /* schmal: Mindesthöhe, damit Kinderfoto und Text daraufpassen */
  .quelle figcaption { padding: .8rem 1rem; font-size: 1rem; background: linear-gradient(180deg, rgba(15,34,56,.92), rgba(15,34,56,0) 20%), linear-gradient(90deg, rgba(10,20,35,.55), rgba(10,20,35,.8)); }   /* Text bleibt auf dem See, schmal etwas dunkler zum Lesen */
  .station, .station:nth-of-type(odd), .station:nth-of-type(even) { width: auto; margin: 0 0 2.5rem 2.6rem; }
  .station:nth-of-type(odd)::before, .station:nth-of-type(even)::before { left: -2.2rem; right: auto; }
  .kopf-inhalt { padding-bottom: 5rem; padding-top: 4.5rem; }   /* oben Platz für die Kontakt-Knöpfe, wenn der Kopf durch den Kurzblock höher wird */
  .kurzblock { grid-template-columns: 1fr; }
  .station { padding: 1.1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .station, .mit-js .projekt:not(.sichtbar), .projekt { opacity: 1; transform: none; transition: none; }
  .weiter, .lampe.an, .station-ziel::before { animation: none; }
}

/* Datenschutz der App (annimhd/datenschutz.html, 2026-11-08): Textbreite wie die übrigen Rechtsseiten; Links im Fließtext mit 44 px Tippfläche */
.datenschutz-app { max-width: 760px; margin: 0 auto; }
/* Sprachumschalter oben auf den Rechtsseiten (2026-11-08) */
.sprachwahl { margin: 0; text-align: right; }
.sprachwahl a { display: inline-flex; align-items: center; min-height: 44px; }
.datenschutz-app p a:not(.knopf) { padding-block: .85rem; }
