/* Keine externen Schriften, keine Einbindungen von Dritten, ein einziges
   eigenes Skript (aufklappen.js). Das hält die Seite schnell und die
   Datenschutzerklärung kurz — es gibt schlicht nichts nachzuladen, was
   einen fremden Server kontaktiert. */
:root {
  --grund: #fbfaf8;
  --flaeche: #ffffff;
  --tinte: #16181d;
  --tinte-leise: #5b6069;
  --linie: #e3e0da;
  --akzent: #1f4b8e;
  --schrift:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f1114;
    --flaeche: #171a20;
    --tinte: #f2f1ee;
    --tinte-leise: #a3a8b2;
    --linie: #2a2e37;
    --akzent: #9dbdec;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Kopfleiste: bleibt beim Scrollen stehen, damit Impressum und Datenschutz
   von jeder Stelle der Seite aus einen Klick entfernt sind. */
.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.5rem;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}

.kopfmarke {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--tinte);
  text-decoration: none;
}

.kopfnav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.kopfnav a {
  color: var(--tinte-leise);
  text-decoration: none;
}

.kopfnav a:hover {
  color: var(--akzent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Anker landen nicht unter der klebenden Kopfleiste. */
section[id],
details[id] {
  scroll-margin-top: 4.5rem;
}

.auftakt {
  padding: clamp(4rem, 16vh, 9rem) 0 0;
}

.wortmarke {
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.wortmarke .punkt,
.kopfmarke .punkt {
  color: var(--akzent);
}

.claim {
  margin: 1.4rem 0 0;
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 24ch;
  color: var(--tinte-leise);
}

.strich {
  width: 3.5rem;
  height: 2px;
  margin: 2.75rem 0 0;
  border: 0;
  background: var(--akzent);
}

.spalten {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.spalte {
  flex: 1 1 16rem;
}

.spalte p {
  margin: 0;
  color: var(--tinte-leise);
}

.markenliste {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.foerderlogo {
  margin: 1rem 0 0;
  /* Das Logo hat einen weißen Grund ohne Transparenz (JPEG). Eine feste
     helle Platte hält es im Dark Mode lesbar, ohne die Originalfarben der
     EU-/Landesmarke per Filter zu verfälschen. */
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.foerderlogo img {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
}

.kontakt {
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
}

.kontakt h2,
.spalte h2,
.rechtliches h2 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte-leise);
}

.kontakt address {
  font-style: normal;
  display: grid;
  gap: 0.9rem;
}

.kontakt .zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.kontakt .etikett {
  flex: 0 0 5.5rem;
  color: var(--tinte-leise);
  font-size: 0.95rem;
}

@media (max-width: 30rem) {
  /* Auf schmalen Geräten reicht die Breite nicht für Etikett und Wert
     nebeneinander - das Etikett nimmt dann eine eigene Zeile. */
  .kontakt {
    padding: 1.35rem;
  }

  .kontakt .etikett {
    flex-basis: 100%;
  }
}

/* Impressum und Datenschutz: gleiche Seite, aber eine Stufe leiser und
   zum Ausklappen - die Überschrift ist die Schaltfläche (natives
   <details>, funktioniert auch ohne Skript). */
.rechtliches {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--tinte-leise);
}

.rechtliches + .rechtliches {
  margin-top: 1.5rem;
}

.rechtliches summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.25rem 0;
  user-select: none;
}

.rechtliches summary::-webkit-details-marker {
  display: none;
}

.rechtliches summary h2 {
  margin: 0;
}

/* Der Pfeil zeigt den Zustand: zu = nach unten, offen = nach oben. */
.rechtliches summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--tinte-leise);
  border-bottom: 2px solid var(--tinte-leise);
  transform: rotate(45deg) translateY(-0.1rem);
  transition: transform 0.15s ease;
}

.rechtliches[open] summary::after {
  transform: rotate(225deg) translateY(-0.1rem);
}

@media (prefers-reduced-motion: reduce) {
  .rechtliches summary::after {
    transition: none;
  }
}

.rechtliches summary:hover h2 {
  color: var(--akzent);
}

.rechtliches summary:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}

.rechtliches-inhalt {
  padding-top: 0.5rem;
}

.rechtliches h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tinte);
}

.rechtliches p,
.rechtliches ul {
  margin: 0 0 0.9rem;
}

.rechtliches ul {
  padding-left: 1.2rem;
}

.rechtliches li {
  margin-bottom: 0.35rem;
}

.stand {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 0.9rem;
}

a {
  color: var(--akzent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  flex-shrink: 0;
  border-top: 1px solid var(--linie);
  padding: 1.5rem;
}

.fussleiste {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

.fussleiste nav {
  display: flex;
  gap: 1.5rem;
}
