/* ══ Redesign "Design perfekt" Etappe 5 – Home ═══════════════════════════════
   Einstieg (Gruss + Figur + EIN naechster Schritt), Mein Weg kurz, darunter
   Weitermachen, Bewerbungen und alle Werkzeuge nach Station. Nur in app.html (nach mascot.css). Farben nur als var(--…); Tiefe ueber
   warme Toene und Schatten (kein Glow), Blau nur in der Figur. */

/* Inhaltsbreite Home (Recherche 16b: max. 1040 px). Laedt nach components.css und
   ueberschreibt dort max-width:1360px bei gleicher Spezifitaet (N3). */
@media (min-width: 1024px) { .content-inner:has(#page-dashboard.active) { max-width: 1040px; } }

/* Einstieg: Off-White-Karte auf der Seite, Figur links */
.home-hero { position: relative; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 18px;
  padding: 22px 28px; border-radius: var(--r-card); margin: 8px 0 16px; min-height: 120px;
  background: var(--tone-card); box-shadow: var(--shadow-card-hi); }
.home-hero-figure { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.home-hero-greet { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.home-hero-text { font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); letter-spacing: -0.01em; }
.home-hero-btn { white-space: nowrap; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 48px 1fr; grid-template-areas: "fig greet" "text text" "btn btn"; gap: 8px 12px; padding: 16px; }
  .home-hero-figure { grid-area: fig; width: 48px; height: 48px; }
  .home-hero-figure .mascot { --m-size: 48px !important; }
  .home-hero-figure img { width: 32px; height: 32px; }
  .home-hero-body { display: contents; }
  .home-hero-greet { grid-area: greet; align-self: center; margin: 0; }
  .home-hero-text { grid-area: text; font-size: 16px; line-height: 1.3; }
  .home-hero-btn { grid-area: btn; width: 100%; height: 44px; }
}

/* Mein Weg kurz: waagrechter Stepper in Stellio Blue (Leandro 12.10.2026, Ausnahme zu "Blau nur Figur") */
.home-way { padding: 16px 22px 14px; margin-bottom: 24px; }
.home-way-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-way-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.home-way-link { background: none; border: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--gold-text); cursor: pointer; padding: 6px 4px; }
.home-way-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; }
.home-way-step { position: relative; display: flex; justify-content: center; }
.home-way-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 0; border-top: 2px dashed var(--line-side); z-index: 0; }
.home-way-step:first-child::before { display: none; }
.home-way-step.is-done::before, .home-way-step.is-current::before { border-top: 3px solid var(--gold); top: 14.5px; }
.home-way-step button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font: inherit; padding: 0 2px; }
.home-way-dot { width: 24px; height: 24px; margin: 4px 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tone-inset); border: 2px solid var(--line-side); box-shadow: var(--shadow-inset); }
.is-done .home-way-dot { background: var(--gold); border-color: var(--gold); color: var(--on-accent); box-shadow: none; }
.is-current .home-way-dot { width: 32px; height: 32px; margin: 0; background: var(--tone-card); border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-light); }
.is-current .home-way-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.home-way-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: center; line-height: 1.25; }
.is-current .home-way-label { color: var(--gold-text); }
.is-done .home-way-label { color: var(--text); }
.home-way-now { display: none; }
@media (max-width: 760px) {
  .home-way { padding: 14px 16px 12px; }
  .home-way-label { display: none; }
  .home-way-now { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
  .home-way-now b { color: var(--gold-text); }
}

/* ══ Unter "Mein Weg" (12.10.2026): Abschnitte statt Bento ══════════════════
   Ruhiger als oben: weniger Schatten, keine gefuellten Knoepfe, nur klickbare Zeilen. */
.home-sec { margin: 0 0 30px; min-width: 0; }
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.home-sec-title { font-family: var(--font-title); font-size: 17.5px; font-weight: 700; color: var(--text); letter-spacing: -0.005em; margin: 0; }
.home-sec-sub { font-family: var(--font-body, inherit); font-size: 13.5px; font-weight: 500; color: var(--text-muted); }
.home-sec-link { background: none; border: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 4px; }
.home-sec-link:hover { color: var(--text); }
.home-panel { background: var(--tone-card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-soft), 0 1px 2px hsl(var(--shadow-color) / .08); }
.home-panel > * + * { border-top: 1px solid var(--line-soft); }
.home-panel .assign-mine { margin: 0; border-radius: 0; padding: 12px 16px; }

/* Klickbare Zeile: Icon, Titel + Stand, Pfeil */
.home-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left;
  background: none; border: none; font: inherit; color: var(--text); cursor: pointer; transition: background .15s; }
.home-row:hover { background: var(--tone-inset); }
.home-row:focus-visible { outline: 2px solid var(--btn); outline-offset: -2px; }
.home-row-ico { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--tone-inset); }
.home-row-ico .ico { width: 24px; height: 24px; }
.home-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-row-title { font-size: 14.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.home-row-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.home-row-arrow { font-size: 20px; line-height: 1; color: var(--text-muted); flex-shrink: 0; }

/* Weitermachen 60 % | Bewerbungen 40 % (Desktop, nur wenn beide da sind) */
.home-duo.is-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }

/* Alle Werkzeuge: 3 x 2 Bloecke je Station (Desktop), Handy eine Spalte */
.home-stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-station { background: var(--tone-card); border-radius: 18px; padding: 10px 6px 6px; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line-soft), 0 1px 2px hsl(var(--shadow-color) / .08); }
.home-station-head { display: flex; align-items: center; gap: 8px; padding: 2px 10px 6px; }
.home-station-num { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--tone-inset); }
.home-station-name { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: none; flex: 1; min-width: 0; }
.home-station-tag { font-size: 11.5px; font-weight: 700; color: var(--gold-text); white-space: nowrap; }
.home-station .home-row { border-radius: 12px; padding: 8px 8px; min-height: 52px; }
.home-station .home-row-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Jetzt dran: blaue Kante wie im Mein-Weg-Streifen (kein Glow) */
.home-station.is-current { box-shadow: 0 0 0 2px var(--gold), 0 2px 6px hsl(var(--shadow-color) / .10); }
.home-station.is-current .home-station-num { background: var(--gold); color: var(--on-accent); }
.home-station.is-current .home-station-name { color: var(--text); }
/* Erledigt: Haken, etwas blasser, bleibt klickbar */
.home-station.is-done { background: var(--tone-page); box-shadow: 0 0 0 1px var(--line-soft); }
.home-station.is-done .home-station-num { background: var(--gold-light); color: transparent; position: relative; }
.home-station.is-done .home-station-num::after { content: ""; position: absolute; width: 9px; height: 5px; border-left: 2.5px solid var(--gold-text);
  border-bottom: 2.5px solid var(--gold-text); transform: translateY(-1px) rotate(-45deg); }
.home-station.is-done .home-row { opacity: .72; }
.home-station.is-done .home-row:hover { opacity: 1; }
.home-station.is-done .home-station-tag { color: var(--text-muted); font-weight: 600; }

.home-always { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-left: 4px; }
.home-always-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.home-always .home-row { width: auto; flex: 1; max-width: 420px; background: var(--tone-card); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line-soft), 0 1px 2px hsl(var(--shadow-color) / .08); }
.home-upgrade { background: var(--tone-inset); border-radius: 16px; }
.home-upgrade:hover { background: var(--tone-side); }

@media (max-width: 1023px) { .home-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-sec { margin-bottom: 26px; }
  .home-sec-title { font-size: 17px; }
  .home-duo.is-two { display: block; }
  .home-duo.is-two > .home-sec + .home-sec { margin-top: 26px; }
  .home-stations { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-always { flex-direction: column; align-items: stretch; gap: 6px; padding-left: 0; }
  .home-always .home-row { max-width: none; }
}
/* Alte Handy-Knoepfe: nur ueber den Schalter showLegacyMobileCtas (components.css zeigt sie sonst) */
.dash-mobile-ctas[hidden] { display: none !important; }

/* ── Peach Beige (Leandro 12.10.): weniger Kaesten ─────────────────────────────
   Begruessung direkt auf dem Hintergrund, "Mein Weg" als offener Streifen,
   Weitermachen/Bewerbungen als Liste mit Trennlinien statt weisser Box. */
.home-hero { background: transparent; box-shadow: none; padding-left: 4px; padding-right: 4px; }
.app-shell .card.home-way, .home-way { background: transparent; box-shadow: none; padding-left: 4px; padding-right: 4px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.home-panel { background: transparent; box-shadow: none; border-radius: 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.home-panel .home-row { padding-left: 4px; padding-right: 4px; border-radius: 12px; }
.home-panel .home-row:hover { background: var(--tone-hover); }
.home-station.is-done, .home-station:not(.is-current) { background: transparent; box-shadow: 0 0 0 1px var(--line-soft); }
.home-station.is-current { background: var(--tone-card); }
