/* BVVB Vorstandsportal V1 - editorial-minimalist Stil
 * Brand-Tokens aus Websites/bvvb/docs/FARB-INVENTAR.md (echtes BVVB-Petrol).
 * Design-Dials: VARIANCE 4, MOTION 2, DENSITY 3 (siehe DESIGN-PREFLIGHT.md).
 */

:root {
  --primary: #23718f;
  --primary-dark: #1d5a73;
  --accent: #00aabe;
  --accent-dark: #0094a5;

  --text: #2a2a3a;
  --text-muted: #5a6275;
  --text-quiet: #8a93a5;

  --border: #e6e6e6;
  --border-soft: #f0f1f3;

  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --canvas: #fbfbfa;

  --footer-bg: #1d2330;
  --footer-fg: rgba(255, 255, 255, 0.78);
  --footer-fg-quiet: rgba(255, 255, 255, 0.52);

  --pastel-amber-bg: #fbf3db;
  --pastel-amber-fg: #956400;

  --serif: "Newsreader", "Iowan Old Style", "Hoefler Text", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 32px;
  }
}

/* ===== Eyebrow ===== */

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 12px;
}

/* ===== Page-Nav (oberhalb vom Hero, dezent) ===== */

.page-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
  font-size: 13px;
}

.page-nav .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.page-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  letter-spacing: 0.02em;
}

.page-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.page-nav a.aktiv {
  color: var(--primary);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* ===== Header (Hero) ===== */

.page-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 48px;
}

@media (max-width: 600px) {
  .page-header {
    padding: 48px 0 32px;
  }
}

.page-header .brand {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 16px;
}

.page-header h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

@media (max-width: 600px) {
  .page-header h1 {
    font-size: 36px;
  }
}

.page-header .meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-header .meta .trenner {
  display: inline-block;
  padding: 0 8px;
  color: var(--text-quiet);
}

.page-header .accent-rule {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0;
  border: 0;
}

/* ===== Main ===== */

main {
  padding: 0;
}

main section {
  padding-block: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 600px) {
  main section {
    padding-block: 40px;
  }
}

main section:last-of-type {
  border-bottom: 0;
}

main section .container > *:first-child {
  margin-top: 0;
}

main section .container > *:last-child {
  margin-bottom: 0;
}

/* ===== Hinweis ===== */

section.hinweis {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  padding-block: 40px;
}

section.hinweis .container {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

@media (min-width: 720px) {
  section.hinweis .container {
    padding-left: 28px;
  }
}

section.hinweis .hinweis-body {
  max-width: 65ch;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ===== Begruessung ===== */

section.begruessung {
  background: var(--surface);
}

section.begruessung p {
  max-width: 65ch;
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

section.begruessung p:last-child {
  margin-bottom: 0;
}

/* ===== Zusammenfassung ===== */

section.zusammenfassung {
  background: var(--surface);
}

section.zusammenfassung h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

@media (max-width: 600px) {
  section.zusammenfassung h2 {
    font-size: 26px;
  }
}

section.zusammenfassung .block {
  padding-block: 24px;
  border-top: 1px solid var(--border-soft);
}

section.zusammenfassung .block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

section.zusammenfassung h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
}

section.zusammenfassung ul {
  margin: 0;
  padding-left: 20px;
  max-width: 70ch;
}

section.zusammenfassung li {
  margin: 6px 0;
  line-height: 1.6;
  color: var(--text);
}

section.zusammenfassung li::marker {
  color: var(--accent);
}

/* ===== Klammer (sechs Klärungs-Fragen) ===== */

section.klammer {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

section.klammer h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}

@media (max-width: 600px) {
  section.klammer h2 {
    font-size: 24px;
  }
}

section.klammer .anlass {
  max-width: 65ch;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

section.klammer .position {
  max-width: 65ch;
  margin: 0 0 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

section.klammer .fragen-eyebrow {
  display: block;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

section.klammer .fragen-liste {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  counter-reset: none;
}

section.klammer .frage {
  border-top: 1px solid var(--border-soft);
  padding-block: 22px;
}

section.klammer .frage:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

section.klammer .frage:last-of-type {
  border-bottom: 1px solid var(--border-soft);
}

section.klammer .frage-kopf {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

section.klammer .frage-nr {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
  min-width: 1.4em;
}

section.klammer .frage-titel {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

section.klammer .frage-text {
  margin: 0 0 6px;
  max-width: 65ch;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--primary);
}

@media (max-width: 600px) {
  section.klammer .frage-text {
    font-size: 17px;
  }
}

section.klammer .frage-kontext {
  margin: 0;
  max-width: 65ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

section.klammer .video-verortung {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

section.klammer .video-verortung h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
}

section.klammer .video-verortung p {
  margin: 0;
  max-width: 65ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

section.klammer .klammer-vorschlag {
  margin: 0;
  max-width: 65ch;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== Folge-Bausteine ===== */

section.bausteine {
  background: var(--surface-alt);
}

section.bausteine h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

@media (max-width: 600px) {
  section.bausteine h2 {
    font-size: 26px;
  }
}

section.bausteine .vorbemerkung {
  max-width: 65ch;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

section.bausteine .baustein-liste {
  margin-top: 24px;
}

.baustein {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.baustein:last-child {
  border-bottom: 1px solid var(--border);
}

.baustein .kopf {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.baustein .id {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}

.baustein .pfad {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.baustein .titel {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
  flex-basis: 100%;
}

.baustein .beschreibung {
  margin: 12px 0 16px;
  max-width: 65ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

.baustein .meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

@media (min-width: 720px) {
  .baustein .meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.baustein .meta-item {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.baustein .meta-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 4px;
}

section.bausteine .abschluss {
  margin-top: 32px;
  max-width: 65ch;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ===== Kontakt ===== */

section.kontakt {
  background: var(--surface);
  text-align: center;
}

section.kontakt p {
  margin: 6px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

section.kontakt strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Footer ===== */

.page-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 32px 0 36px;
  font-size: 13px;
  line-height: 1.55;
}

.page-footer p {
  margin: 0;
}

.page-footer .hinweis-klein {
  margin-top: 10px;
  font-size: 12px;
  color: var(--footer-fg-quiet);
  max-width: 70ch;
}

.page-footer .footer-actions {
  margin-top: 16px;
  font-size: 12.5px;
}

.page-footer .footer-actions a {
  color: var(--footer-fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.page-footer .footer-actions a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* ===== Login-Seite ===== */

body.login-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  padding: 40px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px 32px;
}

.login-card .brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 16px;
  display: block;
}

.login-card h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}

.login-card .lead {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 50ch;
}

.login-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.login-card label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.login-card input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 113, 143, 0.15);
}

.login-card .error {
  margin: -4px 0 12px;
  padding: 10px 12px;
  background: var(--pastel-amber-bg);
  color: var(--pastel-amber-fg);
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.5;
}

.login-card button[type="submit"] {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 16px;
  background: var(--text);
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.18s ease, transform 0.05s ease;
}

.login-card button[type="submit"]:hover {
  background: #1d2330;
}

.login-card button[type="submit"]:active {
  transform: scale(0.985);
}

.login-card .hinweis-klein {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-quiet);
  line-height: 1.55;
}
