@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/schriften/montserrat-latin-wght-normal.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: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/schriften/montserrat-latin-ext-wght-normal.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 {
  --orange: #FF8400; --orange-dunkel: #e07400; --orange-hell: #fff3e6; --orange-rand: #ffd9b0;
  --schwarz: #111111; --text: #1d1d1f; --grau: #6b6b72; --grau-hell: #9a9aa1; --linie: #ececef;
  --hintergrund: #f6f6f8; --karte: #ffffff; --gruen: #16a34a; --gruen-hell: #e8f7ee; --rot: #dc2626; --rot-hell: #fdecec;
  --gelb: #f59e0b; --gelb-hell: #fff7e0; --blau: #2563eb; --blau-hell: #eaf1ff;
  --radius: 18px; --schatten: 0 1px 2px rgba(16,16,20,.04), 0 4px 16px rgba(16,16,20,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Montserrat', system-ui, sans-serif; color: var(--text); background: var(--hintergrund); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.versteckt { display: none !important; }

/* ---------- Kopfleiste ---------- */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 30; }
.kopf-innen { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.logo .zusatz { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--schwarz); border-left: 2px solid var(--schwarz); padding-left: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav button.navknopf { text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--grau); background: none; border: 0; cursor: pointer; display: flex; gap: 7px; align-items: center; }
.nav a:hover, .nav button.navknopf:hover { background: var(--hintergrund); color: var(--text); }
.nav a.aktiv { background: var(--orange-hell); color: var(--orange-dunkel); }
.menue { position: relative; }
.menue-liste { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); min-width: 220px; padding: 6px; }
.menue-liste a, .menue-liste button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-weight: 500; text-decoration: none; border: 0; background: none; cursor: pointer; }
.menue-liste a:hover, .menue-liste button:hover { background: var(--hintergrund); }
.menue-liste .kleine { font-size: 12px; color: var(--grau); padding: 8px 12px 4px; }
.burger { display: none; margin-left: auto; border: 0; background: none; font-size: 22px; cursor: pointer; }

.seite { max-width: 1240px; margin: 0 auto; padding: 24px 20px 80px; }

/* ---------- Account-Kopf ---------- */
.acc-kopf { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--schatten); }
.acc-kopf .wahl { margin-left: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--orange-hell); color: var(--orange-dunkel); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.avatar.gross { width: 64px; height: 64px; font-size: 22px; }
.avatar.klein { width: 32px; height: 32px; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unterzeile { color: var(--grau); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; }
.punkt.gruen { background: var(--gruen); } .punkt.grau { background: var(--grau-hell); } .punkt.rot { background: var(--rot); }

.reiter { display: flex; justify-content: center; margin: 18px 0 22px; }
.reiter-innen { display: inline-flex; background: #fff; border: 1px solid var(--linie); padding: 5px; border-radius: 14px; gap: 4px; box-shadow: var(--schatten); flex-wrap: wrap; }
.reiter a { padding: 8px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--grau); display: flex; align-items: center; gap: 8px; }
.reiter a.aktiv { background: var(--orange-hell); color: var(--orange-dunkel); }
.reiter a:hover:not(.aktiv) { background: var(--hintergrund); }

/* ---------- Abzeichen ---------- */
.abz { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--hintergrund); color: var(--grau); white-space: nowrap; }
.abz.orange { background: var(--orange-hell); color: var(--orange-dunkel); }
.abz.gruen { background: var(--gruen-hell); color: var(--gruen); }
.abz.rot { background: var(--rot-hell); color: var(--rot); }
.abz.gelb { background: var(--gelb-hell); color: #a16207; }
.abz.blau { background: var(--blau-hell); color: var(--blau); }

/* ---------- Raster & Karten ---------- */
.raster { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.spalte { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); min-width: 0; }
.karte.ohne-pad { padding: 0; }
.karte-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.karte-kopf h2, .karte-kopf h3 { font-size: 16px; font-weight: 700; }
.karte-kopf .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.etikett { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--grau); }
.grosszahl { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.mittelzahl { font-size: 22px; font-weight: 800; }
.plus { color: var(--gruen); font-weight: 700; }
.minus { color: var(--rot); font-weight: 700; }
.leise { color: var(--grau); }
.klein { font-size: 12px; }
.fett { font-weight: 700; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trenner { height: 1px; background: var(--linie); margin: 16px 0; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.zwischen { justify-content: space-between; }
.stapel { display: flex; flex-direction: column; gap: 10px; }
.titel-seite { font-size: 24px; font-weight: 800; margin-bottom: 4px; }

/* ---------- Knöpfe & Formulare ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--linie); background: #fff; padding: 9px 16px; border-radius: 11px; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s; }
.knopf:hover { background: var(--hintergrund); }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: var(--orange); border-color: var(--orange); color: #fff; }
.knopf.haupt:hover { background: var(--orange-dunkel); }
.knopf.dunkel { background: var(--schwarz); border-color: var(--schwarz); color: #fff; }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.gefahr { color: var(--rot); }
.knopf.klein { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.knopf.voll { width: 100%; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.wa { background: #25D366; border-color: #25D366; color: #fff; }
label.feld { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--grau); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; border: 1px solid #dedee3; background: #fff; border-radius: 11px; padding: 10px 12px; font-size: 14px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,132,0,.15); }
textarea { resize: vertical; min-height: 84px; }
.schalter { position: relative; width: 44px; height: 26px; flex: none; }
.schalter input { opacity: 0; width: 0; height: 0; }
.schalter span { position: absolute; inset: 0; background: #d9d9de; border-radius: 99px; cursor: pointer; transition: .2s; }
.schalter span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.schalter input:checked + span { background: var(--orange); }
.schalter input:checked + span::before { transform: translateX(18px); }
.segment { display: inline-flex; background: var(--hintergrund); border-radius: 11px; padding: 3px; gap: 2px; }
.segment button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--grau); cursor: pointer; }
.segment button.aktiv { background: #fff; color: var(--orange-dunkel); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Diagramme ---------- */
.diagramm { width: 100%; height: 240px; display: block; }
.diagramm text { font-family: 'Montserrat', sans-serif; font-size: 11px; fill: var(--grau-hell); }
.tooltip { position: fixed; pointer-events: none; background: var(--schwarz); color: #fff; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; z-index: 80; white-space: nowrap; transform: translate(-50%, -120%); }
.mini-diagramm { width: 100%; height: 70px; display: block; }

/* ---------- Fortschritt ---------- */
.balken { height: 8px; background: var(--hintergrund); border-radius: 99px; overflow: hidden; }
.balken > div { height: 100%; background: var(--orange); border-radius: 99px; transition: width .4s; }
.balken.gruen > div { background: var(--gruen); }
.balken.rot > div { background: var(--rot); }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { transform: rotate(-90deg); }
.ring .wert { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; }

/* ---------- Verlauf ---------- */
.verlauf { position: relative; padding-left: 26px; }
.verlauf::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--linie); }
.v-eintrag { position: relative; margin-bottom: 12px; }
.v-eintrag::before { content: ''; position: absolute; left: -24px; top: 18px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--orange); background: #fff; }
.v-karte { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 12px 16px; }
.v-datum { font-weight: 700; font-size: 12px; margin-right: 10px; color: var(--orange-dunkel); }
.v-text { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Tabellen & Listen ---------- */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: #fcfcfd; }
.tabellen-rahmen { overflow-x: auto; }
.listen-eintrag { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.listen-eintrag:last-child { border-bottom: 0; }
.leer { text-align: center; padding: 26px 16px; color: var(--grau); }
.leer .gross { font-size: 26px; margin-bottom: 6px; }
.ig-link { font-weight: 700; text-decoration: none; }
.ig-link:hover { color: var(--orange-dunkel); text-decoration: underline; }

/* ---------- Ansprechperson ---------- */
.person { display: flex; gap: 12px; align-items: center; }
.person-foto { width: 56px; height: 56px; border-radius: 50%; position: relative; flex: none; }
.person-foto img, .person-foto .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.person-foto .haken { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blau); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Arbeitsplatz ---------- */
.zaehler-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.zaehler { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 14px; }
.zaehler .oben { display: flex; justify-content: space-between; align-items: center; }
.zaehler .zahl { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.zaehler .zahl small { font-size: 12px; color: var(--grau); font-weight: 600; }
.zaehler .knoepfe { display: flex; gap: 6px; margin-top: 10px; }
.zaehler .knoepfe button { flex: 1; }
.profil-karte { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--linie); border-radius: 14px; background: #fff; flex-wrap: wrap; }
.profil-karte.angesprochen { background: #fffaf3; border-color: var(--orange-rand); }
.profil-karte .knoepfe { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.beitrag-karte { border: 1px solid var(--linie); border-radius: 14px; padding: 14px; background: #fff; display: grid; grid-template-columns: 90px 1fr; gap: 14px; }
.beitrag-bild { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--hintergrund); display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.beitrag-bild img { width: 100%; height: 100%; object-fit: cover; }
.beitrag-text { font-size: 13px; color: var(--grau); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Cockpit ---------- */
.cockpit-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.cockpit-karte { cursor: pointer; transition: transform .1s, box-shadow .15s; text-decoration: none; display: block; }
.cockpit-karte:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,16,20,.08); }
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kennzahl { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--schatten); }
.kennzahl .zahl { font-size: 26px; font-weight: 800; margin-top: 4px; }

/* ---------- Dialog & Meldungen ---------- */
.dialog-hg { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: grid; place-items: center; z-index: 60; padding: 20px; animation: ein .15s; }
.dialog { background: #fff; border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.dialog.breit { max-width: 760px; }
.dialog-kopf { padding: 20px 22px 0; display: flex; align-items: center; gap: 10px; }
.dialog-kopf h3 { font-size: 18px; font-weight: 800; }
.dialog-kopf button { margin-left: auto; border: 0; background: var(--hintergrund); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.dialog-inhalt { padding: 18px 22px 22px; }
.dialog-fuss { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.meldungen { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; }
.meldung { background: var(--schwarz); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: ein .2s; max-width: 90vw; }
.meldung.fehler { background: var(--rot); }
.meldung.ok { background: var(--gruen); }
.hinweis { padding: 12px 14px; border-radius: 12px; background: var(--orange-hell); color: #8a4a00; font-size: 13px; border: 1px solid var(--orange-rand); }
.hinweis.blau { background: var(--blau-hell); color: #1e40af; border-color: #cfe0ff; }
.hinweis.gruen { background: var(--gruen-hell); color: #166534; border-color: #c4ead2; }
.hinweis.grau { background: var(--hintergrund); color: var(--grau); border-color: var(--linie); }
.geheim { font-family: ui-monospace, Menlo, monospace; background: var(--hintergrund); padding: 10px 12px; border-radius: 10px; font-size: 15px; user-select: all; word-break: break-all; }
@keyframes ein { from { opacity: 0; transform: translateY(6px); } }
.laden { display: grid; place-items: center; padding: 80px 0; color: var(--grau); }
.kreisel { width: 28px; height: 28px; border: 3px solid var(--orange-hell); border-top-color: var(--orange); border-radius: 50%; animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ---------- Handy-Vorschau Willkommensnachricht ---------- */
.handy { width: 240px; border-radius: 30px; border: 8px solid #111; background: #fff; padding: 14px 12px 20px; margin: 0 auto; box-shadow: var(--schatten); }
.handy .uhr { font-size: 11px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.blase { background: #efeff2; border-radius: 16px; padding: 9px 12px; font-size: 12px; max-width: 90%; white-space: pre-wrap; }
.blase.ich { background: linear-gradient(135deg, #7b3fe4, #e1306c); color: #fff; margin-left: auto; }

/* ---------- Schritte ---------- */
.schritt { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.schritt:last-child { border-bottom: 0; }
.schritt .kreis { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; background: var(--hintergrund); color: var(--grau); }
.schritt.fertig .kreis { background: var(--gruen); color: #fff; }

/* ---------- Anmeldung ---------- */
.login-seite { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 5fr) 7fr; }
.login-links { display: flex; align-items: center; justify-content: center; padding: 40px; background: #f4f1ea; }
.login-box { width: 100%; max-width: 380px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.login-logo img { height: 34px; width: auto; }
.login-logo span { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #0f0e0c; border-left: 2px solid #0f0e0c; padding-left: 10px; }
.login-titel { font-size: 28px; font-weight: 800; margin-bottom: 6px; color: #0f0e0c; }
.login-link { color: var(--orange-dunkel); font-weight: 600; text-decoration: none; font-size: 12px; }
.login-link:hover { text-decoration: underline; }
.knopf.gross { padding: 13px; font-size: 14px; }
.fehlerbox { background: var(--rot-hell); color: var(--rot); border-color: #f7caca; }
.login-rechts { position: relative; background: #0f0e0c; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; overflow: hidden; }
.login-bild { position: absolute; inset: 0; background: url('/marke/anmeldung-kamera.jpg') center / cover no-repeat; opacity: .72; }
.login-bild.portraet { background-image: url('/marke/anmeldung-portraet.jpg'); }
.login-rechts::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,12,0) 35%, rgba(15,14,12,.92) 100%); }
.login-text { position: relative; z-index: 1; }
.login-zeichen { width: 46px; height: 46px; margin-bottom: 18px; }
.login-rechts h2 { font-size: 40px; font-weight: 800; line-height: 1.1; max-width: 520px; }

@media (max-width: 1000px) {
  .raster { grid-template-columns: 1fr; }
  .zaehler-raster { grid-template-columns: repeat(3, 1fr); }
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .login-seite { grid-template-columns: 1fr; } .login-rechts { display: none; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--linie); }
  .nav.offen { display: flex; }
  .zwei, .drei, .vier { grid-template-columns: 1fr; }
  .zaehler-raster { grid-template-columns: repeat(2, 1fr); }
  .acc-kopf { flex-wrap: wrap; }
  .beitrag-karte { grid-template-columns: 1fr; }
  .seite { padding: 16px 12px 80px; }
}

/* KI-Punkte */
.punkte { min-width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--hintergrund); color: var(--grau); flex: none; }
.punkte.mittel { background: var(--orange-hell); color: var(--orange-dunkel); }
.punkte.hoch { background: var(--gruen-hell); color: var(--gruen); }

.tabelle tr.gedimmt td { opacity: .45; }
.tabelle tr.gedimmt td:last-child { opacity: .8; }
