/*
  SPARKS Landingpage. Gestaltung nach dem Entwurf aus der Design-Leinwand:
  Barlow, Dunkelblau 1E3750, Grün 5BAA78, keine Rundungen, keine Schatten.
  Schriften liegen lokal, es werden keine Dateien von fremden Servern geladen.
*/

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/barlow-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/barlow-latin-600-normal.woff2") format("woff2");
}

:root {
  --blue: #1e3750;
  --blue-soft: #dde3ea;
  --green: #5baa78;
  --green-dark: #3e8a5c;
  --grey-50: #f4f6f8;
  --grey-200: #e1e6eb;
  --grey-600: #5a6878;
  --grey-400: #b7c2ce;
  --red: #b3261e;
  --red-dark: #8c1d18;
  --red-tint: #fcf1f0;
  --gutter: 80px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Barlow, Bahnschrift, "DIN Alternate", system-ui, sans-serif;
  font-weight: 300;
  color: var(--blue);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero :focus-visible,
.footer :focus-visible {
  outline-color: #ffffff;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: #ffffff;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Kopf */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #ffffff;
  padding: 32px 0 104px;
}

.hero-spark {
  position: absolute;
  right: -220px;
  top: -150px;
  width: 1080px;
  height: 1080px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
}

.logo {
  height: 124px;
  width: auto;
  margin-left: -4px;
}

.logo-small {
  height: 72px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--blue);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.eyebrow-light {
  color: #ffffff;
}

.eyebrow-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.accent-line {
  display: block;
  width: 72px;
  height: 3px;
  background: var(--green);
}

h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.claim {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

.lead-light {
  margin: 0;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--blue-soft);
}

/* Kostenfrei: prominent im Kopf, direkt über dem Aufruf */
.kostenfrei {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin: 0;
  padding: 10px 16px 10px 12px;
  border-left: 3px solid var(--green);
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
.kostenfrei svg {
  flex-shrink: 0;
  color: var(--green);
}
.kostenfrei strong {
  color: var(--green);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  min-height: 60px;
  padding: 16px 28px;
  border: 0;
  background: var(--green);
  color: var(--blue);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--green-dark);
  color: #ffffff;
}

/* Keil mit dem Stand */

.wedge {
  background: var(--green);
  color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  padding: 30px 0 60px;
}

.wedge-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.wedge-label {
  font-size: 20px;
  letter-spacing: 0.13em;
  padding-top: 4px;
  flex-shrink: 0;
}

.wedge-text {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  max-width: 820px;
}

/* Zwei Spalten */

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 104px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--blue);
  padding-top: 24px;
}
.column-accent {
  border-top-color: var(--green);
}

.numeral {
  margin: 0;
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.numeral span {
  color: var(--green);
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
}

.column p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.column .rollen {
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
  font-size: 17px;
}
.rollen strong {
  font-weight: 600;
}

/* Partner im Projekt */

.partner {
  padding: 8px 0 104px;
}
.partner-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.partner-inner h2 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.partner-lead {
  margin: 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.5;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 12px;
}
.partner-karte {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 30px;
  background: var(--grey-50);
  border-top: 3px solid var(--blue);
}
.partner-karte-verbund {
  border-top-color: var(--green);
}
.partner-rolle {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--grey-600);
}
.partner-logo {
  display: flex;
  align-items: center;
  height: 88px;
}
.partner-logo img {
  height: 44px;
  width: auto;
}
.partner-logo .logo-neuland {
  height: 72px;
}
.partner-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.partner-link {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Formular */

.form-section {
  background: var(--grey-50);
  padding: 96px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.form-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-intro h2 {
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.form-intro p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.card {
  background: #ffffff;
  border-top: 3px solid var(--blue);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
}
.card-done {
  border-top-color: var(--green);
  gap: 18px;
}
.card-done h2 {
  font-size: 36px;
}
.card-done p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

label {
  font-size: 15px;
  font-weight: 600;
}
.optional {
  font-weight: 300;
  color: var(--grey-600);
}

input[type="text"],
input[type="email"] {
  height: 52px;
  border: 1px solid var(--blue);
  border-radius: 0;
  padding: 0 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  color: var(--blue);
  background: #ffffff;
}

input[aria-invalid="true"] {
  border: 2px solid var(--red);
  padding: 0 13px;
}

.field-error {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--red-dark);
}
.consent-error {
  padding-left: 38px;
  margin-top: -18px;
}

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.consent input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.consent label {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}
.consent input[aria-invalid="true"] {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--red);
  background: var(--red-tint);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--red-dark);
}
.alert svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--red);
}

.note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--grey-600);
}

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

/* Förderhinweis */

.foerderung .eyebrow-block {
  align-items: center;
}

.foerderung {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 88px;
  padding-bottom: 96px;
  text-align: center;
}
.foerder-text {
  margin: 8px 0 24px;
  max-width: 880px;
  font-size: 18px;
  line-height: 1.55;
}
.foerderung img {
  width: 960px;
}

/* Fuß */

.footer {
  background: var(--blue);
  color: #ffffff;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 400;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--green);
}
.teilen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-400);
}
.teilen a,
.teilen button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}
.teilen a:hover,
.teilen button:hover {
  color: var(--green);
}

.footer-meta {
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--grey-400);
}
.footer-meta a {
  color: #ffffff;
}

/* Rechtstexte */

.legal {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.legal h1 {
  font-size: 44px;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 26px;
  margin-top: 40px;
}
.legal p,
.legal li {
  font-size: 18px;
  line-height: 1.6;
}
.legal ul {
  padding-left: 20px;
}
.legal .back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.legal-head {
  background: var(--blue);
  color: #ffffff;
  padding: 24px 0;
}
.legal-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
  }
  h1 {
    font-size: 56px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .foerderung img {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  .hero {
    padding-bottom: 72px;
  }
  .hero-spark {
    right: -320px;
    top: -220px;
    width: 800px;
    height: 800px;
  }
  .topnav {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .logo {
    height: 84px;
  }
  .logo-small {
    height: 60px;
  }
  h1 {
    font-size: 40px;
  }
  .claim {
    font-size: 20px;
  }
  .lead-light {
    font-size: 18px;
  }
  .kostenfrei {
    font-size: 18px;
  }
  .btn {
    font-size: 17px;
    padding: 14px 20px;
  }
  .wedge {
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
    padding-bottom: 48px;
  }
  .wedge-inner {
    flex-direction: column;
    gap: 12px;
  }
  .wedge-text {
    font-size: 19px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  h2,
  .card-done h2 {
    font-size: 28px;
  }
  .form-intro h2 {
    font-size: 34px;
  }
  .form-section {
    padding: 56px 0;
  }
  .card {
    padding: 24px 20px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .foerderung {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .partner {
    padding-bottom: 56px;
  }
  .partner-inner h2 {
    font-size: 30px;
  }
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .partner-karte {
    padding: 22px 20px 24px;
  }
  .partner-logo {
    height: 72px;
  }
  .partner-logo img {
    height: 36px;
  }
  .partner-logo .logo-neuland {
    height: 60px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-meta {
    text-align: left;
  }
  .teilen {
    gap: 14px;
  }
  .legal h1 {
    font-size: 32px;
  }
}

/*
  Bewegung: nur wenn JavaScript läuft und niemand reduzierte Bewegung eingestellt hat.
  Alles Weitere steuert app.js über die Klasse „sichtbar“.
*/
.hero-spark {
  transform: translate3d(0, var(--verschiebung, 0px), 0);
  will-change: transform;
}

.btn svg {
  transition: transform 0.3s ease;
}
.btn:hover svg {
  transform: translateY(3px);
}

@media (prefers-reduced-motion: no-preference) {
  /* Einblenden von unten */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js [data-reveal].sichtbar {
    opacity: 1;
    transform: none;
  }

  /* Gruppen: der Rahmen bleibt, die Kinder kommen nacheinander */
  .js [data-reveal="gruppe"] {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="gruppe"] > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js [data-reveal="gruppe"].sichtbar > * {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="gruppe"] > :nth-child(2) {
    transition-delay: 0.08s;
  }
  .js [data-reveal="gruppe"] > :nth-child(3) {
    transition-delay: 0.16s;
  }
  .js [data-reveal="gruppe"] > :nth-child(4) {
    transition-delay: 0.24s;
  }
  .js [data-reveal="gruppe"] > :nth-child(5) {
    transition-delay: 0.32s;
  }
  .js [data-reveal="gruppe"] > :nth-child(6) {
    transition-delay: 0.4s;
  }
  .js [data-reveal="gruppe"] > :nth-child(7) {
    transition-delay: 0.48s;
  }

  /* Nebeneinander liegende Blöcke leicht versetzt */
  .js .columns > [data-reveal]:nth-child(2),
  .js .form-grid > [data-reveal]:nth-child(2) {
    transition-delay: 0.15s;
  }

  /* Der Keil schiebt sich von links herein */
  .js .wedge-inner[data-reveal] {
    transform: translateX(-32px);
  }
  .js .wedge-inner[data-reveal].sichtbar {
    transform: none;
  }

  /* Grüne Linien wachsen */
  .js .accent-line {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
  }
  .js .foerderung .accent-line {
    transform-origin: center;
  }
  .js .sichtbar .accent-line,
  .js .sichtbar.eyebrow-block .accent-line {
    transform: scaleX(1);
  }

  /* Die Linie über den Spalten zieht sich auf */
  .js .column[data-reveal] {
    border-top-color: transparent;
    background: linear-gradient(var(--blue), var(--blue)) top left / 0 3px no-repeat;
    background-origin: border-box;
    transition:
      opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      background-size 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
  }
  .js .column-accent[data-reveal] {
    background-image: linear-gradient(var(--green), var(--green));
  }
  .js .column[data-reveal].sichtbar {
    background-size: 100% 3px;
  }

  /* Der grüne Punkt hinter 01 und 02 springt auf */
  .js .column .numeral span {
    display: inline-block;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.6s;
  }
  .js .column.sichtbar .numeral span {
    transform: scale(1);
  }

  /* Funke im Kopf: Strahlen zeichnen sich, der Kern atmet, alles dreht sehr langsam */
  .js .hero-spark line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: strahl 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .js .hero-spark line:nth-child(2) {
    animation-delay: 0.06s;
  }
  .js .hero-spark line:nth-child(3) {
    animation-delay: 0.12s;
  }
  .js .hero-spark line:nth-child(4) {
    animation-delay: 0.18s;
  }
  .js .hero-spark line:nth-child(5) {
    animation-delay: 0.24s;
  }
  .js .hero-spark line:nth-child(6) {
    animation-delay: 0.3s;
  }
  .js .hero-spark line:nth-child(7) {
    animation-delay: 0.36s;
  }
  .js .hero-spark line:nth-child(8) {
    animation-delay: 0.42s;
  }
  .js .hero-spark line:nth-child(9) {
    animation-delay: 0.48s;
  }
  .js .hero-spark line:nth-child(10) {
    animation-delay: 0.54s;
  }
  .hero-spark .funke {
    transform-origin: 500px 500px;
    animation: drehen 180s linear infinite;
  }
  .hero-spark .funke-kern {
    transform-origin: 500px 500px;
    animation: atmen 5s ease-in-out infinite;
  }
}

@keyframes strahl {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}
@keyframes atmen {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spark {
    transform: none;
  }
}
