@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #003fbc;
  --blue-light: #0070c0;
  --blue-dark: #002a80;
  --sky: #59a1d5;
  --band: #3f8fca;
  --arc: #b9d8ef;
  --ink: #0f1b3d;
  --muted: #4a5878;
  --line: #dde3f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 14px;
  --max: 1040px;
  --text: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0; }

/* Kopfzeile: nur das Logo, zentriert */
.site-header { padding: 48px 0 8px; }
.site-header .wrap { display: flex; justify-content: center; }
.logo { display: inline-flex; }
.logo img, .logo-svg { display: block; height: 64px; width: auto; overflow: visible; }
.logo-svg .ch { fill: var(--c); }

/* Logo-Animation: Umriss wird gezeichnet, dann gefüllt */
.logo-svg.draw .ch {
  fill-opacity: 0;
  stroke: var(--c);
  stroke-width: 14;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    logo-stroke 0.9s cubic-bezier(.6,.1,.3,1) forwards,
    logo-fill 0.45s ease forwards;
  animation-delay:
    calc(var(--i) * 0.14s),
    calc(var(--i) * 0.14s + 0.75s);
}
@keyframes logo-stroke { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .logo-svg.draw .ch { animation: none; fill-opacity: 1; stroke: none; }
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark .di { color: var(--blue); }
.wordmark .leas { color: var(--blue-light); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--ink); }

/* Einstieg */
.hero { padding: 56px 0 64px; }
.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin-top: 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--blue);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); }
.btn-secondary:hover { background: var(--bg-soft); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { flex: none; }
.facts-form { margin-top: 18px; }

/* Abschnitte */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { margin-top: 14px; color: var(--muted); }

.prose { max-width: 680px; }
.prose p + p { margin-top: 16px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* Über uns */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}
.person .role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.person .bio { margin-top: 10px; font-size: 16px; color: var(--ink); }
.contact-line { margin-top: 28px; color: var(--muted); }

/* Fragebogen */
.promise {
  border-left: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}
.promise strong { color: var(--ink); }
.form-frame {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 4px;
  min-height: 300px;
}
.form-frame iframe { display: block; width: 100%; border: 0; }
.form-fallback { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Fusszeile */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Unterseiten */
.page { padding: 56px 0 72px; }
.page .prose h2 { font-size: 22px; margin: 40px 0 12px; }
.page .prose h1 + p { margin-top: 16px; color: var(--muted); }
.page .prose ul { padding-left: 22px; margin: 12px 0 0; }
.page .prose li + li { margin-top: 6px; }

.todo { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 44px; }
  .site-header { padding-top: 32px; }
  .logo img, .logo-svg { height: 48px; }
  .section { padding: 48px 0; }
  .btn { width: 100%; }
  .btn-link { width: 100%; justify-content: center; }
}

/* Formensprache aus dem Onepager: Bögen, Punkte, Welle */
.hero, .site-header { position: relative; }
.hero { overflow: hidden; }
.hero .wrap, .site-header .wrap { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco circle.ring { fill: none; stroke: var(--arc); stroke-width: 2; }
.deco circle.dot { fill: var(--arc); }
.deco-hero-right { width: 760px; height: 760px; right: -470px; top: -170px; }
.deco-hero-left { width: 620px; height: 620px; left: -470px; top: 40px; }
.deco-team { width: 520px; height: 520px; right: -300px; bottom: -260px; }
.section { position: relative; overflow: hidden; }
.section .wrap { position: relative; z-index: 1; }

.wave-edge { display: block; width: 100%; height: 56px; margin-bottom: -1px; }
.wave-edge path.fill { fill: var(--bg-soft); }
.wave-edge path.line { fill: none; stroke: var(--arc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.section-soft.has-wave { padding-top: 24px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-light);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.section-head .label, .prose .label { color: var(--blue-light); margin-top: 0; }
.label::before { content: ""; width: 14px; height: 2px; background: currentColor; }

.marker { display: block; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 16px; }
.marker-1 { border: 3px solid var(--blue-light); }
.marker-2 { background: var(--blue-light); }
.marker-3 { background: var(--blue); }

.band {
  background: var(--band);
  color: #fff;
  text-align: center;
  padding: 18px 24px;
}
.band h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 0.04em; text-transform: uppercase; }
.section-after-band { padding-top: 40px; }

.person h3 { color: var(--blue-light); }

@media (max-width: 560px) {
  .deco-hero-right { width: 320px; height: 320px; right: -220px; top: -150px; }
  .deco-hero-left { display: none; }
  .deco-team { display: none; }
  .wave-edge { height: 32px; }
}

/* Ausgewählte Elemente: Sterne, Wellenlinien, Tablet, Bogenpfeile, Kapseln */
.deco-star { display: block; }
.pos-hero-star1 { right: 21%; top: 120px; }
.pos-hero-star2 { left: 5%; bottom: 70px; }
.wave-divider { display: block; width: 100%; height: 112px; margin-top: -1px; }
.wave-divider .wf { fill: var(--bg-soft); }
.wave-divider .wl { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#warum { padding-bottom: 24px; }
#projekt { padding-top: 72px; padding-bottom: 104px; }
.pos-warum-star { right: 30%; bottom: 48px; }
.pos-projekt-star { right: 9%; top: 72px; }
.grid-flow { position: relative; }
.pos-arrow1, .pos-arrow2 { width: 120px; height: 36px; top: -34px; z-index: 2; }
.pos-arrow1 { left: calc(33.33% - 60px); }
.pos-arrow2 { left: calc(66.66% - 60px); }
.deco-arrow { display: block; width: 100%; height: 100%; }
.deco-tablet { width: 96px; height: 126px; right: 10%; top: 50%; transform: translateY(-50%) rotate(-12deg); }
.deco-caps { width: 160px; height: 62px; right: 7%; top: 36px; }
.band-wave { display: block; width: 100%; height: 36px; margin-top: -1px; }
.band-wave path { fill: var(--band); }
.section-after-band { padding-top: 24px; }

@media (max-width: 900px) {
  .pos-arrow1, .pos-arrow2, .deco-caps { display: none; }
}
@media (max-width: 560px) {
  .deco-tablet { display: none; }
  #projekt { padding-top: 48px; padding-bottom: 72px; }
  .pos-hero-star1 { right: 8%; top: 90px; }
  .band-wave { height: 20px; }
  .wave-divider { height: 64px; }
}

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  background:
    linear-gradient(var(--blue-light), var(--blue-light)) center / 10px 2px no-repeat,
    linear-gradient(var(--blue-light), var(--blue-light)) center / 2px 10px no-repeat;
}
.faq-item[open] summary::after {
  background: var(--blue-light);
  background-image: linear-gradient(#fff, #fff);
  background-size: 10px 2px;
  background-position: center;
  background-repeat: no-repeat;
}
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.faq-item p { padding: 0 0 20px; color: var(--muted); max-width: 680px; }
#faq { padding-top: 24px; padding-bottom: 72px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-link:hover { color: var(--blue-dark); }

/* Kacheln */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 12px; }
.tile { position: relative; overflow: hidden; border-radius: 18px; min-height: 460px; padding: 56px 48px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tile h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.tile-sub { max-width: 480px; font-size: 17px; }
.tile-sub + .tile-sub { margin-top: 12px; }
.tile-light { background: var(--bg-soft); color: var(--ink); }
.tile-light .tile-sub { color: var(--muted); }
.tile-dark { background: #0b1a3a; color: #fff; }
.tile-dark .tile-sub { color: #c9d6ee; }
.tile-art { margin-top: auto; }
.tile-tablet { width: 92px; height: 120px; transform: rotate(-10deg); margin-top: 36px; }
.tile-waves { position: absolute; left: 0; bottom: 36px; width: 100%; height: 110px; opacity: .9; }
.tile-points { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; max-width: 470px; display: flex; flex-direction: column; gap: 22px; }
.tile-points li { display: flex; gap: 16px; align-items: flex-start; color: #c9d6ee; font-size: 16px; }
.tile-points strong { color: #fff; }
.tile-points .marker { flex: none; width: 22px; height: 22px; margin: 2px 0 0; }
.tile-dark .marker-1 { border-color: #7fb6e6; }
.tile-dark .marker-2 { background: #3f8fca; }
.tile-dark .marker-3 { background: #fff; }
.tile-people { display: flex; gap: 40px; margin: 32px 0 24px; flex-wrap: wrap; justify-content: center; }
.tile-person { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tile-person .avatar { width: 72px; height: 72px; font-size: 22px; }
.tile-person p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tile-person strong { color: var(--ink); font-size: 17px; }
.tile-more { margin-top: auto; color: var(--muted); font-size: 16px; }
.tile-link { margin-top: 6px; font-weight: 700; }
.tile-cta { justify-content: flex-start; }
.tile-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; position: relative; z-index: 1; }
.btn-on-dark { background: #fff; color: var(--blue); border-color: #fff; }
.btn-on-dark:hover { background: #e3effa; border-color: #e3effa; color: var(--blue-dark); }
.btn-outline-dark { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; padding: 0 8px 8px; gap: 8px; }
  .tile { min-height: 0; padding: 44px 24px 40px; }
  .tile-cta { padding-bottom: 150px; }
}
.section-form { padding-top: 72px; }

/* Einstieg zentriert und Animationen */

.hero .wrap { text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.hero h1 { max-width: 860px; margin: 0 auto; }
@media (min-width: 900px) { .deco-hero-right { right: -560px; } }

/* 1: Kacheln erscheinen beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 2: Wellen bewegen sich langsam */
.tile-waves .w { animation: drift 9s ease-in-out infinite alternate; }
.tile-waves .w1 { animation-duration: 11s; animation-delay: -3s; }
.tile-waves .w2 { animation-duration: 13s; animation-delay: -6s; }
.tile-waves .w3 { animation-duration: 10s; animation-delay: -2s; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }

/* 3: Kreise erscheinen nacheinander */
.js #projekt .marker { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.js #projekt.is-visible .marker { transform: scale(1); }
.js #projekt.is-visible li:nth-child(1) .marker { transition-delay: .45s; }
.js #projekt.is-visible li:nth-child(2) .marker { transition-delay: .8s; }
.js #projekt.is-visible li:nth-child(3) .marker { transition-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile-waves .w { animation: none; }
  .js #projekt .marker { transform: none; transition: none; }
}
