/* Weboberfläche des Kerns im Design System „M&C AG“: Inter, ruhig, hell, eckige Flächen, runde Bedienelemente, keine Schatten. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/statisch/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/statisch/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --rot: #c41a1b;
  --rot-dunkel: #a91516;
  --grau: #7d766a;
  --text: #333333;
  --beige: #e3dfd6;
  --flaeche-hell: #f4f2f0;
  --weiss: #ffffff;
  --linie: #e3dfd6;
  --feldrahmen: #948d82;
  --erfolg: #4f7a3f;
  --radius-rund: 20px;
  --font-sans: Inter, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--text); font: 400 17px/28px var(--font-sans); }
a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-dunkel); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 12px; }
.grau { color: var(--grau); }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

.breite { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .breite { padding: 0 16px; } }

/* Kopf */
.testhinweis { background: var(--flaeche-hell); color: var(--grau); font-size: 13px; line-height: 20px; font-weight: 700; text-align: center; padding: 6px 16px; letter-spacing: .02em; }
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; gap: 28px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.kopf__logo img { display: block; height: 44px; width: auto; }
.navigation { display: flex; gap: 22px; flex-wrap: wrap; }
.navigation a { color: var(--grau); font-size: 15px; line-height: 20px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.navigation a:hover { color: var(--text); }
.navigation a[aria-current="page"] { color: var(--text); border-bottom-color: var(--rot); }
.kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.kopf__suche .mc-field { min-width: 240px; }
.textknopf { background: none; border: 0; padding: 0; font: 700 14px/20px var(--font-sans); color: var(--rot); cursor: pointer; }
.textknopf:hover { color: var(--rot-dunkel); }

/* Bänder */
.band { padding: 44px 0; }
.band--beige { background: var(--beige); }
.band--hell { background: var(--flaeche-hell); }
.band + .band:not(.band--beige):not(.band--hell) { border-top: 1px solid var(--linie); }
.band__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.band__kopf p { margin: 6px 0 0; color: var(--grau); font-size: 15px; line-height: 22px; max-width: 70ch; }

.mc-dachzeile { font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .04em; color: var(--grau); margin: 0 0 8px; }
.seitentitel { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.abschnitt { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.teaser { font-size: 19px; line-height: 26px; font-weight: 700; }
.mc-und { font-weight: 700; color: var(--rot); }

/* Buttons und Felder */
.mc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; font: 400 15px/20px var(--font-sans); border-radius: var(--radius-rund); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.mc-btn--primary { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.mc-btn--primary:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.mc-btn--secondary { background: var(--weiss); border-color: var(--text); color: var(--text); }
.mc-btn--secondary:hover { background: var(--text); color: var(--weiss); }
.mc-btn[disabled] { opacity: .5; cursor: progress; }
.mc-link { font-weight: 700; color: var(--rot); }
.mc-link::after { content: " →"; }
.mc-field { min-height: 44px; padding: 0 18px; font: 400 16px/22px var(--font-sans); color: var(--text); background: var(--weiss); border: 1px solid var(--feldrahmen); border-radius: var(--radius-rund); }
.mc-field::placeholder { color: var(--grau); opacity: 1; }
select.mc-field { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%), linear-gradient(135deg, var(--grau) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.mc-field { min-height: 120px; padding: 12px 18px; border-radius: 12px; width: 100%; resize: vertical; }
.formular { display: grid; gap: 12px; }
.formular__zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Kennzahlen */
.mc-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin-top: 28px; }
.mc-kennzahl { border-top: 2px solid var(--text); padding-top: 14px; color: inherit; }
a.mc-kennzahl:hover .mc-kennzahl__text { color: var(--rot); }
.mc-kennzahl__wert { display: block; font-size: clamp(36px, 4.5vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mc-kennzahl__text { display: block; margin-top: 10px; font-size: 15px; line-height: 22px; color: var(--text); }

/* Status-Marken */
.mc-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border: 1.5px solid currentColor; border-radius: var(--radius-rund); font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.mc-status--neu { color: var(--rot); }
.mc-status--gespraech { color: var(--grau); }
.mc-status--vermittelt { color: var(--erfolg); }
.marken { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Meldungen */
.mc-meldung { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--erfolg); background: var(--weiss); font-size: 15px; line-height: 22px; }
.mc-meldung svg { flex: none; color: var(--erfolg); }
.mc-meldung--neutral { border-color: var(--feldrahmen); }
.mc-meldung--neutral svg { color: var(--grau); }
.mc-meldung--fehler { border-color: var(--rot-dunkel); }
.hinweis { border-left: 4px solid var(--rot); background: var(--flaeche-hell); padding: 12px 16px; font-size: 15px; line-height: 22px; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; background: var(--weiss); border: 1px solid var(--linie); }
table.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.tabelle th { text-align: left; font-size: 13px; font-weight: 700; color: var(--grau); letter-spacing: .02em; padding: 10px 14px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle td.name a { font-weight: 700; color: var(--text); }
.tabelle tr:hover td.name a { color: var(--rot); }
.tabelle ul { margin: 0; padding-left: 18px; }

/* Vorschläge */
.vorschlaege { display: grid; gap: 16px; }
.vorschlag { background: var(--weiss); border: 1px solid var(--linie); padding: 20px 22px; display: grid; gap: 12px; }
.vorschlag__kopf { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.vorschlag__kopf a { font-weight: 700; color: var(--text); font-size: 17px; }
.vorschlag__kopf a:hover { color: var(--rot); }
.vorschlag__text { margin: 0; padding-left: 14px; border-left: 2px solid var(--linie); color: var(--text); font-size: 15px; line-height: 24px; }
.vorschlag__fakten { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.vorschlag__fakten li span { color: var(--grau); }
.vorschlag__aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

/* Liste und Karten */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--weiss); border: 1px solid var(--linie); }
.liste li { padding: 14px 18px; border-bottom: 1px solid var(--linie); display: grid; gap: 2px; font-size: 15px; line-height: 22px; }
.liste li:last-child { border-bottom: 0; }
.liste__titel { font-weight: 700; color: var(--text); }
a.liste__titel:hover { color: var(--rot); }
.ueberfaellig { color: var(--rot-dunkel); font-weight: 700; }

.raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .raster { grid-template-columns: minmax(0, 1fr); } }
.spalte { display: grid; gap: 32px; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); padding: 18px 20px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.kasten h3 { font-size: 13px; line-height: 20px; letter-spacing: .04em; color: var(--grau); }
.abschnittskopf { font-size: 19px; line-height: 26px; font-weight: 700; margin-bottom: 12px; }

.verlauf { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--linie); }
.verlauf li { position: relative; padding: 0 0 18px 20px; font-size: 15px; line-height: 23px; }
.verlauf li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; background: var(--weiss); border: 2px solid var(--grau); border-radius: 50%; }
.verlauf li:first-child::before { border-color: var(--rot); }
.verlauf__kopf { font-size: 13px; color: var(--grau); font-weight: 700; }

/* Vorgänge als Spalten je Phase */
.tafel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.tafel__spalte { display: grid; gap: 10px; align-content: start; }
.tafel__kopf { font-size: 13px; font-weight: 700; color: var(--grau); border-top: 2px solid var(--text); padding-top: 8px; display: flex; justify-content: space-between; }
.mc-karte { display: grid; gap: 4px; background: var(--weiss); border: 1px solid var(--linie); padding: 14px 16px; color: var(--text); font-size: 14px; line-height: 20px; }
.mc-karte__titel { font-size: 15px; line-height: 21px; font-weight: 700; }
.mc-karte:hover .mc-karte__titel { color: var(--rot); }
.mc-karte__nr { font-size: 12px; color: var(--grau); font-variant-numeric: tabular-nums; }

/* Ablauf der Phasen */
.mc-ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; counter-reset: schritt; }
.mc-ablauf > li { counter-increment: schritt; border-top: 2px solid var(--linie); padding: 14px 0 20px; display: grid; gap: 6px; align-content: start; font-size: 14px; line-height: 21px; color: var(--grau); }
.mc-ablauf > li::before { content: counter(schritt, decimal-leading-zero); font-size: 28px; line-height: 1; font-weight: 700; color: var(--grau); font-variant-numeric: tabular-nums; }
.mc-ablauf > li > b { font-size: 16px; color: var(--text); hyphens: auto; overflow-wrap: anywhere; }
.mc-ablauf > li.ist-erledigt { border-top-color: var(--text); }
.mc-ablauf > li.ist-aktuell { border-top-color: var(--rot); color: var(--text); }
.mc-ablauf > li.ist-aktuell::before { color: var(--rot); }
.mc-ablauf ul { margin: 0; padding-left: 16px; display: block; }
.mc-ablauf ul li { border: 0; padding: 0; display: list-item; color: inherit; }

/* Karte */
.landkarte { height: min(70vh, 640px); border: 1px solid var(--linie); }
.legende { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 12px; }
.legende span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid; }
.legende .l-abgabe::before { background: var(--rot); border-color: var(--rot); }
.legende .l-geplant::before { background: var(--text); border-color: var(--text); }
.legende .l-signal::before { background: var(--weiss); border-color: var(--grau); }

/* Anmeldung */
.anmeldung { min-height: calc(100vh - 32px); display: grid; place-items: center; padding: 40px 16px; background: var(--flaeche-hell); }
.anmeldung__kasten { background: var(--weiss); border: 1px solid var(--linie); padding: 44px; max-width: 560px; width: 100%; display: grid; gap: 18px; }
.anmeldung__kasten img { height: 52px; width: auto; }

.fuss { background: var(--beige); padding: 22px 0; font-size: 13px; line-height: 20px; color: var(--text); margin-top: 0; }
.leer { color: var(--grau); font-size: 15px; }

.filtermarke { text-decoration: none; }
.filtermarke:hover { color: var(--rot); }
.filtermarke span { font-size: 15px; line-height: 1; }

/* Ansprechpartner (Design System M&C AG) */
.mc-ansprech { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; color: var(--text); }
.mc-ansprech__bild { width: 112px; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: var(--flaeche-hell); }
.mc-ansprech__platzhalter { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--grau); letter-spacing: .02em; }
.mc-ansprech__fach { font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .04em; color: var(--grau); }
.mc-ansprech__name { font-size: 22px; line-height: 28px; font-weight: 700; margin: 2px 0; }
.mc-ansprech__funktion { font-size: 15px; line-height: 22px; }
.mc-ansprech__tel { font-size: 17px; line-height: 26px; font-variant-numeric: tabular-nums; margin: 8px 0 4px; display: block; color: var(--text); text-decoration: none; }
.portal-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: start; }
@media (max-width: 860px) { .portal-kopf { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Dokumentenräume */
.raum { border: 1px solid var(--linie); background: var(--weiss); padding: 20px; margin-bottom: 16px; }
.raum__kopf { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.raum__steuerung { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }

/* Prod-Weboberfläche */
.prod-nav { display: flex; gap: 24px; font-weight: 700; flex-wrap: wrap; }
.prod-inhalt { padding-top: 32px; padding-bottom: 48px; }
.prod-inhalt .seitentitel { margin-bottom: 16px; }
.prod-suche { display: flex; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.prod-suche input { flex: 1 1 260px; font: inherit; padding: 8px 16px; border: 1px solid var(--feldrahmen); border-radius: var(--radius-rund); }
.prod-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prod-tabelle th, .prod-tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.prod-tabelle th { color: var(--grau); font-weight: 700; }
@media (max-width: 700px) { .prod-tabelle th:nth-child(n+4), .prod-tabelle td:nth-child(n+4) { display: none; } }
.prod-kopieren { font: inherit; font-variant-numeric: tabular-nums; background: var(--flaeche-hell); border: 0; border-radius: var(--radius-rund); padding: 2px 10px; cursor: pointer; color: var(--text); }
.prod-sperre { color: var(--rot); font-size: 13px; font-weight: 700; }
.prod-text { white-space: pre-wrap; font: inherit; background: var(--flaeche-hell); padding: 16px; margin: 0 0 16px; }
.prod-eingabe { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--feldrahmen); }
.prod-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.prod-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin: 0 0 16px; }
.prod-feld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 15px; }
.prod-feld span { color: var(--grau); font-weight: 700; font-size: 13px; }
.prod-feld input, .prod-feld select { font: inherit; padding: 6px 10px; border: 1px solid var(--feldrahmen); }
