/* Leitfaden „Vorher wissen“: Übersicht und Teilseiten, ergänzt pages.css. */
[hidden] { display: none !important; }

/* Der Nachtkopf ist hier höher als auf den anderen Unterseiten: Ohne eigenen Grund liefe er beim Scrollen
   unter Logo und „Alle Teile“ durch. Im hellen Teil gilt weiter die Leiste aus pages.css. */
html:not([data-phase="day"]) .bar {
  background: color-mix(in oklab, var(--night) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(166, 176, 255, .16);
}

/* ------------------------------------------- Kopf der Teilseiten --- */
.lf-hero { display: grid; gap: 2.2rem; align-items: end; }
.lf-get { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.lf-get__soon { flex: 1 1 100%; margin: 0; font-size: 1.05rem; line-height: 1.5; }
.lf-get__soon a { color: #A6B0FF; }
.lf-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  color: var(--ink-night); font-weight: 650; text-decoration: none;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.lf-ghost:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lf-ghost:hover { background: rgba(255,255,255,.14); } }
.lf-get__meta { flex: 1 1 100%; margin: 0; font-size: .92rem; color: var(--ink-night-2); }
.lf-note { margin: 1.4rem 0 0; max-width: 46ch; font-size: .82rem; line-height: 1.5; color: var(--ink-night-2); }

/* Titelbild mit KI-Hinweis */
.lf-cover { margin: 0; }
.lf-cover img { width: 100%; height: auto; border-radius: 10px; background: var(--night-2); }
.lf-cover figcaption { margin-top: .5rem; font-size: .78rem; line-height: 1.35; }
.lf-hero .lf-cover { width: min(15rem, 72%); }
.lf-hero .lf-cover img { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -28px rgba(0,0,0,.9); }
.lf-hero .lf-cover figcaption { color: var(--ink-night-2); }

/* ----------------------------------------------- Inhalt (Tag) --- */
.lf-fragen strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.prose .lf-fragen > li::before { top: .5em; }
.lf-reihe { list-style: none; padding: 0; display: grid; gap: .6rem; }
.lf-reihe a {
  display: block; padding: .95rem 1.2rem; border-radius: 14px; background: var(--day-2);
  box-shadow: 0 0 0 1px var(--hair); color: var(--ink-day); text-decoration: none;
  transition: box-shadow 160ms var(--ease);
}
.lf-reihe a[aria-current="page"] { box-shadow: 0 0 0 2px var(--accent); }
.lf-reihe b { display: block; font-weight: 650; line-height: 1.35; }
.lf-reihe small { display: block; font-size: .9rem; color: var(--ink-day-3); }
@media (hover: hover) and (pointer: fine) { .lf-reihe a:hover { box-shadow: 0 0 0 1px var(--accent); } }

/* ------------------------------------------------- Übersicht --- */
.lf-wrap { max-width: 76rem; margin: 0 auto; }
.lf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lf-card {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1rem; border-radius: var(--radius); background: var(--day-2);
  box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -30px hsl(232 40% 30% / .35);
}
.lf-card .lf-cover img { border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); }
.lf-card .lf-cover figcaption { font-size: .7rem; color: var(--ink-day-3); }
.lf-card__body { display: flex; flex-direction: column; height: 100%; }
.lf-card__kicker { margin: 0; font-size: .82rem; font-weight: 600; color: var(--accent); }
.lf-card h2 {
  margin: .25rem 0 0; font-family: var(--display); font-weight: 720; font-stretch: 104%;
  font-size: 1.22rem; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto;
}
.lf-card h2 a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lf-card h2 a:hover { color: var(--accent); } }
.lf-card__sub { margin: .45rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--ink-day-2); }
.lf-card__state { margin: auto 0 0; padding-top: .9rem; font-size: .9rem; line-height: 1.45; color: var(--ink-day); }
.lf-card__state .btn { min-height: 44px; padding: 0 1.2rem; margin-bottom: .45rem; }
.lf-card__state span { display: block; color: var(--ink-day-3); }
.lf-wrap .lf-note { color: var(--ink-day-3); margin-top: 2rem; }

@media (min-width: 640px) {
  .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .lf-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; padding: 1.1rem; }
  .lf-card h2 { font-size: 1.35rem; }
}
@media (min-width: 900px) {
  .lf-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: clamp(2.5rem, 6vw, 6rem); }
  .lf-hero .lf-cover { width: 100%; }
  /* Das Haus bleibt Kulisse, damit die Titelseite daneben nicht mit ihm konkurriert. */
  .lf-head::before { background: linear-gradient(90deg, rgba(10,15,31,.96) 0%, rgba(10,15,31,.9) 50%, rgba(10,15,31,.8) 100%); }
}
@media (min-width: 1100px) { .lf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .lf-get .btn, .lf-ghost { width: 100%; justify-content: center; }
}
