/* Zeitstrahl Kasendorf – Ansicht in Ebenen (ebenen.php), seit 24.11.2026. Übernommen aus dem Prototyp; Schrift, Links und Ränder wie die Website
   (Bootstrap 5.3), die Farben der Zeiträume aus dem Prototyp. Alles hängt an .zt-ebenen, damit nichts auf Menü und Fuß der Website wirkt.
   Handy zuerst; auf breiten Schirmen eine Spalte von höchstens 900 px. */
.zt-ebenen {
  --e-tinte: var(--bs-body-color, #212529); --e-leise: var(--bs-secondary-color, #6c757d); --e-rand: var(--bs-border-color, #dee2e6);
  --e-papier: var(--bs-body-bg, #fff); --e-grund: var(--bs-tertiary-bg, #f8f9fa); --e-akzent: var(--bs-link-color, #0d6efd);
  --e-kern: #b5442b; --e-standard: #3d6b7d; --e-detail: #a39d90; --e-mark: #ffe08a;
  --e-t1: #1f2747; --e-t2: #3a5a40; --e-t3: #6c8ea6; --e-t4: #8a6d3b; --e-t5: #7b3f2e; --e-t6: #44505c;
  max-width: 900px; scroll-margin-top: 80px; line-height: 1.45;
}
.zt-ebenen .f-t1 { --farbe: var(--e-t1); } .zt-ebenen .f-t2 { --farbe: var(--e-t2); } .zt-ebenen .f-t3 { --farbe: var(--e-t3); }
.zt-ebenen .f-t4 { --farbe: var(--e-t4); } .zt-ebenen .f-t5 { --farbe: var(--e-t5); } .zt-ebenen .f-t6 { --farbe: var(--e-t6); }

/* Kopf mit Suche und Thema */
.zt-ebenen .e-unter { margin: 0 0 8px; color: var(--e-leise); font-size: .9rem; }
.zt-ebenen .e-werkzeug { display: flex; gap: 8px; flex-wrap: wrap; }
.zt-ebenen .e-suche { flex: 1 1 100%; min-width: 0; border-radius: 999px; }
@media (min-width: 700px) { .zt-ebenen .e-suche { flex: 1 1 240px; } }
.zt-ebenen .e-knopf { border: 1px solid var(--e-akzent); background: var(--e-papier); color: var(--e-akzent); border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.zt-ebenen .e-knopf:hover, .zt-ebenen .e-knopf:focus-visible { background: var(--e-grund); }
.zt-ebenen .e-knopf.an { background: var(--e-akzent); color: #fff; }
.zt-ebenen #e-thema { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.zt-ebenen .e-leise { color: var(--e-leise); }
.zt-ebenen .e-klein { font-size: .85rem; }
.zt-ebenen .e-krumen { padding: 12px 0 4px; font-size: .875rem; color: var(--e-leise); }
.zt-ebenen .e-krumen a { text-decoration: none; }
.zt-ebenen .e-krumen .trenn { margin: 0 5px; color: var(--e-detail); }
.zt-ebenen .e-ebene { padding-bottom: 32px; outline: none; animation: e-auf .25s ease-out; }
@keyframes e-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zt-ebenen .e-ebene { animation: none; } }
.zt-ebenen .e-titel { margin: 6px 0 2px; font-size: 1.5rem; font-weight: 600; }
.zt-ebenen .e-info { margin: 0 0 12px; color: var(--e-leise); font-size: .925rem; }
.zt-ebenen .e-info b { color: var(--e-tinte); font-weight: 600; }

/* Kacheln mit echter Zeitsäule links */
.zt-ebenen .e-liste { position: relative; padding-left: 44px; }
.zt-ebenen .e-saeule { position: absolute; left: 0; top: 0; width: 44px; overflow: visible; }
.zt-ebenen .e-saeule .grund { fill: #ece6d9; }
.zt-ebenen .e-saeule rect[class^="f-"] { fill: var(--farbe); }
.zt-ebenen .e-saeule path[class^="f-"] { stroke: var(--farbe); }
.zt-ebenen .e-kacheln { display: grid; gap: 10px; }
.zt-ebenen .e-kachel { display: block; background: var(--e-papier); border: 1px solid var(--e-rand); border-left: 5px solid var(--farbe, var(--e-akzent));
  border-radius: 0 10px 10px 0; padding: 10px 12px; color: inherit; text-decoration: none; }
.zt-ebenen .e-kachel:hover, .zt-ebenen .e-kachel:focus-visible { border-color: var(--e-akzent); border-left-color: var(--farbe, var(--e-akzent)); outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.zt-ebenen .e-kachel.leer { opacity: .45; padding-top: 6px; padding-bottom: 6px; }
.zt-ebenen .e-kachel.leer .e-k-kopf span, .zt-ebenen .e-kachel.leer .e-balken { display: none; }   /* ohne Treffer: nur Name und Anteil */
.zt-ebenen .e-k-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.zt-ebenen .e-k-kopf b { font-size: 1.02rem; font-weight: 600; }
.zt-ebenen .e-k-kopf span { color: var(--e-leise); font-size: .85rem; }
.zt-ebenen .e-balken { height: 6px; border-radius: 3px; background: #ece6d9; margin: 7px 0 4px; overflow: hidden; }
.zt-ebenen .e-balken i { display: block; height: 6px; width: 0; min-width: 2px; background: var(--farbe, var(--e-akzent)); }
.zt-ebenen .e-zahl { font-size: .82rem; color: var(--e-leise); }
.zt-ebenen .e-zahl .k { color: var(--e-kern); font-weight: 600; }
.zt-ebenen .e-vorschau { display: grid; gap: 5px; margin-top: 8px; }
.zt-ebenen .e-v { display: flex; gap: 8px; align-items: center; font-size: .86rem; }
.zt-ebenen .e-v img, .zt-ebenen .e-v .ohne { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; flex: none; background: #ece6d9; }
.zt-ebenen .e-v .ohne { display: inline-block; }
.zt-ebenen .e-v span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Einträge eines Blatts */
.zt-ebenen .e-eintraege { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--e-rand); }
.zt-ebenen .e-e { position: relative; padding: 7px 0 7px 14px; cursor: pointer; }
.zt-ebenen .e-e::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--e-standard); border: 2px solid var(--e-papier); }
.zt-ebenen .e-e .zeit { display: block; font-size: .8rem; color: var(--e-leise); }
.zt-ebenen .e-e .t { font-size: .95rem; }
.zt-ebenen .e-e:hover .t, .zt-ebenen .e-e:focus-visible .t { color: var(--e-akzent); text-decoration: underline; }
.zt-ebenen .e-e:focus-visible { outline: 2px solid var(--e-akzent); outline-offset: 2px; }
.zt-ebenen .e-e.kern { padding: 10px 0 10px 14px; }
.zt-ebenen .e-e.kern::before { background: var(--e-kern); width: 14px; height: 14px; left: -8px; top: 16px; }
.zt-ebenen .e-e.kern .karte { display: flex; gap: 10px; background: var(--e-papier); border: 1px solid var(--e-rand); border-radius: 10px; padding: 8px; }
.zt-ebenen .e-e.kern .karte img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; flex: none; background: #ece6d9; }
.zt-ebenen .e-e.kern .t { font-weight: 600; }
.zt-ebenen .e-e.detail::before { background: var(--e-detail); width: 7px; height: 7px; left: -4.5px; top: 15px; }
.zt-ebenen .e-e.detail .t { color: var(--e-leise); font-size: .88rem; }
.zt-ebenen .e-details-knopf { margin: 10px 0 0 14px; }
.zt-ebenen .e-leer { color: var(--e-leise); }

/* Weiter und zurück */
.zt-ebenen .e-weiter { display: grid; gap: 8px; margin-top: 22px; }
.zt-ebenen .e-weiter a { display: block; border: 1px solid var(--e-rand); background: var(--e-papier); border-radius: 10px; padding: 10px 12px;
  text-decoration: none; font-size: .95rem; }
.zt-ebenen .e-weiter a:hover { background: var(--e-grund); }
.zt-ebenen .e-weiter a small { display: block; color: var(--e-leise); }

/* Blätter von unten (Eintrag, Themenwahl); über dem festen Menü der Website (Bootstrap sticky-top: 1020) */
.zt-ebenen .e-blatt { position: fixed; inset: 0; background: rgba(30, 25, 15, .35); display: flex; align-items: flex-end; justify-content: center; z-index: 1060; }
.zt-ebenen .e-blatt[hidden] { display: none; }
.zt-ebenen .e-blatt-innen { position: relative; background: var(--e-papier); width: 100%; max-width: 760px; max-height: 82vh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 18px 18px 26px; }
.zt-ebenen .e-blatt h2 { margin: 0 30px 4px 0; font-size: 1.25rem; font-weight: 600; }
.zt-ebenen .e-blatt-bild { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: #ece6d9; }
.zt-ebenen .e-blatt-meta { margin: 0 0 8px; }
.zt-ebenen .e-zu { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--e-leise); padding: 4px 8px; }
.zt-ebenen .e-blatt .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.zt-ebenen .e-blatt .chips button { border: 1px solid var(--e-akzent); background: none; color: var(--e-akzent); border-radius: 999px; padding: 3px 10px; font: inherit;
  font-size: .82rem; cursor: pointer; }
.zt-ebenen .e-zum-eintrag { font-weight: 500; }
.zt-ebenen #e-wahl-suche { margin: 6px 0 10px; }
.zt-ebenen .e-wahl-liste button { display: flex; justify-content: space-between; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--e-rand);
  background: none; padding: 9px 4px; font: inherit; cursor: pointer; gap: 10px; color: inherit; }
.zt-ebenen .e-wahl-liste button:hover { background: var(--e-grund); }
.zt-ebenen .e-wahl-liste button small { color: var(--e-leise); white-space: nowrap; }
.zt-ebenen .e-wahl-liste h3 { margin: 12px 0 2px; font-size: .9rem; color: var(--e-leise); }
@media (min-width: 700px) {
  .zt-ebenen .e-blatt { align-items: center; }
  .zt-ebenen .e-blatt-innen { border-radius: 16px; max-height: 80vh; }
}

/* Suche: Treffer markiert, Trefferliste unter den Kacheln */
.zt-ebenen mark { background: var(--e-mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.zt-ebenen .e-aufheben { margin: -6px 0 12px; font-size: .875rem; }
.zt-ebenen .e-e .auszug { display: block; font-size: .82rem; color: var(--e-leise); margin-top: 2px; }
.zt-ebenen .e-e.markiert .t { background: var(--e-mark); }
.zt-ebenen .e-e.markiert.kern .karte { border-color: var(--e-kern); box-shadow: 0 0 0 2px var(--e-mark); }
.zt-ebenen .e-treffer { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--e-rand); }
.zt-ebenen .e-t-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.zt-ebenen .e-t-kopf h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.zt-ebenen .e-treffer h3 { margin: 14px 0 4px; font-size: .95rem; font-weight: 600; }
.zt-ebenen .e-treffer h3 a { color: var(--e-tinte); text-decoration: none; border-bottom: 1px solid var(--e-rand); }
.zt-ebenen .e-treffer h3 small { color: var(--e-leise); font-weight: 400; }
.zt-ebenen .e-treffer .e-leise { font-size: .875rem; margin: 0 0 8px; }
.zt-ebenen .e-hinweis { font-size: .875rem; color: var(--e-leise); background: var(--e-grund); border-radius: 8px; padding: 8px 10px; }
