/* Altbau-Kaufleitfaden: Zeitstrahl, Haus im Schnitt, Checklisten, Schadbild-Karten (templates/leitfaden.py).
   Baut auf styles.css und magazin.css auf. Ohne JavaScript bleibt alles lesbar und druckbar. */

.lf-abschnitt-kopf {
  max-width: 54rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.lf-abschnitt-kopf h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  margin: 0.3rem 0 0.7rem;
  text-wrap: balance;
}

/* ---------- Einordnung ---------- */
.lf-ernst {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.lf-ernst.is-harmlos { background: #E2F0E6; color: #1E5A3A; }
.lf-ernst.is-nachfragen { background: #FBEFD2; color: #7A5200; }
.lf-ernst.is-fachmann { background: #FCE3CF; color: #8A3B08; }
.lf-ernst.is-stopp { background: #F6D5CC; color: #7A1D0C; }

/* ---------- 1. Zeitstrahl ---------- */
.lf-zeit {
  margin: 3.5rem 0;
}
.lf-zeit-leiste {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0.1rem 0.9rem;
  scroll-snap-type: x proximity;
  position: relative;
}
.lf-zeit-knopf {
  flex: 1 0 9.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lf-zeit-knopf strong {
  font-family: var(--font-head);
  font-size: 1.12rem;
}
.lf-zeit-knopf span {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.3;
}
.lf-zeit-knopf:hover {
  border-color: var(--accent-brass);
  transform: translateY(-2px);
}
.lf-js .lf-zeit-knopf.is-aktiv {
  background: var(--bg-oak-dark);
  border-color: var(--bg-oak-dark);
  color: #fff;
  transform: rotate(-1deg);
}
.lf-js .lf-zeit-knopf.is-aktiv span {
  color: #E8D9C3;
}
.lf-zeit-feld {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.1rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  scroll-margin-top: 6rem;
}
.lf-js .lf-zeit-feld {
  display: none;
}
.lf-js .lf-zeit-feld.is-aktiv {
  display: block;
}
.lf-zeit-kopf {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}
@media (min-width: 820px) {
  .lf-zeit-kopf {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.lf-zeit-kopf > * {
  min-width: 0;
}
.lf-zeit-jahre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-brick);
}
.lf-zeit-kopf h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0.2rem 0 0.6rem;
}
.lf-zeit-spalten {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (min-width: 820px) {
  .lf-zeit-spalten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.lf-zeit-spalte {
  background: var(--bg-chalk);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent-slate);
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}
.lf-zeit-spalte.is-achten { border-top-color: var(--accent-brick); }
.lf-zeit-spalte.is-gut { border-top-color: var(--accent-forest); }
.lf-zeit-spalte h4 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}
.lf-zeit-spalte ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.lf-zeit-spalte li + li {
  margin-top: 0.4rem;
}

/* ---------- 2. Haus im Schnitt ---------- */
.lf-haus {
  margin: 3.5rem 0;
}
.lf-haus-innen {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .lf-haus-innen {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}
.lf-haus-bild {
  position: relative;
  background: linear-gradient(#EAF2F8 0 75%, #E9DFCF 75%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-width: 0;
}
.lf-haus-svg {
  display: block;
  width: 100%;
  height: auto;
}
.lf-h-erde { fill: #C9B79C; }
.lf-h-rasen { fill: #6E9A5B; }
.lf-h-wand { fill: #B4553A; stroke: #7C3520; stroke-width: 2; }
.lf-h-raum { fill: #FBF6EE; stroke: #D9C9B2; stroke-width: 1.5; }
.lf-h-raum.is-keller { fill: #E3D8C6; }
.lf-h-raum.is-boden { fill: #F1E6D4; }
.lf-h-dach { fill: #5A3A2A; stroke: #3A241A; stroke-width: 2; }
.lf-h-fenster { fill: #BFD9EA; stroke: #5E86A3; stroke-width: 1.5; }
.lf-h-geraet { fill: #9FB4C4; stroke: #49667C; stroke-width: 1.5; }
.lf-h-rohr { fill: none; stroke: #49667C; stroke-width: 3; stroke-linecap: round; }
.lf-h-linie { fill: none; stroke: #8A7663; stroke-width: 2; stroke-linecap: round; }
.lf-h-baum { fill: #5E8B4E; }
.lf-h-stamm { fill: #6B4A32; }
.lf-haus-punkt {
  position: absolute;
  width: 2.1rem;
  height: 2.1rem;
  margin: -1.05rem 0 0 -1.05rem;
  border-radius: 50%;
  background: var(--accent-brass);
  color: #1E1813;
  font-family: var(--font-head);
  font-weight: 800;
  display: grid;
  place-content: center;
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(30, 24, 19, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.lf-haus-punkt:hover,
.lf-haus-punkt:focus-visible {
  transform: scale(1.18);
  background: #fff;
}
.lf-haus-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}
.lf-haus-liste a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.lf-haus-liste a:hover {
  border-color: var(--accent-brass);
  transform: translateX(3px);
}
.lf-haus-nr {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-brass);
  font-family: var(--font-head);
  font-weight: 800;
  display: grid;
  place-content: center;
}
.lf-haus-liste strong {
  font-family: var(--font-head);
}
.lf-haus-liste small {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ---------- Station ---------- */
.lf-station {
  margin: 3.2rem 0;
  scroll-margin-top: 6rem;
}
.lf-station-kopf {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.lf-station-nr {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--bg-oak-dark);
  color: var(--accent-brass);
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  display: grid;
  place-content: center;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--accent-brass);
}
.lf-station-kopf h3 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 0.1rem 0 0;
  line-height: 1.15;
}
.lf-station-zeit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.lf-station-rumpf {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .lf-station-rumpf.hat-bild {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
.lf-station-rumpf > * {
  min-width: 0;
}
.lf-station-achten {
  margin-top: 1rem;
  background: var(--bg-chalk);
  border-left: 5px solid var(--accent-brick);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.9rem 1rem;
}
.lf-station-achten h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lf-station-achten ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lf-station-achten li {
  line-height: 1.5;
}
.lf-station-achten li + li {
  margin-top: 0.5rem;
}

/* ---------- 3. Checkliste ---------- */
.lf-check {
  margin: 1.6rem 0;
  background: #FFFDF8;
  border: 2px solid var(--bg-oak-dark);
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 var(--accent-brass);
  padding: 1.1rem 1.2rem 1rem;
  transform: rotate(-0.4deg);
}
.lf-check-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 2px dashed var(--border-strong);
  padding-bottom: 0.55rem;
  margin-bottom: 0.6rem;
}
.lf-check-kopf h4 {
  margin: 0;
  font-size: 1.15rem;
}
.lf-check-stand {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.lf-check.is-fertig .lf-check-stand {
  color: var(--accent-forest);
  font-weight: 700;
}
.lf-check-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lf-check-liste label {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-warm);
}
.lf-check-liste li:last-child label {
  border-bottom: 0;
}
.lf-check-liste input {
  position: absolute;
  opacity: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
}
.lf-check-kasten {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.12rem;
  border: 2px solid var(--bg-oak-dark);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-content: center;
}
.lf-check-liste input:checked + .lf-check-kasten {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
}
.lf-check-liste input:checked + .lf-check-kasten::after {
  content: "✓";
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.lf-check-liste input:focus-visible + .lf-check-kasten {
  outline: 3px solid rgba(30, 107, 67, 0.35);
  outline-offset: 2px;
}
.lf-check-liste input:checked ~ .lf-check-text {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(118, 103, 91, 0.6);
}
.lf-check-text {
  line-height: 1.45;
}
.lf-check-text small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.86rem;
  text-decoration: none;
}
.lf-check-hinweis {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.lf-check-knoepfe {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.lf-js .lf-check-knoepfe {
  display: flex;
}

/* ---------- 4. Schadbild-Karten ---------- */
.lf-schad-raster {
  display: grid;
  gap: 1.25rem;
  margin: 1.6rem 0;
}
@media (min-width: 760px) {
  .lf-schad-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lf-schad {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-top: 6px solid var(--accent-brass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lf-schad.is-harmlos { border-top-color: #3E8E5E; }
.lf-schad.is-nachfragen { border-top-color: #D9A21F; }
.lf-schad.is-fachmann { border-top-color: #D9731F; }
.lf-schad.is-stopp { border-top-color: var(--accent-brick); }
.lf-schad-bild {
  position: relative;
}
.lf-schad-bild .mag-foto {
  transform: none;
  box-shadow: none;
  padding: 0;
  background: none;
}
.lf-schad-bild img {
  display: block;
  width: 100%;
  height: auto;
}
.lf-schad-symbol {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(30, 24, 19, 0.78);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.lf-schad-text {
  padding: 1rem 1.1rem 1.1rem;
}
.lf-schad-text h4 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.25;
}
.lf-schad-text p {
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.lf-schad-ursachen ul {
  margin: 0.25rem 0 0.7rem;
  padding-left: 1.15rem;
  line-height: 1.5;
}
.lf-schad-frage {
  background: var(--accent-slate-soft);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

/* ---------- Druck (Grundlage für das PDF) ---------- */
@media print {
  .lf-zeit-leiste,
  .lf-check-knoepfe,
  .lf-haus-punkt {
    display: none !important;
  }
  .lf-js .lf-zeit-feld {
    display: block !important;
  }
  .lf-zeit-feld,
  .lf-schad,
  .lf-check,
  .lf-station-kopf {
    break-inside: avoid;
    box-shadow: none;
  }
  .lf-check {
    transform: none;
    border-width: 1px;
  }
  .lf-check-liste input:checked ~ .lf-check-text {
    text-decoration: none;
    color: inherit;
  }
  body.lf-druckt-liste main > *:not(.lf-druckziel),
  body.lf-druckt-liste header,
  body.lf-druckt-liste footer {
    display: none !important;
  }
}

/* Handy: Stationspunkte im Schnittbild kleiner, damit sie sich nicht überdecken */
@media (max-width: 560px) {
  .lf-haus-punkt {
    width: 1.55rem;
    height: 1.55rem;
    margin: -0.78rem 0 0 -0.78rem;
    font-size: 0.82rem;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(30, 24, 19, 0.25);
  }
  .lf-check {
    transform: none;
    box-shadow: 4px 4px 0 var(--accent-brass);
  }
}

/* Epoche ohne Bild: Text über die volle Breite */
@media (min-width: 820px) {
  .lf-zeit-kopf.is-ohne-bild {
    grid-template-columns: minmax(0, 1fr);
  }
  .lf-zeit-kopf.is-ohne-bild .mag-kurz {
    max-width: 62ch;
  }
}

/* Warnzeichen-Fotos ohne Klebestreifen und Rahmen des Magazin-Fotos */
.lf-schad-bild .mag-foto::before,
.lf-schad-bild .mag-foto::after {
  display: none;
}
.lf-schad-bild .mag-foto {
  margin: 0;
  border-radius: 0;
}

/* ---------- Neue Einordnung (25.11.2026): Typisch Altbau · Genauer hinsehen · Kostet, ist lösbar · Vor dem Kauf klären ---------- */
.lf-ernst.is-normal { background: #E2F0E6; color: #1E5A3A; }
.lf-ernst.is-hinsehen { background: #FBEFD2; color: #7A5200; }
.lf-ernst.is-einplanen { background: #FCE3CF; color: #8A3B08; }
.lf-ernst.is-klaeren { background: #F6D5CC; color: #7A1D0C; }
.lf-schad.is-normal { border-top-color: #3E8E5E; }
.lf-schad.is-hinsehen { border-top-color: #D9A21F; }
.lf-schad.is-einplanen { border-top-color: #D9731F; }
.lf-schad.is-klaeren { border-top-color: var(--accent-brick); }
.lf-schad-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.6rem;
  margin-bottom: 0.55rem;
}
.lf-schad-kopf h4 {
  margin: 0;
}
.lf-schad-ursachen li + li {
  margin-top: 0.45rem;
}
.lf-schad-pruefen {
  background: var(--accent-forest-soft);
  border-left: 4px solid var(--accent-forest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
  line-height: 1.5;
}
.lf-schad-bedeutung {
  font-size: 0.98rem;
}
/* Karten im Rundgang untereinander: Text braucht Platz */
@media (min-width: 900px) {
  .lf-schad-raster.is-breit {
    grid-template-columns: minmax(0, 1fr);
  }
  .lf-schad-raster.is-breit .lf-schad {
    flex-direction: row;
  }
  .lf-schad-raster.is-breit .lf-schad-bild {
    flex: 0 0 42%;
  }
  .lf-schad-raster.is-breit .lf-schad-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .lf-schad-raster.is-breit .lf-schad:nth-child(even) {
    flex-direction: row-reverse;
  }
}
/* Kasten „Wann lohnt sich ein Sachverständiger?“ */
.lf-gutachter {
  margin: 2.4rem 0;
}

/* Breite Karten: Bild läuft beim Lesen mit, statt eine leere Fläche zu lassen */
.lf-schad {
  overflow: clip;
}
@media (min-width: 900px) {
  .lf-schad-raster.is-breit .lf-schad-bild {
    align-self: flex-start;
    position: sticky;
    top: 5.5rem;
  }
}

/* Große Kapitel des Leitfadens */
.lf-kapitel {
  margin: 4rem 0;
  scroll-margin-top: 6rem;
}
.lf-kapitel + .lf-kapitel {
  padding-top: 2.5rem;
  border-top: 2px dashed var(--border-strong);
}
.rq-quellen li {
  scroll-margin-top: 6rem;
}

/* =====================================================================================================================
   Entdeckerbuch (Bodo 25.11.2026: „kein Sachbuch … wie so ein Entdeckerbuch“): Fundstücke statt Textblöcke
   ===================================================================================================================== */
.lf-fundstuecke {
  counter-reset: fund;
  display: grid;
  gap: clamp(2.6rem, 6vw, 4.5rem);
  margin: 2.4rem 0 3rem;
}
.lf-fund {
  counter-increment: fund;
  display: grid;
  gap: 1.6rem 2.2rem;
  align-items: start;
  position: relative;
}
@media (min-width: 880px) {
  .lf-fund {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .lf-fund:nth-child(even) .lf-fund-bild {
    order: 2;
  }
  .lf-fund-bild {
    position: sticky;
    top: 6rem;
  }
}
.lf-fund > * {
  min-width: 0;
}

/* --- Foto mit Stempel --- */
.lf-fund-bild {
  position: relative;
  padding: 0.6rem 0.4rem 0;
}
.lf-fund-bild .mag-foto {
  --dreh: -2deg;
}
.lf-fund:nth-child(even) .lf-fund-bild .mag-foto {
  --dreh: 2.2deg;
}
.lf-fund:nth-child(3n) .lf-fund-bild .mag-foto {
  --dreh: -1deg;
}
.lf-fund-bild .lf-schad-symbol {
  top: 1.4rem;
  right: 1.3rem;
  z-index: 2;
}
.lf-fund-stempel {
  position: absolute;
  z-index: 3;
  left: -0.4rem;
  bottom: 4.6rem;
  width: 6.6rem;
  height: 6.6rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  border: 3px solid #fff;
  outline: 2px dashed rgba(255, 255, 255, 0.65);
  outline-offset: -9px;
  box-shadow: 0 10px 22px rgba(30, 24, 19, 0.32);
  transform: rotate(-12deg);
}
.lf-fund:nth-child(even) .lf-fund-stempel {
  left: auto;
  right: -0.4rem;
  transform: rotate(10deg);
}
.lf-fund-stempel.is-normal { background: #2F7D50; }
.lf-fund-stempel.is-hinsehen { background: #C48A12; }
.lf-fund-stempel.is-einplanen { background: #C9621B; }
.lf-fund-stempel.is-klaeren { background: var(--accent-brick); }
.lf-fund-bild.is-ohne {
  min-height: 8rem;
}
.lf-fund-sehen {
  position: relative;
  margin: 1.1rem 0.6rem 0 2.4rem;
  padding: 0.7rem 0.9rem 0.75rem;
  background: #FFFDF6;
  border: 1px solid var(--border-warm);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(30, 24, 19, 0.12);
  transform: rotate(1.2deg);
  font-size: 0.98rem;
  line-height: 1.45;
}
.lf-fund:nth-child(even) .lf-fund-sehen {
  margin: 1.1rem 2.4rem 0 0.6rem;
  transform: rotate(-1.2deg);
}
.lf-fund-sehen span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-brick);
  margin-bottom: 0.2rem;
}

/* --- Titel mit Fundnummer --- */
.lf-fund-titel {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.2rem 0 1.1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}
.lf-fund-titel > span:last-child {
  background: linear-gradient(transparent 62%, rgba(233, 198, 131, 0.65) 62%, rgba(233, 198, 131, 0.65) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lf-fund-nr {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--bg-oak-dark);
  color: var(--accent-brass);
  display: grid;
  place-content: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--accent-brass);
}
.lf-fund-nr::after {
  content: counter(fund);
}

/* --- Spuren als angepinnte Zettel --- */
.lf-fund-spuren-titel {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lf-fund-spuren-titel::after {
  content: " ↓";
}
.lf-zettel-wand {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1.1rem 1rem;
}
@media (min-width: 560px) {
  .lf-zettel-wand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lf-zettel {
  position: relative;
  padding: 1.15rem 0.95rem 0.95rem;
  background: #FFF4BF;
  box-shadow: 0 8px 16px rgba(30, 24, 19, 0.14), 0 1px 2px rgba(30, 24, 19, 0.1);
  transform: rotate(-1.4deg);
  font-size: 0.95rem;
  line-height: 1.45;
  min-width: 0;
}
.lf-zettel:nth-child(2) { background: #DCEEFB; transform: rotate(1.3deg); }
.lf-zettel:nth-child(3) { background: #E2F3DA; transform: rotate(0.8deg); }
.lf-zettel:nth-child(4) { background: #FBE3DC; transform: rotate(-0.9deg); }
.lf-zettel:only-child {
  grid-column: 1 / -1;
  transform: rotate(-0.6deg);
}
.lf-zettel::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: -0.48rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E86A4A, #A8341A);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}
.lf-zettel-nr {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 24, 19, 0.55);
  margin-bottom: 0.2rem;
}
.lf-zettel strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

/* --- Lupen-Trick --- */
.lf-fund-lupe {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border: 2px dashed var(--accent-forest);
  border-radius: var(--radius-md);
  background: var(--accent-forest-soft);
  transform: rotate(-0.6deg);
}
.lf-fund-lupe p {
  margin: 0;
  line-height: 1.5;
}
.lf-lupe-icon {
  width: 3.2rem;
  height: 3.2rem;
  color: var(--accent-forest);
  transform: rotate(-10deg);
}

/* --- Was das für dich hieße: schräges Band --- */
.lf-fund-band {
  position: relative;
  margin: 0 -0.4rem 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--bg-oak-dark);
  color: #F4EADB;
  transform: skewY(-1.4deg);
  box-shadow: 6px 6px 0 var(--accent-brass);
}
.lf-fund-band p {
  margin: 0;
  transform: skewY(1.4deg);
  line-height: 1.55;
}
.lf-fund-band strong {
  color: var(--accent-brass);
}
.lf-fund-band a[title^="Zu Quelle"] {
  color: #E8D9C3;
}
.lf-fund-band a:not([title^="Zu Quelle"]) {
  color: #fff;
}

/* --- Frage an den Verkäufer: Sprechblase --- */
.lf-fund-frage {
  position: relative;
  margin: 0 0 1.3rem 1.4rem;
  padding: 0.8rem 1rem;
  background: var(--accent-slate);
  color: #fff;
  border-radius: 1.1rem;
  line-height: 1.45;
  max-width: 34rem;
}
.lf-fund-frage::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 1rem;
  border: 0.55rem solid transparent;
  border-right: 0.8rem solid var(--accent-slate);
  border-left: 0;
}
.lf-fund-frage strong {
  color: #CFE3F2;
}

/* --- Entdeckt! --- */
.lf-fund-entdeckt {
  display: inline-block;
  cursor: pointer;
}
.lf-fund-entdeckt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.lf-fund-entdeckt-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--bg-oak-dark);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  background: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lf-fund-entdeckt-knopf::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--bg-oak-dark);
  border-radius: 4px;
  display: grid;
  place-content: center;
}
.lf-fund-entdeckt:hover .lf-fund-entdeckt-knopf {
  transform: rotate(-2deg) scale(1.03);
}
.lf-fund-entdeckt input:focus-visible + .lf-fund-entdeckt-knopf {
  outline: 3px solid rgba(30, 107, 67, 0.4);
  outline-offset: 2px;
}
.lf-fund-entdeckt input:checked + .lf-fund-entdeckt-knopf {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #fff;
  transform: rotate(-3deg);
}
.lf-fund-entdeckt input:checked + .lf-fund-entdeckt-knopf::before {
  content: "✓";
  border-color: #fff;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}
.lf-fund.is-entdeckt .lf-fund-bild .mag-foto {
  box-shadow: 0 0 0 4px var(--accent-forest), 0 18px 34px rgba(30, 24, 19, 0.24);
}

/* --- Fundbuch-Zähler und Suchliste der Station --- */
.lf-station-kopf {
  flex-wrap: wrap;
}
.lf-fundbuch {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-brass-soft);
  border: 2px solid var(--accent-brass);
  color: var(--accent-oak);
  transform: rotate(2deg);
}
.lf-fundbuch.hat-funde {
  background: var(--accent-forest);
  border-color: var(--accent-forest);
  color: #fff;
}
.lf-station-achten {
  border-left: 0;
  background: #FFFDF6;
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(30, 24, 19, 0.12);
  transform: rotate(-0.8deg);
  padding: 1.1rem 1.2rem 1rem;
  background-image: repeating-linear-gradient(transparent 0 1.85rem, rgba(45, 90, 123, 0.12) 1.85rem calc(1.85rem + 1px));
}
.lf-station-achten h4 {
  font-family: var(--font-mono);
  color: var(--accent-brick);
}
@media (max-width: 560px) {
  .lf-fund-stempel {
    width: 5.4rem;
    height: 5.4rem;
    font-size: 0.6rem;
    bottom: 5.2rem;
  }
  .lf-fund-sehen,
  .lf-fund:nth-child(even) .lf-fund-sehen {
    margin: 1rem 0.2rem 0;
  }
  .lf-fund-band {
    margin: 0 0 1.4rem;
  }
}
@media print {
  .lf-fund-entdeckt,
  .lf-fundbuch {
    display: none !important;
  }
  .lf-fund,
  .lf-zettel {
    break-inside: avoid;
  }
  .lf-fund-bild {
    position: static;
  }
}
@media (max-width: 560px) {
  .lf-fund-lupe {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
  .lf-lupe-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* Zeitstrahl im Entdecker-Look: Spalten als Karteikarten */
.lf-zeit-spalte {
  border-top: 0;
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(30, 24, 19, 0.12);
  padding: 1.1rem 1rem 1rem;
  position: relative;
  background: #FFFDF6;
  background-image: repeating-linear-gradient(transparent 0 1.6rem, rgba(45, 90, 123, 0.1) 1.6rem calc(1.6rem + 1px));
  transform: rotate(-0.8deg);
}
.lf-zeit-spalte.is-achten {
  background-color: #FFF1E9;
  transform: rotate(0.7deg);
}
.lf-zeit-spalte.is-gut {
  background-color: #EEF7EA;
  transform: rotate(-0.4deg);
}
.lf-zeit-spalte::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 4rem;
  height: 1.2rem;
  background: rgba(233, 198, 131, 0.75);
  transform: translateX(-50%) rotate(-3deg);
}
.lf-zeit-spalte h4 {
  font-family: var(--font-mono);
  color: var(--accent-brick);
}
.lf-zeit-spalte.is-gut h4 {
  color: var(--accent-forest);
}
.lf-zeit-feld .mag-foto {
  --dreh: -2deg;
}

/* Checklisten-Sammelseite (/altbau-kaufen/checkliste) */
.lf-cl-kopf {
  margin: 0 0 2rem;
}
.lf-cl-kopf h1 {
  margin: 0.2rem 0 0.8rem;
}
.lf-cl-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.lf-cl-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.4rem;
  align-items: start;
}
.lf-cl-raster > * {
  min-width: 0;
}
@media print {
  .lf-cl-knoepfe {
    display: none !important;
  }
  .lf-cl-raster {
    display: block;
  }
  .lf-cl-raster .lf-check {
    margin: 0 0 1rem;
  }
}
