/* ============================================================
   VERSICHERUNGSWAHRHEIT.DE – zentrales Stylesheet
   Keine externen Fonts, keine Frameworks.
   ============================================================ */

:root {
  --navy: #1c3562;          /* verbindende Grundfarbe */
  --navy-deep: #142849;
  --ink: #2c3345;           /* Fließtext */
  --green: #4f8f2f;         /* Freudenpost (Text, kontraststark) */
  --green-box: #79b447;     /* Freudenpost (Fläche) */
  --green-soft: #eef6e6;
  --red: #c2403a;           /* Kummerkasten (Text, kontraststark) */
  --red-box: #e05a50;       /* Kummerkasten (Fläche) */
  --red-soft: #fdeeec;
  --gold: #e8a200;          /* Akzent „Wahrheit" */
  --cream: #fdfaf4;         /* warmer heller Grund */
  --sky: #e9f3fb;
  --card: #ffffff;
  --line: #e6e2d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 53, 98, 0.10);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  padding: 18px 0;
  background: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  text-decoration: none;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.brand span { display: block; }
.brand .brand-top { color: var(--navy); }
.brand .brand-bottom { color: var(--gold); }
.header-note {
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.75;
}
@media (max-width: 560px) { .header-note { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, var(--sky) 0%, rgba(233, 243, 251, 0.35) 55%, var(--cream) 100%);
  padding: 16px 0 44px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hero-Bild mit anklickbaren Briefkästen */
.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.hotspot {
  position: absolute;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 0;
}
/* Prozentkoordinaten der beiden Briefkästen im Bild */
.hotspot--gut      { left: 41%; top: 34%; width: 24%; height: 50%; }
.hotspot--schlecht { left: 66%; top: 34%; width: 26%; height: 50%; }
.hotspot:hover, .hotspot:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.95);
  outline-offset: -4px;
  box-shadow: 0 0 0 9999px rgba(28, 53, 98, 0.06) inset;
}

.hero-hint {
  margin-top: 16px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
}
.hero-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta .btn { min-width: 280px; }
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { min-width: 0; width: 100%; }
}

/* ---------- Die zwei Einstiege ---------- */
.entries { padding: 22px 0 0; }
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; gap: 20px; }
}

.door {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 26px 24px 24px;
  font: inherit;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28,53,98,0.16); }
.door:active { transform: translateY(-1px); }

.door-flag {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.door--gut .door-flag { background: var(--green); }
.door--schlecht .door-flag { background: var(--red); }

.door h2 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.door ul {
  list-style: none;
  margin: 0 0 16px;
}
.door ul li {
  padding-left: 22px;
  position: relative;
  margin-top: 6px;
}
.door ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 50%;
}
.door--gut ul li::before { background: var(--green-box); }
.door--schlecht ul li::before { background: var(--red-box); }
.door-invite { margin-bottom: 18px; font-weight: 600; color: var(--navy); }

.door-svg { width: 128px; height: auto; margin: 0 auto 18px; }
@media (min-width: 721px) { .door-svg { width: 150px; } }

.door .btn { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn--gut { background: var(--green); }
.btn--schlecht { background: var(--red); }
.btn--navy { background: var(--navy); }

/* ---------- Formularbereich ---------- */
.form-section {
  padding: 64px 0;
}
.form-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.form-shell h2 { color: var(--navy); font-size: 1.5rem; }
.form-shell > p { margin-top: 10px; }

.experience-badge {
  display: none;
  margin: 16px 0 4px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.experience-badge.is-positive {
  display: block;
  background: var(--green-soft);
  color: var(--green);
}
.experience-badge.is-negative {
  display: block;
  background: var(--red-soft);
  color: var(--red);
}

/* ---------- Erfahrungsformular ---------- */
.vw-form { margin-top: 22px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row--split { grid-template-columns: 1fr; } }
.form-field { margin-top: 16px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field .optional { font-weight: 400; color: #7a8195; font-size: 0.9em; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fdfdfb;
  border: 1px solid #c9cfdd;
  border-radius: 10px;
  padding: 12px 14px;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid rgba(232, 162, 0, 0.45);
  border-color: var(--gold);
}
.form-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
}
.form-consent input { margin-top: 4px; flex: 0 0 auto; }
.form-publish {
  border: 1px solid #c9cfdd;
  border-radius: 10px;
  padding: 14px 16px 16px;
}
.form-publish legend {
  font-weight: 600;
  color: var(--navy);
  padding: 0 6px;
}
.radio-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-weight: 400 !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.radio-line input { margin-top: 4px; flex: 0 0 auto; }
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #7a8195;
}
.form-field input[type="file"] {
  width: 100%;
  font: inherit;
  border: 1px dashed #c9cfdd;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fdfdfb;
}

.form-error {
  margin-top: 16px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #efc4c0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}
.vw-form .btn { margin-top: 20px; width: 100%; }
.form-success {
  margin-top: 22px;
  background: var(--green-soft);
  border: 1px solid #cde4b8;
  border-radius: 10px;
  padding: 22px;
}
.form-success h3 { color: var(--green); margin-bottom: 8px; }

.form-privacy-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #5c6478;
}

/* ---------- Warum-Bereich ---------- */
.why {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.why h2 { color: var(--navy); font-size: 1.7rem; max-width: 24ch; }
.why-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid p + p { margin-top: 12px; }
.why-none {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.why-none ul { list-style: none; }
.why-none li {
  padding-left: 26px;
  position: relative;
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
}
.why-none li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* ---------- Grundsatz ---------- */
.principle {
  padding: 84px 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--sky) 100%);
}
.principle blockquote {
  color: var(--navy);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 auto;
}
.principle .principle-sub {
  margin-top: 16px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold);
}

/* ---------- Vertrauen ---------- */
.trust { padding: 64px 0; }
.trust h2 { color: var(--navy); font-size: 1.7rem; }
.trust-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.trust-card .trust-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
}
.trust-card:nth-child(1) .trust-icon { background: var(--green); }
.trust-card:nth-child(2) .trust-icon { background: var(--navy); }
.trust-card:nth-child(3) .trust-icon { background: var(--gold); }
.trust-card:nth-child(4) .trust-icon { background: var(--red); }
.trust-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.trust-card p { font-size: 0.95rem; }

/* ---------- Ablauf ---------- */
.flow { padding: 20px 0 72px; }
.flow h2 { color: var(--navy); font-size: 1.7rem; }
.flow-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.flow-card .flow-step {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.flow-card h3 { color: var(--navy); margin: 6px 0 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #dfe6f2;
  padding: 44px 0 30px;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-brand {
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
}
.footer-brand .brand-bottom { color: var(--gold); }
.footer-note {
  max-width: 70ch;
  opacity: 0.9;
}
.footer-links {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
}
.footer-copy { margin-top: 18px; opacity: 0.7; font-size: 0.85rem; }

/* ---------- Unterseiten (Impressum etc.) ---------- */
.page { padding: 40px 0 70px; }
.page h1 { color: var(--navy); margin-bottom: 18px; font-size: 2rem; }
.page h2 { color: var(--navy); margin: 26px 0 8px; font-size: 1.25rem; }
.page p + p { margin-top: 10px; }
.page .todo {
  background: #fff8e6;
  border: 1px solid #eecf7f;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.95rem;
}
.back-link { display: inline-block; margin-top: 30px; }
