/*
 * Freiheitslabor landing pages - shared stylesheet
 * Single hand-written CSS file. No build chain, no external requests, no JS.
 * Icons are inline SVG (in markup) or SVG data URIs (here) - never web fonts.
 *
 * Visual execution informed by reference study (docs/design-references.md,
 * refs/ANALYSIS.md): two-column hero, calm section rhythm, solid discs/checks,
 * tangible deliverable mock, 3-card testimonials. Layout/polish patterns only.
 *
 * Colour rule is non-negotiable: orange (--cta) appears ONLY on CTA buttons.
 * Only two font weights are used: 400 (body) and 700 (headings/bold).
 */

:root {
  --blue: #16324F;
  --blue-700: #1E4568;      /* lighter blue for hairlines/panels on dark */
  --bg: #FAF8F5;
  --text: #1F2933;
  --cta: #C2410C;           /* CTA buttons ONLY */
  --cta-hover: #9A3412;
  --green: #2E7D4F;         /* checkmarks ONLY */
  --gray: #5B7185;
  --card: #FFFFFF;
  --line: #E5E0D8;
  --hero-sub: #D7E0EA;

  --amber: #E0A82E;         /* ampel dots on the Kontroll-Karte mock (decorative) */
  --red: #C0524A;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 50, 79, 0.06);
  --shadow: 0 1px 2px rgba(22, 50, 79, 0.05), 0 12px 28px rgba(22, 50, 79, 0.09);
  --shadow-lg: 0 2px 6px rgba(22, 50, 79, 0.08), 0 22px 55px rgba(22, 50, 79, 0.20);
  --maxw: 1080px;           /* outer container for two-column layouts */
  --textw: 720px;           /* single-column text measure */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: var(--textw); }

/* ---------- Typography ---------- */

h1, h2, h3 { color: var(--blue); font-weight: 700; }
h1 { font-size: clamp(2rem, 5.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0.3em 0 0.35em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.22; margin: 0 0 0.7em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.subline { font-size: 1.2rem; line-height: 1.55; margin: 0 0 0.2em; }

/* ---------- Section bands & rhythm ---------- */

main > section { padding: 56px 0; background: var(--bg); }
main > section:nth-of-type(even) { background: var(--card); }
@media (min-width: 760px) { main > section { padding: 88px 0; } }

/* Section-title accent bar (blue, never orange). Centred where the section is centred. */
.section-head { max-width: var(--textw); margin: 0 auto 2rem; }
.section-head h2 { margin-bottom: 0; }
.section-head h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
  background: var(--blue); margin-top: 16px;
}
.section-head.center { text-align: center; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head .lead { margin: 0.9em 0 0; color: var(--text); }

/* ---------- Hero band (two-column) ---------- */

.hero { background: var(--blue); color: #FFFFFF; padding: 44px 0 40px; }
@media (min-width: 760px) { .hero { padding: 72px 0 68px; } }

.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 52px; }
  .hero-copy { padding-top: 6px; }
}

.hero-copy h1 { color: #FFFFFF; margin-top: 0.5em; }
.hero-copy .subline { color: var(--hero-sub); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 9px; max-width: 100%;
  background: rgba(255, 255, 255, 0.12); color: #FFFFFF;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.4;
  padding: 10px 16px; border-radius: 12px;
}
.eyebrow-icon { flex: 0 0 auto; color: #FFFFFF; margin-top: 1px; }

/* Hero slim variant (danke / legal title bands) */
.hero--slim { padding: 44px 0; }
@media (min-width: 760px) { .hero--slim { padding: 56px 0; } }
.hero--slim h1 { color: #FFFFFF; margin: 0; }
.hero--slim .subline { color: var(--hero-sub); margin: 0.5em 0 0; max-width: var(--textw); }

/* ---------- Cards ---------- */

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

/* ---------- Form card ---------- */

.hero-form .form-card { box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 0.2em; }
.form-card .form-sub { color: var(--gray); font-size: 0.95rem; margin: 0 0 1.1em; }

.form-card fieldset { border: none; padding: 0; margin: 0 0 16px; }
.form-card legend {
  color: var(--blue); font-weight: 700; padding: 0; margin-bottom: 10px;
  font-size: 1rem;
}

/* Date choice: selectable rows (radio list, our locked structure - styled as cards) */
.date-list { display: grid; gap: 10px; }
.date-option {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; min-height: 56px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer; transition: border-color .12s, background-color .12s;
}
.date-option:hover { border-color: #C7D2DC; }
.date-option input[type="radio"] { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
/* Full date + time on one line, bold, no orphaned time line */
.date-option .dt { line-height: 1.35; font-weight: 700; color: var(--text); }
.date-option:has(input:checked) { border-color: var(--blue); background: #F4F7FA; }

.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.field input {
  width: 100%; font-size: 1.05rem; padding: 0 15px; height: 56px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text);
}
.field input::placeholder { color: #9AA7B4; }

.field input:focus, .date-option input:focus-visible, .cta:focus-visible,
.segment a:focus-visible, .faq summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* ---------- CTA (the ONLY orange element): solid block, white bold text ---------- */
.cta {
  display: block; width: 100%; min-height: 60px; margin-top: 4px;
  background: var(--cta); color: #FFFFFF; font-size: 1.12rem; font-weight: 700;
  border: none; border-radius: var(--radius-sm); padding: 16px 20px;
  cursor: pointer; text-align: center; transition: background-color .15s ease;
}
.cta:hover { background: var(--cta-hover); }
.microcopy { color: var(--gray); font-size: 0.9rem; text-align: center; margin: 13px 0 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line); padding: 20px 0 !important; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); }
.trust-item svg { flex: 0 0 auto; color: var(--blue); }

/* ---------- Hybrid-Hinweis box ---------- */
.hinweis {
  max-width: var(--textw); margin: 0 auto;
  background: #EEF2F6; border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.hinweis p { margin: 0; }

/* ---------- Checkmark list (solid green check circles) ---------- */
.checklist { list-style: none; margin: 0 auto; padding: 0; max-width: var(--textw); display: grid; gap: 20px; }
.checklist li { position: relative; padding-left: 46px; min-height: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2030'%3E%3Ccircle%20cx='15'%20cy='15'%20r='15'%20fill='%232E7D4F'/%3E%3Cpath%20d='M8.5%2015.4l4.2%204.2%209-9'%20fill='none'%20stroke='%23fff'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- 3-step plan (solid blue number discs, equal cards) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; text-align: center;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--blue); color: #FFFFFF; border-radius: 50%;
  font-weight: 700; font-size: 1.25rem;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; }

/* ---------- Sofortwert (text + Kontroll-Karte mock) ---------- */
.sofort-grid { display: grid; gap: 34px; align-items: center; max-width: 960px; margin: 0 auto; }
@media (min-width: 820px) { .sofort-grid { grid-template-columns: 1fr 340px; gap: 48px; } }

/* Kontroll-Karte: tangible tilted paper card */
.kk-wrap { display: flex; justify-content: center; perspective: 800px; }
.kk-card {
  width: 300px; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  transform: rotate(-3deg); overflow: hidden;
}
.kk-head {
  background: var(--blue); color: #FFFFFF; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
}
.kk-head .kk-title { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.kk-head .kk-sub { color: var(--hero-sub); font-size: 0.78rem; }
.kk-body { padding: 16px 18px 18px; }
.kk-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.kk-row + .kk-row { border-top: 1px solid #EEF0F2; }
.kk-dot { flex: 0 0 auto; width: 13px; height: 13px; border-radius: 50%; }
.kk-dot.g { background: var(--green); } .kk-dot.a { background: var(--amber); } .kk-dot.r { background: var(--red); }
.kk-line { height: 9px; border-radius: 5px; background: #E7EBEF; }

/* ---------- Presenter (story block with dignified initial avatar) ---------- */
.presenter { max-width: 860px; margin: 0 auto; display: flex; gap: 28px; align-items: center; }
.avatar {
  flex: 0 0 auto; width: 128px; height: 128px; border-radius: 50%;
  background: linear-gradient(160deg, #1E4568, #16324F);
  color: #FFFFFF; border: 4px solid #FFFFFF; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; line-height: 1;
}
.presenter .attribution { color: var(--blue); font-weight: 700; margin: 0.6em 0 0; }
.presenter p:first-of-type { margin-top: 0; }
@media (max-width: 620px) { .presenter { flex-direction: column; align-items: flex-start; } }

/* ---------- Testimonials (3 cards) ---------- */
.tcards { display: grid; gap: 20px; }
@media (min-width: 820px) { .tcards { grid-template-columns: repeat(3, 1fr); } }
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; display: flex; flex-direction: column;
}
.tcard .quote { margin: 0 0 18px; color: var(--text); }
.tcard .quote::before { content: "\201E"; display: block; color: var(--blue); font-size: 2.8rem; line-height: 0.7; margin-bottom: 8px; font-weight: 700; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .init {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, #1E4568, #16324F); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.tcard .who .name { font-weight: 700; color: var(--blue); }
.tplaceholder { max-width: var(--textw); margin: 0 auto 1.6rem; text-align: center; color: var(--gray); font-size: 0.9rem; }

/* ---------- FAQ (details/summary with rotating chevron) ---------- */
.faq { max-width: var(--textw); margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 2px 20px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--blue);
  padding: 18px 40px 18px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev {
  position: absolute; right: 0; top: 50%; margin-top: -9px;
  width: 18px; height: 18px; color: var(--blue);
  transition: transform .18s ease;
}
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; }

/* ---------- Danke: segment buttons ---------- */
.segment { display: grid; gap: 13px; margin: 20px auto 0; max-width: var(--textw); }
.segment a {
  display: flex; align-items: center; justify-content: center; min-height: 60px;
  text-align: center; text-decoration: none; color: var(--blue);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 14px 18px; font-weight: 700;
  transition: border-color .15s ease;
}
.segment a:hover { border-color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 8px; max-width: var(--textw); }
.legal h2 { margin-top: 1.7em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0.4em; }
.legal h3 { margin-top: 1.4em; }
.legal p { margin: 0 0 1em; }
.legal a { color: var(--blue); word-break: break-word; }
.legal ul { padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal .stand { color: var(--gray); font-size: 0.95rem; margin-top: 2.4em; }

/* ---------- Footer (dark blue band) ---------- */
footer { background: var(--blue); color: var(--hero-sub); padding: 34px 0; text-align: center; }
footer a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
footer .sep { margin: 0 12px; color: rgba(255, 255, 255, 0.4); }
