/* NESCADE – Entwurf. Farben übernommen von nescade.de */
/* Schriften liegen lokal (fonts.css, fonts/) – keine Verbindung zu Google */

:root {
  --navy: #1b365d;      /* Haupttext / Überschriften (Live-Seite) */
  --navy-2: #213e64;
  --ink: #0b1e28;       /* Footer */
  --blue: #3273bc;      /* Akzent */
  --blue-dark: #095bb1;
  --blue-light: #4895ef;
  --cyan: #aae9f6;
  --bg-soft: #f0faff;   /* heller Hintergrund (Live-Seite) */
  --white: #fff;
  --muted: #4f5f7e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 54, 93, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: Montserrat, "Open Sans", sans-serif; line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p, li, dd, .contact, h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3edf6;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .12em; color: var(--navy); }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem;
}
.menu a:hover { background: var(--bg-soft); }
.menu a[aria-current="page"] { color: var(--blue-dark); background: var(--bg-soft); }
.menu .cta a { background: var(--blue-dark); color: var(--white); }
.menu .cta a:hover, .menu .cta a[aria-current="page"] { background: var(--navy); color: var(--white); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid #e3edf6; padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu a { border-radius: 10px; padding: 12px 14px; }
  .menu .cta { margin-top: 8px; }
  .menu .cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--bg-soft) 0%, #fff 60%);
  padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .eyebrow { margin-bottom: 12px; }
.hero h1 span { display: block; font-size: .5em; color: var(--blue-dark); margin-top: .35em; font-weight: 600; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { order: -1; aspect-ratio: 16/10; }
}

/* Startseite: Vollbild-Hero mit Foto */
.hero-photo {
  position: relative; color: var(--white);
  background: linear-gradient(90deg, rgba(27,54,93,.94) 0%, rgba(27,54,93,.78) 45%, rgba(27,54,93,.15) 100%),
              url(img/hero-start.jpg) center 35% / cover no-repeat;
  min-height: min(78vh, 680px); display: flex; align-items: center; padding: 72px 0;
}
.hero-photo .inner { max-width: 620px; }
.hero-photo h1 { color: var(--white); }
.hero-photo h1 span { display: block; font-size: .5em; color: var(--cyan); margin-top: .35em; font-weight: 600; }
.hero-photo .eyebrow { color: var(--cyan); margin-bottom: 12px; }
.hero-photo p.lead { font-size: 1.15rem; color: #e6f2fb; }
.hero-photo .btn.ghost { color: var(--white); border-color: var(--white); }
.hero-photo .btn.ghost:hover { background: var(--white); color: var(--navy); }
@media (max-width: 860px) {
  .hero-photo {
    min-height: 0; padding: 220px 0 40px;
    background: linear-gradient(180deg, rgba(27,54,93,.05) 0%, rgba(27,54,93,.85) 38%, var(--navy) 60%),
                url(img/hero-start.jpg) center top / 100% auto no-repeat, var(--navy);
  }
}

/* Video auf der Startseite */
.video-section { background: var(--navy); color: var(--white); }
.video-section h2 { color: var(--white); }
.video-section .eyebrow { color: var(--cyan); }
.video-head { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.video-head p { color: #d6e6f3; margin: 0; }
.video-frame { max-width: 960px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.35); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }

/* ---------- Page header (Unterseiten) ---------- */
.page-head { background: var(--navy); color: var(--white); padding: 56px 0 48px; }
.page-head.has-img {
  background: linear-gradient(90deg, rgba(27,54,93,.95) 0%, rgba(27,54,93,.8) 50%, rgba(27,54,93,.35) 100%),
              var(--bg) center / cover no-repeat;
  padding: 96px 0 80px;
}
@media (max-width: 860px) { .page-head.has-img { padding: 64px 0 48px; background: linear-gradient(rgba(27,54,93,.85), rgba(27,54,93,.85)), var(--bg) center / cover no-repeat; } }
.partner-logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; object-position: left; margin-bottom: 16px; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.logo-row a { display: flex; align-items: center; justify-content: center; height: 72px; padding: 8px; border-radius: 10px; transition: background .2s; }
.logo-row a:hover { background: var(--bg-soft); }
.logo-row img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 760px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { color: var(--cyan); margin: 10px 0 0; max-width: 46em; font-size: 1.1rem; }

/* ---------- Bausteine ---------- */
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--blue-dark); color: var(--white); text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn.ghost { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue-dark); }
.btn.ghost:hover { background: var(--blue-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
@media (max-width: 860px) { section { padding: 48px 0; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.cards > *, .partner > * { min-width: 0; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--blue);
}
.card h3 { margin-bottom: .4em; }
.card .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue-dark); font-weight: 700; margin-bottom: 12px;
}
.card p:last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.fact { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.fact strong { display: block; font-size: 1.5rem; font-family: Montserrat, sans-serif; color: var(--blue-dark); }
.fact span { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-dark); color: var(--white); display: grid; place-items: center; font-weight: 700;
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--cyan); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3em; }

/* Partner */
.partner { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.partner .role { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--white); background: var(--blue); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.contact { background: var(--bg-soft); border-radius: 12px; padding: 18px 20px; font-size: .95rem; line-height: 1.6; }
.contact strong { display: block; }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; gap: 16px; } }

/* Studien */
.study { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.study aside { position: sticky; top: 100px; }
.info-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px; }
.info-box h3 { color: var(--white); }
.info-box dl { margin: 0; }
.info-box dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-top: 12px; }
.info-box dd { margin: 0; }
.info-box .btn { margin-top: 20px; background: var(--white); color: var(--navy); width: 100%; text-align: center; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-dark); font-weight: 700; }
@media (max-width: 860px) {
  .study { grid-template-columns: 1fr; }
  .study aside { position: static; }
}
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cyan); color: var(--navy); margin-bottom: 10px; }

.empty { text-align: center; padding: 48px 24px; border: 2px dashed #cfe0ef; border-radius: var(--radius); color: var(--muted); }

/* Datenschutz-Abfrage (consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: flex; justify-content: center; }
.consent-modal { top: 0; bottom: 0; left: 0; right: 0; padding: 16px; align-items: center; background: rgba(11, 30, 40, .55); }
.consent-box { background: var(--white); color: var(--navy); max-width: 720px; width: 100%; border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 16px 48px rgba(11, 30, 40, .25); max-height: calc(100vh - 32px); overflow-y: auto; }
.consent-title { font-size: 1.25rem; margin-bottom: .5em; }
.consent-text { font-size: .95rem; line-height: 1.55; margin: 0 0 .7em; }
.consent-icon { margin-right: 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.consent-spacer { flex: 1; }
.consent-btn { font: inherit; font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 10px 22px; cursor: pointer; border: 2px solid transparent; }
.consent-btn.primary { background: #256d85; color: var(--bg-soft); }
.consent-btn.primary:hover { background: var(--navy); }
.consent-btn.link { background: none; color: #256d85; padding-left: 0; padding-right: 0; text-decoration: underline; }
.consent-btn.small { font-size: .85rem; padding-top: 2px; padding-bottom: 2px; }
.consent-btn:focus-visible, .consent input:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.consent-links { font-size: .85rem; margin: 12px 0 0; }
.consent-all { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 8px 0 12px; }
.consent-service { border-top: 1px solid #e3edf6; padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.consent-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; flex: 1; cursor: pointer; }
.consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-slider { width: 42px; height: 24px; border-radius: 999px; background: #c5d3e0; position: relative; flex: none; transition: background .2s; }
.consent-slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.consent-switch input:checked + .consent-slider { background: #256d85; }
.consent-switch input:checked + .consent-slider::after { transform: translateX(18px); }
.consent-switch input:focus-visible + .consent-slider { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.consent-desc { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
.consent-desc p { margin: 0 0 .4em; }
@media (max-width: 520px) { .consent-actions .consent-btn.primary { flex: 1; } .consent-spacer { display: none; } }
@media (prefers-reduced-motion: reduce) { .consent-slider, .consent-slider::after { transition: none; } }

/* Interne Hinweise (nur im Entwurf sichtbar, vor Veröffentlichung entfernen) */
.todo { background: #fff6d6; border-left: 4px solid #e0a800; padding: 10px 14px; border-radius: 6px; font-size: .9rem; color: #5a4500; margin: 12px 0; }

/* ---------- Förder-/Partnerleiste + Footer ---------- */
.funding { background: var(--white); border-top: 1px solid #e3edf6; padding: 48px 0; }
.funding-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.funding h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.funding .foerder img { max-width: 260px; }
@media (max-width: 760px) { .funding-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--ink); color: #c9d6e3; padding: 40px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--white); font-size: .95rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #8ea3b8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
