@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../schriften/plus-jakarta-sans-variabel.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --palette-schwarz: #000000;
  --palette-stein-950: #0c0a09;
  --palette-stein-900: #1c1917;
  --palette-stein-800: #292524;
  --palette-stein-700: #44403c;
  --palette-stein-600: #57534e;
  --palette-stein-500: #78716c;
  --palette-stein-400: #a8a29e;
  --palette-stein-300: #d6d3d1;
  --palette-stein-200: #e7e5e4;
  --palette-stein-50: #fafaf9;
  --palette-orange: #ed7f1a;
  --palette-orange-tief: #d57217;
  --palette-orange-hell: #f8cca3;
  --palette-gruen: #22c55e;
  --palette-gelb: #eab308;
  --palette-rot: #ff7162;
  --palette-petrol: #14b8a6;

  --grund: var(--palette-stein-950);
  --flaeche: var(--palette-stein-900);
  --flaeche-2: var(--palette-stein-800);
  --flaeche-tief: var(--palette-schwarz);
  --linie: var(--palette-stein-700);
  --linie-stark: var(--palette-stein-600);
  --text: var(--palette-stein-50);
  --text-2: var(--palette-stein-300);
  --leise: var(--palette-stein-400);
  --platzhalter: var(--palette-stein-400);
  --rand-eingabe: var(--palette-stein-500);
  --akzent: var(--palette-orange);
  --akzent-tief: var(--palette-orange-tief);
  --akzent-text: var(--palette-orange-hell);
  --akzent-auf: var(--palette-stein-950);
  --akzent-flaeche: rgba(237, 127, 26, .13);
  --akzent-rand: rgba(237, 127, 26, .45);
  --ok: var(--palette-gruen);
  --ok-bg: rgba(34, 197, 94, .13);
  --warn: var(--palette-gelb);
  --warn-bg: rgba(234, 179, 8, .13);
  --fehler: var(--palette-rot);
  --fehler-bg: rgba(255, 113, 98, .13);
  --info: var(--palette-petrol);
  --info-bg: rgba(20, 184, 166, .13);
  --neutral: var(--palette-stein-300);
  --neutral-bg: rgba(214, 211, 209, .1);

  --radius: 10px;
  --radius-klein: 7px;
  --schatten: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .5);
  --schatten-hoch: 0 18px 40px -16px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
  --fokus: 0 0 0 3px rgba(237, 127, 26, .55);
  --hinweis-hoehe: 0rem;
  --breite: 1280px;
  --seitenleiste: 260px;
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

:root:has(.test-hinweis) { --hinweis-hoehe: 2.25rem; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; background: var(--grund); }
body { margin: 0; background: var(--grund); color: var(--text); min-height: 100dvh; display: flex; flex-direction: column; }
h1 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.2; margin: 0; font-weight: 750; letter-spacing: -.022em; }
h2 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 .9rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .98rem; font-weight: 700; margin: 1.1rem 0 .5rem; }
p { margin: .5rem 0; }
a { color: var(--akzent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-text); }
strong { color: var(--text); }
small { font-size: .82rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--flaeche-2); padding: .12em .4em; border-radius: 5px; border: 1px solid var(--linie); color: var(--text); }
code.gross { font-size: 1.15rem; padding: .35em .7em; letter-spacing: .04em; }
img { max-width: 100%; height: auto; }
hr.trenner { border: 0; border-top: 1px solid var(--linie); margin: 1.2rem 0; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
main:focus, main:focus-visible { outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--akzent); color: var(--akzent-auf); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--akzent); color: var(--akzent-auf); padding: .6rem 1rem; z-index: 100; font-weight: 700; border-radius: 6px; }
.skip:focus { left: 1rem; top: 3rem; color: var(--akzent-auf); }

.test-hinweis {
  position: sticky; top: 0; z-index: 60;
  background: var(--flaeche-tief); color: var(--text); border-bottom: 1px solid var(--linie);
  font-weight: 650; font-size: .84rem; padding: .3rem 1rem; gap: .6rem;
  min-height: var(--hinweis-hoehe); display: flex; align-items: center; justify-content: center; text-align: center;
}
.test-hinweis::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--akzent); flex: none; box-shadow: 0 0 0 3px var(--akzent-flaeche); }

.marke { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.035em; }
.marke::before { content: ""; width: 1.6rem; height: 1.2rem; flex: none; background: url("../bilder/marke.svg") center / contain no-repeat; }
.marke:hover { color: var(--text); }
.marke-zahl { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--radius-klein);
  border: 1px solid var(--rand-eingabe); background: var(--flaeche-2); color: var(--text);
  font: inherit; font-weight: 650; font-size: .93rem; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; touch-action: manipulation;
}
.btn:hover { background: var(--linie); color: var(--text); border-color: var(--palette-stein-500); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-auf); }
.btn.primaer:hover { background: var(--akzent-tief); border-color: var(--akzent-tief); color: var(--akzent-auf); }
.btn.gefahr { color: var(--fehler); border-color: rgba(255, 113, 98, .45); background: transparent; }
.btn.gefahr:hover { background: var(--fehler-bg); color: var(--fehler); }
.btn.leise { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.leise:hover { background: var(--flaeche-2); color: var(--text); }
.btn.klein { min-height: 38px; padding: .3rem .8rem; font-size: .87rem; }
.inline-form { display: inline-flex; margin: 0; }

.fuss { margin-top: auto; border-top: 1px solid var(--linie); background: var(--flaeche-tief); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 1.3rem 1.25rem; display: flex; align-items: center; gap: .8rem 1.8rem; flex-wrap: wrap; font-size: .87rem; color: var(--leise); }
.fuss-links { display: flex; gap: 1.3rem; }
.fuss-links a { color: var(--text); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fuss-links a:hover { color: var(--akzent); text-decoration: underline; }
.fuss-copy { margin: 0; flex: 1; }
.credit { display: inline-flex; align-items: center; gap: .65rem; color: var(--leise); text-decoration: none; font-size: .8rem; border-radius: 6px; min-height: 44px; }
.credit-plakette { display: inline-flex; background: var(--palette-stein-50); border-radius: 6px; padding: .3rem .55rem; }
.credit img { height: 30px; width: auto; display: block; }
.credit:hover { color: var(--text); }
.credit:hover .credit-plakette { box-shadow: 0 0 0 2px var(--akzent); }

#kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: var(--hinweis-hoehe); z-index: 40; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .55rem 1.25rem; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "marke werkzeuge" "nav nav"; align-items: center; gap: .35rem 1.25rem; }
.kopf-innen > .marke { grid-area: marke; min-height: 44px; }
.gastnav { grid-area: werkzeuge; justify-self: end; display: flex; gap: .2rem; flex-wrap: wrap; }
.gastnav a { color: var(--text-2); text-decoration: none; padding: .5rem .8rem; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600; }
.gastnav a:hover { background: var(--flaeche-2); color: var(--text); }
.gastnav a.aktiv { background: var(--akzent-flaeche); color: var(--akzent-text); }
.gastnav a:last-child { background: var(--akzent); color: var(--akzent-auf); }
.gastnav a:last-child:hover { background: var(--akzent-tief); color: var(--akzent-auf); }
.hauptnav { grid-area: nav; display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.nav-gruppe { display: flex; flex-wrap: wrap; gap: .15rem; align-items: center; }
.nav-titel { margin: 0 .4rem 0 0; font-size: .76rem; font-weight: 700; color: var(--leise); }
.hauptnav a { padding: .5rem .75rem; border-radius: 6px; text-decoration: none; color: var(--text-2); min-height: 42px; display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; }
.hauptnav a:hover { background: var(--flaeche-2); color: var(--text); }
.hauptnav a.aktiv { background: var(--akzent-flaeche); color: var(--akzent-text); }
.kopf-rechts { grid-area: werkzeuge; justify-self: end; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.glocke { text-decoration: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: 44px; height: 44px; border-radius: 10px; color: var(--text); border: 1px solid var(--linie); background: var(--flaeche-2); padding: 0 .6rem; }
.glocke:hover, .glocke.aktiv { background: var(--akzent-flaeche); color: var(--akzent-text); border-color: var(--akzent-rand); }
.glocke-text { display: none; font-size: .9rem; font-weight: 650; }
.glocke-mobil { display: none; }
.zaehler { position: absolute; top: -6px; right: -6px; background: var(--akzent); color: var(--akzent-auf); font-size: .7rem; font-weight: 800; border-radius: 999px; min-width: 1.3rem; height: 1.3rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem; border: 2px solid var(--flaeche); }
.konto-link { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--text); padding: .3rem .6rem; border-radius: 8px; min-height: 44px; justify-content: center; line-height: 1.25; }
.konto-link:hover, .konto-link.aktiv { background: var(--flaeche-2); color: var(--text); }
.wer-name { font-weight: 700; font-size: .9rem; }
.wer-rollen { font-size: .76rem; color: var(--leise); }
.abmelden-form { margin: 0; }
.menue-knopf { display: none; grid-area: menue; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .85rem; background: var(--flaeche-2); color: var(--text); border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; }
.menue-strich { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menue-strich::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; border-top: 2px solid currentColor; }

main { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 1.75rem 1.25rem 3.5rem; flex: 1 0 auto; }
main > * + * { margin-top: 1.1rem; }

.seitenkopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seitenkopf-rechts { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.seitenkopf .statuszeile { margin: .35rem 0 0; }
.statuszeile { color: var(--leise); }
.hinweis-text { color: var(--leise); font-size: .9rem; max-width: 82ch; }
.leer { color: var(--leise); }
.warn-text { color: var(--warn); font-size: .88rem; font-weight: 600; }
.umbruch { white-space: pre-wrap; }
.warnung { background: var(--warn-bg); color: var(--text); padding: .7rem .9rem; border-radius: var(--radius-klein); border: 1px solid rgba(234, 179, 8, .4); border-left: 4px solid var(--warn); }
.erfolg { background: var(--ok-bg); color: var(--text); padding: .7rem .9rem; border-radius: var(--radius-klein); border: 1px solid rgba(34, 197, 94, .4); border-left: 4px solid var(--ok); }
.rechtliches { display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: .88rem; }
.rechtliches a { min-height: 44px; display: inline-flex; align-items: center; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--schatten); min-width: 0; }
.karte-gefahr { border-color: rgba(255, 113, 98, .35); }
.karte-hervor { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.kartenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 1rem; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 1rem; align-items: start; }
.zweispaltig > .karte { margin: 0; }
.leerkarte { text-align: center; padding: 2.4rem 1rem; border-style: dashed; box-shadow: none; }
.schmal { max-width: 780px; }
.schmal > * + * { margin-top: 1rem; }

.aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .85rem; }
.aktionen.eng { margin-top: 0; gap: .35rem; }

.formular { display: grid; gap: 1rem; margin: 0; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: .85rem 1.05rem 1.05rem; margin: 0; min-width: 0; background: var(--grund); }
legend { font-weight: 750; padding: 0 .4rem; font-size: .95rem; color: var(--text); }
.legende-zusatz { font-weight: 500; color: var(--leise); font-size: .85rem; }
.feld { display: flex; flex-direction: column; gap: .32rem; min-width: 0; }
.feld label { font-weight: 650; font-size: .88rem; color: var(--text); }
.feld small { color: var(--leise); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--flaeche-2);
  border: 1px solid var(--rand-eingabe); border-radius: var(--radius-klein); padding: .55rem .75rem; min-height: 44px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--platzhalter); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--palette-stein-400); }
textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
select { appearance: none; padding-right: 2.3rem; background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--flaeche-2); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: var(--fokus); }
input[type=file] { font: inherit; font-size: .9rem; color: var(--text-2); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 650; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--rand-eingabe); border-radius: var(--radius-klein); padding: .5rem .9rem; margin-right: .8rem; cursor: pointer; min-height: 40px; }
input[type=file]::file-selector-button:hover { border-color: var(--akzent); }
.passwort-zeile { display: flex; gap: .4rem; align-items: center; }
.passwort-zeile input { flex: 1; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .9rem 1rem; }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.raster + .feld, fieldset > .feld, fieldset > .raster + .hinweis-text { margin-top: .9rem; }
.abhaengig { margin-top: .75rem; }
.checkgruppe { display: flex; flex-wrap: wrap; gap: .45rem; }
.checkgruppe .check { border: 1px solid var(--rand-eingabe); border-radius: 999px; padding: 0 .95rem 0 .75rem; background: var(--flaeche-2); }
.checkgruppe .check:has(input:checked) { border-color: var(--akzent); background: var(--akzent-flaeche); color: var(--akzent-text); font-weight: 650; }
.check { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.check-text { align-items: flex-start; padding: .45rem 0; }
.check-text input { margin-top: .15rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--akzent); flex: none; }
.rollenwahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .6rem; background: transparent; }
.rollenwahl legend { margin-bottom: .45rem; }
.rolle-karte { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--rand-eingabe); border-radius: var(--radius); padding: .85rem; cursor: pointer; background: var(--flaeche-2); transition: border-color .15s ease, background-color .15s ease; min-height: 44px; }
.rolle-karte:hover { border-color: var(--palette-stein-400); }
.rolle-karte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-flaeche); box-shadow: 0 0 0 1px var(--akzent); }
.rolle-karte input { margin-top: .25rem; accent-color: var(--akzent); width: 1.1rem; height: 1.1rem; }
.rolle-karte span { display: flex; flex-direction: column; gap: .1rem; }
.rolle-karte small { color: var(--leise); }
.formfehler { background: var(--fehler-bg); color: var(--text); border: 1px solid rgba(255, 113, 98, .45); border-left: 4px solid var(--fehler); border-radius: var(--radius-klein); padding: .7rem .95rem; }
.formfehler strong { color: var(--fehler); }
.formfehler ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.zeile-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .8rem; }
.zeile-form .feld { flex: 1; min-width: min(100%, 200px); }
.zeile-form.eng { margin-top: 0; }
.zeile-form.eng .feld label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filterleiste { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; margin: 0; }
.filterleiste .feld { min-width: min(100%, 200px); flex: 1; }
.filter-knoepfe { display: flex; gap: .4rem; }
.treffer-anzahl { margin: 0 0 .65rem; font-weight: 650; color: var(--text); background: var(--flaeche-2); border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; }
.filter-inline { display: flex; gap: .5rem; align-items: flex-end; margin: 0; }
.upload-status { margin: .2rem 0 0; font-size: .85rem; color: var(--text-2); }
.upload-status.upload-fehler { color: var(--fehler); font-weight: 650; }
.gefahrenzone > p:first-child { margin-top: 0; }

.tabelle-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.karte .tabelle-wrap { background: var(--grund); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--flaeche-2); font-weight: 700; white-space: nowrap; color: var(--text-2); font-size: .8rem; position: sticky; top: 0; }
tbody tr:hover td, tbody tr:hover th { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody td:first-child { font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
td.zahl { text-align: right; white-space: nowrap; }
tr.gedimmt td { color: var(--leise); }
td .zeile-form select { min-height: 38px; padding: .3rem 2rem .3rem .55rem; min-width: 150px; font-size: .88rem; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-fehler { background: var(--fehler-bg); color: var(--fehler); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge-dunkel { background: var(--flaeche-tief); color: var(--text); border-color: var(--linie-stark); }

.score { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-balken { width: 72px; height: 8px; display: block; }
.score-grund { fill: var(--linie); }
.score-wert { fill: var(--akzent); }
.score b { font-weight: 800; min-width: 3.2em; }

.daten { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: .45rem 1rem; margin: 0; }
.daten dt { color: var(--leise); font-size: .86rem; font-weight: 600; }
.daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.begruendung { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; font-size: .88rem; }
.krit { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .4rem; align-items: start; padding: .4rem .55rem; border-radius: 6px; }
.krit-symbol { font-weight: 800; text-align: center; }
.krit-ja { background: var(--ok-bg); } .krit-ja .krit-symbol { color: var(--ok); }
.krit-teil { background: var(--warn-bg); } .krit-teil .krit-symbol { color: var(--warn); }
.krit-nein { background: var(--fehler-bg); } .krit-nein .krit-symbol { color: var(--fehler); }
.krit-offen { background: var(--neutral-bg); color: var(--leise); }
.krit-punkte { color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
details summary { cursor: pointer; color: var(--akzent); min-height: 36px; display: flex; align-items: center; font-weight: 650; font-size: .88rem; }

.objektbild { position: relative; aspect-ratio: 16 / 9; margin: -1.15rem -1.25rem 1rem; border-radius: var(--radius) var(--radius) 0 0; background: var(--flaeche-2); overflow: hidden; border-bottom: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; color: var(--leise); }
.objektbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.objektbild-leer { background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 15px); }
.galerie .objektbild, .karte > h2 + .objektbild { margin: 0; border-radius: var(--radius-klein); border: 1px solid var(--linie); }
.objektbild-grafik { width: 34%; max-width: 160px; height: auto; }
.objektbild-hinweis { position: absolute; left: .7rem; top: .6rem; font-size: .74rem; font-weight: 700; color: var(--text); background: rgba(12, 10, 9, .82); border: 1px solid var(--linie); border-radius: 999px; padding: .12rem .6rem; }
.treffer { display: flex; flex-direction: column; }
.treffer-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.treffer-kopf h2 { margin: 0; font-size: 1.05rem; }
.treffer-kopf h2 a { color: var(--text); text-decoration: none; }
.treffer-kopf h2 a:hover { color: var(--akzent); }
.treffer .daten { margin: .8rem 0; padding: .7rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.treffer .aktionen { margin-top: auto; padding-top: .8rem; }
.profilkarte h2 { margin-bottom: .25rem; }

.galerie { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; }
.galerie a { display: block; border-radius: var(--radius-klein); overflow: hidden; border: 1px solid var(--linie); aspect-ratio: 4 / 3; background: var(--flaeche-2); }
.galerie a:hover { border-color: var(--akzent); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bildliste { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.bildeintrag { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--grund); padding: .55rem; display: flex; flex-direction: column; gap: .5rem; }
.bildeintrag > a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-klein); overflow: hidden; background: var(--flaeche-2); }
.bildeintrag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bildeintrag-info { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 650; font-size: .9rem; flex-wrap: wrap; }
.bildeintrag-info small { color: var(--leise); font-weight: 500; }
.titelbild-vorschau { max-width: 320px; border-radius: var(--radius-klein); overflow: hidden; border: 1px solid var(--linie); margin-bottom: .8rem; }
.titelbild-vorschau img { display: block; width: 100%; height: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .8rem; }
.kpi { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column-reverse; justify-content: space-between; gap: .6rem; min-height: 7.4rem; position: relative; transition: border-color .15s ease; }
.kpi::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--akzent); opacity: 0; transition: opacity .15s ease; }
.kpi:hover { border-color: var(--akzent-rand); color: var(--text); }
.kpi:hover::after, .kpi:focus-visible::after { opacity: 1; }
.kpi-zahl { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-titel { color: var(--leise); font-size: .86rem; font-weight: 650; }

.tabs { display: flex; gap: .3rem; flex-wrap: wrap; background: var(--flaeche); padding: .3rem; border-radius: var(--radius); border: 1px solid var(--linie); width: fit-content; max-width: 100%; }
.tabs a { padding: .45rem .9rem; text-decoration: none; color: var(--text-2); border-radius: var(--radius-klein); min-height: 40px; display: inline-flex; align-items: center; font-weight: 650; font-size: .9rem; }
.tabs a:hover { color: var(--text); background: var(--flaeche-2); }
.tabs a.aktiv { background: var(--akzent-flaeche); color: var(--akzent-text); box-shadow: inset 0 0 0 1px var(--akzent-rand); }

.netz { display: grid; grid-template-columns: 1fr auto 1fr auto 1.4fr; gap: .75rem; align-items: center; }
.netz-spalte { display: flex; flex-direction: column; gap: .6rem; }
.netz-pfeil { font-size: 1.4rem; color: var(--akzent); text-align: center; }
.knoten { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .65rem .8rem; background: var(--grund); display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.knoten-objekt { border-color: var(--akzent); background: var(--akzent-flaeche); box-shadow: 0 0 0 1px var(--akzent); }
.knoten-rolle { font-size: .76rem; font-weight: 750; color: var(--leise); }
.knoten-zeile { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

.notizen { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.notizen li { background: var(--warn-bg); border: 1px solid rgba(234, 179, 8, .3); border-radius: var(--radius-klein); padding: .55rem .8rem; }
.notizen small { color: var(--leise); font-weight: 600; }
.notizen p { margin: .2rem 0 0; }
.verlauf { margin: 0; padding-left: 1.15rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.verlauf li::marker { color: var(--akzent); font-weight: 700; }
.nda { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .8rem .9rem; font-size: .9rem; max-height: 9rem; overflow-y: auto; color: var(--text-2); }

.meldungen:empty { display: none; }
.meldungen { display: grid; gap: .5rem; }
.meldung { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border-radius: var(--radius-klein); border: 1px solid; border-left-width: 4px; font-weight: 600; color: var(--text); }
.meldung-ok { background: var(--ok-bg); border-color: var(--ok); }
.meldung-info { background: var(--info-bg); border-color: var(--info); }
.meldung-fehler { background: var(--fehler-bg); border-color: var(--fehler); }
.meldung-zu { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: inherit; min-width: 44px; min-height: 44px; border-radius: 6px; }

.meldungsliste { list-style: none; padding: 0; margin: 0; display: grid; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; }
.meldungsliste li { padding: .8rem 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--linie); }
.meldungsliste li:last-child { border-bottom: 0; }
.meldungsliste li > div:first-child { display: flex; flex-direction: column; gap: .15rem; }
.meldungsliste li > div > small { color: var(--leise); font-variant-numeric: tabular-nums; }
.meldungsliste li.ungelesen { background: var(--akzent-flaeche); font-weight: 650; box-shadow: inset 3px 0 0 var(--akzent); }

.pruefliste { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pruefliste li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; padding: .5rem .65rem; border-radius: 6px; }
.pruefliste li > span:last-child { display: flex; flex-direction: column; gap: .15rem; }
.pruefliste small { color: var(--text-2); }
.pruef-symbol { font-weight: 800; text-align: center; }
.pruef-ok { background: var(--ok-bg); } .pruef-ok .pruef-symbol { color: var(--ok); }
.pruef-warn { background: var(--warn-bg); } .pruef-warn .pruef-symbol { color: var(--warn); }
.pruef-fehler { background: var(--fehler-bg); } .pruef-fehler .pruef-symbol { color: var(--fehler); }
.setup main { max-width: 860px; }

.landing main { max-width: none; padding: 0; }
.landing main > * + * { margin-top: 0; }
.landing main > .meldungen { max-width: var(--breite); margin: 1rem auto 0; padding: 0 1.25rem; }
.held { max-width: var(--breite); margin: 0 auto; padding: clamp(2.8rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.held h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; max-width: 16ch; }
.held-lead { font-size: 1.1rem; color: var(--text-2); max-width: 56ch; margin: 1.4rem 0 1.9rem; }
.held-aktionen { display: flex; gap: .7rem; flex-wrap: wrap; }

.vorschau { margin: 0; position: relative; }
.vorschau::before { content: ""; position: absolute; inset: 1.4rem -1rem -1rem 1.4rem; border-radius: 16px; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, .05) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, .05) 23px 24px); z-index: 0; }
.vorschau-beschriftung { position: relative; z-index: 1; font-size: .82rem; font-weight: 600; color: var(--leise); margin-bottom: .6rem; }
.vorschau-karte { position: relative; z-index: 1; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 14px; padding: 1.3rem 1.35rem 1.2rem; box-shadow: var(--schatten-hoch); }
.vorschau-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.vorschau-nr { margin: 0; font-size: .82rem; font-weight: 700; color: var(--akzent); font-variant-numeric: tabular-nums; }
.vorschau-titel { margin: .1rem 0 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.vorschau-score { font-size: 1rem; font-weight: 700; color: var(--akzent-text); background: var(--akzent-flaeche); border: 1px solid var(--akzent-rand); border-radius: 12px; padding: .35rem .7rem; line-height: 1; }
.vorschau-score span { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--akzent); }
.vorschau-daten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; margin: 1rem 0; padding: .8rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.vorschau-daten div { padding: .25rem 0; }
.vorschau-daten dt { font-size: .78rem; color: var(--leise); font-weight: 600; }
.vorschau-daten dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.vorschau-adresse { display: grid; gap: .35rem; }
.vorschau-adresse-titel { font-size: .78rem; color: var(--leise); font-weight: 600; }
.vorschau-adresse-info { font-size: .82rem; color: var(--text-2); }
.schwaerzung { display: block; height: 1.6rem; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--palette-schwarz) 0 6px, var(--palette-stein-600) 6px 8px); border: 1px solid var(--akzent); transform-origin: left center; animation: schwaerzen .9s cubic-bezier(.2, .7, .2, 1) .35s both; }
@keyframes schwaerzen { from { transform: scaleX(0); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }

.l-abschnitt { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--linie); }
.l-flaeche { background: var(--flaeche); }
.l-innen { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.l-abschnitt h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 1rem; max-width: 24ch; }
.l-text { color: var(--text-2); font-size: 1.04rem; max-width: 58ch; margin-bottom: 1.6rem; }
.zwei { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.l-tabelle th[scope="row"] { font-weight: 700; color: var(--text); background: transparent; font-size: .9rem; }

.rollen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.rolle { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; align-items: flex-start; }
.rolle h3 { font-size: 1.12rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
.schritte { margin: 0 0 1.3rem; padding-left: 1.2rem; color: var(--text-2); font-size: .94rem; display: grid; gap: .45rem; }
.schritte li::marker { color: var(--akzent); font-weight: 800; }
.rolle .btn { margin-top: auto; }

.pipeline { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: schritt; }
.pipeline li { position: relative; padding: 1.3rem 1rem 0 0; border-top: 2px solid var(--linie-stark); counter-increment: schritt; }
.pipeline li::before { content: counter(schritt); position: absolute; top: -.85rem; left: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--flaeche); border: 2px solid var(--akzent); color: var(--akzent); font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pipeline li:nth-child(-n+3) { border-top-color: var(--akzent); }
.pipeline .badge { margin-top: .5rem; }
.pipeline p { font-size: .9rem; color: var(--leise); margin: .6rem 0 0; }

.blog-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.blog-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-karte:hover { border-color: var(--linie-stark); }
.blog-bild { display: block; aspect-ratio: 16 / 9; background: var(--flaeche-2); overflow: hidden; }
.blog-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-text { padding: 1rem 1.15rem 1.2rem; }
.blog-text h3 { font-size: 1.1rem; margin: .2rem 0 .5rem; line-height: 1.3; }
.blog-text h3 a { color: var(--text); text-decoration: none; }
.blog-text h3 a:hover { color: var(--akzent); text-decoration: underline; }
.blog-text p { color: var(--text-2); font-size: .94rem; }
.blog-datum { margin: 0; font-size: .82rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.blog-mehr { margin-top: 1.4rem; }
.blaettern { display: flex; gap: .5rem; justify-content: space-between; margin-top: 1.4rem; }
.beitrag { max-width: 72ch; margin: 0 auto; }
.beitrag h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; margin: .3rem 0 1.4rem; }
.beitrag-bild { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); }
.beitrag-bild img { display: block; width: 100%; height: auto; }
.beitrag-text { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); }
.beitrag-text p { margin: 0 0 1.1rem; }

.fehlerseite main { max-width: 720px; }

@media (min-width: 1100px) {
  body.app:not([data-rolle="gast"]) { display: grid; grid-template-columns: var(--seitenleiste) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "hinweis hinweis" "skip skip" "kopf inhalt" "kopf fuss"; background: linear-gradient(90deg, var(--flaeche) var(--seitenleiste), var(--grund) var(--seitenleiste)); }
  body.app:not([data-rolle="gast"]) .test-hinweis { grid-area: hinweis; }
  body.app:not([data-rolle="gast"]) .skip { grid-area: skip; }
  body.app:not([data-rolle="gast"]) main { grid-area: inhalt; max-width: 1240px; padding: 2rem 2.25rem 3.5rem; margin: 0; }
  body.app:not([data-rolle="gast"]) .fuss { grid-area: fuss; }
  body.app:not([data-rolle="gast"]) .fuss-innen { padding-left: 2.25rem; padding-right: 2.25rem; max-width: none; }
  body.app:not([data-rolle="gast"]) #kopf { grid-area: kopf; height: calc(100dvh - var(--hinweis-hoehe)); overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--linie); align-self: start; }
  body.app:not([data-rolle="gast"]) .kopf-innen { display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; height: 100%; padding: 1.25rem .9rem 1rem; max-width: none; }
  body.app:not([data-rolle="gast"]) .kopf-innen > .marke { padding: .2rem .55rem .9rem; border-bottom: 1px solid var(--linie); }
  body.app:not([data-rolle="gast"]) .hauptnav { flex-direction: column; flex-wrap: nowrap; gap: 1rem; }
  body.app:not([data-rolle="gast"]) .nav-gruppe { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .1rem; }
  body.app:not([data-rolle="gast"]) .nav-titel { margin: 0 0 .25rem .7rem; }
  body.app:not([data-rolle="gast"]) .hauptnav a { padding: .5rem .7rem; position: relative; }
  body.app:not([data-rolle="gast"]) .hauptnav a.aktiv::before { content: ""; position: absolute; left: -.9rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); }
  body.app:not([data-rolle="gast"]) .kopf-rechts { margin-top: auto; flex-direction: column; align-items: stretch; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
  body.app:not([data-rolle="gast"]) .kopf-rechts .glocke { width: 100%; justify-content: flex-start; padding: 0 .7rem; }
  body.app:not([data-rolle="gast"]) .glocke-text { display: inline; }
  body.app:not([data-rolle="gast"]) .kopf-rechts .zaehler { position: static; margin-left: auto; border: 0; }
  body.app:not([data-rolle="gast"]) .abmelden-form .btn { width: 100%; }
}

@media (max-width: 1080px) {
  .held { grid-template-columns: 1fr; }
  .vorschau { max-width: 540px; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; }
  .rollen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .netz { grid-template-columns: 1fr; }
  .netz-pfeil { transform: rotate(90deg); }
  .zwei { grid-template-columns: 1fr; }
  .js .kopf-innen { grid-template-columns: 1fr auto auto; grid-template-areas: "marke glocke menue" "nav nav nav" "werkzeuge werkzeuge werkzeuge"; }
  body[data-rolle="gast"] .kopf-innen { grid-template-columns: 1fr; grid-template-areas: "marke" "werkzeuge"; }
  body[data-rolle="gast"] .gastnav { justify-self: start; }
  .js .glocke-mobil { display: inline-flex; grid-area: glocke; }
  .js .menue-knopf { display: inline-flex; }
  .js .hauptnav, .js .kopf-rechts { display: none; }
  .hauptnav { flex-direction: column; gap: .6rem; }
  .kopf-rechts { justify-self: stretch; }
  #kopf.menue-offen .hauptnav { display: flex; flex-direction: column; padding-top: .4rem; margin-top: .3rem; border-top: 1px solid var(--linie); }
  #kopf.menue-offen .kopf-rechts { display: flex; justify-self: stretch; padding-top: .6rem; border-top: 1px solid var(--linie); }
  #kopf.menue-offen .kopf-rechts .glocke { display: none; }
  #kopf.menue-offen .menue-knopf { background: var(--akzent-flaeche); border-color: var(--akzent); color: var(--akzent-text); }
  #kopf { position: static; }
}

@media (max-width: 720px) {
  .tabelle-wrap { overflow: visible; border: 0; background: transparent; }
  .karte .tabelle-wrap { background: transparent; }
  .tabelle-wrap table, .tabelle-wrap tbody, .tabelle-wrap tr, .tabelle-wrap td, .tabelle-wrap tbody th { display: block; width: 100%; }
  .tabelle-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle-wrap tr { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); margin-bottom: .6rem; padding: .35rem 0; }
  .karte .tabelle-wrap tr { background: var(--grund); }
  .tabelle-wrap tbody tr:hover td { background: transparent; }
  .tabelle-wrap td, .tabelle-wrap tbody th { display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr; gap: .75rem; border: 0; padding: .4rem .9rem; text-align: left; }
  .tabelle-wrap td::before { content: attr(data-label); color: var(--leise); font-size: .8rem; font-weight: 700; padding-top: .1rem; }
  .tabelle-wrap td:not([data-label]) { grid-template-columns: 1fr; }
  .tabelle-wrap td:not([data-label])::before { display: none; }
  .tabelle-wrap tbody th { grid-template-columns: 1fr; }
  .tabelle-wrap td.zahl { text-align: left; }
  td .zeile-form select { min-width: 0; }
  .rollen { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .test-hinweis { font-size: .76rem; }
  main { padding: 1.3rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
  .held { padding-left: 1rem; padding-right: 1rem; }
  .held h1 { font-size: 2.1rem; }
  .l-innen { padding: 0 1rem; }
  .daten { grid-template-columns: 1fr; gap: 0; }
  .daten dd { margin-bottom: .55rem; }
  .kartenraster { grid-template-columns: 1fr; }
  .filterleiste .feld { min-width: 100%; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .vorschau::before { display: none; }
  .fuss-innen { flex-direction: column; align-items: flex-start; }
  .meldungsliste li { flex-direction: column; align-items: flex-start; }
  .passwort-zeile { flex-wrap: wrap; }
  .karte { padding: 1rem; }
  .objektbild { margin: -1rem -1rem 1rem; }
  .gastnav a { padding: .5rem .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
