/* =========================================================
   TM Sourcing — Stylesheet
   Farbwelt und Layoutmaße laut Briefing (Version 1.0).
   ========================================================= */

:root {
  --bg:          #080D14;
  --navy:        #101C2E;
  --card:        #142338;
  --text:        #F4F7FA;
  --muted:       #9AA8B8;
  --accent:      #78D991;
  --line:        #26364A;

  /* abgeleitete Werte */
  --accent-ink:  #06140C;
  --accent-soft: rgba(120, 217, 145, 0.10);
  --line-soft:   rgba(38, 54, 74, 0.6);

  --wrap:  1120px;
  --prose: 680px;
  --radius: 14px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky Header beim Ankersprung nicht über die Überschrift legen */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.1vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); }

/* ---------- Fokus / Zugänglichkeit ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(58px, 8vw, 110px);
  border-top: 1px solid var(--line-soft);
}

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

.prose { max-width: var(--prose); color: var(--muted); }

.eyebrow {
  margin: 0 0 0.9em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Entwurfsbanner ---------- */

.draft-note {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 13, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav .header-cta { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after  { position: absolute; top: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #8ee0a3; }

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Kompakte Variante, bleibt bei mind. 44 px Zielfläche */
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 11vw, 132px);
}

/* Dezentes technisches Linienraster statt Stockfoto */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 22% 8%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 90% at 22% 8%, #000 0%, transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero .lead {
  max-width: var(--prose);
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.16rem);
  color: var(--muted);
}

.br-desktop { display: none; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-line li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust-line li::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Karten ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.section-alt .card { background: var(--bg); }

.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); }

.card-lg { padding: clamp(26px, 3.4vw, 38px); }

.card-eyebrow {
  margin: 0 0 0.8em;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-grid {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.card-grid.cols-3 { grid-template-columns: 1fr; }

.two-ways {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.two-ways .btn { margin-top: 22px; }

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  counter-reset: none;
}

.step { position: relative; padding-top: 24px; }

.step-num {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ---------- Listen ---------- */

.marker-list {
  display: grid;
  gap: 12px 32px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  color: var(--muted);
}

.marker-list li {
  position: relative;
  padding-left: 26px;
}

.marker-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 10px; height: 2px;
  background: var(--accent);
}

.notice {
  max-width: var(--prose);
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--muted);
  border-radius: 0 10px 10px 0;
  background: rgba(20, 35, 56, 0.5);
  color: var(--muted);
  font-size: 0.94rem;
}

.principles {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  max-width: 820px;
}

.principles li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.principles li:first-child { border-top: 1px solid var(--line-soft); }

.principles .dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin-top: 38px;
  border-top: 1px solid var(--line-soft);
}

.faq details { border-bottom: 1px solid var(--line-soft); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq details p {
  max-width: var(--prose);
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

/* ---------- Kontakt / Formular ---------- */

.mail-direct {
  margin-top: 26px;
  color: var(--muted);
}

.mail-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 217, 145, 0.4);
  overflow-wrap: anywhere;
}
.mail-link:hover { border-bottom-color: var(--accent); }

.contact-form { margin-top: 34px; }

.form-hint {
  margin: 0 0 26px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.section-alt .field input,
.section-alt .field select,
.section-alt .field textarea { background: var(--navy); }

.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder { color: #6C7C8E; }

/* Honeypot – für Menschen unsichtbar, für Bots vorhanden */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.placeholder-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-status {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--accent);
}
.form-status[data-state="error"] { color: #E8A0A0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 42px;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand { display: flex; flex-direction: column; line-height: 1.4; }
.footer-brand small { color: var(--muted); font-size: 0.82rem; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--text); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.legal { padding-block: clamp(46px, 7vw, 84px); }
.legal .wrap > * { max-width: var(--prose); }
.legal h1 { margin-bottom: 0.7em; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }

.legal-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.legal-back:hover { color: var(--text); }

.ph {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

/* ---------- Einblendungen ----------
   Rein deklarativ über scroll-getriebene CSS-Animationen.
   Bewusst ohne JavaScript: Browser ohne Unterstützung zeigen
   die Inhalte einfach sofort an. Es kann kein Zustand
   entstehen, in dem Inhalte unsichtbar bleiben.
   ----------------------------------- */

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal > * {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
  }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .marker-list.cols-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .two-ways { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .br-desktop { display: inline; }
  .card:hover { border-color: #33465F; transform: translateY(-2px); }
}

/* Mobile Navigation */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(20px, 5vw, 40px) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav[hidden] { display: none; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

  .site-nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav .header-cta { margin-top: 18px; }
}

/* Sehr schmale Geräte */
@media (max-width: 400px) {
  .header-inner { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; font-size: 0.72rem; }
  .brand-text strong { font-size: 0.92rem; }
  .brand-text small { display: none; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 8px 12px; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ---------- Druck ---------- */

@media print {
  .site-header, .nav-toggle, .draft-note, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
