/* ============================================================================
   sozialia – Corporate Theme (zentrales Stylesheet für ALLE Seiten)
   Landingpage, Umfrage, Danke-Seite, Datenschutz, Admin.
   Ruhiges, vertrauenswürdiges Design für den sozialen Sektor.
   ========================================================================== */
:root {
  --bg: #f6f5f1;            /* warmes Creme */
  --surface: #ffffff;
  --ink: #1d2a2c;           /* fast-schwarzes Petrol */
  --ink-soft: #4d5d5f;
  --primary: #2f6f6a;       /* gedämpftes Petrol-Grün */
  --primary-dark: #245450;
  --primary-tint: #e7efee;  /* heller Petrol-Hintergrund (Icons, Bänder) */
  --accent: #c47f4a;        /* warmer Akzent, sparsam */
  --line: #e4e1d8;
  --error: #b3402f;
  --ok: #2f6f6a;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
a { color: var(--primary); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(246,245,241,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-spacer { flex: 1; }
.site-nav a { color: var(--ink-soft); text-decoration: none; margin-left: 22px; font-size: 15px; }
.site-nav a:hover { color: var(--primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px;
  border: none; cursor: pointer; font-family: var(--sans);
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.light { background: #f3f1ea; color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---- Hero ---- */
.hero { padding: 76px 0 64px; }
.hero.center { text-align: center; }
.hero .eyebrow { color: var(--primary); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: 46px; margin: 14px 0 18px; max-width: 22ch; }
.hero.center h1 { margin-left: auto; margin-right: auto; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; }
.hero.center p.lead { margin-left: auto; margin-right: auto; }
.hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero.center .cta-row { justify-content: center; }
.hero .meta { color: var(--ink-soft); font-size: 15px; }

/* Dunkler Hero (Umfrage-/Danke-Kopf) */
.hero-dark { background: var(--ink); color: #fff; padding: 64px 0 72px; text-align: center; }
.hero-dark h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0 auto 14px; max-width: 24ch; }
.hero-dark p { color: rgba(255,255,255,.72); max-width: 680px; margin: 0 auto; font-size: 18px; }
.hero-dark .eyebrow { color: #9fc4c0; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }

/* ---- Faktenzeile ---- */
.factline { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factline .wrap { padding: 14px 24px; text-align: center; color: var(--ink-soft); font-size: 13px; letter-spacing: .02em; }

/* ---- Sections ---- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 30px; margin: 0 0 10px; }
.section-sub { color: var(--ink-soft); max-width: 65ch; margin: 0 0 36px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 40px; }
.col { border-top: 1px solid var(--ink); padding-top: 18px; }
.col .kicker { font-family: var(--serif); font-size: 15px; color: var(--accent); display: block; margin-bottom: 12px; letter-spacing: .06em; }
.col h3 { font-size: 19px; margin: 0 0 10px; }
.col p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---- Karten / Auswahl ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 6px 24px rgba(29,42,44,.05);
  display: flex; flex-direction: column;
}
.card .icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--primary-tint);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 26px;
}
.card h2 { margin: 0 0 10px; font-size: 22px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; flex: 1; }

/* ---- Wer dahinter steht (Transparenz) ---- */
.who { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.who-cta { margin-top: 24px; }

/* ---- Info-/Hinweisbox ---- */
.note { border-left: 2px solid var(--accent); padding: 2px 0 2px 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.info {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  padding: 20px 24px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 15px;
}
.info a { color: var(--primary); }

/* ---- Fakten-Liste ---- */
.facts { list-style: none; padding: 0; margin: 28px 0 0; max-width: 72ch; }
.facts li { position: relative; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.facts li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.facts li:last-child { border-bottom: none; }

/* ---- Abschluss-Band ---- */
.closer { background: var(--ink); }
.closer .wrap { padding: 76px 24px; text-align: center; }
.closer h2 { color: #fff; font-size: 30px; margin: 0 auto 14px; max-width: 26ch; }
.closer p { color: rgba(255,255,255,.65); margin: 0 auto 28px; max-width: 50ch; }

/* ============================================================================
   FORMULAR / UMFRAGE
   ========================================================================== */
.survey { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; position: relative; }
.survey > h1, .survey > h2 { margin-top: 0; }
.survey-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(29,42,44,.06); padding: 32px 36px; margin-bottom: 22px;
}
.intro-banner {
  background: var(--primary-tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.7;
}
.intro-banner strong { color: var(--ink); }

/* Fortschrittsbalken */
.progress { position: sticky; top: 68px; z-index: 5; background: var(--bg); padding: 12px 0; }
.progress-track { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); width: 0; transition: width .3s; }
.progress-label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* Frageblock */
.question { padding: 22px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: none; }
.question-label, .q-label { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-family: var(--sans); }
.question-hint, .q-hint { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 400; margin-bottom: 14px; }
.required-star, .req { color: var(--error); margin-left: 3px; }

/* Eingabefelder */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; font-family: var(--sans); color: var(--ink); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,111,106,.15); }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.char-count { text-align: right; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.hidden { display: none; }

/* Radio-/Checkbox-Optionen */
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; margin-bottom: 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--primary); background: var(--primary-tint); }
.option input { width: auto; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.option span { font-size: 16px; color: var(--ink); }
.option.checked { border-color: var(--primary); background: var(--primary-tint); }

/* Skala (1–5) */
.scale { display: flex; gap: 10px; flex-wrap: wrap; }
.scale label {
  flex: 1; min-width: 56px; text-align: center; padding: 14px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--ink-soft);
}
.scale label:hover { border-color: var(--primary); }
.scale input { display: none; }
.scale input:checked + span,
.scale label.checked { color: var(--primary); }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.error-msg { color: var(--error); font-size: 14px; margin-top: 8px; display: none; }
.question.invalid .error-msg { display: block; }

.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ============================================================================
   DANKE-SEITE
   ========================================================================== */
.thanks { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.thanks .check {
  width: 76px; height: 76px; border-radius: 50%; background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 38px; margin: 0 auto 24px;
}
.thanks h1 { font-size: 34px; margin: 0 0 14px; }
.thanks p { color: var(--ink-soft); font-size: 18px; margin: 0 auto 28px; max-width: 48ch; }

/* ============================================================================
   RECHTLICHE SEITEN
   ========================================================================== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-page h1 { font-size: 34px; margin-bottom: 6px; }
.legal-page h2 { font-size: 22px; margin-top: 34px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.back { display: inline-block; margin-bottom: 24px; color: var(--primary); text-decoration: none; }

/* ============================================================================
   ADMIN (intern)
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat .num { font-size: 28px; font-weight: 700; color: var(--primary); font-family: var(--serif); }
.stat .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.tabs { display: inline-flex; gap: 6px; background: var(--line); padding: 4px; border-radius: var(--radius-sm); }
.tab { padding: 9px 18px; border-radius: 8px; border: none; background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-soft); font-family: var(--sans); }
.tab.active { background: var(--primary); color: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--ink-soft); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c7d2d1; padding: 48px 0 30px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.site-footer a { color: #c7d2d1; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #31413f; margin-top: 24px; padding-top: 18px; color: #8ba09e; font-size: 13px; }
.foot-about { color: #9fb0ae; max-width: 34ch; }
.footer-slim { background: var(--ink); color: #8ba09e; text-align: center; padding: 24px; font-size: 14px; }
.footer-slim a { color: #c7d2d1; }
.placeholder { background: #fff6da; color: #7a5b00; padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero h1 { font-size: 33px; }
  .cols, .who, .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { display: none; }
  .survey-card { padding: 24px 20px; }
}

.logo .mark { color: var(--primary); font-weight: 700; }
