:root {
  --navy: #1e3478;
  --navy-dark: #16285f;
  --gold: #d4b01d;
  --ink: #2a2c31;
  --muted: #5a6070;
  --line: #e4e6ee;
  --paper: #f5f6f9;
  --white: #fff;
  --ok: #1f6b45;
  --danger: #b42318;
}

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

html { -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }

body {
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100%;
}

body.is-funnel { background: var(--paper); }

body.is-funnel::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-bg.png") center 40% / cover no-repeat;
  opacity: .14;
  pointer-events: none;
}

body.is-funnel .progress,
body.is-funnel .funnel,
body.is-funnel footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap-s {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.logo { height: 28px; width: auto; }
@media (min-width: 640px) {
  .nav { min-height: 76px; }
  .logo { height: 32px; }
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1.2;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 52, 120, .22);
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-lg {
  animation: btnSoft 2.8s ease-in-out infinite;
}

@keyframes btnSoft {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(30, 52, 120, .22);
  }
  50% {
    box-shadow: 0 8px 24px rgba(30, 52, 120, .34);
  }
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: #c5cada; }

.btn-lg {
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-lg {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 14px 24px;
  }
}

.btn-block { width: 100%; }

.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 64px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1a2a4a url("../assets/hero-bg.png") center 42% / cover no-repeat;
  transform: scale(1.04);
  animation: ken 28s ease-out forwards;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 24, 48, .28) 0%, rgba(15, 24, 48, .48) 100%);
}

@keyframes ken {
  to { transform: scale(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero {
  display: grid;
  gap: 22px;
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-stage { padding: 72px 0 80px; }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 28px 40px;
    align-items: stretch;
  }
}

.hero-copy,
.figure {
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 18, 40, .22);
  animation: fadeUp .7s ease both;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-copy {
  padding: 28px 22px 26px;
  container-type: inline-size;
  container-name: hero-copy;
}

.figure {
  padding: 24px 20px;
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero-copy { padding: 36px 32px 32px; }
}

.figure { animation-delay: .12s; }

.portrait {
  position: relative;
  margin: 0 auto;
  max-width: 240px;
  text-align: center;
}

.portrait img {
  width: 100%;
  height: auto;
}

.statement {
  margin-top: 8px;
  padding: 8px 0 56px;
  text-align: center;
}

.statement-kicker {
  font-size: clamp(20px, 3.5vw, 26px);
  margin: 24px auto 8px;
  max-width: 28ch;
}

.statement-text {
  position: relative;
  z-index: 2;
  margin: -118px auto 0;
  max-width: 58ch;
  padding: 0 12px;
}

.who {
  margin-bottom: 10px;
}

.who strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.who span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.kicker {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: none;
}

.hero-copy h1 {
  color: var(--ink);
  max-width: none;
}

.h1-line { display: inline; }

@media (max-width: 899px) {
  .hero-copy { padding: 24px 18px 22px; overflow-x: clip; }
  .hero-copy h1 {
    width: 100%;
    /* Startgröße; js/fit-title.js skaliert automatisch auf Maximum ohne Overflow */
    font-size: 40px;
    line-height: 1.16;
    letter-spacing: -0.04em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }
  .h1-line {
    display: block;
    max-width: 100%;
  }
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 54ch;
  margin-bottom: 16px;
}

.lead-strong {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}

.lead-block {
  max-width: 54ch;
  margin-bottom: 16px;
}

.lead-block p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 12px;
}

.lead-block p:last-child { margin-bottom: 0; }

.lead-block strong {
  color: var(--ink);
  font-weight: 600;
}

.lead-tagline {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.quote {
  margin: 0 auto;
  padding: 0;
  max-width: 58ch;
  text-align: center;
}

.quote::before {
  content: "„";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 0.7;
  color: var(--navy);
  margin-bottom: 6px;
}

.quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 14px;
}

.quote p:last-child { margin-bottom: 0; }

.figure h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.figure p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.cmp {
  display: grid;
  gap: 10px;
}

.cmp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cmp-row:last-of-type { border-bottom: 0; }

.cmp-row b { font-size: 16px; white-space: nowrap; }

.cmp-save {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.cmp-save span { font-size: 14px; color: var(--muted); flex: 1; min-width: 0; }
.cmp-save strong {
  color: var(--navy);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}
.cmp-save + .cmp-save {
  margin-top: 0;
  padding-top: 12px;
}

.figure .fine {
  margin-top: 14px;
  font-size: 12px;
  color: #7a8090;
  margin-bottom: 0;
  line-height: 1.45;
}

.figure .fine + .fine {
  margin-top: 8px;
}

.quote-cta {
  margin-top: 28px;
  text-align: center;
}

.steps {
  background: var(--paper);
  padding: 56px 0 64px;
}

.steps h2 {
  font-size: 22px;
  margin-bottom: 28px;
}

.step-list {
  display: grid;
  gap: 16px;
  position: relative;
}

@media (min-width: 800px) {
  .step-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }

  .step-list::before {
    content: "";
    position: absolute;
    top: 86px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      #c9cfe0 0 10px,
      transparent 10px 18px
    );
    pointer-events: none;
    animation: pathDash 8s linear infinite;
  }
}

.step {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px 24px;
  box-shadow: 0 10px 30px rgba(20, 32, 64, .06);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 32, 64, .1);
}

.step-art {
  height: 160px;
  margin: -4px -8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120px 70px at 50% 70%, rgba(212, 176, 29, .12), transparent 70%),
    linear-gradient(180deg, #f7f8fc, #eef1f8);
  border-radius: 12px;
}

.step-art .scene {
  width: 100%;
  max-width: 240px;
  height: 140px;
  overflow: visible;
}

.scene * {
  transform-box: fill-box;
  transform-origin: center;
}

.scene .field {
  transform-origin: left center;
  animation: fillField 2.6s ease-in-out infinite;
}

.scene .field.f2 { animation-delay: .18s; }
.scene .field.f3 { animation-delay: .36s; }

.scene .cta-mini {
  animation: pulseGold 2.6s ease-in-out infinite;
}

.scene .pdf {
  animation: dropPdf 2.8s ease-in-out infinite;
}

.scene .drop-arrow {
  animation: fadePulse 2.8s ease-in-out infinite;
}

.scene-2 .glass {
  animation: scanMove 3.2s ease-in-out infinite;
}

.scene-2 .scan {
  animation: scanGlow 1.6s ease-in-out infinite;
}

.scene-2 .t1 { animation: popIn 3.2s ease-in-out infinite; }
.scene-2 .t2 { animation: popIn 3.2s ease-in-out infinite .35s; }

.scene-3 .msg {
  stroke-dasharray: 90;
  animation: writeMsg 3s ease-in-out infinite;
}

.scene-3 .offer {
  animation: slideOffer 3s ease-in-out infinite;
}

.scene-3 .stamp {
  animation: popIn 3s ease-in-out infinite .45s;
}

@keyframes fillField {
  0%, 18% { transform: scaleX(0.12); }
  42%, 72% { transform: scaleX(1); }
  90%, 100% { transform: scaleX(0.12); }
}

@keyframes dropPdf {
  0%, 18% { transform: translate(0, -10px) rotate(-8deg); opacity: .45; }
  48%, 70% { transform: translate(8px, 22px) rotate(0deg); opacity: 1; }
  100% { transform: translate(0, -10px) rotate(-8deg); opacity: .45; }
}

@keyframes fadePulse {
  0%, 28% { opacity: 0; }
  48%, 68% { opacity: .9; }
  100% { opacity: 0; }
}

@keyframes pulseGold {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes scanMove {
  0%, 100% { transform: translate(-16px, -8px); }
  50% { transform: translate(10px, 10px); }
}

@keyframes scanGlow {
  0%, 100% { transform: scale(.75); opacity: .45; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes popIn {
  0%, 22% { transform: scale(0); opacity: 0; }
  38%, 72% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes writeMsg {
  0% { stroke-dashoffset: 90; }
  38%, 72% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 90; }
}

@keyframes slideOffer {
  0%, 12% { transform: translateX(18px); opacity: 0; }
  38%, 74% { transform: none; opacity: 1; }
  100% { transform: translateX(18px); opacity: 0; }
}

@keyframes pathDash {
  to { background-position: 80px 0; }
}

.step small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #f0d45a;
  background: #f5e07a;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 12px;
  box-shadow:
    inset 0 1px 2px 1px rgba(255, 248, 200, 0.85),
    0 1px 2px 1px rgba(212, 176, 29, 0.22);
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
}

.step p + p {
  margin-top: 8px;
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: var(--white);
  padding: 72px 20px;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #16244a url("../assets/hero-bg.png") center 60% / cover no-repeat;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 28, 58, .88);
}

.cta-band h2 {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 12px;
  max-width: 46ch;
}

.cta-band .btn {
  margin-top: 10px;
}

.cta-band .cta-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .btn-navy {
  position: relative;
  z-index: 1;
  background: var(--gold);
  color: #111;
  box-shadow: 0 10px 24px rgba(212, 176, 29, .28);
  animation: none;
}

.cta-band .btn-navy::before,
.cta-band .btn-navy::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 2px solid rgba(212, 176, 29, .75);
  pointer-events: none;
  animation: ctaFrame 2.4s ease-out infinite;
}

.cta-band .btn-navy::after {
  inset: -10px;
  border-radius: 16px;
  border-color: rgba(212, 176, 29, .45);
  animation-delay: .75s;
}

@keyframes ctaFrame {
  0% {
    transform: scale(1);
    opacity: .8;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.cta-band .btn-navy:hover {
  background: #e0be2e;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-tall {
  border-top: 0;
  padding: 120px 0 48px;
  background: var(--white);
}

@media (min-width: 720px) {
  .footer-tall {
    padding: 160px 0 56px;
  }
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 720px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
  }
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--navy); }

.legal {
  margin-top: 12px;
  font-size: 11px;
  color: #8a8f9c;
}

.legal-doc {
  padding: 32px 0 64px;
}

.legal-doc h1 {
  max-width: none;
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: 8px;
}

.legal-doc .lead {
  margin-bottom: 28px;
}

.legal-doc h2 {
  font-size: 17px;
  margin: 28px 0 10px;
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  color: var(--muted);
}

.legal-doc p { margin-bottom: 12px; }

.legal-doc ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.legal-doc li { margin-bottom: 4px; }

.legal-doc address {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}


/* Funnel */
.funnel {
  background: transparent;
  min-height: calc(100dvh - 72px);
  padding: 28px 0 48px;
}

.progress {
  height: 3px;
  background: #dfe2ea;
  margin-bottom: 24px;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--navy);
}

.step-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.funnel h1 {
  max-width: none;
  font-size: clamp(22px, 6vw, 32px);
  margin-bottom: 10px;
}

.funnel .lead {
  font-size: 16px;
  margin-bottom: 24px;
}

.choices { display: grid; gap: 12px; }

.choice {
  display: block;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(20, 32, 64, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 32, 64, .12);
}

.choice strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
}

.choice span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 12px 32px rgba(20, 32, 64, .08);
}

@media (min-width: 640px) {
  .card { padding: 24px; }
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}

label:first-child { margin-top: 0; }

input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
}

input:focus {
  outline: 2px solid rgba(30, 52, 120, 0.25);
  border-color: var(--navy);
}

input[type="tel"].is-invalid {
  border-color: var(--danger);
  outline: 2px solid rgba(180, 35, 24, 0.15);
}

input[type="tel"].is-valid {
  border-color: var(--ok);
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.field-hint.is-error {
  color: var(--danger);
}

.drop {
  border: 1px dashed #c5cad8;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.drop.drag { border-color: var(--navy); background: #eef1f8; }

.drop.has-file {
  border-style: solid;
  border-color: var(--ok);
  color: var(--ok);
  background: #f3faf6;
}

.drop b {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.consent input { margin-top: 3px; flex-shrink: 0; }

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.alt-link {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 22px;
  line-height: 1.45;
}

.alt-link a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thanks {
  text-align: left;
  padding: 8px 0 24px;
}

.thanks h1 { margin-bottom: 12px; }

.thanks-intro {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 16px;
}

.next-steps {
  list-style: none;
  margin-top: 8px;
}

.next-steps li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.next-steps strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.next-steps span {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-stage::before { transform: none; }
}
