/* Build Web Portal: Farben und Schriften wie build-web.de, ausgelegt auf Laptop und PC (ab 1024 px). */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --grund: #F6F4EF; --weiss: #FFFFFF; --tinte: #15131C; --tinte-2: #4A4656; --grau: #8A8578; --linie: #ECE7DD;
  --orange: #FF6A3D; --orange-text: #C2410C; --orange-hell: #FFE4D9; --flieder: #B9A6FF; --flieder-hell: #EDE7FF;
  --mint: #9BE7C4; --mint-hell: #DDF6EA; --rot: #B42318; --rot-hell: #FDE8E7;
  --titel: "Bricolage Grotesque", Inter, sans-serif; --leiste: 248px; --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--tinte); background: var(--grund); }
a { color: var(--orange-text); }
h1, h2, h3 { font-family: var(--titel); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: 34px; letter-spacing: -0.035em; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
code { font-size: 13px; background: var(--linie); padding: 2px 6px; border-radius: 6px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Seitenleiste und Inhalt */
.mit-leiste { padding-left: var(--leiste); }
.leiste { position: fixed; inset: 0 auto 0 0; width: var(--leiste); background: var(--tinte); color: #F6F4EF; display: flex; flex-direction: column; padding: 22px 14px; gap: 22px; z-index: 10; }
.marke { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px; }
.marke span { font-family: var(--titel); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.marke b { color: #FF8A63; font-weight: 800; }
.marke small { display: block; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #CFC9BD; margin-top: 4px; }
.leiste-nav, .leiste-fuss { display: flex; flex-direction: column; gap: 4px; }
.leiste-fuss { margin-top: auto; }
.leiste a, .leiste button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 12px; color: #CFC9BD; text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.leiste a:hover, .leiste button:hover { background: #211E2A; color: #F6F4EF; }
.leiste a[aria-current="page"] { background: #2E2A38; color: #FFFFFF; box-shadow: inset 3px 0 0 var(--orange); }
.leiste-nutzer { font-size: 13px; color: #8A8578; padding: 6px 12px 0; margin: 0; }
.inhalt { max-width: 1240px; margin: 0 auto; padding: 36px 40px 80px; }
.ohne-leiste .inhalt { max-width: 520px; padding-top: 10vh; }

/* Seitenkopf */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.seitenkopf h1 { margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-text); margin: 0 0 6px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Karten */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; }
.karte.schmal { max-width: 460px; margin-left: auto; margin-right: auto; }
.karte.mittel { max-width: 640px; }
.karte h2 { margin-bottom: 14px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.raster-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kennzahl { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; }
.kennzahl strong { display: block; font-family: var(--titel); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.kennzahl span { font-size: 13px; color: var(--tinte-2); }

/* Formulare */
.formular { display: flex; flex-direction: column; gap: 14px; }
.formular-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.formular-raster .breit { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tinte-2); }
input, select, textarea { font: inherit; font-size: 15px; color: var(--tinte); background: var(--weiss); border: 1.5px solid var(--linie); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-hell); }
.haken { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--tinte); }
.haken input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--orange); }
fieldset { border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; margin: 0; }
legend { font-size: 13px; font-weight: 700; color: var(--tinte-2); padding: 0 6px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--tinte); color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.knopf:hover { background: #2E2A38; }
.knopf-orange { background: var(--orange); color: var(--tinte); }
.knopf-orange:hover { background: #FF8A63; }
.knopf-still { background: var(--weiss); color: var(--tinte); border: 1.5px solid var(--tinte); }
.knopf-still:hover { background: var(--grund); }
.knopf-gefahr { background: var(--rot-hell); color: var(--rot); }
.knopf-breit { width: 100%; }
.knopf-klein { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.textknopf { background: none; border: 0; color: var(--orange-text); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
form.inline { display: inline; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tinte-2); background: #FBFAF7; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 13px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: #FBFAF7; }
.tabelle a { font-weight: 600; color: var(--tinte); text-decoration: none; }
.tabelle a:hover { color: var(--orange-text); text-decoration: underline; }
.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nummer { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tinte-2); font-size: 14px; }
.leer { color: var(--tinte-2); padding: 18px 0; }

/* Status-Etiketten */
.etikett { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--linie); color: var(--tinte); white-space: nowrap; }
.etikett-orange { background: var(--orange-hell); color: var(--orange-text); }
.etikett-flieder { background: var(--flieder-hell); color: #4B3BA8; }
.etikett-mint { background: var(--mint-hell); color: #1E6B48; }
.etikett-dunkel { background: var(--tinte); color: #FFFFFF; }
.etikett-rot { background: var(--rot-hell); color: var(--rot); }

/* Übersicht: Spalten nach Status */
.spalten { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.spalte { background: #EFECE5; border-radius: var(--radius); padding: 10px 8px; min-height: 120px; }
.spalte h3 { font-size: 14px; display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.projektkarte { display: block; background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--tinte); }
.projektkarte:hover { border-color: var(--orange); }
.projektkarte strong { display: block; font-size: 14px; }
.projektkarte span { font-size: 12px; color: var(--tinte-2); }
.projektkarte .mini { font-size: 10px; padding: 1px 7px; margin-top: 6px; color: var(--orange-text); }

/* Zeitstrahl */
.zeitstrahl { list-style: none; margin: 0; padding: 0; }
.zeitstrahl li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--linie); margin-left: 6px; }
.zeitstrahl li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.zeitstrahl li.notiz::before { background: var(--flieder); }
.zeitstrahl .wann { font-size: 12px; color: var(--tinte-2); }

/* Meldungen, Kleinkram */
.meldung { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; }
.meldung-ok { background: var(--mint-hell); color: #1E6B48; }
.meldung-fehler { background: var(--rot-hell); color: var(--rot); }
.meldung-hinweis { background: var(--flieder-hell); color: #3A3450; }
.klein { font-size: 13px; }
.gedaempft { color: var(--tinte-2); }
.liste { list-style: none; margin: 0 0 14px; padding: 0; }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.daten { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.daten dt { font-size: 13px; font-weight: 600; color: var(--tinte-2); }
.daten dd { margin: 0; }
.trenner { display: flex; align-items: center; gap: 12px; color: var(--tinte-2); font-size: 13px; margin: 18px 0; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.suchfeld { max-width: 360px; }
.passkey-bereich[hidden] { display: none; }
.bw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mehrzeilig { white-space: pre-line; }
.abstand-oben { margin-top: 22px; }
.aktionen select { width: auto; min-width: 180px; }
.dateiwahl { width: auto; flex: 1; min-width: 240px; padding: 8px; }
.tabelle-kompakt td, .tabelle-kompakt th { padding: 9px 12px; }
.haken-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; padding-top: 4px; }
.formular-fuss { position: sticky; bottom: 0; background: var(--grund); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--linie); }
.unterlagen-knoepfe { gap: 8px; }
.balken { height: 6px; border-radius: 3px; background: var(--linie); margin-top: 10px; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--orange); }
.balken-0 { width: 0%; }
.balken-10 { width: 10%; }
.balken-20 { width: 20%; }
.balken-30 { width: 30%; }
.balken-40 { width: 40%; }
.balken-50 { width: 50%; }
.balken-60 { width: 60%; }
.balken-70 { width: 70%; }
.balken-80 { width: 80%; }
.balken-90 { width: 90%; }
.balken-100 { width: 100%; }
.mailtext { min-height: 300px; font-size: 14px; line-height: 1.55; }
.posten input { min-height: 38px; padding: 6px 10px; }
.posten td:nth-child(2) { width: 90px; }
.posten td:nth-child(3) { width: 140px; }
.notizformular { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--linie); }
.notizformular .aktionen { justify-content: space-between; }
/* Ablauf eines Projekts als Schrittleiste */
.ablauf { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; counter-reset: schritt; }
.ablauf li { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--tinte-2); padding: 9px 6px; border-radius: 10px; background: #EFECE5; }
.ablauf li.erledigt { background: var(--mint-hell); color: #1E6B48; }
.ablauf li.aktuell { background: var(--tinte); color: #FFFFFF; }
.meldung-text:empty { display: none; }

@media (max-width: 1023px) {
  .mit-leiste { padding-left: 0; }
  .leiste { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .leiste-nav, .leiste-fuss { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .leiste-nutzer { display: none; }
  .inhalt { padding: 24px 16px 60px; }
  .formular-raster, .raster-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
