/* Portal-Designsystem — Salzer & Siegel Kundenportal.
   Eigenes, reduziertes System (Simple / Clean / Premium): gleiche Farbwelt wie das
   Standard-Repo-Boilerplate, aber unabhängig davon gepflegt — das Portal ist kein
   Kundenprojekt. Schriften werden im Layout per Google-Fonts-Link geladen. */

:root {
  --font-display: "Space Grotesk";
  --font-body: "IBM Plex Sans";
  --ink: #1b2530;
  --ink-soft: #5a6673;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --line: #e2ded4;
  /* Umriss von Bedienelementen: braucht >= 3:1 (WCAG SC 1.4.11). */
  --line-strong: #948b75;
  /* Dient als Textfarbe UND als Buttonflaeche mit weisser Schrift — je >= 4.5:1. */
  --accent: #96530b;
  --accent-soft: #fbeedc;
  --green: #4c7a5e;
  --green-soft: #e9f2ed;
  --danger: #b3432d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(27, 37, 48, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(27, 37, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display), "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

/* === Globaler Header === */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-family: var(--font-body), sans-serif;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-left: 10px;
  letter-spacing: 0.02em;
}

/* === Seiten-Container === */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 110px;
}

.page-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
}

.page-lead {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 58ch;
}

/* === Projektkopf + Tab-Navigation === */

.projekt-kopf {
  margin-bottom: 28px;
}

.projekt-kopf__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.projekt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.projekt-nav__link {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms ease;
}

.projekt-nav__link:hover {
  color: var(--ink);
}

.projekt-nav__link--aktiv {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* === Karten === */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 18px;
}

.card__titel {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* === Meilenstein-Timeline === */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  padding: 0 0 26px 46px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__punkt {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--ink-soft);
}

.timeline__item--erledigt .timeline__punkt {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.timeline__item--aktiv .timeline__punkt {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__titel {
  font-weight: 600;
  font-size: 0.98rem;
}

.timeline__item--aktiv .timeline__titel {
  color: var(--ink);
}

.timeline__text {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 2px;
  max-width: 52ch;
}

.timeline__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 8px;
}

/* === Aufgaben-Box („Was jetzt zu tun ist") === */

.aufgabe {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.aufgabe + .aufgabe {
  border-top: 1px dashed var(--line);
}

.aufgabe__text {
  flex: 1;
}

.aufgabe__titel {
  font-weight: 600;
  font-size: 0.98rem;
}

.aufgabe__hinweis {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 2px;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* === Formulare (Fragebogen) === */

.fieldset {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}

.fieldset legend {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}

.fieldset__beschreibung {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 4px 0 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field label.feld-fehlt {
  color: var(--danger);
}

.form-field .hinweis {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.checkbox-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkbox-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.checkbox-gruppe label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.form-meldung--fehler {
  color: var(--danger);
  font-size: 0.92rem;
}

.form-meldung--ok {
  color: var(--green);
  font-size: 0.92rem;
}

/* === Designsystem-Seite === */

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.swatch__farbe {
  height: 64px;
}

.swatch__info {
  padding: 10px 12px;
}

.swatch__name {
  font-weight: 600;
  font-size: 0.85rem;
}

.swatch__wert {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.swatch__rolle {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.schriftprobe {
  padding: 18px 0;
}

.schriftprobe + .schriftprobe {
  border-top: 1px dashed var(--line);
}

.schriftprobe__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.meta-zeile {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 26px;
}

/* === Leerer Zustand === */

.leer {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-soft);
}

.leer__titel {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* === Footer === */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .page {
    padding: 28px 18px 80px;
  }
  .card,
  .fieldset {
    padding: 20px 18px;
  }
  .aufgabe {
    flex-direction: column;
  }
  .aufgabe .btn {
    align-self: flex-start;
  }
}
