/* ==========================================================================
   N.O.C Engineering GmbH – Fördermittelberatung
   Design-System
   --------------------------------------------------------------------------
   Farbwelt und Typografie sind von noc-engineering.de abgeleitet
   (Navy #2B4F6E, Akzentrot #D60000, Poppins / PT Serif) und für einen
   ruhigeren, moderneren Auftritt neu abgestimmt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften
   Selbst gehostet – kein Google-Fonts-Aufruf, damit keine IP-Adressen an
   Dritte übertragen werden (DSGVO). Fehlen die Dateien, greift automatisch
   der System-Fallback; die Seite bleibt in jedem Fall lesbar.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/ptserif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/ptserif-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben – abgeleitet von der bestehenden N.O.C-Website */
  --navy-900: #071C30;
  --navy-800: #0B2438;
  --navy-700: #12354F;
  --navy-600: #2B4F6E;   /* Signaturton der bestehenden Seite */
  --navy-500: #3D6488;
  --navy-400: #5B82A6;
  --navy-100: #E7EDF3;

  --red-600: #B80000;
  --red-500: #D60000;    /* N.O.C Akzentrot */
  --red-100: #FDECEC;

  --ink:      #14212E;
  --ink-soft: #47586B;
  --ink-mute: #6E7F91;

  --gray-050: #F7F9FB;
  --gray-100: #F1F4F8;
  --gray-200: #E3E9F0;
  --gray-300: #D2DAE4;

  --white: #FFFFFF;

  /* Semantische Zuweisungen */
  --bg:            var(--white);
  --bg-alt:        var(--gray-050);
  --bg-deep:       var(--navy-900);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --border:        var(--gray-200);
  --accent:        var(--red-500);

  /* Statusfarben für Fallbeispiele */
  --status-beantragt:    #8A94A3;
  --status-bewilligt:    #1F7A5C;
  --status-ausgezahlt:   #12354F;
  --status-abgeschlossen:#2B4F6E;

  /* Typografie */
  --font-sans:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', Times, serif;

  /* Raster und Rhythmus */
  --container: 1180px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(7, 28, 48, .06), 0 2px 8px rgba(7, 28, 48, .04);
  --shadow:    0 2px 6px rgba(7, 28, 48, .07), 0 12px 32px rgba(7, 28, 48, .08);
  --shadow-lg: 0 4px 12px rgba(7, 28, 48, .09), 0 24px 60px rgba(7, 28, 48, .13);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   3. Reset und Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Platz für die fixierte Navigation beim Ankersprung */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.05rem; }

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

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-500); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

::selection { background: var(--navy-600); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 200;
  background: var(--red-500); color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt  { background: var(--bg-alt); }
.section--deep { background: var(--navy-900); color: rgba(255,255,255,.82); }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep a { color: #fff; }
/* Fettungen auf dunklem Grund hell setzen – sonst dunkel auf dunkel und unlesbar. */
.section--deep strong { color: #fff; }
/* Ausnahme: die weiße Formularkarte – dort bleiben Text und Links dunkel. */
.section--deep .form-wrap strong { color: var(--ink); }
.section--deep .form-wrap a { color: var(--navy-600); }
.section--deep .form-wrap a:hover { color: var(--red-500); }
/* Textmarker-Hervorhebung einzelner Begriffe auf dunklem Grund. */
.hl {
  color: #fff;
  background-image: linear-gradient(transparent 55%, rgba(214,0,0,.5) 55%);
  padding: 0 .1em;
  border-radius: 2px;
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 0; }
.section--deep .section-head p { color: rgba(255,255,255,.72); }

/* Kleines Label über der Überschrift */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--red-500); flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.section--deep .eyebrow { color: #FF6B6B; }
.section--deep .eyebrow::before { background: #FF6B6B; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

/* Feste Zweispaltigkeit: Bei auto-fit würden aus vier Karten 3 + 1,
   statt der gewünschten 2 x 2 Anordnung. */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Kontaktbereich: Formular breiter als die Infospalte */
.grid--contact {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: start;
}

.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   5. Schaltflächen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: .95rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red-500); border-color: var(--red-500); color: #fff;
  box-shadow: 0 4px 14px rgba(214, 0, 0, .25);
}
.btn--primary:hover {
  background: var(--red-600); border-color: var(--red-600); color: #fff;
  box-shadow: 0 8px 22px rgba(214, 0, 0, .3);
}

.btn--ghost {
  background: transparent; border-color: rgba(255,255,255,.4); color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1); border-color: #fff; color: #fff;
}

.btn--outline {
  background: transparent; border-color: var(--navy-600); color: var(--navy-600);
}
.btn--outline:hover { background: var(--navy-600); color: #fff; }

.btn--sm { padding: .65rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 28, 48, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 28, 48, .98);
  box-shadow: 0 8px 30px rgba(7, 28, 48, .22);
}

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; flex: none;
  margin-right: auto;
}
.brand__logo { height: 46px; width: auto; flex: none; display: block; }
.brand__mark { height: 38px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.12rem; font-weight: 700;
  color: #fff; letter-spacing: .02em;
}
.brand__sub {
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: #FF6B6B;
  padding-left: .8rem;
  border-left: 1px solid rgba(255,255,255,.22);
  white-space: nowrap;
}

.nav__list {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  font-size: .92rem; font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--red-500); border-radius: 2px;
}

.nav__cta { flex: none; margin-left: .5rem; }

/* Die Schaltfläche im aufgeklappten Menü erscheint erst auf schmalen Bildschirmen */
.nav__cta--mobile { display: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm); cursor: pointer;
  flex: none;
}
.nav__toggle span {
  display: block; position: relative;
  width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Kopfbereich (Hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(9rem, 15vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(1000px 560px at 78% 8%, rgba(61,100,136,.42), transparent 62%),
    linear-gradient(158deg, #0A2138 0%, #12354F 48%, #071C30 100%);
  color: #fff;
  overflow: hidden;
}

/* Feines technisches Raster – Anklang an Ingenieurzeichnungen */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent {
  color: #fff;
  background-image: linear-gradient(transparent 68%, rgba(214,0,0,.55) 68%);
  background-repeat: no-repeat;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero .btn-row { margin-bottom: 2.5rem; }

/* Vertrauenszeile */
.trustline {
  display: flex; flex-wrap: wrap;
  gap: .5rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .9rem; color: rgba(255,255,255,.75);
}
.trustline li {
  display: flex; align-items: center; gap: .5rem; margin: 0;
}
.trustline li::before {
  content: "";
  width: 15px; height: 15px; flex: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FF6B6B'%3E%3Cpath d='M8.1 14.6 4 10.5l1.4-1.4 2.7 2.7 6.5-6.5L16 6.7z'/%3E%3C/svg%3E");
}

/* Karte im Kopfbereich */
.hero-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card__tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: #fff; background: var(--red-500);
  padding: .3rem .7rem; border-radius: 100px;
  margin-bottom: 1.1rem;
}
.hero-card h2 {
  font-size: 1.45rem; color: #fff; margin-bottom: .9rem;
}
.hero-card__list {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-card__list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .95rem; color: rgba(255,255,255,.85);
}
.hero-card__list .num {
  font-family: var(--font-serif); font-weight: 700;
  color: #FF6B6B; flex: none; min-width: 1.4rem;
}
.hero-card__note {
  font-size: .85rem; color: rgba(255,255,255,.6);
  margin: 1rem 0 0; text-align: center;
}

/* --------------------------------------------------------------------------
   8. Karten
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}
.card h3 { margin-bottom: .55rem; }
.card p  { color: var(--text-soft); font-size: .96rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy-100);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  color: var(--navy-600);
}
.card__icon svg { width: 24px; height: 24px; }

.card__list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  font-size: .89rem; color: var(--ink-mute);
  border-top: 1px solid var(--border); padding-top: .9rem;
}
.card__list li { position: relative; padding-left: 1.05rem; margin-bottom: .35rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red-500);
}

/* Leistungskarte mit Nummer */
.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service::after {
  content: attr(data-num);
  position: absolute; top: -.35em; right: .15em;
  font-family: var(--font-serif); font-weight: 700;
  font-size: 6.5rem; line-height: 1;
  color: var(--gray-100);
  pointer-events: none; z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service h3 { margin-bottom: 1rem; padding-right: 3rem; }
.service ul {
  list-style: none; margin: 0; padding: 0;
  font-size: .95rem; color: var(--text-soft);
}
.service ul li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.service ul li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 16px; height: 16px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D60000'%3E%3Cpath d='M8.1 14.6 4 10.5l1.4-1.4 2.7 2.7 6.5-6.5L16 6.7z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   9. Herausforderungen
   -------------------------------------------------------------------------- */
.challenge {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.challenge h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.challenge p  { font-size: .93rem; color: rgba(255,255,255,.72); margin: 0; }
.challenge__num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: .85rem; letter-spacing: .1em;
  color: #FF6B6B; display: block; margin-bottom: .7rem;
}

/* --------------------------------------------------------------------------
   10. Ablauf (Zeitstrahl)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem 1.4rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy-900); color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p  { font-size: .89rem; color: var(--text-soft); margin: 0; }

/* Verbindungslinie zwischen den Schritten */
.steps::before {
  content: "";
  position: absolute; top: 20px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-300) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step { z-index: 1; }

/* --------------------------------------------------------------------------
   11. Hinweisboxen
   -------------------------------------------------------------------------- */
.notice {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--red-100);
  border: 1px solid rgba(214,0,0,.22);
  border-left: 4px solid var(--red-500);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
}
.notice__icon { flex: none; color: var(--red-500); margin-top: .15rem; }
.notice__icon svg { width: 22px; height: 22px; }
.notice h4 { margin-bottom: .35rem; font-family: var(--font-sans); font-weight: 600; }
.notice p  { font-size: .93rem; color: var(--text-soft); margin: 0; }

.notice--neutral {
  background: var(--navy-100);
  border-color: rgba(43,79,110,.22);
  border-left-color: var(--navy-600);
}
.notice--neutral .notice__icon { color: var(--navy-600); }

.notice--onDeep {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  border-left-color: #FF6B6B;
}
.notice--onDeep .notice__icon { color: #FF6B6B; }
.notice--onDeep h4 { color: #fff; }
.notice--onDeep p  { color: rgba(255,255,255,.75); }

/* --------------------------------------------------------------------------
   12. Fallbeispiele
   -------------------------------------------------------------------------- */
.case {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.case__head {
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--gray-050);
}
.case__cat {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-500); display: block; margin-bottom: .5rem;
}
.case__head h3 { font-size: 1.2rem; margin: 0; }

.case__body { padding: 1.5rem 1.6rem; flex: 1; }
.case__row { margin-bottom: 1.05rem; }
.case__row:last-child { margin-bottom: 0; }
.case__label {
  display: block;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .25rem;
}
.case__row p { font-size: .94rem; color: var(--text-soft); margin: 0; }

.case__foot {
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--border);
  background: var(--gray-050);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
}

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
  background: var(--gray-200); color: var(--ink-soft);
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge--beantragt     { background: #EEF1F5; color: var(--status-beantragt); }
.badge--bewilligt     { background: #E6F4EF; color: var(--status-bewilligt); }
.badge--ausgezahlt    { background: var(--navy-100); color: var(--status-ausgezahlt); }
.badge--abgeschlossen { background: var(--navy-100); color: var(--status-abgeschlossen); }

/* Deutlich sichtbarer Hinweis auf den Musterfall-Charakter */
.disclaimer {
  font-size: .88rem;
  color: var(--ink-mute);
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.disclaimer strong { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   13. Über uns / Kennzahlen
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--navy-900); padding: 1.5rem 1.3rem; text-align: center; }
.fact__value {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff; line-height: 1.1; display: block; margin-bottom: .3rem;
}
.fact__label {
  font-size: .82rem; color: rgba(255,255,255,.62);
  letter-spacing: .04em;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.9rem; margin-bottom: .85rem;
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D60000'%3E%3Cpath d='M8.1 14.6 4 10.5l1.4-1.4 2.7 2.7 6.5-6.5L16 6.7z'/%3E%3C/svg%3E");
}
.section--deep .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FF6B6B'%3E%3Cpath d='M8.1 14.6 4 10.5l1.4-1.4 2.7 2.7 6.5-6.5L16 6.7z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   14. Aufklappbereiche (Förderwissen, FAQ)
   -------------------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item:last-child { border-bottom: 0; }

.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%;
  background: none; border: 0;
  padding: 1.25rem clamp(1.1rem, 2.2vw, 1.6rem);
  font-family: var(--font-sans);
  font-size: 1.02rem; font-weight: 500; line-height: 1.45;
  color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.accordion__trigger:hover { background: var(--gray-050); color: var(--navy-600); }
.accordion__trigger[aria-expanded="true"] { color: var(--navy-600); font-weight: 600; }

.accordion__icon {
  flex: none; width: 24px; height: 24px;
  position: relative;
  border: 1px solid var(--gray-300); border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .3s var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  background: var(--navy-600);
  transform: translate(-50%, -50%);
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.accordion__icon::before { width: 10px; height: 2px; }
.accordion__icon::after  { width: 2px; height: 10px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--red-500); border-color: var(--red-500); transform: rotate(180deg);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::before { background: #fff; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after  { opacity: 0; }

.accordion__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__inner {
  padding: 0 clamp(1.1rem, 2.2vw, 1.6rem) 1.5rem;
  font-size: .97rem; color: var(--text-soft);
}
.accordion__inner ul { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Downloadbereich
   -------------------------------------------------------------------------- */
.download {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.download:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--navy-400);
}
.download__icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--red-100); color: var(--red-500);
  border-radius: var(--radius-sm);
}
.download__icon svg { width: 21px; height: 21px; }
.download__body { flex: 1; min-width: 0; }
.download__title {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; color: var(--ink);
  margin-bottom: .2rem; line-height: 1.4;
}
.download:hover .download__title { color: var(--navy-600); }
.download__meta { font-size: .84rem; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   16. Vergütung
   -------------------------------------------------------------------------- */
.terms {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.terms__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.terms__row:last-child { border-bottom: 0; }
.terms__row:nth-child(odd) { background: var(--gray-050); }
.terms__q { font-weight: 600; color: var(--ink); font-size: .97rem; }
.terms__a { color: var(--text-soft); font-size: .97rem; }
.terms__a strong { color: var(--navy-600); }

/* --------------------------------------------------------------------------
   17. Formular
   -------------------------------------------------------------------------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow);
}

.fieldset {
  border: 0; margin: 0 0 2rem; padding: 0;
}
.fieldset:last-of-type { margin-bottom: 1.5rem; }
.fieldset__legend {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-sans);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-600);
  padding: 0 0 1rem; margin: 0;
  width: 100%;
}
.fieldset__legend::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.fieldset__step {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  background: var(--navy-600); color: #fff;
  border-radius: 50%;
  font-size: .75rem; font-weight: 600; letter-spacing: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .89rem; font-weight: 500; color: var(--ink);
}
.field .req { color: var(--red-500); }
.field .hint { font-size: .81rem; color: var(--ink-mute); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="month"],
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: .97rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }

.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236E7F91'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 20px;
  padding-right: 2.4rem;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(43,79,110,.14);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid {
  border-color: var(--red-500);
}
.field input::placeholder, .field textarea::placeholder { color: #A9B4C0; }

/* Auswahl per Schaltflächen (Ja / Nein / Unsicher) */
.choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: inline-flex; align-items: center;
  padding: .6rem 1.05rem;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: .9rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.choice label:hover { border-color: var(--navy-500); color: var(--navy-600); }
.choice input:checked + label {
  background: var(--navy-600); border-color: var(--navy-600); color: #fff;
}
.choice input:focus-visible + label { outline: 3px solid var(--red-500); outline-offset: 2px; }

/* Einwilligung */
.consent {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--gray-050);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: .15rem;
  accent-color: var(--navy-600); cursor: pointer;
}
.consent label { font-size: .88rem; color: var(--text-soft); line-height: 1.6; }

/* Honigtopf gegen Spam – für Menschen unsichtbar */
.hp {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; justify-content: space-between;
}
.form-foot__note { font-size: .84rem; color: var(--ink-mute); margin: 0; }

/* Rückmeldung nach dem Absenden */
.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.form-status.is-visible { display: block; }
.form-status--ok {
  background: #E6F4EF; border: 1px solid #9ED4C0; color: #14603F;
}
.form-status--err {
  background: var(--red-100); border: 1px solid rgba(214,0,0,.3); color: #8C0000;
}

/* Seitliche Kontaktspalte */
.contact-aside {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h3 { font-size: 1.12rem; margin-bottom: .9rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-bottom: .9rem; font-size: .94rem;
  color: rgba(255,255,255,.8);
}
.contact-list li:last-child { margin-bottom: 0; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: .22rem; color: #FF6B6B; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-list a:hover { color: #FF6B6B; border-color: #FF6B6B; }

/* --------------------------------------------------------------------------
   18. Fußbereich
   -------------------------------------------------------------------------- */
.site-footer {
  background: #050F1B;
  color: rgba(255,255,255,.62);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .6rem; }
.footer__list a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer__list a:hover { color: #fff; }

.footer__brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.footer__brand .brand__name { font-size: 1.1rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.11);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  align-items: center; justify-content: space-between;
  font-size: .86rem; color: rgba(255,255,255,.45);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* Zurück-nach-oben */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy-900); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  cursor: pointer; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red-500); border-color: var(--red-500); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   19. Rechtsseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal-hero {
  background: linear-gradient(158deg, #0A2138 0%, #12354F 55%, #071C30 100%);
  color: #fff;
  padding-top: clamp(8rem, 13vw, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.legal-hero h1 { color: #fff; margin-bottom: .5rem; }
.legal-hero p  { color: rgba(255,255,255,.72); margin: 0; }

.legal-body { padding-block: clamp(3rem, 6vw, 4.5rem); }
.legal-body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.12rem; margin-top: 1.75rem; }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body address {
  font-style: normal; line-height: 1.8;
  background: var(--gray-050);
  border-left: 3px solid var(--navy-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.legal-toc {
  background: var(--gray-050);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.legal-toc h2 {
  font-size: .82rem !important; font-family: var(--font-sans);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-600);
  margin: 0 0 .9rem !important; padding: 0 !important; border: 0 !important;
}
.legal-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.legal-toc li { margin-bottom: .4rem; font-size: .93rem; break-inside: avoid; }

.stand {
  display: inline-block;
  font-size: .84rem; color: var(--ink-mute);
  background: var(--gray-100);
  border-radius: 100px;
  padding: .35rem .9rem;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   20. Bewegung beim Scrollen
   -------------------------------------------------------------------------- */
/* Die Elemente werden nur dann zunächst ausgeblendet, wenn JavaScript aktiv ist
   und die Klasse "js" gesetzt hat. Ohne JavaScript bleibt alles sichtbar –
   sonst wäre bei einem Skriptfehler ein Großteil der Seite unsichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Anpassung an Bildschirmgrößen
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__list { display: none; }
  .nav__toggle { display: flex; }

  .site-header.is-open .nav__list {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,28,48,.99);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .75rem var(--gutter) 1.25rem;
    gap: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  .site-header.is-open .nav__link {
    padding: .9rem .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0; font-size: 1rem;
  }
  .site-header.is-open .nav__link:hover { background: transparent; }
  .site-header.is-open .nav__link.is-active::after { display: none; }

  .nav__cta { display: none; }
  .site-header.is-open .nav__list .nav__cta--mobile { display: block; margin-top: 1rem; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-card { max-width: 30rem; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }

  .grid--contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }

  .nav { min-height: 66px; }
  .brand__logo { height: 34px; }
  .brand__mark { height: 32px; }
  .brand__name { font-size: 1rem; }
  .brand__sub  { display: none; }

  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .terms__row { grid-template-columns: 1fr; gap: .3rem; }
  .legal-toc ol { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .service::after { font-size: 4.5rem; }
  .to-top { right: 1rem; bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   22. Rücksicht auf Systemeinstellungen
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .hero-card, .nav__toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
  .section--deep { background: #fff !important; color: #000 !important; }
  .section--deep h2, .section--deep h3, .section--deep p { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
