/* Variante 2 "Leitstand": Nachtblau, Signal-Amber, Schibsted Grotesk. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nacht: #0F2440;
  --tief: #1B3A63;
  --signal: #F0A732;
  --eis: #EAF0F7;
  --stahl: #A9BAD0;
  --weiss: #FFFFFF;
  --grau: #4A5D78;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--nacht);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}
/* Nur Zahlenfelder tabellarisch: diese Schrift setzt sonst auch Punkt und Komma auf Ziffernbreite. */
.field input, .calc__result output { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--nacht); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--signal); }

.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;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--signal); color: var(--nacht); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: var(--nacht); color: var(--eis); border-bottom: 1px solid var(--tief); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: grid; gap: .1rem; text-decoration: none; padding-block: .6rem; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand__sub { font-size: .8rem; color: var(--stahl); line-height: 1.3; }
.brand__tld { color: var(--signal); }
.nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.nav a { text-decoration: none; padding-block: .5rem; }
.nav a:hover { color: var(--signal); }
.nav .nav__cta { background: var(--signal); color: var(--nacht); padding: .5rem 1rem; border-radius: 4px; font-weight: 700; }
.nav .nav__cta:hover { color: var(--nacht); background: #F6BC5B; }
@media (max-width: 47.99rem) { .nav li:not(:last-child) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; background: var(--signal); color: var(--nacht);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: .95rem 1.5rem; border-radius: 4px;
  transition: background-color .15s ease;
}
.btn:hover { background: #F6BC5B; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* Hero */
.hero { background: var(--nacht); color: var(--eis); padding-block: clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: 3rem 4rem; align-items: start; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.2rem);
  font-weight: 850; letter-spacing: -0.035em; line-height: .98;
  color: var(--weiss);
  margin-bottom: 1.75rem;
}
.lead { font-size: 1.25rem; color: var(--stahl); max-width: 32em; }

/* Prozesskarte */
.flow { background: var(--tief); border-top: 3px solid var(--signal); padding: clamp(1.25rem, 3vw, 2rem); }
.flow__title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--stahl); margin-bottom: 1rem; }
.flow__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5px; margin-bottom: 1.75rem; background: var(--stahl); border: 1.5px solid var(--stahl); }
.flow__tabs[hidden] { display: none; }
.flow__tabs button {
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  color: var(--eis);
  border: 0; background: var(--tief);
  border-radius: 0; padding: .65rem .75rem; min-height: 2.75rem;
}
.flow__tabs button:hover { background: #24497A; }
.flow__tabs button[aria-selected="true"] { background: var(--eis); color: var(--nacht); }
.flow__tabs button:focus-visible { outline-offset: -4px; }
.flow__tabs button[aria-selected="true"]:focus-visible { outline-color: var(--nacht); }
@media (max-width: 24rem) { .flow__tabs button { font-size: .85rem; padding-inline: .4rem; hyphens: auto; overflow-wrap: anywhere; } }
.flow__name { font-size: 1.6rem; font-weight: 800; color: var(--weiss); margin-bottom: 1.25rem; }
.flow__panel + .flow__panel { margin-top: 2rem; }
.has-tabs .flow__panel + .flow__panel { margin-top: 0; }
.has-tabs .flow__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.flow__panel[hidden] { display: none; }

.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before {
  content: ""; position: absolute; left: 2.6rem; top: 1.2rem; bottom: 1.2rem;
  border-left: 2px dashed color-mix(in srgb, var(--stahl) 45%, transparent);
}
.chain__step {
  position: relative;
  display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; gap: 1rem;
  padding: .55rem 0;
  color: var(--eis); font-size: 1.05rem; line-height: 1.35;
}
.chain__who {
  position: relative; z-index: 1;
  justify-self: center;
  font-size: .85rem; font-weight: 700; text-align: center;
  width: 5.2rem; padding: .4rem 0; border-radius: 3px;
}
.chain__step--agent .chain__who { background: var(--tief); color: var(--signal); border: 1.5px solid var(--signal); }
.chain__step--you .chain__who { background: var(--eis); color: var(--nacht); border: 1.5px solid var(--eis); }
.chain__step--you { font-weight: 700; color: var(--weiss); }

/* Durchlauf beim Umschalten: Schritte erscheinen der Reihe nach. */
@media (prefers-reduced-motion: no-preference) {
  .is-running .chain__step { animation: step-in .5s ease both; }
  .is-running .chain__step:nth-child(1) { animation-delay: 0s; }
  .is-running .chain__step:nth-child(2) { animation-delay: .25s; }
  .is-running .chain__step:nth-child(3) { animation-delay: .5s; }
  .is-running .chain__step:nth-child(4) { animation-delay: .75s; }
  .is-running .chain__step:nth-child(5) { animation-delay: 1s; }
}
@keyframes step-in { from { opacity: .2; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* Abschnitte */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--eis); }
.split { display: grid; gap: 1rem 4rem; margin-bottom: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1.2fr; align-items: end; } }
.split__text { font-size: 1.2rem; color: var(--grau); max-width: 34em; margin: 0; }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 1.05rem; }
.compare th, .compare td { text-align: left; padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid #D3DDEA; vertical-align: top; }
.compare thead th { font-size: 1rem; font-weight: 700; border-bottom: 2px solid var(--nacht); }
.compare tbody th { font-weight: 600; color: var(--grau); width: 11rem; }
.compare .compare__hl { background: var(--eis); padding-left: 1.25rem; font-weight: 600; }
.compare thead .compare__hl { background: var(--nacht); color: var(--signal); }

/* Rechner */
.calc { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 60rem) { .calc { grid-template-columns: 1fr 1.4fr; } }
.calc__intro p { font-size: 1.2rem; color: var(--grau); max-width: 28em; margin-top: 1.25rem; }
.calc__form { display: grid; gap: 1.25rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: grid; gap: .4rem; }
.field__label { font-size: .95rem; font-weight: 600; }
.field input {
  font: inherit; font-size: 1.4rem; font-weight: 700; color: var(--nacht);
  background: var(--weiss); border: 1.5px solid #6E819C; border-radius: 4px;
  padding: .6rem .8rem; width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--nacht); outline-offset: 1px; border-color: var(--nacht); }
.calc__fields:disabled .field input { opacity: .6; }
.calc__fields { display: contents; border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__nojs { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.calc__nojs[hidden] { display: none; }
.calc__result {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem;
  background: var(--nacht); color: var(--eis); border-radius: 4px; padding: 1.5rem 1.75rem;
}
.calc__result p { margin: 0; display: grid; }
.calc__result output { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; color: var(--signal); line-height: 1.05; }
.calc__note { grid-column: 1 / -1; font-size: .9rem; color: var(--grau); margin: 0; }

/* Byline im Hero */
.byline { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.byline img { width: 3.5rem; height: 3.5rem; object-fit: cover; object-position: 50% 20%; border-radius: 3px; }
.byline p { margin: 0; font-size: 1rem; color: var(--stahl); max-width: 26em; }
.byline strong { color: var(--weiss); }

/* Ablauf und Kosten */
.plan { width: 100%; min-width: 44rem; border-collapse: collapse; margin-top: 2.5rem; font-size: 1.05rem; }
.plan th, .plan td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid #D3DDEA; }
.plan thead th { font-size: .95rem; color: var(--grau); font-weight: 600; border-bottom: 2px solid var(--nacht); }
.plan tbody th { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.plan td:nth-child(2) { color: var(--grau); }
.plan td:last-child { font-weight: 700; white-space: nowrap; padding-right: 0; }
.plan__note { margin-top: 1.5rem; color: var(--grau); max-width: 46em; }

/* Über Simon */
.about { display: grid; gap: 2.5rem 4.5rem; align-items: start; }
@media (min-width: 60rem) { .about { grid-template-columns: 22rem 1fr; } }
.about__photo { border-radius: 4px; max-width: 22rem; width: 100%; }
.about h2 { margin-bottom: 1rem; }
.about__lead { font-size: 1.3rem; font-weight: 600; max-width: 30em; }
.cv { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.cv th, .cv td { text-align: left; vertical-align: baseline; padding: .7rem 0; border-top: 1px solid #C6D3E3; }
.cv th { width: 5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cv td { color: var(--grau); }
.cv tr:last-child th, .cv tr:last-child td { color: var(--nacht); font-weight: 700; }

/* Kontakt */
.contact { background: var(--nacht); color: var(--eis); padding-block: clamp(4rem, 9vw, 7rem); }
.contact h2 { color: var(--weiss); font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); max-width: 16em; margin-bottom: 1.25rem; }
.contact p { font-size: 1.2rem; color: var(--stahl); max-width: 34em; }
.contact__mail { color: var(--stahl); font-size: 1rem; }

/* Fuss */
.foot { background: var(--nacht); color: var(--stahl); font-size: .9rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--tief); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
