/* Startseite: nur das Layout der Abschnitte. Bausteine kommen aus gradion.css. */

/* ---------- 2 · Kern: Noten-Tracker ---------- */
.kern { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.kern__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.kern__punkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 32px; }
.kern__punkt { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--linie); }
.kern__punkt strong { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.kern__punkt span { font-size: 16px; line-height: 1.55; color: var(--text-gedaempft); }
.kern__demo { flex: 1 1 460px; min-width: 0; }

/* ---------- 3 · Mein Studiengang ---------- */
.studiengang { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.studiengang__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.studiengang__rechts { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.vier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.vier .liste__eintrag { padding: 22px 0; }
.vier .liste__eintrag strong { font-size: 20px; font-weight: 500; }

/* ---------- 4 · Meine Uni ---------- */
.uni { display: flex; flex-wrap: wrap; gap: 48px 48px; align-items: center; }
.uni__text { flex: 1 1 380px; max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.uni__punkte { display: flex; flex-direction: column; }
.uni__punkte .liste__eintrag { padding: 18px 0; gap: 6px; }
.uni__punkte strong { font-size: 19px; font-weight: 500; }
.uni__handy { flex: 0 0 auto; width: min(340px, 100%); margin: 0 auto; }
/* Zeilen links steuern das Handy: die aktive ist voll, die übrigen gedämpft;
   der Strich unter der aktiven läuft ab, bis das Handy weiterwechselt. */
[data-handy-zeile] { position: relative; cursor: pointer; transition: opacity .2s; }
.uni__punkte [data-handy-zeile] { opacity: .5; }
.uni__punkte [data-handy-zeile].ist-aktiv, .uni__punkte [data-handy-zeile]:hover, .uni__punkte [data-handy-zeile]:focus-visible { opacity: 1; }
.uni__punkte [data-handy-zeile]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.uni__punkte [data-handy-zeile]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); }
.uni:has(.laeuft) .uni__punkte [data-handy-zeile].ist-aktiv::after { animation: uni-takt 5s linear forwards; }
.uni__punkte [data-handy-zeile].ist-aktiv::after { width: 100%; }
@keyframes uni-takt { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .uni__punkte [data-handy-zeile].ist-aktiv::after { animation: none; } }

/* ---------- 5 · Ist dein Studiengang dabei? ---------- */
.dabei { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.dabei__suche { width: min(640px, 100%); position: relative; }
.dabei__suche .feld { font-size: 19px; padding: 18px 22px; border-radius: 16px; }
.dabei__ergebnisse { width: min(640px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.treffer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 16px; padding: 14px 16px;
}
/* Name links, Knopf immer rechts auf gleicher Höhe */
.treffer__name { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.treffer__name strong { font-size: 17px; font-weight: 500; }
/* Name und Uni einzeilig, damit alle Karten gleich hoch sind; Klick auf die Karte zeigt alles (katalog.js) */
.treffer__name > strong, .treffer__name > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.treffer.ist-kuerzbar { cursor: pointer; }
.treffer.ist-offen .treffer__name > strong, .treffer.ist-offen .treffer__name > span { white-space: normal; overflow-wrap: anywhere; }
.treffer__kurz { display: none; }
/* Handy: Name darf zwei Zeilen haben, sonst bleibt zu wenig übrig; „Dabei“ fällt weg, der Knopf heißt nur „Testen“ */
@media (max-width: 560px) {
  .treffer__name > strong { white-space: normal; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .treffer.ist-offen .treffer__name > strong { display: block; -webkit-line-clamp: unset; line-clamp: none; }
  .treffer--dabei .badge, .treffer__lang { display: none; }
  .treffer__kurz { display: inline; }
}
.treffer > .knopf, .treffer > .badge, .treffer > a.knopf { flex: none; }
/* Abschluss als feste Spalte links, durch eine feine Linie getrennt */
.treffer__abschluss { flex: none; width: 76px; align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--linie); font-size: 14px; color: var(--text-gedaempft); }
@media (max-width: 560px) { .treffer__abschluss { width: 62px; font-size: 13px; } }
.treffer[hidden], .wunsch-gruppe[hidden] { display: none; } /* sonst gewinnt display:flex über hidden */
/* Abstimmen ist eine Aktion auf der Seite, kein Weg woandershin: ohne Pfeil */
.treffer .knopf[data-abstimmen] { padding: 9px 16px; }
@media (max-width: 560px) {
  .treffer .knopf[data-abstimmen] { padding: 8px 12px; font-size: 14px; }
}
.treffer__name span { font-size: 14px; color: var(--text-gedaempft); }
.treffer .badge { flex: none; }
.treffer .knopf { padding: 6px 6px 6px 14px; font-size: 15px; }
.treffer .knopf .knopf__pfeil { width: 26px; height: 26px; }
.dabei__leer { font-size: 16px; color: var(--text-gedaempft); text-align: center; }
.dabei__zwischen { margin: 14px 0 0; font-size: 15px; color: var(--text-gedaempft); }
.dabei__zwischen:first-child { margin-top: 0; }

/* ---------- 6 · So startest du ---------- */
.start { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: stretch; }
.start__links { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; }
/* Label, Überschrift, Text und Knopf stehen als Block mittig neben den Schritten */
.start__links .label { margin-top: auto; }
.start__links .h2 { max-width: 11em; }
.start__links .knopf { margin-bottom: auto; }
.start__rechts { flex: 1.2 1 420px; display: flex; flex-direction: column; gap: 32px; }
.start__apps { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 7 · Preise ---------- */
/* Preise kurz: links Text und Link zur Preisseite, rechts die drei Wege */
.preis-kurz { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.preis-kurz__text { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.preis-kurz__text .h2 { max-width: 12em; }
.preis-kurz__zahlen { flex: 1.4 1 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .preis-kurz__zahlen { grid-template-columns: 1fr; } }
/* Subgrid: Name, Preis, Text und Kleingedrucktes stehen in allen Kacheln auf gleicher Höhe */
.preis-kurz__zahl {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; padding: 28px 24px;
  background: var(--papier-hell); border: 1px solid var(--linie); border-radius: 24px;
}
.preis-kurz__name { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.preis-kurz__betrag { font-size: clamp(44px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.preis-kurz__was { font-size: 16px; color: var(--text-gedaempft); }
.preis-kurz__klein { font-size: 14px; color: var(--text-gedaempft); padding-top: 10px; border-top: 1px solid var(--linie); }
.preis-kurz__zahl--orange { background: var(--orange); border-color: var(--orange); }
.preis-kurz__zahl--orange .preis-kurz__was, .preis-kurz__zahl--orange .preis-kurz__klein { color: var(--graphit); }
.preis-kurz__zahl--orange .preis-kurz__klein { border-top-color: oklch(0.15 0.005 60 / 0.2); }

/* ---------- 9 · Abschluss ---------- */
.abschluss { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding: clamp(80px, 9vw, 128px) 0; }
.abschluss .h2 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.045em; line-height: 1; max-width: 13em; }

