/* PVW-CI: Poppins, Schwarz/Weiß, Gelb #F7C600 nur als Akzent. Keine externen Quellen. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Poppins-400.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Poppins-500.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Poppins-600.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Poppins-700.ttf') format('truetype'); }

:root {
  --gelb: #F7C600; --gelb-dunkel: #E8BA00; --schwarz: #000; --text: #1F2124; --grau: #3F444B;
  --linie: #E6E6E6; --hell: #F3F7F6; --weiss: #fff;
  --gruen: #1E7B4A; --gruen-hell: #E3F3EA; --rot: #B42318; --rot-hell: #FDECEA; --gelb-hell: #FFF6CC;
  --radius: 16px; --schatten: 0 2px 6px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--hell); line-height: 1.55; }
h1, h2, h3 { color: var(--schwarz); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--schwarz); text-underline-offset: 3px; }
.gelb { color: var(--gelb); }
.grau { color: var(--grau); }
.klein { font-size: .85rem; }
.mitte { text-align: center; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 8px; top: 8px; background: var(--gelb); padding: 8px; z-index: 10; }
[hidden] { display: none !important; }

/* ---------- Öffentlich ---------- */
body.oeffentlich { font-size: 17px; background: var(--hell); }
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 14px 16px; text-align: center; }
.kopf .logo { height: 44px; width: auto; }
.spalte { max-width: 560px; margin: 0 auto; padding: 20px 16px 32px; }
body.breit .spalte { max-width: 960px; }
.fuss { text-align: center; font-size: .85rem; color: var(--grau); padding: 24px 16px 40px; }
.fuss a { color: var(--grau); margin: 0 6px; }
.fuss-firma { margin-top: 6px; }

.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 24px; margin: 0 0 20px; }
.karte.dunkel { background: var(--schwarz); color: var(--weiss); }
.karte.dunkel h1, .karte.dunkel h2, .karte.dunkel h3 { color: var(--weiss); }
.karte.hell { background: var(--hell); box-shadow: none; border: 1px solid var(--linie); }
.held { text-align: center; padding: 8px 0 16px; }
.held h1 { font-size: 1.9rem; }
.held p { color: var(--grau); }

/* Knöpfe: 48 px hoch. Primär gelb/schwarz, Sekundär schwarz/weiß, Tertiär Rahmen */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.knopf:active { transform: translateY(1px); }
.knopf.primaer { background: var(--gelb); color: var(--schwarz); }
.knopf.primaer:hover { background: var(--gelb-dunkel); }
.knopf.sekundaer { background: var(--schwarz); color: var(--weiss); }
.knopf.sekundaer:hover { background: #222; }
.knopf.tertiaer { background: transparent; color: var(--schwarz); border-color: var(--schwarz); }
.knopf.tertiaer:hover { background: var(--hell); }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.knopf.gefahr { background: var(--weiss); color: var(--rot); border-color: var(--rot); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
body.oeffentlich .knopf.voll, body.oeffentlich form .knopf[type=submit] { width: 100%; }
@media (max-width: 600px) { body.oeffentlich .knopf-reihe .knopf { flex: 1 1 100%; } }

/* Formulare */
form { margin: 0; }
.feld { display: block; margin: 0 0 14px; }
.feld > span { display: block; font-weight: 500; margin-bottom: 4px; }
.feld em { font-style: normal; color: var(--grau); font-weight: 400; font-size: .9em; }
.feld small { display: block; color: var(--grau); margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: 12px; background: var(--weiss); min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--schwarz); box-shadow: 0 0 0 3px rgba(247,198,0,.45); }
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; font-size: .92rem; color: var(--grau); }
.haken input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--schwarz); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .zwei-spalten { grid-template-columns: 1fr; } }

/* Reiter */
.reiter { display: flex; gap: 6px; background: var(--hell); padding: 6px; border-radius: 14px; margin-bottom: 16px; }
.reiter button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--grau); }
.reiter button.aktiv { background: var(--schwarz); color: var(--weiss); }

/* Schritte */
.schritte { display: grid; gap: 12px; counter-reset: s; }
.schritt { display: flex; gap: 14px; align-items: flex-start; }
.schritt-nr { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gelb); color: var(--schwarz); font-weight: 700; display: grid; place-items: center; }
.schritt h3 { margin: 4px 0 2px; }
.schritt p { margin: 0; color: var(--grau); font-size: .95rem; }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .kacheln { grid-template-columns: repeat(4, 1fr); } .kacheln.fuenf { grid-template-columns: repeat(5, 1fr); } }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 16px; text-align: center; }
.karte .kachel { background: var(--hell); border: 0; }
.kachel-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gelb-hell); display: grid; place-items: center; margin: 0 auto 8px; }
.kachel-wert { font-size: 1.6rem; font-weight: 700; color: var(--schwarz); }
.kachel-titel { color: var(--grau); font-size: .9rem; }
.kachel-hinweis { color: var(--grau); font-size: .75rem; }

@media (min-width: 760px) { .kacheln-sechs .kacheln { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .kacheln-sechs .kacheln { grid-template-columns: repeat(6, 1fr); } }
.raster > *, .raster-2-1 > * { min-width: 0; }

/* Fortschritt */
.fortschritt { margin: 8px 0; }
.fortschritt-text { font-weight: 500; margin-bottom: 6px; }
.fortschritt-balken { height: 14px; border-radius: 99px; background: var(--hell); border: 1px solid var(--linie); overflow: hidden; }
.fortschritt-balken > div { height: 100%; background: var(--gelb); border-radius: 99px; }
.fortschritt-prozent { text-align: right; font-size: .85rem; color: var(--grau); margin-top: 2px; }

/* Pillen */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.pill.gruen { background: var(--gruen-hell); color: var(--gruen); }
.pill.gelb { background: var(--gelb-hell); color: #6B5400; }
.pill.grau { background: #EEF0F1; color: var(--grau); }
.pill.rot { background: var(--rot-hell); color: var(--rot); }
.pill.schwarz { background: var(--schwarz); color: var(--weiss); }

/* Prämienstufen */
.stufen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stufe { border: 1px solid var(--linie); border-radius: 14px; padding: 14px; background: var(--weiss); display: flex; flex-direction: column; gap: 4px; }
.stufe-nr { font-size: .8rem; color: var(--grau); font-weight: 500; }
.stufe-titel { font-weight: 600; color: var(--schwarz); }
.stufe-text { font-size: .85rem; color: var(--grau); flex: 1; }
.stufe-wert { font-weight: 700; border-top: 3px solid var(--gelb); padding-top: 6px; margin-top: 6px; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { background: var(--schwarz); color: var(--weiss); text-align: left; font-weight: 500; padding: 10px 12px; white-space: nowrap; }
th:first-child { border-top-left-radius: 10px; } th:last-child { border-top-right-radius: 10px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--hell); }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
tr.markiert td { background: var(--gelb-hell) !important; }

/* Aktivitäten */
.aktivitaeten { list-style: none; margin: 0; padding: 0; }
.aktivitaeten li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.aktivitaeten li:last-child { border-bottom: 0; }
.akt-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--hell); display: grid; place-items: center; flex: none; }
.akt-text { flex: 1; }
.aktivitaeten time { color: var(--grau); font-size: .8rem; white-space: nowrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linie); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; color: var(--grau); }

/* Teilen */
.teilen-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.teilen-knoepfe [data-kanal=whatsapp] { grid-column: 1 / -1; }
@media (min-width: 760px) { .teilen-knoepfe { grid-template-columns: repeat(4, 1fr); } .teilen-knoepfe [data-kanal=whatsapp] { grid-column: auto; } }
.link-feld { display: flex; gap: 8px; }
.link-feld input { flex: 1; font-size: .9rem; }

/* Hinweise */
.hinweis { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: var(--hell); border-left: 4px solid var(--schwarz); }
.hinweis.tipp { background: var(--gelb-hell); border-left-color: var(--gelb); }
.hinweis.ok { background: var(--gruen-hell); border-left-color: var(--gruen); }
.hinweis.fehler { background: var(--rot-hell); border-left-color: var(--rot); }
.leer { color: var(--grau); text-align: center; padding: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--schwarz); color: var(--weiss); padding: 10px 18px; border-radius: 99px; z-index: 100; transition: opacity .4s; }
.toast.weg { opacity: 0; }

/* Ansprechpartner */
.person { display: flex; gap: 14px; align-items: center; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--hell); border: 3px solid var(--gelb); }
.person .name { font-weight: 600; color: var(--schwarz); }

/* Medien */
.medien video, .medien img { width: 100%; border-radius: 12px; display: block; background: var(--schwarz); }
.qr-bild { width: 100%; max-width: 260px; display: block; margin: 0 auto; image-rendering: pixelated; }

/* ---------- Admin ---------- */
body.admin { font-size: 15px; display: flex; min-height: 100vh; background: var(--hell); }
.admin-leiste { width: 240px; flex: none; background: var(--schwarz); color: var(--weiss); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-logo img { width: 180px; height: auto; display: block; margin: 0 8px; }
.admin-untertitel { color: #9AA0A6; font-size: .8rem; margin: 6px 8px 18px; letter-spacing: .04em; text-transform: uppercase; }
.admin-leiste nav { display: flex; flex-direction: column; gap: 2px; }
.admin-leiste nav a { color: var(--weiss); text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.admin-leiste nav a:hover { background: #1c1c1c; }
.admin-leiste nav a.aktiv { background: var(--gelb); color: var(--schwarz); }
.admin-version { margin-top: auto; color: #6B7075; font-size: .75rem; padding: 12px 8px 0; }
.admin-haupt { flex: 1; min-width: 0; }
.admin-kopf { display: flex; align-items: center; gap: 16px; padding: 20px 28px 8px; flex-wrap: wrap; }
.admin-kopf h1 { margin: 0; font-size: 1.5rem; flex: 1; }
.admin-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-inhalt { padding: 12px 28px 40px; }
.admin .hinweis { margin: 8px 28px; }
.admin .admin-inhalt .hinweis { margin: 0 0 16px; }
.menue-knopf { display: none; cursor: pointer; }
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.raster-2-1 { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .raster-2-1 { grid-template-columns: 1fr; } }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filter .feld { margin: 0; min-width: 160px; }
.filter input, .filter select { min-height: 42px; padding: 8px 12px; }
.balken-zeile { display: flex; align-items: center; gap: 8px; }
.balken { height: 10px; background: var(--schwarz); border-radius: 99px; min-width: 2px; }
.balken.gelb { background: var(--gelb); }
.schwach { background: var(--gelb) !important; color: var(--schwarz); font-weight: 600; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85rem; background: var(--hell); padding: 2px 6px; border-radius: 6px; }
pre.code { padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.reiter-admin { display: flex; gap: 4px; border-bottom: 2px solid var(--linie); margin-bottom: 16px; }
.reiter-admin button, .reiter-admin a { background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--grau); cursor: pointer; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.reiter-admin .aktiv { color: var(--schwarz); border-bottom-color: var(--gelb); }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.daten dt { color: var(--grau); }
dl.daten dd { margin: 0; }
@media (max-width: 860px) {
  body.admin { display: block; }
  .admin-leiste { position: fixed; z-index: 50; left: -260px; transition: left .2s; }
  .menue-schalter:checked ~ .admin-leiste { left: 0; }
  .menue-knopf { display: inline-flex; }
  .admin-kopf, .admin-inhalt { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Druck ---------- */
body.druckseite { background: var(--weiss); }
body.druckseite .spalte { max-width: none; padding: 0; }
.nur-druck { display: none; }
@media print {
  @page { margin: 10mm; }
  body { background: var(--weiss) !important; font-size: 12pt; }
  .kein-druck, .kopf, .fuss, .admin-leiste, .admin-kopf, .toast { display: none !important; }
  .nur-druck { display: block; }
  .karte { box-shadow: none; }
  a { text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   Design v3 (Entwurf freigegeben 05.11.2026): filigran, Haarlinien, Poppins Light,
   Schlüsselwörter gelb eingefärbt (nie unterstrichen), Motion mit reduzierter Bewegung.
   Steht am Ende und überschreibt die v0.1-Grundwerte. Seiten nutzen zusätzlich ihr eigenes Stylesheet.
   ===================================================================== */
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/Poppins-300.ttf') format('truetype'); }
:root {
  --hell: #F6F6F3; --flaeche: #F6F6F3; --flaeche2: #EFEFEA; --linie: #E6E5DF; --grau: #6B6F75; --text: #16181B;
  --gelb-hell: #FFF6D1; --gelb-weich: #FFF6D1; --dunkel: #17181A; --radius: 20px; --ease: cubic-bezier(.2,.7,.2,1);
  --schatten: 0 1px 2px rgba(0,0,0,.04), 0 14px 36px -22px rgba(0,0,0,.22);
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.gelb, .hl { color: var(--gelb); font-weight: 600; }
.sichtbar .hl, .rein .hl { animation: v3-einfaerben 1.1s .3s var(--ease) both; }
@keyframes v3-einfaerben { from { color: var(--schwarz); } to { color: var(--gelb); } }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); font-weight: 500; }

.knopf { border-radius: 999px; min-height: 50px; padding: 0 26px; font-weight: 500; transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s; }
.knopf.primaer { box-shadow: 0 8px 20px -10px rgba(247,198,0,.9); }
.knopf.primaer:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(247,198,0,1); }
.knopf.sekundaer:hover, .knopf.dunkel:hover { transform: translateY(-1px); }
.knopf.dunkel { background: var(--schwarz); color: #fff; }
.knopf.zweit, .knopf.tertiaer { background: #fff; border: 1px solid var(--linie); color: var(--text); }
.knopf.zweit:hover, .knopf.tertiaer:hover { border-color: var(--text); background: #fff; }
.knopf.klein { min-height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 999px; white-space: nowrap; }
.karte { border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: none; }
.karte.schatten { border-color: transparent; box-shadow: var(--schatten); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea { border: 1px solid var(--linie); border-radius: 14px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--gelb-weich); }
.pill { font-weight: 500; }

/* Schwebende Beschriftung: <div class="schwebe"><input placeholder=" " id=x><label for=x>…</label></div> */
.schwebe { position: relative; }
.schwebe input { width: 100%; height: 54px; padding: 20px 14px 6px; font-size: 15px; }
.schwebe label { position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--grau); pointer-events: none; transition: top .25s var(--ease), font-size .25s var(--ease); }
.schwebe input:focus + label, .schwebe input:not(:placeholder-shown) + label { top: 7px; font-size: 11px; }

/* Volle Breite (seite({ voll: true })): Inhalt bringt eigene Container mit .innen */
body.voll .spalte { max-width: none; padding: 0; }
.innen { max-width: 1160px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .innen { padding-left: 48px; padding-right: 48px; } }

/* Bewegung: .gleite blendet beim Scrollen ein (ohne JS sofort sichtbar), .rein beim Laden, [data-zaehle] zählt hoch */
.js .gleite { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .gleite.sichtbar { opacity: 1; transform: none; }
.rein > * { animation: v3-rein .7s var(--ease) both; }
.rein > *:nth-child(2) { animation-delay: .07s; } .rein > *:nth-child(3) { animation-delay: .14s; } .rein > *:nth-child(n+4) { animation-delay: .2s; }
@keyframes v3-rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Fenster (Dialog): <div class="fenster-hg" id="x" hidden><div class="fenster" role="dialog">…</div></div>, öffnen mit [data-fenster-auf="#x"], schließen [data-fenster-zu] */
.fenster-hg { position: fixed; inset: 0; z-index: 50; background: rgba(11,11,12,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: end center; animation: v3-blende .3s ease; }
@media (min-width: 700px) { .fenster-hg { place-items: center; } }
@keyframes v3-blende { from { opacity: 0; } to { opacity: 1; } }
.fenster { width: min(100%, 520px); background: #fff; border-radius: 26px 26px 0 0; padding: 26px max(22px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; max-height: 92vh; overflow-y: auto; animation: v3-hoch .45s var(--ease); }
@media (min-width: 700px) { .fenster { border-radius: 26px; } }
@keyframes v3-hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast { border-radius: 999px; transition: opacity .3s, transform .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .gleite { opacity: 1; transform: none; }
}
