/* Erding und Freising (22.11.2026): Bildgeschichte der Alten Tenne, Einspalter fuer Euer DJ und Euer Tag.
   Geladen nach linie-region.css. Jeder Selektor beginnt mit .el, Farben nur aus den Tokens von site.css.
   Fuenf Karten (vier Hochformate, dazwischen eine Textkarte): am Rechner nebeneinander, am Tablet zwei Spalten,
   am Telefon eine Wischreihe mit Einrasten. Die Fotos stehen im vollen Hochformat, kein Ausschnitt, kein Gesicht angeschnitten. */

.el .nt-prosa { display: grid; gap: 16px; max-width: 46rem; margin: 0 0 48px; }
.el .nt-prosa p { margin: 0; }

/* Rechner: zwei breite Karten je Reihe, Bild links im vollen Hochformat, Text rechts; die Textkarte "Durch den Nachmittag"
   liegt als ruhiges Band ueber die ganze Breite zwischen Trauung und Abend (Abnahme 22.11.2026: fuenf Spalten waren zu schmal) */
.el .nt-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.el .nt-reihe > .nt-text { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .el .nt-reihe > li:not(.nt-text) { flex-direction: row; }
  .el .nt-reihe > li:not(.nt-text) > .nt-foto { flex: 0 0 46%; display: flex; flex-direction: column; }
  .el .nt-reihe > li:not(.nt-text) > .nt-foto > figcaption { flex: 1 1 auto; padding-bottom: 16px; background: var(--bg2); }
  .el .nt-reihe > li:not(.nt-text) > .nt-wort { flex: 1 1 auto; justify-content: center; padding: 32px 32px 36px; }
  .el .nt-reihe > .nt-text .nt-wort { max-width: 46rem; padding: 28px 32px 32px; }
}
.el .nt-reihe > li { margin: 0; min-width: 0; }

.el .nt-karte { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(23 25 31 / .04), 0 22px 44px -30px rgb(23 25 31 / .32); }
:root[data-theme="dark"] .el .nt-karte { box-shadow: inset 0 0 0 1px var(--line), 0 22px 44px -30px rgb(0 0 0 / .7); }

.el .nt-foto { margin: 0; background: var(--bg2); }
.el .nt-foto > img { display: block; width: 100%; height: auto; }
.el .nt-foto > figcaption { padding: 12px 20px 0; font: 400 13px/1.45 var(--sans); color: var(--muted); background: var(--surface); }

.el .nt-wort { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 20px 24px; }
.el .nt-wort::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 4px; border-radius: 2px; background: var(--cu-deep); }
.el .nt-titel { margin: 0; font: 400 clamp(1.25rem, 1.05rem + .5vw, 1.5rem)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.el .nt-wort p { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--muted); text-wrap: pretty; }

/* Textkarte ohne Bild: gleiche Rahmung, Text oben */
.el .nt-text .nt-wort { padding-top: 24px; }

.el .nt-solo { grid-template-columns: 1fr; }
.el .nt-solo .wort { max-width: 46rem; padding: 0; }
.el .kapitel.nt-eins { grid-template-columns: 1fr; max-width: 46rem; }

/* Tablet: zwei Spalten, die Textkarte steht ueber die ganze Breite */
@media (max-width: 1099px) {
  .el .nt-reihe { align-items: start; }
}

/* Telefon: Wischreihe mit Einrasten, die Reihe reicht bis an den Bildschirmrand, die Seite scrollt nicht seitlich */
@media (max-width: 639px) {
  .el .nt-prosa { margin-bottom: 40px; }
  .el .nt-reihe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 12px; align-items: stretch;
    margin-inline: calc(50% - 50vw); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 28px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scrollbar-width: none; }
  .el .nt-reihe::-webkit-scrollbar { display: none; }
  .el .nt-reihe > li { scroll-snap-align: start; }
  .el .nt-reihe > .nt-text { grid-column: auto; }
  .el .nt-karte { height: 100%; }
  .el.el-js .nt-reihe > li.ein { opacity: 1; transform: none; }
}
