:root {
    --marine: #1A253B; --marine-hell: #24324F; --nacht: #111A2C;
    --messing: #C9973F; --messing-hell: #E3B168; --braun: #684832;
    --grau: #E8E6E4; --linie: #d6d2cc; --text: #1A1A1A; --text-hell: #d4d8e2;
    --serif: "Merriweather", Georgia, serif; --slab: "Zilla Slab", Georgia, serif; --sans: "Open Sans", "Segoe UI", sans-serif;
    --rand: clamp(20px, 5vw, 64px);
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.6; }
  a { color: inherit; }
  .wortmarke { font-weight: 700; letter-spacing: .32em; line-height: 1.25; font-size: 13px; }
  .knopf { display: inline-block; padding: 14px 26px; background: var(--messing); color: var(--nacht); font: 700 15px var(--sans); letter-spacing: .04em; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; }
  .knopf:hover { background: var(--messing-hell); }
  .knopf.zurueck { background: transparent; color: var(--marine); padding-left: 0; }
  :focus-visible { outline: 3px solid var(--messing-hell); outline-offset: 2px; }

  /* ---------- Kopf (aus A) ---------- */
  .held { position: relative; background: var(--marine); color: #fff; padding: 30px var(--rand) 110px; overflow: hidden; }
  .nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(56px, 10vw, 110px); position: relative; z-index: 2; }
  .marke { display: flex; gap: 16px; align-items: center; text-decoration: none; }
  .nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; font-size: 15px; }
  .nav ul a { text-decoration: none; color: var(--text-hell); }
  .nav ul a:hover { color: #fff; }
  .nav .anfrage { color: var(--messing-hell); font-weight: 700; }
  .held h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin: 0 0 22px; max-width: 680px; position: relative; z-index: 2; }
  .held h1 em { color: var(--messing-hell); font-style: normal; }
  .held p { max-width: 540px; color: var(--text-hell); font-size: 18px; position: relative; z-index: 2; margin: 0 0 30px; }
  .streifen { position: absolute; right: -110px; bottom: -40px; width: min(680px, 90vw); aspect-ratio: 1; z-index: 1; }

  .leistungen { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--nacht); color: #fff; }
  .leistungen div { padding: 30px 28px 34px; border-right: 1px solid var(--marine-hell); }
  .leistungen div:last-child { border-right: 0; }
  .leistungen small { color: var(--messing); font-weight: 700; letter-spacing: .2em; font-size: 12px; }
  .leistungen b { display: block; font-family: var(--serif); margin: 6px 0; font-size: 17px; }
  .leistungen span { color: #aab2c4; font-size: 14px; }

  /* ---------- Fragebogen (aus C) ---------- */
  .anfrage-bereich { display: grid; grid-template-columns: 5fr 7fr; scroll-margin-top: 0; }
  .ablauf { background: var(--marine); color: #fff; padding: 64px var(--rand); position: relative; overflow: hidden; }
  .ablauf h2 { font-family: var(--slab); font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; margin: 0 0 18px; }
  .ablauf h2 em { color: var(--messing-hell); font-style: normal; }
  .ablauf > p { color: var(--text-hell); max-width: 420px; }
  .ablauf ol { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
  .ablauf li { counter-increment: s; display: flex; gap: 16px; margin-bottom: 20px; color: var(--text-hell); }
  .ablauf li::before { content: counter(s); flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--messing); color: var(--messing-hell); font-weight: 700; }
  .ablauf li b { color: #fff; display: block; }
  .ablauf .direkt { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--marine-hell); color: var(--text-hell); font-size: 15px; }
  .ablauf .direkt a { color: var(--messing-hell); text-decoration: none; font-weight: 700; }
  .ablauf .ecke { position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; opacity: .5; }

  .bogen { background: #fff; padding: 64px var(--rand); }
  .bogen h3 { font-family: var(--serif); color: var(--marine); margin: 0 0 4px; font-size: 26px; }
  .fortschritt { display: flex; gap: 8px; margin: 18px 0 6px; }
  .fortschritt i { flex: 1; height: 5px; background: #e3dfd9; border-radius: 3px; transition: background .2s; }
  .fortschritt i.an { background: var(--messing); }
  .schritt-name { font-size: 13px; color: #666; }
  fieldset { border: 0; padding: 0; margin: 24px 0 0; }
  legend { font-weight: 700; color: var(--marine); margin-bottom: 10px; padding: 0; }
  legend small { font-weight: 400; color: #777; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips input { position: absolute; opacity: 0; pointer-events: none; }
  .chips label { padding: 9px 15px; border: 1.5px solid #c9c4bd; border-radius: 999px; font-size: 14px; cursor: pointer; user-select: none; transition: all .15s; }
  .chips label:hover { border-color: var(--messing); }
  .chips input:checked + label { border-color: var(--messing); background: #fbf3e4; color: var(--braun); font-weight: 600; }
  .chips input:focus-visible + label { outline: 3px solid var(--messing-hell); outline-offset: 2px; }
  .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .feld label { display: block; font-size: 14px; color: #444; margin-bottom: 4px; }
  .feld input, .feld select, .feld textarea { display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: 3px; font: inherit; background: #fff; }
  .feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--messing); outline: none; }
  .feld { margin-top: 14px; }
  .hinweis { font-size: 13px; color: #666; }
  .einwilligung { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 14px; }
  .einwilligung input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--messing); }
  .fehler { color: #a3332b; font-size: 14px; min-height: 22px; margin-top: 14px; }
  .fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
  .schritt { display: none; }
  .schritt.aktiv { display: block; }
  .danke { display: none; text-align: left; padding: 40px 0; }
  .danke h3 { font-size: 30px; }

  /* ---------- Fuß ---------- */
  footer { background: var(--nacht); color: #aab2c4; padding: 44px var(--rand); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; font-size: 14px; }
  footer b { color: #fff; font-family: var(--serif); display: block; margin-bottom: 8px; }
  footer a { text-decoration: none; color: #aab2c4; }
  footer a:hover { color: #fff; }

  @media (max-width: 900px) {
    .nav ul li:not(:last-child) { display: none; }
    .leistungen { grid-template-columns: 1fr 1fr; }
    .leistungen div:nth-child(2) { border-right: 0; }
    .anfrage-bereich, footer { grid-template-columns: 1fr; }
    .ablauf, .bogen { padding-top: 48px; padding-bottom: 48px; }
  }
  @media (max-width: 520px) {
    .leistungen { grid-template-columns: 1fr; }
    .leistungen div { border-right: 0; border-bottom: 1px solid var(--marine-hell); }
    .zeile { grid-template-columns: 1fr; }
  }

  /* ---------- Animationen ---------- */
  @keyframes auftauchen { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
  @keyframes streifen-rein { from { opacity: 0; transform: translate(140px, 140px); } to { opacity: 1; transform: none; } }
  @keyframes quadrat-rutscht { from { transform: translate(-10px, -10px); } to { transform: none; } }
  @keyframes rahmen-zeichnen { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
  @keyframes ploppen { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
  @keyframes haken { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

  .nav { animation: einblenden .8s ease both; }
  .logo-rahmen { stroke-dasharray: 240; animation: rahmen-zeichnen 1.1s .15s ease-out both; }
  .logo-quadrat { transform-box: fill-box; animation: quadrat-rutscht .9s .9s cubic-bezier(.2,.9,.3,1.2) both; }
  .held .zeile-1, .held .zeile-2, .held .zeile-3 { display: inline-block; animation: auftauchen .8s cubic-bezier(.2,.7,.2,1) both; }
  .held .zeile-1 { animation-delay: .25s; } .held .zeile-2 { animation-delay: .45s; } .held .zeile-3 { animation-delay: .65s; }
  .held > p { animation: auftauchen .8s .85s cubic-bezier(.2,.7,.2,1) both; }
  .held > .knopf { animation: auftauchen .8s 1s cubic-bezier(.2,.7,.2,1) both; }
  .streifen { animation: streifen-rein 1.4s .3s cubic-bezier(.2,.7,.2,1) both; }

  .knopf { transition: transform .2s, background .2s, box-shadow .2s; }
  .knopf:not(.zurueck):hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,151,63,.35); }
  .knopf .pfeil { display: inline-block; transition: transform .2s; margin-left: 6px; }
  .knopf:hover .pfeil { transform: translateX(4px); }

  .leistungen div { position: relative; transition: background .25s; }
  .leistungen div:hover { background: #162038; }
  .leistungen b::after { content: ""; display: block; width: 0; height: 2px; background: var(--messing); margin-top: 6px; transition: width .35s ease; }
  .leistungen div:hover b::after { width: 48px; }

  /* Beim Scrollen sichtbar werden (nur wenn JavaScript läuft, sonst bleibt alles sichtbar) */
  .js .kommt { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--verzug, 0s); }
  .js .kommt.da { opacity: 1; transform: none; }

  .schritt.aktiv { animation: auftauchen .45s cubic-bezier(.2,.7,.2,1) both; }
  .chips input:checked + label { animation: ploppen .3s ease; }
  .fortschritt i { position: relative; overflow: hidden; }
  .fortschritt i::after { content: ""; position: absolute; inset: 0; background: var(--messing); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
  .fortschritt i.an { background: #e3dfd9; }
  .fortschritt i.an::after { transform: scaleX(1); }
  .danke svg path { stroke-dasharray: 60; animation: haken .6s .2s ease-out both; }
  .danke.zeigen { display: block !important; animation: auftauchen .6s ease both; }

  /* Wer in den Systemeinstellungen "Bewegung reduzieren" gewählt hat, bekommt keine Animationen */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .kommt { opacity: 1; transform: none; }
  }

/* ---------- Verzögerungen für das Erscheinen (statt Inline-Stil, wegen der Sicherheitsregeln der Seite) ---------- */
.v1 { --verzug: .1s; } .v2 { --verzug: .2s; } .v3 { --verzug: .3s; } .v4 { --verzug: .4s; }

/* ---------- Leistungen im Detail ---------- */
.abschnitt { padding: clamp(56px, 8vw, 96px) var(--rand); }
.abschnitt-kopf { max-width: 760px; margin-bottom: 44px; }
.abschnitt-kopf small { color: var(--messing); font-weight: 700; letter-spacing: .24em; font-size: 12px; }
.abschnitt-kopf h2 { font-family: var(--serif); color: var(--marine); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin: 10px 0 14px; }
.abschnitt-kopf p { color: #444; font-size: 17px; margin: 0; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.karte { border: 1px solid #e6e1d8; padding: 28px 26px 24px; position: relative; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(17,26,44,.10); border-color: var(--messing); }
.karte .symbol { width: 40px; height: 40px; margin-bottom: 16px; }
.karte h3 { font-family: var(--serif); color: var(--marine); font-size: 19px; margin: 0 0 10px; }
.karte ul { margin: 0; padding: 0; list-style: none; }
.karte li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 15px; color: #333; }
.karte li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--messing); }
.karte .grenze { margin-top: 12px; font-size: 13px; color: #6b6b6b; border-top: 1px dashed #e0dbd2; padding-top: 10px; }
.karte.hervor { background: var(--marine); color: #fff; border-color: var(--marine); }
.karte.hervor h3 { color: #fff; }
.karte.hervor li { color: var(--text-hell); }
.karte.hervor .grenze { color: #aab2c4; border-color: var(--marine-hell); }

/* ---------- Für wen / Warum ---------- */
.grau { background: var(--grau); }
.warum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.warum b { display: block; font-family: var(--serif); color: var(--marine); font-size: 18px; margin: 14px 0 6px; }
.warum p { margin: 0; color: #444; font-size: 15px; }
.warum .linie { width: 44px; height: 3px; background: var(--messing); }
.fuer-wen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.fuer-wen span { padding: 9px 16px; border: 1.5px solid var(--marine); color: var(--marine); font-weight: 600; font-size: 14px; }

/* ---------- Rechtsseiten ---------- */
.kopf-schmal { background: var(--marine); color: #fff; padding: 26px var(--rand); }
.kopf-schmal .nav { margin-bottom: 0; }
.recht { max-width: 820px; padding: 56px var(--rand) 80px; }
.recht h1 { font-family: var(--serif); color: var(--marine); font-size: clamp(24px, 6.5vw, 34px); margin: 0 0 24px; }
.recht h2 { font-family: var(--serif); color: var(--marine); font-size: 20px; margin: 34px 0 10px; }
.recht p, .recht li { color: #333; }

@media (max-width: 1000px) { .karten { grid-template-columns: 1fr 1fr; } .warum { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .karten, .warum { grid-template-columns: 1fr; } }
.karte .nummer { width: 42px; height: 42px; border: 2px solid var(--messing); display: grid; place-items: end; margin-bottom: 18px; position: relative; }
.karte .nummer::after { content: ""; width: 17px; height: 17px; background: var(--messing); margin: 0 5px 5px 0; transition: transform .3s; }
.karte:hover .nummer::after { transform: translate(-4px, -4px); }
.fuss .weiter { margin-left: auto; }
.danke h3 { font-family: var(--serif); color: var(--marine); margin: 16px 0 8px; }
.danke a { color: var(--braun); }
