/* KI-Potenzial-Check, Fassung 3 (07.11.2026): hell, warm, Figtree, echte Karte als Bühne. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f4f0;
  --flaeche: #ffffff;
  --erhaben: #f2efe9;
  --linie: rgba(28, 27, 25, .10);
  --linie-stark: rgba(28, 27, 25, .18);
  --text: #1c1b19;
  --text2: #57524b;
  --text3: #77716a;
  --akzent: #ff6a00;
  --knopf: #d9530a;
  --knopf-hover: #c24a08;
  --akzent-zart: #fff1e6;
  --gruen: #1e9e5a;
  --gelb: #f2a516;
  --rot: #e0453a;
  --grau: #8b8f96;
  --schatten-k: 0 1px 2px rgba(28, 27, 25, .06);
  --schatten-m: 0 8px 24px rgba(28, 27, 25, .08);
  --schatten-s: 0 18px 48px rgba(28, 27, 25, .16), 0 2px 6px rgba(28, 27, 25, .06);
  --kurve: cubic-bezier(.22, 1, .36, 1);
  --kopf-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Die Seite bewegt sich nur nach oben und unten, nie zur Seite */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie); }
.kopf-in { height: var(--kopf-h); display: flex; align-items: center; gap: 24px; padding: 0 24px; max-width: 1600px; margin: 0 auto; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marke img { height: 28px; width: auto; display: block; }
.marke-name { font-weight: 600; font-size: 16px; padding-left: 12px; border-left: 1px solid var(--linie-stark); line-height: 20px; }
.stufen { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.stufen li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px; color: var(--text3); }
.stufen li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600;
  background: var(--erhaben); color: var(--text2); }
.stufen li.an { color: var(--text); background: var(--akzent-zart); }
.stufen li.an i { background: var(--knopf); color: #fff; }
.stufen li.fertig { color: var(--text2); }
.stufen li.fertig i { background: var(--gruen); color: #fff; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); flex: none; }
.kopf-rechts .ic { color: var(--knopf); }

.beispiel-band { background: #fff7e0; border-bottom: 1px solid #f0d78f; color: #6b4c00; font-size: 14px; }
.beispiel-band p { max-width: 1600px; margin: 0 auto; padding: 8px 24px; }

/* Bühne mit Karte */
.buehne { position: relative; height: calc(100vh - var(--kopf-h)); height: calc(100svh - var(--kopf-h)); min-height: 680px; max-height: 960px;
  background: #ebe8e2; overflow: hidden; }
.mit-band .buehne { height: calc(100svh - var(--kopf-h) - 37px); }
.karten-feld { position: absolute; inset: 0; }
.karte { position: absolute; inset: 0; }
.karte-aus { display: grid; place-items: center; color: var(--text2); font-size: 15px; padding: 24px; text-align: center; }
.panel-rahmen { position: relative; z-index: 5; height: 100%; max-width: 1600px; margin: 0 auto; padding: 24px; pointer-events: none; display: flex; align-items: flex-start; }
.panel { pointer-events: auto; width: 452px; max-height: 100%; overflow: auto; background: var(--flaeche); border-radius: 20px; box-shadow: var(--schatten-s);
  padding: 32px; scrollbar-width: thin; }
.karten-hinweis { position: absolute; z-index: 4; top: 20px; right: 64px; background: rgba(255, 255, 255, .92); border: 1px solid var(--linie);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text2); box-shadow: var(--schatten-k); }
.legende { position: absolute; z-index: 4; right: 24px; bottom: 40px; list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 8px;
  background: rgba(255, 255, 255, .96); border-radius: 14px; box-shadow: var(--schatten-m); font-size: 14px; min-width: 196px; }
.legende li { display: flex; align-items: center; gap: 10px; color: var(--text2); }
.legende li span { flex: 1; }
.legende li b { font-weight: 600; color: var(--text); min-width: 20px; text-align: right; }
.lp { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linie-stark); }
.lp.gruen { background: var(--gruen); } .lp.gelb { background: var(--gelb); } .lp.rot { background: var(--rot); } .lp.grau { background: var(--grau); }

/* Marker auf der Karte */
.rp-w { cursor: pointer; }
.rp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; color: #fff;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(28, 27, 25, .28); transition: transform .16s var(--kurve); }
.rp-w:hover .rp { transform: scale(1.08); }
.rp.gruen { background: var(--gruen); }
.rp.gelb { background: var(--gelb); color: #2b1d00; }
.rp.rot { background: var(--rot); }
.rp.dunkel { background: var(--grau); font-size: 12px; }
.rp.leer { width: 18px; height: 18px; background: rgba(255, 255, 255, .9); border: 2px dashed #a59d91; box-shadow: none; }
.rp.neu { animation: rein .5s var(--kurve) both; }
@keyframes rein { from { transform: scale(.3); opacity: 0; } }
.rp.mitte { width: 40px; height: 40px; font-size: 16px; }
.standort { width: 18px; height: 18px; border-radius: 50%; background: var(--knopf); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(217, 83, 10, .18), 0 2px 6px rgba(28, 27, 25, .3); }
.pin { display: flex; align-items: center; gap: 6px; background: var(--text); color: #fff; border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 13px;
  font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(28, 27, 25, .3); position: relative; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--text); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pin .ic { width: 15px; height: 15px; }
.beispiel-pin { background: #fff; color: var(--text); border: 1px solid var(--linie); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600;
  box-shadow: var(--schatten-m); white-space: nowrap; }
.beispiel-pin.gut { color: #146c3e; } .beispiel-pin.schlecht { color: #b42b22; }
.maplibregl-popup-content { font: 500 14px/1.4 'Figtree', system-ui, sans-serif; color: var(--text); border-radius: 10px; padding: 8px 12px; box-shadow: var(--schatten-m); }
.maplibregl-ctrl-attrib { font: 11px/1.4 system-ui, sans-serif; }

/* Panel-Inhalt */
.vorzeile { font-size: 14px; color: var(--knopf); font-weight: 600; margin-bottom: 8px; }
.vorzeile b { color: var(--text); }
.panel h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.panel h2 { font-size: 22px; line-height: 1.25; }
.lead { color: var(--text2); font-size: 16px; margin-top: 12px; }
.formkopf { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; }
.formkopf p { font-size: 13px; color: var(--text3); white-space: nowrap; }
.fbalken { flex: 1; height: 4px; background: var(--erhaben); border-radius: 4px; overflow: hidden; }
.fbalken span { display: block; height: 100%; width: 33%; background: var(--knopf); border-radius: 4px; transition: width .4s var(--kurve); }
.fbalken.gross { height: 8px; margin: 12px 0 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.schritt { display: none; }
.schritt.aktiv { display: grid; gap: 16px; animation: auf .3s var(--kurve); }
@keyframes auf { from { opacity: 0; transform: translateY(6px); } }
legend { font-size: 18px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.feld { display: grid; gap: 6px; }
.feld > span { font-size: 14px; color: var(--text2); font-weight: 500; }
.feld em { font-style: normal; color: var(--text3); font-weight: 400; }
.feld-zeile { display: flex; justify-content: space-between; }
.feld-zeile b { color: var(--text); font-weight: 600; }
.feld input[type=text], .feld input[type=tel], .feld input[type=email], .feld select {
  height: 48px; border: 1px solid var(--linie-stark); border-radius: 10px; background: #fff; padding: 0 14px; font-size: 16px; width: 100%;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.feld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357524b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.feld input:focus, .feld select:focus { outline: none; border-color: var(--knopf); box-shadow: 0 0 0 3px rgba(217, 83, 10, .18); }
input[type=range] { width: 100%; accent-color: var(--knopf); height: 28px; }
/* Eigene Vorschlagsliste unter dem Gewerk-Feld (12.11.2026), ersetzt die Browser-Liste, die am iPhone nichts zeigt */
.feld-huelle { position: relative; scroll-margin-top: calc(var(--kopf-h) + 12px); }
.vorschlag { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff;
  border: 1px solid var(--linie-stark); border-radius: 12px; box-shadow: var(--schatten-m); overflow: hidden; }
.vorschlag[hidden] { display: none; }
/* Fenster mit sechseinhalb Zeilen: die angeschnittene Zeile zeigt, dass es weitergeht */
.vrolle { max-height: 290px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 18px 4px 4px;
  scrollbar-width: none; touch-action: pan-y; }
.vrolle::-webkit-scrollbar { display: none; }
.vkopf { margin: 0; padding: 10px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); }
.vz { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; text-align: left;
  font: inherit; font-size: 16px; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vz:hover, .vz.aktiv, .vz:active { background: var(--akzent-zart); }
.vz.frei { color: var(--knopf); font-weight: 600; }
/* Eigene Rollleiste, weil iPhones die echte nur während des Scrollens zeigen */
.vleiste { position: absolute; top: 8px; bottom: 8px; right: 6px; width: 5px; border-radius: 5px; background: var(--erhaben); pointer-events: none; }
.vleiste[hidden], .vmehr[hidden] { display: none; }
.vleiste i { display: block; width: 100%; border-radius: 5px; background: var(--knopf); }
.vmehr { position: absolute; right: 18px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie-stark); background: #fff; color: var(--knopf);
  display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: var(--schatten-s); -webkit-tap-highlight-color: transparent; }
.vorschlag::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; opacity: 0; }
.vorschlag.mehr::after { opacity: 1; }
.feld input.gewaehlt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e9e5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wahl.drei { grid-template-columns: repeat(3, 1fr); }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; }
.wahl span { display: grid; place-items: center; text-align: center; min-height: 48px; padding: 8px 10px; border: 1px solid var(--linie-stark); border-radius: 10px;
  font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; line-height: 1.25; }
.wahl input:checked + span { border-color: var(--knopf); background: var(--akzent-zart); color: #8a3305; font-weight: 600; }
.wahl input:focus-visible + span { box-shadow: 0 0 0 3px rgba(217, 83, 10, .25); }
.frage-klein { font-size: 14px; color: var(--text2); font-weight: 500; margin-bottom: -8px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--knopf); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; width: 100%; white-space: nowrap;
  transition: background .15s, transform .12s; box-shadow: 0 1px 2px rgba(120, 40, 0, .2); }
.knopf:hover { background: var(--knopf-hover); }
.knopf:active { transform: scale(.98); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf:focus-visible, .knopf-leise:focus-visible { outline: 3px solid rgba(217, 83, 10, .35); outline-offset: 2px; }
.knopf-leise { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 20px; border: 1px solid var(--linie-stark);
  border-radius: 12px; background: #fff; color: var(--text); font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s; }
.knopf-leise:hover { background: var(--erhaben); }
.knopf-reihe { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.knopf-stapel { display: grid; gap: 8px; margin-top: 24px; }
.fehler { color: #b42b22; font-size: 14px; background: #fdeeed; border-radius: 8px; padding: 8px 12px; }
.klein { font-size: 13px; color: var(--text3); margin-top: 20px; line-height: 1.5; }
.klein a { color: var(--text2); }
.turnstile:empty { display: none; }

/* Listen mit Zeichen */
.liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.liste li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.liste li b { display: block; font-weight: 600; }
.liste li span, .liste li small { display: block; color: var(--text2); font-size: 14px; }
.zeichen { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.zeichen svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zeichen.ok { background: var(--gruen); }
.zeichen.nein { background: var(--rot); }
.zeichen.mittel { background: var(--gelb); }
.zeichen.mittel svg { stroke: #2b1d00; }
.zeichen.offen { background: var(--erhaben); box-shadow: inset 0 0 0 1.5px var(--linie-stark); }
.zeichen.laeuft { border: 2px solid var(--erhaben); border-top-color: var(--knopf); animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.liste.gross li { padding: 12px 0; border-top: 1px solid var(--linie); }
.liste.gross li:first-child { border-top: 0; padding-top: 0; }
.pruefung { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linie); }
.pruef-titel { font-size: 20px; }
.treffer { margin-top: 20px; border: 1px solid var(--linie); border-radius: 14px; padding: 16px; background: var(--bg); }
.treffer p { color: var(--text2); font-size: 14px; }
.treffer b { display: block; font-size: 18px; margin: 4px 0; }
.pruefung .knopf-reihe { margin-top: 20px; }

/* Messung */
.zaehler { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.zaehler b { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.zaehler span { color: var(--text2); }

/* Ergebnis kurz */
.wert-zeile { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-top: 16px; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bahn { fill: none; stroke: var(--erhaben); stroke-width: 10; }
.ring-wert { fill: none; stroke: var(--rot); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.2s var(--kurve); }
.ring-zahl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-zahl b { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.ring-zahl span { font-size: 13px; color: var(--text3); }
.wert-satz { font-size: 18px; font-weight: 500; line-height: 1.35; }
.schwach-zahl { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--rot); background: #fdf0ee; border-radius: 6px; font-size: 15px; line-height: 1.45; font-weight: 500; }
.teile { display: grid; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linie); }
.teil-kopf { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.teil-kopf span { font-weight: 600; }
.balken { height: 6px; background: var(--erhaben); border-radius: 6px; margin: 6px 0 4px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1s var(--kurve); }
.teil p { font-size: 13px; color: var(--text3); }

/* Erklärung */
.erklaerung { padding: 36px 0 96px; background: var(--flaeche); }
.vertrauen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding-bottom: 28px; margin-bottom: 56px; border-bottom: 1px solid var(--linie); font-size: 14px; color: var(--text2); }
.vt-fakt b { color: var(--text); font-weight: 600; }
.vt-google { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); text-decoration: none; }
.vt-google .g { width: 18px; height: 18px; flex: none; }
.vt-google .pe { display: block; width: auto; height: 18px; flex: none; }
.vt-wert { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vt-wert b { color: var(--text); font-weight: 600; }
.vt-sterne { color: #f5a400; letter-spacing: 1px; font-size: 13px; }
.vt-anzahl { text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: 3px; white-space: nowrap; }
.vt-google:hover .vt-anzahl { text-decoration-color: currentColor; }
.vt-logos { display: flex; align-items: center; gap: 28px; }
.vt-logos a { display: block; }
.vt-logos img { display: block; width: auto; height: 28px; opacity: .8; }
.vt-logos a img { height: 24px; }
.erklaerung h2, .ergebnis-kopf h2 { font-size: 32px; letter-spacing: -.02em; }
.drei { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.drei li { background: var(--bg); border-radius: 16px; padding: 24px; }
.drei .nr { width: 32px; height: 32px; border-radius: 50%; background: var(--akzent-zart); color: #8a3305; display: grid; place-items: center; font-weight: 600; }
.drei h3 { font-size: 18px; margin: 16px 0 8px; }
.drei p { color: var(--text2); font-size: 15px; }
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border-top: 1px solid var(--linie); }
.fakten div { padding: 20px 0 0; }
.fakten dt { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.fakten dd { margin: 4px 0 0; color: var(--text2); font-size: 14px; }

/* Ergebnis im Detail */
.ergebnis { padding: 56px 0 80px; }
.ergebnis-kopf { margin-bottom: 24px; }
.ergebnis-kopf p { color: var(--text2); margin-top: 8px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.karte-box { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 28px; margin-bottom: 20px; box-shadow: var(--schatten-k); }
.karte-box h3 { font-size: 20px; }
.unter { color: var(--text2); font-size: 15px; margin-top: 6px; }
.unter b { color: var(--text); font-weight: 600; }
.orte { margin-top: 16px; display: grid; }
.ort { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); }
.ort:first-child { border-top: 0; }
.ort b { font-weight: 600; display: block; }
.ort small { color: var(--text3); font-size: 13px; }
.platz { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.platz.gelb { background: #fdf1d6; color: #7a5200; } .platz.rot { background: #fbe4e2; color: #a5281f; } .platz.dunkel { background: var(--erhaben); color: var(--text2); }
.platz.gruen { background: #def3e7; color: #146c3e; }
.wettbewerb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.wb { text-align: left; display: grid; gap: 4px; background: #fff; border: 1px solid var(--linie-stark); border-radius: 14px; padding: 16px; cursor: pointer;
  transition: border-color .15s, background .15s; position: relative; }
.wb:hover { border-color: var(--text3); }
.wb[aria-pressed=true] { border-color: var(--knopf); background: var(--akzent-zart); }
.wb b { font-weight: 600; padding-right: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb small { color: var(--text2); font-size: 13px; }
.haken-box { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--linie-stark); display: grid; place-items: center; }
.wb[aria-pressed=true] .haken-box { background: var(--knopf); border-color: var(--knopf); }
.haken-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wb-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.mini { display: flex; gap: 3px; flex-wrap: nowrap; }
.mini i { width: 9px; height: 9px; border-radius: 50%; background: var(--grau); }
.mini i.gruen { background: var(--gruen); } .mini i.gelb { background: var(--gelb); } .mini i.rot { background: var(--rot); } .mini i.leer { background: var(--erhaben); }
.wb-wert { text-align: right; line-height: 1; }
.wb-wert strong { font-size: 24px; font-weight: 600; display: block; }
.wb-wert span { font-size: 12px; color: var(--text3); }
.vergleich { margin-top: 20px; overflow-x: auto; }
.vergleich table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.vergleich th, .vergleich td { padding: 10px 12px; text-align: right; border-top: 1px solid var(--linie); white-space: nowrap; }
.vergleich th:first-child, .vergleich td:first-child { text-align: left; color: var(--text2); }
.vergleich thead th { border-top: 0; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.vergleich .sie { background: var(--akzent-zart); font-weight: 600; }
.vergleich-hinweis { font-size: 13px; color: var(--text3); margin-top: 12px; }
.schritte { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: s; }
.schritte li { counter-increment: s; background: var(--bg); border-radius: 14px; padding: 20px 20px 20px 64px; position: relative; }
.schritte li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--knopf);
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.schritte b { display: block; font-weight: 600; margin-bottom: 4px; }
.schritte span { color: var(--text2); font-size: 15px; }

.plan { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: var(--flaeche); border-radius: 20px; padding: 40px;
  box-shadow: var(--schatten-m); border: 1px solid var(--linie); position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--akzent); }
.plan h3 { font-size: 28px; letter-spacing: -.02em; }
.plan-text p { color: var(--text2); margin-top: 12px; }
.haken { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.haken li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.haken li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan-form { display: grid; gap: 14px; }
.plan-form .klein { margin-top: 0; }
.danke { text-align: left; padding: 8px 0; }
.danke-zeichen { width: 48px; height: 48px; border-radius: 50%; background: #def3e7; color: var(--gruen); display: grid; place-items: center; margin-bottom: 16px; }
.danke-zeichen .ic { width: 26px; height: 26px; stroke-width: 2; }
.danke h3 { font-size: 24px; }
.danke p { color: var(--text2); margin-top: 8px; }
.neu-start { text-align: center; margin-top: 32px; }

/* Details bis zur Bestätigung der E-Mail unscharf */
.detail-huelle { position: relative; }
.detail-huelle.gesperrt .detail-inhalt { filter: blur(6px); opacity: .6; pointer-events: none; user-select: none; }
.detail-huelle:not(.gesperrt) .sperre { display: none; }
.sperre { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 64px 16px 0; }
.sperre-karte { position: sticky; top: calc(var(--kopf-h, 64px) + 24px); max-width: 440px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 20px; padding: 32px; box-shadow: var(--schatten-m); text-align: center; }
.sperre-zeichen { width: 48px; height: 48px; border-radius: 50%; background: var(--akzent-zart); color: var(--knopf); display: grid; place-items: center; margin: 0 auto 16px; }
.sperre-zeichen .ic { width: 24px; height: 24px; }
.sperre h3 { font-size: 22px; letter-spacing: -.01em; }
.sperre p { color: var(--text2); margin: 8px 0 20px; }
.sk { display: block; height: 12px; border-radius: 6px; background: var(--erhaben); }
.ki-kurz { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--linie-stark); }
.ki-kurz p { font-size: 13px; color: var(--text3); }
.ki-kurz .leise { font-weight: 500; color: var(--text3); }
.ki-modelle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.ki-modell { background: var(--bg); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.ki-name { font-weight: 600; font-size: 16px; }
.ki-stand { font-size: 13px; color: var(--text3); }
.ki-stand.ja { color: var(--gruen); font-weight: 600; }
.ki-wert { font-size: 28px; font-weight: 700; line-height: 1.2; }
.ki-wert small { font-size: 14px; font-weight: 500; color: var(--text3); }
.ki-wert.leise { font-size: 15px; font-weight: 500; color: var(--text2); }
.ki-fragen { margin-top: 20px; display: grid; gap: 14px; }
.ki-null { font-size: 16px; padding: 14px 16px; border-radius: 12px; background: #fdecea; color: var(--text); }
.ki-frage { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.ki-frage b { display: block; font-weight: 600; }
.ki-frage span { display: block; color: var(--text2); font-size: 14px; }
.ki-andere { background: var(--bg); border-radius: 14px; padding: 16px 18px; }
.ki-andere ul { margin: 8px 0 0; padding-left: 20px; color: var(--text2); font-size: 15px; columns: 2; column-gap: 28px; }
.sk.b { width: 60%; height: 14px; margin-bottom: 8px; background: #e6e1d8; }
.sk.k { width: 40%; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text2); cursor: pointer; }
.einwilligung a { color: inherit; text-decoration: underline; }
.einwilligung input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--knopf); }
@media (max-width: 900px) {
  .sperre { padding-top: 40px; }
  .sperre-karte { padding: 24px 20px; }
}

.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); font-size: 13px; color: var(--text3); }
.fuss-in { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; padding-bottom: 20px; }
.fuss a { color: var(--text2); }
.fuss .quelle { margin-left: auto; }

/* Mittlere Breiten */
@media (max-width: 1180px) {
  .stufen li { padding-right: 6px; }
  .stufen li:not(.an) { font-size: 0; gap: 0; }
  .kopf-rechts { display: none; }
}
@media (max-width: 900px) {
  :root { --kopf-h: 56px; }
  body { touch-action: pan-y pinch-zoom; }
  .karten-feld .maplibregl-canvas-container, .karten-feld .maplibregl-canvas { touch-action: pan-y pinch-zoom !important; cursor: default; }
  .kopf-in { padding: 0 16px; gap: 12px; }
  .marke img { height: 24px; }
  .marke-name { font-size: 15px; }
  .stufen { margin-right: 0; }
  .stufen li { font-size: 0; gap: 0; padding: 4px; background: none !important; }
  .stufen li i { width: 22px; height: 22px; }
  .buehne, .mit-band .buehne { height: auto; min-height: 0; max-height: none; overflow: visible; background: var(--bg); }
  .karten-feld { position: relative; height: 46vh; min-height: 300px; max-height: 420px; }
  .buehne.lauf .karten-feld, .buehne.fertig .karten-feld { height: 58vh; max-height: 520px; }
  .karten-hinweis { top: 10px; right: 52px; left: auto; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .legende { bottom: 28px; right: 12px; left: 12px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 14px;
    padding: 8px 12px; font-size: 12px; }
  .legende li { gap: 6px; }
  .legende li b { min-width: 0; }
  .lp { width: 12px; height: 12px; }
  .rp { width: 30px; height: 30px; font-size: 13px; border-width: 2px; }
  .rp.mitte { width: 34px; height: 34px; font-size: 14px; }
  .pin { font-size: 12px; padding: 5px 10px 5px 8px; }
  #pruefKnoepfe { grid-template-columns: 1fr; }
  #pruefKnoepfe .knopf { order: -1; }
  .panel-rahmen { height: auto; padding: 0 12px; margin-top: -16px; display: block; }
  .panel { width: 100%; max-height: none; overflow: visible; padding: 24px 20px; border-radius: 20px; box-shadow: var(--schatten-m); }
  .panel h1 { font-size: 28px; }
  .erklaerung { padding: 24px 0 64px; margin-top: 32px; }
  .vertrauen { gap: 14px 16px; padding-bottom: 20px; margin-bottom: 40px; font-size: 13px; }
  .vt-fakt b { display: block; font-size: 15px; }
  .vt-google { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
  .vt-google .g { width: 20px; height: 20px; }
  .vt-google .pe { height: 17px; }
  .vt-wert b { font-size: 15px; }
  .vt-logos { flex: 1 1 100%; justify-content: space-between; gap: 16px; }
  .vt-logos img { height: 24px; }
  .vt-logos a img { height: 21px; }
  .erklaerung h2, .ergebnis-kopf h2 { font-size: 26px; }
  .drei, .zwei, .schritte, .plan { grid-template-columns: 1fr; }
  .ki-modelle { grid-template-columns: 1fr; }
  .ki-andere ul { columns: 1; }
  .drei { gap: 12px; }
  .fakten { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .fakten dt { font-size: 24px; }
  .wettbewerb { grid-template-columns: 1fr; }
  .plan { padding: 28px 20px; gap: 24px; }
  .plan h3 { font-size: 24px; }
  .karte-box { padding: 20px; }
  .wrap { padding: 0 16px; }
  .ergebnis { padding: 40px 0 56px; }
  .fuss .quelle { margin-left: 0; }
  /* Handy-Start (12.11.2026): Überschrift, Gewerk, Ort und „Weiter“ ohne Scrollen sichtbar, die Karte kleiner darunter.
     Sobald die Messung läuft oder das Ergebnis da ist (Klassen lauf, fertig), wieder Karte oben groß. Die Einleitung
     rückt unter das Formular. Nur Reihenfolge per flex/order, keine doppelten Elemente. */
  .buehne { display: flex; flex-direction: column; }
  .buehne:not(.lauf):not(.fertig) .panel-rahmen { order: -1; margin-top: 0; padding-top: 8px; }
  .buehne:not(.lauf):not(.fertig) .karten-feld { height: 260px; min-height: 0; max-height: none; margin-top: 12px; }
  .buehne:not(.lauf):not(.fertig) .panel { padding: 16px 16px 20px; }
  #start { display: flex; flex-direction: column; }
  #start .lead { order: 1; margin-top: 16px; }
  #start .klein { order: 2; }
  #start .vorzeile { font-size: 13px; margin-bottom: 4px; }
  .panel h1 { font-size: 24px; line-height: 1.15; }
  .formkopf { margin: 12px 0 8px; gap: 10px; }
  .formkopf p { font-size: 12px; }
  .fbalken { height: 3px; }
  .schritt.aktiv { gap: 12px; }
  legend { font-size: 17px; margin-bottom: 0; }
  .feld { gap: 4px; }
  input[type=range] { height: 24px; }
  .vrolle { max-height: 204px; }
}
@media (max-width: 400px) {
  .marke-name { display: none; }
  .wert-zeile { grid-template-columns: 104px 1fr; gap: 16px; }
  .ring, .ring svg { width: 104px; height: 104px; }
  .ring-zahl b { font-size: 34px; }
  .wert-satz { font-size: 16px; }
  .wahl span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Cookie-Hinweis (nur auf immer-sichtbar.de sichtbar) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 20px 24px; border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten-s); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 380px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--text2); }
.cookie p b { color: var(--text); }
.cookie a { color: var(--knopf); }
.cookie-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-knoepfe [hidden] { display: none; }
.cookie-wahl { flex: 1 1 100%; display: grid; gap: 10px; margin: 0; }
.cookie-wahl[hidden] { display: none; }
.cookie-wahl label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text2); cursor: pointer; }
.cookie-wahl input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--knopf); }
.cookie-wahl b { display: block; color: var(--text); }
.cookie-knoepfe .knopf, .cookie-knoepfe .knopf-leise { height: 46px; width: auto; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.fuss-knopf { padding: 0; border: 0; background: none; font: inherit; color: var(--text2); cursor: pointer; }
.fuss-knopf:hover { text-decoration: underline; }
@media (max-width: 900px) {
  /* Flacher am Handy (12.11.2026): höchstens rund 110 px, beide Knöpfe nebeneinander und gleich breit */
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; gap: 8px; border-radius: 14px; }
  .cookie p { flex: 1 1 100%; font-size: 13px; line-height: 1.4; }
  .cookie-wahl label { font-size: 14px; }
  .cookie-knoepfe { width: 100%; gap: 8px; }
  .cookie-knoepfe .knopf, .cookie-knoepfe .knopf-leise { flex: 1 1 130px; height: 40px; padding: 0 10px; font-size: 15px; }
}
