/* Die Seite vor der Anmeldung.
 *
 * Eigene Datei statt eines weiteren Abschnitts in stil.css: Das Portal lädt
 * diese Regeln nie, und die Startseite braucht vom Portal nur die Farben, die
 * Wortmarke und die Knöpfe. Alles hier beginnt mit ``start-``, damit sich
 * nichts in die Quere kommt.
 */

.startseite { background: var(--flaeche); font-size: 16px; }

.start-breite {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
}

/* ======================================================== Kopf */

.start-kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.start-kopf.gerollt {
  border-bottom-color: var(--linie);
  box-shadow: 0 6px 24px rgba(6, 55, 79, .06);
}
.start-kopf-innen {
  display: flex; align-items: center; gap: 1.5rem; height: 68px;
}
.start-marke { text-decoration: none; display: inline-flex; }
.start-navi { display: flex; gap: 1.5rem; margin-left: auto; }
/* Nichts in der Kopfzeile bricht um — wird es eng, weicht zuerst die Navigation. */
.start-navi a, .start-login, .start-marke { white-space: nowrap; flex: none; }
.start-navi a {
  color: var(--text-leise); text-decoration: none;
  font-size: .93rem; font-weight: 600;
}
.start-navi a:hover { color: var(--blau-dunkel); }
.start-login { padding: .55rem 1.25rem; }

/* ======================================================== Held */

.start-held { position: relative; overflow: hidden; }
/* Hinter dem Bild liegt nur ein weicher Schein in Markenblau — er gibt der
   Zeichnung einen Ort, ohne selbst etwas zu sein. */
.start-held::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 72% 48%, rgba(0, 120, 179, .07), transparent 70%);
}
.start-held-innen {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem; align-items: center;
  padding-top: 4.2rem; padding-bottom: 4.5rem;
}

.start-ueberzeile {
  margin: 0 0 .9rem; color: var(--blau);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
}
.start-held h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  margin: 0 0 1.3rem; color: var(--blau-tief);
}
.start-held h1 em { color: var(--blau); }
.start-lede {
  font-size: 1.12rem; line-height: 1.6; color: var(--text-leise);
  max-width: 34rem; margin: 0 0 1.8rem;
}
.start-knoepfe { display: flex; gap: .7rem; flex-wrap: wrap; }
.start-gross { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 10px; }
.start-haken {
  list-style: none; margin: 1.7rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  color: var(--text-leise); font-size: .9rem; font-weight: 600;
}
.start-haken li { display: inline-flex; align-items: center; gap: .4rem; }
.start-haken .icon { color: var(--gruen-dunkel); }

.start-bild { margin: 0; position: relative; }
.start-bild canvas {
  display: block; width: 100%; /* Vorläufig — das Skript setzt das genaue Verhältnis des Bildes. */
  aspect-ratio: 20.17 / 13.8;
}
.start-bild figcaption {
  text-align: right; color: var(--text-still); font-size: .72rem;
  margin-top: -.4rem; padding-right: .5rem;
}

/* Der Text kommt beim Laden einmal von unten herein. Wer Bewegung abgestellt
   hat, sieht ihn sofort — das regelt stil.css für alle Animationen. */
@keyframes start-herein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.start-held-text > * { animation: start-herein .7s cubic-bezier(.2, .7, .2, 1) both; }
.start-held-text > :nth-child(2) { animation-delay: .06s; }
.start-held-text > :nth-child(3) { animation-delay: .12s; }
.start-held-text > :nth-child(4) { animation-delay: .18s; }
.start-held-text > :nth-child(5) { animation-delay: .24s; }
.start-bild { animation: start-herein .9s .1s cubic-bezier(.2, .7, .2, 1) both; }

/* ================================================== Abschnitte */

.start-abschnitt { padding: 5rem 0; scroll-margin-top: 68px; }
.start-getoent {
  background: var(--flaeche-leise);
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.start-abschnitt h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 2.4rem;
}
.start-abschnitt h2 em { color: var(--blau); }

.start-schritte {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
}
.start-schritte li {
  position: relative; padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche);
}
.start-nummer {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--blau-blass); color: var(--blau-dunkel);
  font-weight: 800; margin-bottom: .9rem;
}
.start-schritte h3, .start-karte h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.start-schritte p, .start-karte p { color: var(--text-leise); margin: 0; }

.start-karten {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.start-karte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 16px; padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.start-karte:hover {
  transform: translateY(-3px); box-shadow: var(--schatten-hoch);
  border-color: var(--blau-rand);
}
.start-zeichen {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: var(--gruen-blass); color: var(--gruen-dunkel);
  margin-bottom: 1rem;
}
.start-zeichen .icon { width: 1.3rem; height: 1.3rem; }

/* ===================================================== Kontakt */

.start-ruf {
  display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  padding: 2.8rem 3rem; border-radius: 24px; color: #fff;
  /* Dasselbe Blau-ins-Grün wie auf der Anmeldeseite. */
  background:
    radial-gradient(900px 500px at 8% -20%, rgba(0, 120, 179, .55), transparent 62%),
    linear-gradient(120deg, #0a6d9e 0%, #2a93c4 50%, #6aa93a 100%);
}
.start-ruf h2 { color: #fff; margin: 0 0 .6rem; }
.start-ruf p { margin: 0; max-width: 30rem; font-size: 1.05rem; opacity: .95; }
.start-ruf .start-ruf-zeiten { margin-top: .8rem; font-size: .85rem; opacity: .85; }
.start-ruf-wege { display: grid; gap: .6rem; justify-items: start; }
.start-ruf-wege a:not(.knopf) { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.start-ruf-nummer {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em;
  text-decoration: none;
}
.start-ruf-wege .knopf { margin-top: .5rem; border-color: transparent; }

/* ========================================================= Fuß */

.start-fuss {
  border-top: 1px solid var(--linie); color: var(--text-leise);
  font-size: .85rem; line-height: 1.65;
}
.start-fuss-innen {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 2rem;
  padding-top: 2.5rem; padding-bottom: 2rem;
}
.start-fuss p { margin: .6rem 0 0; }
.start-fuss strong { color: var(--text); }
.start-fuss-recht { font-size: .78rem; }
.start-fuss-unten {
  border-top: 1px solid var(--linie); padding: 1rem 1.5rem;
  text-align: center; font-size: .76rem; color: var(--text-still);
}

/* =================================================== Einblenden */

/* Nur mit Skript: Ohne es bliebe die Seite sonst leer. */
.mit-skript .einblenden {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.mit-skript .einblenden.da { opacity: 1; transform: none; }
.mit-skript .einblenden:nth-child(2) { transition-delay: .07s; }
.mit-skript .einblenden:nth-child(3) { transition-delay: .14s; }
.mit-skript .einblenden:nth-child(5) { transition-delay: .07s; }
.mit-skript .einblenden:nth-child(6) { transition-delay: .14s; }

/* ====================================================== Schmal */

@media (max-width: 980px) {
  .start-held-innen {
    grid-template-columns: 1fr; padding-top: 2.6rem; padding-bottom: 2.5rem;
  }
  .start-held::before {
    background: radial-gradient(ellipse 80% 40% at 50% 78%, rgba(0, 120, 179, .07), transparent 70%);
  }
  .start-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-fuss-innen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .start-navi { display: none; }
  .start-login { margin-left: auto; }
}
@media (max-width: 720px) {
  .start-kopf-innen { gap: .8rem; }
  .start-breite { padding: 0 1.1rem; }
  .start-bild { margin: 0 -1.1rem; }
  .start-abschnitt { padding: 3.2rem 0; }
  .start-schritte, .start-karten { grid-template-columns: 1fr; }
  .start-ruf { padding: 2rem 1.4rem; border-radius: 18px; }
  .start-fuss-innen { grid-template-columns: 1fr; gap: 1.2rem; }
  .start-kopf .wm-zusatz { display: none; }
}
