:root {
  --hintergrund: #f5f5f7;
  --flaeche: #ffffff;
  --text: #1d1d1f;
  --leise: #6e6e73;
  --linie: #d2d2d7;
  --akzent: #1f5f8b;
  --akzent-dunkel: #174a6c;
  --fehler: #b3261e;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--hintergrund);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }

.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem; background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.marke { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.marke span { color: var(--akzent); }
.menue { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; flex-wrap: wrap; }
.menue a, .link { color: var(--akzent); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.menue a:hover, .link:hover { text-decoration: underline; }
.menue form { margin: 0; }
.wer { color: var(--leise); }

.inhalt { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem; }
h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.25rem; }

.karte {
  background: var(--flaeche); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.05);
}
.schmal { max-width: 420px; margin: 2rem auto; }

.raster { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.projekt { display: flex; flex-direction: column; gap: 0.35rem; }
.projekt .knopf { margin-top: auto; align-self: flex-start; }

.leise { color: var(--leise); margin: 0 0 0.75rem; }
.klein { font-size: 0.85rem; color: var(--leise); margin: 0 0 1rem; }
.marke-inaktiv { display: inline-block; font-size: 0.75rem; background: #fff3cd; color: #7a5b00; padding: 0.15rem 0.5rem; border-radius: 6px; margin: 0 0 0.75rem; }

form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
form input[type="text"], form input[type="password"] {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.85rem;
  font: inherit; font-weight: 400; border: 1px solid var(--linie); border-radius: 10px; background: #fff;
}
form input:focus { outline: 3px solid rgba(31,95,139,.25); border-color: var(--akzent); }

.knopf {
  display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 980px;
  padding: 0.65rem 1.3rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--akzent-dunkel); }
form .knopf { width: 100%; margin-top: 0.5rem; }

.hinweis { padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.9rem; }
.fehler { background: #fdecea; color: var(--fehler); }

.fuss { text-align: center; color: var(--leise); font-size: 0.8rem; padding: 1.5rem; }

/* --- Erweiterungen: Projektseite, Buchung, CRM, Cockpit ------------------ */
.knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.knopf.zweit { background: transparent; color: var(--akzent); box-shadow: inset 0 0 0 1.5px var(--akzent); }
.knopf.zweit:hover { background: rgba(31,95,139,.08); }
.mittel { max-width: 680px; }
.abstand { margin-top: 1.5rem; }
.abschnitt { margin: 2rem 0 .75rem; font-size: 1.2rem; }
.erfolg, .success { background: #e6f4ea; color: #1e6b34; }
.warning { background: #fff3cd; color: #7a5b00; }
.error { background: #fdecea; color: var(--fehler); }
.inhalt > .hinweis { margin: 0 0 1rem; }

form textarea, form select, form input[type="date"], form input[type="email"], form input[type="file"] {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .85rem; font: inherit; font-weight: 400;
  border: 1px solid var(--linie); border-radius: 10px; background: #fff;
}
.formular .knopf { width: auto; }
.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.haken input { margin-top: .25rem; }

.auswahl { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wahl { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; margin: 0; padding: 1.25rem; border: 2px solid transparent; }
.wahl:has(input:checked) { border-color: var(--akzent); }
.wahl input { margin-top: .3rem; }
.wahl-inhalt { display: flex; flex-direction: column; gap: .2rem; }
.wahl-name { font-size: 1.05rem; }
.wahl-preis { color: var(--akzent); font-weight: 600; }
.punkte { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }

.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
.tabelle th, .tabelle td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); background: #fafafa; }
.tabelle tr:last-child td { border-bottom: 0; }
.antwort { margin: .4rem 0 0; padding: .5rem .7rem; background: #f0f5f9; border-radius: 8px; color: var(--text); }

.status { display: inline-block; font-size: .78rem; padding: .15rem .55rem; border-radius: 6px; background: #eef1f4; color: #333; white-space: nowrap; }
.s-neu, .s-angefragt { background: #e3effa; color: #174a6c; }
.s-bestaetigt, .s-gewonnen, .s-erledigt { background: #e6f4ea; color: #1e6b34; }
.s-abgelehnt, .s-verloren, .s-storniert { background: #fdecea; color: var(--fehler); }

.kennzahlen { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kennzahlen li { background: var(--flaeche); border-radius: var(--radius); padding: 1rem 1.2rem; }
.kennzahlen strong { display: block; font-size: 1.7rem; letter-spacing: -.02em; }
.kennzahlen a { color: inherit; text-decoration: none; }
.kennzahlen span { font-size: .85rem; color: var(--leise); }
.zweispaltig { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.leer { color: var(--leise); font-size: .9rem; }
@media (max-width: 640px) { .zweispaltig { grid-template-columns: 1fr; } .tabelle { font-size: .85rem; } }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.kopfzeile h1 { margin: 0; }
code { background: #eef1f4; padding: .05rem .35rem; border-radius: 5px; font-size: .9em; }
.inhalt a:not(.knopf) { color: var(--akzent); }
.agb { margin: 0 0 1rem; } .agb summary { cursor: pointer; color: var(--akzent); font-size: .9rem; }
.agb div { max-height: 260px; overflow: auto; background: #fafafa; padding: .5rem 1rem; border-radius: 8px; margin-top: .5rem; }
.login-agb { margin: 2rem auto; }
.agb-block { border: 1px solid var(--linie); border-radius: 10px; padding: .75rem 1rem .25rem; margin: 0 0 1rem; }
.agb-block legend { font-size: .85rem; font-weight: 600; color: var(--leise); padding: 0 .3rem; }
.agb-block .haken { font-size: .9rem; line-height: 1.4; margin-bottom: .75rem; }
.agb-text { font-size: .95rem; line-height: 1.55; }
