/* Windmobile – Farben aus dem Logo (Blau, Gelb) + 20-Joer-Palette */
:root {
  --navy: #0c3060;
  --blue: #2e75b6;
  --sky: #4f9fd8;
  --gold: #f0d400;
  --green: #90c018;
  --orange: #f09000;

  --bg: #ffffff;
  --surface: #f2f6fa;
  --fg: #12304f;
  --muted: #566f8c;
  --line: #d6e1ec;
  --card: #ffffff;
  --head-bg: rgba(255, 255, 255, .92);
  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1522;
    --surface: #111f31;
    --fg: #e6eef7;
    --muted: #9db2c9;
    --line: #23384f;
    --card: #14253a;
    --head-bg: rgba(11, 21, 34, .92);
    --navy: #cfe2f6;
    --blue: #6fb0e6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--surface); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--orange); margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* ---------- Sprachen: nur die gewählte Sprache zeigen ---------- */
html[lang="de"] body [lang="lb"], html[lang="de"] body [lang="en"],
html[lang="lb"] body [lang="de"], html[lang="lb"] body [lang="en"],
html[lang="en"] body [lang="de"], html[lang="en"] body [lang="lb"] { display: none !important; }
.head-right { display: flex; align-items: center; gap: 10px; order: 3; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 9px; cursor: pointer; }
.lang-switch button.on { background: #2e75b6; color: #fff; }

/* ---------- Kopf ---------- */
header {
  position: sticky; top: 0; z-index: 10; background: var(--head-bg);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; background: #fff; border-radius: 6px; padding: 2px 4px; }
nav { order: 2; margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--fg); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 6px 10px; font-size: 1rem; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  nav li a { display: block; padding: 10px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: flex-end; color: #fff; padding: 0; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,48,96,.05) 20%, rgba(8,26,52,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); max-width: 14em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 36em; opacity: .95; }
.badge { display: inline-block; background: var(--gold); color: #0c3060; font-weight: 800; border-radius: 99px; padding: 4px 14px; font-size: .85rem; margin-bottom: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 99px; background: var(--gold); color: #0c3060; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn.blue { background: #2e75b6; color: #fff; }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(12,48,96,.08); }
.stat b { display: block; font-size: 2.2rem; color: #2e75b6; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FNR-Video ---------- */
.video-sec { padding-bottom: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0c3060 url(img/windrad-anhaenger.jpg) center / cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: rgba(8, 26, 52, .55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit; }
.video .play:hover { background: rgba(8, 26, 52, .4); }
.play-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: #0c3060; display: grid; place-items: center; font-size: 1.8rem; padding-left: 6px; }
.play-note { font-size: .85rem; opacity: .9; }
.video .credit { position: absolute; right: 10px; bottom: 6px; color: #fff; opacity: .8; font-size: .75rem; }

/* ---------- Spalten ---------- */
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.two img { border-radius: var(--radius); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.people span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .9rem; }

/* ---------- Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, #2e75b6, #4f9fd8); color: #fff; }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .97rem; }
.card .meta { font-size: .8rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .92rem; }
details p { margin-top: 10px; }

/* ---------- Für Schulen ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #1d2b03; font-weight: 800; display: grid; place-items: center; }
.places { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 3px; background: var(--line); border-radius: 3px; }
.timeline > li { display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 10px 0; position: relative; }
.timeline .y { font-weight: 800; color: var(--navy); text-align: right; }
.timeline > li::after { content: ""; position: absolute; left: 86px; top: 16px; width: 15px; height: 15px; border-radius: 50%; background: #2e75b6; border: 3px solid var(--bg); }
.timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline ul li { position: relative; padding-left: 18px; }
.timeline ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #2e75b6); }
.timeline .t-preis { --dot: var(--gold); }
.timeline .t-bau { --dot: var(--orange); }
.timeline .t-workshop { --dot: var(--green); }
.timeline .t-reise { --dot: #8f6fd8; }
.timeline .t-schule { --dot: #e2557b; }
@media (max-width: 560px) {
  .timeline::before { left: 62px; }
  .timeline > li { grid-template-columns: 52px 1fr; gap: 30px; }
  .timeline > li::after { left: 56px; }
  .timeline .y { font-size: .9rem; }
}
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---------- Partner / Preise ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.chips span small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Kontakt / Fuß ---------- */
.contact { background: #0c3060; color: #e6eef7; }
.contact h2, .contact h3 { color: #fff; }
.contact a { color: var(--gold); }
.contact .two { align-items: start; }
footer { background: #081f3f; color: #9db2c9; font-size: .9rem; padding: 28px 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer img { height: 54px; background: #fff; border-radius: 8px; padding: 6px 10px; }
footer a { color: #cfe2f6; }

/* ---------- Archivseiten ---------- */
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose img { border-radius: 10px; margin: 18px 0; height: auto; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.prose li { margin: 4px 0; }
.archiv-hinweis { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.archiv-liste { columns: 2 300px; column-gap: 32px; padding: 0; list-style: none; }
.archiv-liste li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.archiv-liste small { color: var(--muted); }

/* ---------- Unterseiten ---------- */
.crumb { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
/* Neue Inhalte: auf der echten Seite normal, im Prüfmodus (localhost) orange markiert */
.neu, .neu-seite { margin: 32px 0; }
.neu-label, .neu-seite, .frage { display: none; }
.pruefmodus .neu, .pruefmodus .neu-seite { display: block; padding: 18px 20px; border: 2px dashed var(--orange); border-radius: var(--radius); background: var(--surface); }
.pruefmodus .neu-label { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #3a2400; background: var(--orange); border-radius: 99px; padding: 2px 10px; margin-bottom: 8px; }
.pruefmodus .frage { display: block; font-size: .92rem; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); border-radius: 8px; padding: 8px 12px; }
.pruefmodus [data-pr-status="ok"] { border-color: var(--green); border-style: solid; }
.pruefmodus [data-pr-status="aendern"] { border-color: #e0a800; border-style: solid; }
.pruefmodus [data-pr-status="raus"] { border-color: #c0392b; border-style: solid; opacity: .75; }
.neu h2 { margin-top: .2em; }
/* Prüffeld */
.pr-feld { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; }
.pr-titel { font-weight: 800; color: var(--orange); margin-right: 4px; }
.pr-feld button { font: inherit; font-weight: 700; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); border-radius: 99px; padding: 3px 11px; cursor: pointer; }
.pr-feld button[data-s="ok"].on { background: var(--green); border-color: var(--green); color: #1d2b03; }
.pr-feld button[data-s="aendern"].on { background: #e0a800; border-color: #e0a800; color: #2b2000; }
.pr-feld button[data-s="raus"].on { background: #c0392b; border-color: #c0392b; color: #fff; }
.pr-feld textarea { flex: 1 1 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; resize: vertical; }
.pr-info { color: var(--muted); font-size: .8rem; }
.pr-leiste { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; gap: 10px; align-items: center; background: #0c3060; color: #fff; border-radius: 99px; padding: 8px 10px 8px 16px; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.pr-leiste button { font: inherit; font-weight: 700; border: 0; background: var(--gold); color: #0c3060; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
/* Hauptseite: geprüfte Abschnitte im Prüfmodus */
.pruefmodus [data-pruefen]:not(.neu):not(.neu-seite) { outline: 2px dashed var(--orange); outline-offset: -10px; }
.pruefmodus .hero[data-pruefen] .pr-feld { position: relative; z-index: 2; background: var(--bg); border-radius: 12px; margin: 0 auto 16px; padding: 10px 14px; }
.linkliste { padding-left: 1.1em; }
.linkliste li { margin: 8px 0; }
.linkliste small { color: var(--muted); }
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.person { margin: 0; }
.person img, .person-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: 0 0 8px; }
.person-ph { display: grid; place-items: center; background: linear-gradient(135deg, #2e75b6, #4f9fd8); color: #fff; font-size: 2rem; font-weight: 800; }
.person figcaption { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.person figcaption b { color: var(--fg); }
.leer { color: var(--muted); font-style: italic; }
.zitat { border-left: 4px solid var(--line); padding-left: 18px; color: var(--muted); }
.mehr-link { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; }
.alttext { columns: 2 340px; column-gap: 40px; }
.alttext p { margin-top: 0; break-inside: avoid-column; }
.alttext img { display: inline-block; width: calc(50% - 6px); margin: 4px 2px 12px; border-radius: 8px; vertical-align: top; }
@media (min-width: 861px) { nav ul { gap: 16px; } nav a { font-size: .9rem; } }
@media (max-width: 1100px) and (min-width: 861px) { nav ul { gap: 11px; } nav a { font-size: .84rem; } }
a.tile { text-decoration: none; color: inherit; transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); border-color: var(--blue); }
a.tile .more { margin-top: auto; font-weight: 700; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { a.tile { transition: none; } }
/* Fotoraster */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.fotos figure { margin: 0; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0 0 6px; }
.fotos figcaption { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.fotos .nr { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 800; font-size: .75rem; background: var(--line); color: var(--fg); border-radius: 99px; padding: 0 5px; margin-right: 4px; }
/* kompaktes Prüffeld unter Fotos */
.pr-feld.pr-klein { margin-top: 6px; padding-top: 6px; gap: 4px; font-size: .78rem; }
.pr-feld.pr-klein button { padding: 1px 9px; }
.pr-feld.pr-klein textarea { padding: 4px 8px; font-size: .8rem; }
.pruefmodus figure[data-pruefen] { outline: none !important; border-radius: 10px; padding: 4px; border: 2px solid transparent; }
.pruefmodus figure[data-pr-status="ok"] { border-color: var(--green); }
.pruefmodus figure[data-pr-status="aendern"] { border-color: #e0a800; }
.pruefmodus figure[data-pr-status="raus"] { border-color: #c0392b; opacity: .6; }

/* Entwürfe: noch nicht entschieden – live unsichtbar, im Prüfmodus grau markiert */
.entwurf { display: none !important; }
.pruefmodus .entwurf { display: block !important; border: 2px dashed var(--muted) !important; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, var(--bg) 10px, var(--bg) 20px) !important; }
.pruefmodus .entwurf > .neu-label { background: var(--muted); color: var(--bg); }
.pruefmodus li.entwurf { display: list-item !important; padding: 4px 8px; }
.pruefmodus article.entwurf { display: flex !important; }
.pruefmodus article.entwurf > .neu-label { display: inline-block; margin: 10px 0 0 16px; align-self: flex-start; }
.folgt { color: var(--muted); font-style: italic; }
.foto-gross { margin: 18px 0; max-width: 560px; }
.foto-gross img { width: 100%; height: auto; border-radius: 12px; margin: 0 0 6px; }
.foto-gross figcaption { font-size: .88rem; color: var(--muted); }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.ig-kachel { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: block; }
.ig-kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
a.ig-kachel:hover img { transform: scale(1.04); }
.ig-laden { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; cursor: pointer; font: inherit; font-weight: 700; color: var(--fg); background: linear-gradient(135deg, color-mix(in srgb, #e1306c 18%, var(--surface)), color-mix(in srgb, #f77737 18%, var(--surface))); }
.ig-logo { font-size: 2.4rem; line-height: 1; color: #c13584; }
.ig-embed { aspect-ratio: auto; background: none; border: 0; }
.ig-hinweis { font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ig-kachel img { transition: none; } }
.ig-folgen { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.ig-folgen img { border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.ig-folgen p { margin: 0 0 10px; }
.kontakt-qr img { border-radius: 8px; background: #fff; padding: 4px; }
.foto-breit { max-width: 100%; }
