/* Startseite für Max, 3.9.2026 — Vorbilder: mobbin.com (eine zentrierte Aussage, viel
   Luft, schwebende Pillen-Leiste) und linear.app (das Produkt selbst ist das Bild).
   Die Oberflächen im Bild sind echte Portal-Bausteine aus style.css, nur in einen Rahmen
   (.fenster) gesetzt. Hier steht nur Layout; Farben, Radien, Schatten kommen aus den
   Tokens. Bewegung in start.js, ohne JS ist alles sichtbar. Nur transform und opacity. */

#start { position: relative; z-index: 2; background: #fff; color: var(--tinte); overflow-x: clip; }
[data-theme="dark"] #start { background: var(--grund); }
#start .innen { width: min(1040px, 100% - 48px); margin-inline: auto; }
#start .innen--schmal { width: min(760px, 100% - 48px); margin-inline: auto; text-align: center; }
#start > section { padding: 96px 0; }
#start h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
#start h1 .w > span { display: inline-block; }
#start h1 { font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
#start h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
#start h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-top: 6px; }
#start .mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); margin-bottom: 18px; }
#start .lauf { margin-top: 14px; }
#start .innen--schmal .lauf { margin-inline: auto; }

/* ---------- Schwebende Pillen-Leiste (mobbin) ---------- */
.start__leiste { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; padding: 14px 20px 0; pointer-events: none; }
.start__pille {
  pointer-events: auto; display: flex; align-items: center; gap: 8px;
  width: min(760px, 100%); height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--kante), 0 10px 30px -18px rgba(0, 0, 0, .3);
}
[data-theme="dark"] .start__pille { background: rgba(20, 20, 22, .72); }
.start__marke { font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.start__marke span { color: var(--leise); font-weight: 400; }
.start__links { display: flex; align-items: center; gap: 2px; }
.start__links a { color: var(--leise); text-decoration: none; font-weight: 500; font-size: 14px; height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; transition: background .18s, color .18s; }
@media (hover: hover) { .start__links a:hover { background: var(--fuellung); color: var(--tinte); } }
.start__pille .knopf { border-radius: 999px; height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero: zentrierte Aussage, darunter das Portal im Rahmen ---------- */
.hero { padding-top: 88px !important; padding-bottom: 0 !important; }
.hero__sub { margin: 22px auto 0; max-width: 34em; color: var(--leise); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.hero__knoepfe { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.hero__knoepfe .knopf { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 999px; }
/* ---------- Vorschau: die echte Themenkarte, ohne Rahmen ---------- */
.vorschau { padding-top: 56px !important; }
#start .innen--karte { width: min(var(--spalte), 100% - 48px); margin-inline: auto; }
.vorschau .karte { animation: none; }
#start .vorschau .karte h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
#start .vorschau .karte .lauf { margin-top: 12px; }
.vorschau .zeile, .vorschau .pille { cursor: default; }
.vorschau__unter { margin-top: 18px; text-align: center; font-size: 13px; color: var(--leise); }

/* ---------- Großer Satz ---------- */
.satz { padding: 120px 0 40px !important; }
.satz__text { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; max-width: 24em; text-wrap: pretty; }
.satz__text span { color: var(--leise); }

/* ---------- Merkmale: Zeilen mit Haarlinie, Label links ---------- */
.merkmale { padding-top: 40px !important; }
.merkmal { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 40px 0; --linie: 1; }
.merkmal::before, .gruppen li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--haarlinie); transform: scaleX(var(--linie, 1)); transform-origin: left; }
.merkmal:first-child::before { display: none; }
.merkmal .mono { margin: 6px 0 0; }
.merkmal h3 { margin-top: 0; }
.merkmal .lauf { max-width: 52ch; }
.merkmal__skript { margin-top: 20px; max-width: 52ch; font-size: 18px; }

/* ---------- 100 Themen ---------- */
.themen { border-top: 1px solid var(--haarlinie-leicht); }
.themen__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.themen__zahl { font-size: clamp(120px, 18vw, 220px); line-height: .85; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 0 18px -.04em; }
.gruppen { list-style: none; margin: 0; padding: 0; }
.gruppen li { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 18px 0; font-size: 18px; font-weight: 500; --linie: 1; }
.gruppen li:first-child::before { display: none; }
.gruppen i { flex: 1; border-bottom: 1px dotted var(--haarlinie); transform: translateY(-6px); }
.gruppen b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- Anmeldung ---------- */
.login { border-top: 1px solid var(--haarlinie-leicht); }
.loginkarte { max-width: 380px; margin: 32px auto 0; text-align: left; border-radius: 20px; padding: 28px; background: var(--karte); box-shadow: var(--kante), var(--tiefe); }

.start__fuss { border-top: 1px solid var(--haarlinie-leicht); padding: 24px 0 40px; font-size: 13px; color: var(--leise); }
.start__fuss .innen { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.start__fuss a { color: var(--tinte); text-decoration: none; font-weight: 500; }

/* ---------- Startzustand für GSAP: ohne JS bleibt alles sichtbar ---------- */
.js [data-auf] { opacity: 0; }
.js.start-bereit [data-auf] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js [data-auf] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 899px) {
  .themen__raster { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 759px) {
  #start .innen, #start .innen--schmal { width: min(1040px, 100% - 32px); }
  #start > section { padding: 64px 0; }
  .hero { padding-top: 56px !important; }
  .start__links { display: none; }
  #start .innen--karte { width: min(var(--spalte), 100% - 32px); }
  .merkmal { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .satz { padding: 72px 0 24px !important; }
  .hero__knoepfe { flex-wrap: wrap; }
}
