/* Katalogseite und Katalogübersicht
 *
 * Gemessen an der Katalog-Detailseite des Webflow-Stands (1280 px):
 *   Titel 44/61,6 bei y=140 · Hauptspalte 773 px ab x=40 · Bild bis 530 px hoch
 *   Text 20/30 px, h3 30/39 · Seitenleiste 387 px ab x=853 (Lücke 40)
 *   Leistenkarte 21 px Innenabstand, Listeneinträge 345×55 mit 16 px Abstand
 * Übersicht: 4 Spalten à 273 px, Kacheln quadratisch, ab x=80.
 *
 * Original-Fehler behoben: In der Seitenleiste überlagern sich Katalogliste
 * und Bestellformular; in der Übersicht Titel und Teaser. Hier stehen die
 * Blöcke untereinander.
 * Baut auf projekt.css auf (Titel, Lesetext, Blöcke).
 */

/* ---------------------------------------------------- Zwei Spalten */
.katalog-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 25px; }   /* minmax: große Bilder dürfen die Spalte nicht aufdrücken */
.katalog-spalten .projekt-unter { margin-top: 4px; }
@media screen and (min-width: 1100px) { .katalog-spalten { grid-template-columns: minmax(0, 1fr) 360px; } }   /* Leiste 360: längster Eintrag 241 + Pfeil + Innenabstände */   /* Leiste bündig am rechten Bahnrand, auch auf breiten Bildschirmen */
@media screen and (min-width: 1440px) { .katalog-spalten { margin-top: 32px; } }

/* Umschlag: Hochformat, nie über die eigene Auflösung, nie höher als 530 */
.katalog-cover { margin: 0; }
.katalog-cover img {
  display: block; width: auto; height: auto;
  max-height: 530px; max-width: min(100%, var(--eigen, 100%));
  background: var(--dunkel-sektion);
}
.katalog-cover figcaption { padding-top: 10px; }

.katalog-angaben {
  display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 22px 0 0; padding: 0;
}
.katalog-angaben div { display: flex; gap: 8px; align-items: baseline; }
.katalog-angaben dt { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dunkel-text-leise); }
.katalog-angaben dd { margin: 0; font-size: 18px; color: var(--dunkel-text); font-variant-numeric: tabular-nums; }

.katalog-text { margin-top: 34px; }
/* Klappentext | Inhalt als Reiter über der Linie: der aktive im Ton der Überschrift, der andere leise; Umschalten per reiter.js */
.reiter-zeile { display: flex; gap: 30px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--dunkel-rand); }
.reiter-zeile h3 { margin: 0; font-size: 30px; line-height: 1.3; }
.reiter-zeile .reiter { font: inherit; color: var(--dunkel-text-leise); background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s ease; opacity: .55; }
.reiter-zeile .reiter[aria-selected="true"] { color: var(--dunkel-text); opacity: 1; cursor: default; }
.reiter-zeile .reiter:hover { opacity: .85; }
.reiter-zeile .reiter:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
.katalog-reiter .reiter-tafel { margin: 0; }
.katalog-reiter .reiter-tafel + .reiter-tafel { margin-top: 40px; }      /* ohne Skript: untereinander */
.js .katalog-reiter .reiter-tafel + .reiter-tafel { margin-top: 0; }

/* Inhaltsverzeichnis: Beitrag links, Seitenzahl rechts */
.projekt-text .inhaltsverzeichnis { margin: 0; padding: 0; list-style: none; }   /* bündig: überschreibt den Listeneinzug von .projekt-text ul */
.projekt-text .inhaltsverzeichnis li { margin-bottom: 0; }
.inhaltsverzeichnis li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--dunkel-rand); font-size: 18px; line-height: 1.45;
}
.inhaltsverzeichnis li:last-child { border-bottom: 0; }
.inhaltsverzeichnis .autor { display: block; font-size: 15px; color: var(--dunkel-text-leise); }
.inhaltsverzeichnis .seite { font-variant-numeric: tabular-nums; color: var(--dunkel-text-leise); }

/* Kapitelköpfe (Religion): Banner untereinander */
.kapitel { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.kapitel img { display: block; width: 100%; height: auto; max-width: min(100%, var(--eigen, 100%)); }

/* ---------------------------------------------------- Seitenleiste */
.leiste { display: grid; gap: 40px; align-content: start; }
@media screen and (min-width: 1100px) { .leiste { position: sticky; top: 108px; align-self: start; } }   /* bleibt beim Scrollen stehen: 88 px Kopfleiste + 20 */
.leiste-karte { border: 1px solid var(--dunkel-rand); padding: 21px; }   /* feine Linien statt Farbfläche (wie Startseite) */
.leiste-karte h2 {
  font-family: var(--schrift-text); font-style: normal; font-weight: 700;
  font-size: 20px; line-height: 39px; letter-spacing: .25px; text-transform: uppercase;
  margin: 0 0 24px; color: var(--dunkel-text);
}
/* Kopf „Projekte | Kataloge“ (Projekt- und Katalogseiten): der andere Begriff springt zum selben Thema */
/* inaktiver Begriff wie der inaktive Reiter („Begleitprogramm“): leise, 55 %; beim Überfahren 85 %; Abstand wie die Reiter (30) */
.leisten-umschalter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 30px; }   /* zweiter Begriff rechtsbündig, endet mit den Knöpfen darunter */
.leisten-umschalter a { color: var(--dunkel-text-leise); text-decoration: none; opacity: .55; transition: opacity .2s ease; }
.leisten-umschalter a:hover { opacity: .85; }
.leisten-umschalter a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.katalog-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.katalog-liste a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 55px; padding: 0 20px;
  border: 1px solid var(--dunkel-rand);
  font-size: 18px; font-weight: 500; color: var(--dunkel-text); text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.katalog-liste a::after { content: "→"; color: var(--dunkel-text-leise); flex: none; line-height: 1; position: relative; top: -2px; }   /* Pfeilglyphe sitzt in Barlow tief; optisch mittig */
.katalog-liste a:hover { border-color: var(--akzent); color: var(--akzent); }
.katalog-liste a[aria-current="page"] { border-color: var(--akzent); color: var(--akzent); }
.katalog-liste a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------------------------------------------------- Umschlag + Bestellkasten
 * Kasten rechts neben dem Umschlag, unten bündig; ab 1100 px (zwei Spalten) genug Platz. */
/* Umschlagspalte fest 485 px (= 600 hoch bei 3231 × 4000) – ein „auto“-Maß würde das große Bild in voller Breite setzen */
.katalog-kopf { display: grid; grid-template-columns: minmax(0, 485px) minmax(0, 1fr); gap: 30px; align-items: end; margin-top: 0; }   /* Oberkante des Umschlags = Oberkante der Katalogliste */
.katalog-kopf .katalog-cover img { width: 100%; max-height: none; }
.katalog-angaben { margin: 0 0 14px; }
.bestellen { padding: 0; border: 0; }   /* ohne Rahmen neben dem Umschlag */
.bestellen p { margin: 0 0 14px; color: var(--dunkel-text-leise); }
.bestellen .preis { font-family: var(--schrift-text); font-size: 36px; line-height: 1.1; font-weight: 500; color: var(--dunkel-text); font-variant-numeric: tabular-nums; margin: 0 0 8px; }
.bestellen .umfang { color: var(--dunkel-text); margin-bottom: 22px; }
.bestellen .knoepfe { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }   /* nebeneinander, so breit wie nötig; Abstand wie in der Katalogliste */
.bestellen .knoepfe .knopf { padding: 0 20px; min-height: 50px; font-size: 17px; white-space: nowrap; }   /* kompakter, damit beide nebeneinander passen */
.bestellen .knopf-rahmen { background: transparent; color: var(--dunkel-text); border-color: var(--dunkel-text); }   /* invertiert: heller Rahmen im Ton der Schrift */
.bestellen .knopf-rahmen:hover { background: var(--akzent); color: var(--dunkel-grund); }
.bestellen .knopf-voll { background: var(--akzent); color: var(--dunkel-grund); border-color: transparent; }
.bestellen .knopf-voll:hover { background: #fff; color: var(--dunkel-grund); }
/* Bis 1279 px (01.10.2026, iPad): Textblock mit Preis und Knöpfen unter den Umschlag statt daneben – neben dem
 * 485 px breiten Umschlag blieben auf dem iPad nur 140–190 px für den Text. Umschlag höchstens 485 px breit. */
@media screen and (max-width: 1279px) { .katalog-kopf { grid-template-columns: minmax(0, 485px); align-items: start; } }
@media screen and (max-width: 479px) {   /* Handy: Umschlag samt Textblock 280 statt voller Breite, Knöpfe so breit wie der Umschlag (01.10.2026) */
  .katalog-kopf { grid-template-columns: minmax(0, 280px); }
  .bestellen .knoepfe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bestellen .knoepfe .knopf { justify-content: center; }
}
/* (bis 767 px galt früher volle Breite – auf dem iPad hoch 704 × 871 px; jetzt auch dort höchstens 485 px breit) */

/* ---------------------------------------------------- Leseprobe als Buch (über die volle Breite, unter beiden Spalten) */
.leseprobe > h2 .angabe { float: right; font-family: var(--schrift-text); font-style: normal; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dunkel-text-leise); line-height: 39px; }
.leseprobe-seiten { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }   /* ohne Skript: untereinander */
.leseprobe-seiten[hidden] { display: none; }
.leseprobe-seiten img { display: block; width: auto; max-width: 100%; height: auto; }
.leseprobe > h2 { scroll-margin-top: 112px; }   /* Ankersprung ohne Skript: Überschrift unter der Kopfleiste */
.zur-leseprobe { display: block; cursor: pointer; }
.zur-leseprobe:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
/* Kein Fokusrahmen nach Mausklick (Safari zeichnet sonst einen hellen Rand); per Tastatur bleibt er sichtbar */
.buch button:focus:not(:focus-visible) { outline: none; }
.buch-flaeche { background: #1a1918; display: flex; justify-content: center; align-items: center; gap: 0; min-height: 50vh; padding: 24px 88px; }   /* seitlich Platz für die Chevrons */
.buch-seite { flex: 0 1 auto; min-width: 0; display: flex; }
.buch-seite.links { justify-content: flex-end; }
.buch-seite img { display: block; width: auto; height: auto; max-height: 72vh; max-width: min(100%, var(--eigen, 100%)); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }   /* Schatten ohne seitlichen Versatz, damit beide Seiten gleich wirken */
/* Falz: Schatten zur Buchmitte auf beiden Seiten, je 9 % der Seitenbreite; Stärke links/rechts über --falz-a / --falz-b */
.buch-seite { position: relative; --falz-a: .16; --falz-b: .16; }
.buch-seite::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.buch-seite.links::after { right: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, var(--falz-a))); }
.buch-seite.rechts::after { left: 0; background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, var(--falz-b))); }
.buch-seite:empty::after { display: none; }
.buch-seite:empty { display: none; }
.buch-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0 18px; border-bottom: 1px solid var(--dunkel-rand); }
.buch-zaehler { font-size: .78rem; letter-spacing: .09em; white-space: nowrap; }
.buch-streifen { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 8px; scroll-behavior: smooth; }
.buch-streifen::before, .buch-streifen::after { content: ""; margin: auto; }   /* mittig, solange der Streifen kürzer als die Breite ist; sonst scrollbar */
.buch-streifen button { flex: 0 0 auto; display: flex; gap: 2px; height: 58px; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .5; transition: opacity .18s ease; }
.buch-streifen button img, .buch-streifen button .leer { display: block; width: 40px; height: 58px; object-fit: cover; object-position: top; }
.buch-streifen button .leer { background: transparent; }
.buch-streifen button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--akzent); }
.buch-streifen button:hover { opacity: .85; }
.buch-streifen button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; opacity: 1; }
/* Chevrons links und rechts auf der dunklen Fläche */
.buch-flaeche { position: relative; }
.buch-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--dunkel-text-leise); cursor: pointer; display: grid; place-items: center; transition: color .15s ease, background-color .15s ease; }
.buch-pfeil.zurueck { left: 16px; } .buch-pfeil.weiter { right: 16px; }
.buch-pfeil svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.buch-pfeil:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.buch-pfeil:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.buch-pfeil:disabled { opacity: .25; cursor: default; background: transparent; color: var(--dunkel-text-leise); }
@media screen and (max-width: 767px) { .buch-flaeche { padding: 12px 48px; min-height: 40vh; } .buch-seite img { max-height: 56vh; } .buch-pfeil { width: 44px; height: 44px; } .buch-pfeil.zurueck { left: 2px; } .buch-pfeil.weiter { right: 2px; } }

/* ---------------------------------------------------- Übersicht
 * 4 Spalten à 273 px ab x=80 (die Liste hat 40 px Innenabstand), je Katalog
 * eine Textkachel und eine Umschlagkachel, beide quadratisch.
 */
.katalog-kacheln {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 33px 10px;
  margin: 0; padding: 0; list-style: none;
}
@media screen and (min-width: 992px) { .katalog-kacheln { grid-template-columns: repeat(4, 1fr); margin-inline: 40px; } }
.katalog-kacheln li { display: contents; }
.kachel {
  aspect-ratio: 1; display: flex; flex-direction: column;
  border: 1px solid var(--dunkel-rand); text-decoration: none; color: inherit;
  transition: border-color .2s ease;
}
.kachel:hover { border-color: var(--akzent); }
.kachel:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.kachel-text { padding: 20px 21px; justify-content: space-between; }
.kachel-nr { font-size: 15px; letter-spacing: .08em; color: var(--dunkel-text-leise); }
.kachel-titel { font-size: 24px; line-height: 1.2; margin: 0 0 10px; color: var(--dunkel-text); }
.kachel-text p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--dunkel-text-leise);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kachel-bild { align-items: center; justify-content: center; padding: 18px; background: var(--dunkel-sektion); }
.kachel-bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
@media screen and (max-width: 479px) {
  .katalog-kacheln { grid-template-columns: 1fr; }
  .kachel-text { aspect-ratio: auto; min-height: 0; }
}
/* Ablauf der Bestellung unter den Knöpfen, mit dünner Linie abgesetzt (23.09.2026) */
.bestellen .bestell-ablauf { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--dunkel-rand); font-size: 15px; line-height: 1.55; color: var(--dunkel-text-leise); }
