/* Gemeinsames Stylesheet für den Webauftritt des KHV Wittgensdorf */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    /* Höhe NICHT auf 100% festnageln – sonst bleibt das sticky Hauptmenü
     * nicht am Viewport-Rand, weil sein Eltern-Element nur Viewport-hoch ist. */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5efe3;
    color: #222;
    line-height: 1.5;
}

/* --- Kopf mit Hero-Slideshow und Hauptmenü -------------------------- */
.site-header {
    position: relative;
    background-color: #f5efe3;
    border-bottom: 2px solid #b8901e;
    overflow: hidden;
}

/* Hero-Slideshow im Seitenkopf.
 * Pro Bild ein <img class="kopf-bild [aktiv]">; die Bildunterschrift
 * liegt als <div class="kopf-bildtext"> darüber.
 * Das aktuell sichtbare Bild trägt die Klasse 'aktiv' – das Wechseln
 * übernimmt initSlideshow() in script.js (SLIDESHOW_INTERVAL_MS). */
.kopf-bilder {
    position: relative;
    width: 100%;
    max-width: 880px;         /* Auf die Breite der Inhaltsspalte (Spalte 2)
                               * begrenzt: Layout = 1400px, Seitenspalten
                               * 240 + 280 → Inhalt = 880px. */
    height: 440px;            /* 2:1 zu 880px Breite. */
    margin: 0 auto;
    overflow: hidden;
    background-color: #1a1208;
}

/* Im 3-Spalten-Layout (ab 1025px) ist die linke Spalte 240px, die rechte 280px
 * breit – die Inhaltsspalte sitzt also 20px links vom Seitenmittelpunkt.
 * Die Slideshow wird hier nicht mittig im Viewport, sondern exakt über der
 * Inhaltsspalte platziert. Layout-Container ist max. 1400px breit, zentriert. */
@media (min-width: 1025px) {
    .kopf-bilder {
        max-width: none;
        width: min(880px, calc(100% - 520px));
        margin-left: max(240px, calc((100% - 1400px) / 2 + 240px));
        margin-right: auto;
    }
}

.kopf-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.kopf-bild.aktiv {
    opacity: 1;
}

/* Bildunterschrift unten als Verlauf-Overlay */
.kopf-bildtext {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 28px 14px 28px;
    background: linear-gradient(to top,
                rgba(0, 0, 0, 0.70) 0%,
                rgba(0, 0, 0, 0.45) 55%,
                rgba(0, 0, 0, 0)    100%);
    color: #ffffff;
    font-size: 1.05em;
    font-style: italic;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

@media (max-width: 768px) {
    .kopf-bilder    { height: 220px; }
    .kopf-bildtext  { padding: 26px 16px 10px 16px; font-size: 0.95em; }
}

/* Bei Wunsch nach reduzierter Bewegung: harter Bildwechsel statt Crossfade */
@media (prefers-reduced-motion: reduce) {
    .kopf-bild { transition: opacity 0.05s linear; }
}

/* --- Klebrige Menüleiste (bleibt beim Scrollen sichtbar) ------------ */
.hauptmenue {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(245, 239, 227, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid #d8cdb6;
    border-bottom: 1px solid #d8cdb6;
    box-shadow: 0 1px 6px rgba(26, 18, 8, 0.06);
}

.hauptmenue-innen {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.hauptmenue ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    flex: 1;
    justify-content: center;
}

.hauptmenue li { margin: 0; }

.hauptmenue a {
    display: inline-block;
    padding: 12px 4px;
    color: #1a1208;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.hauptmenue a:hover {
    color: #b8901e;
    border-bottom-color: #d4aa40;
}

.hauptmenue a.active {
    color: #b8901e;
    border-bottom-color: #b8901e;
}

/* --- Drei-Spalten-Layout (für alle Seiten) -------------------------- */
:root {
    --menu-h: 56px;
    --rahmen: #d6c9ae;
}

.layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-spalte,
.suche-spalte {
    background-color: #f5efe3;
    padding: 18px 16px;
    position: sticky;
    top: var(--menu-h);
    max-height: calc(100vh - var(--menu-h));
    overflow-y: auto;
    align-self: start;
}

.nav-spalte {
    border-right: 1px solid var(--rahmen);
}

.suche-spalte {
    border-left: 1px solid var(--rahmen);
}

.nav-spalte h2,
.suche-spalte h2 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #8b6914;
    font-style: italic;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* --- Inhaltsbereich (mittlere Spalte) ------------------------------- */
.content {
    background-color: #fbf7ee;
    border-left: 1px solid var(--rahmen);
    border-right: 1px solid var(--rahmen);
    padding: 28px 32px 48px 32px;
    max-width: none;
    margin: 0;
}

/* --- Schmaler Bildschirm: Spalten untereinander --------------------- */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .nav-spalte,
    .suche-spalte {
        position: static;
        max-height: none;
        border: 0;
        border-bottom: 1px solid var(--rahmen);
    }

    .content {
        border: 0;
        border-bottom: 1px solid var(--rahmen);
    }
}

/* --- Navigationsbaum (linke Spalte) --------------------------------- */
.nav-tree,
.nav-tree ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-tree ul {
    padding-left: 16px;
    margin-top: 4px;
    display: none;           /* Unterpunkte standardmäßig eingeklappt */
}

.nav-tree li.open > ul {
    display: block;
}

.nav-tree li {
    margin: 4px 0;
    position: relative;
}

.nav-tree a {
    color: #1a1208;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 2px 0;
}

.nav-tree a:hover {
    text-decoration: underline;
    color: #b8901e;
}

.nav-tree a.active {
    color: #b8901e;
    text-decoration: underline;
}

/* Klapp-Icon für Knoten mit Unterpunkten */
.nav-tree li.has-children > .toggle {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    cursor: pointer;
    color: #b8901e;
    font-family: monospace;
    font-weight: bold;
    user-select: none;
    text-align: center;
    line-height: 14px;
}

.nav-tree li.has-children > .toggle::before {
    content: "▶";
    font-size: 10px;
}

.nav-tree li.has-children.open > .toggle::before {
    content: "▼";
}

/* --- Suchfeld (rechte Spalte) --------------------------------------- */
.search-box {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8b895;
    border-radius: 4px;
    background-color: #fffaf0;
    font-size: 0.95em;
    font-family: inherit;
}

.search-box:focus {
    outline: none;
    border-color: #b8901e;
    box-shadow: 0 0 0 2px rgba(184, 144, 30, 0.18);
}

.search-hint {
    font-size: 0.85em;
    color: #555;
    margin-top: 8px;
}

.search-results {
    margin-top: 14px;
    font-size: 0.9em;
}

.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 4px 0;
    border-bottom: 1px dotted #c8b895;
}

.search-results a {
    color: #8b6914;
    text-decoration: none;
}

.search-results a:hover {
    text-decoration: underline;
}

/* Markierung von Treffern im Inhalt */
mark.search-hit {
    background-color: #ffe066;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

/* --- Inhalt -------------------------------------------------------- */
.content h1 {
    color: #1a1208;
    border-bottom: 2px solid #b8901e;
    padding-bottom: 6px;
    margin-top: 0;
}

.content h2 {
    color: #b8901e;
    margin-top: 1.6em;
    letter-spacing: 0.02em;
}

.content a {
    color: #8b6914;
}

.content a:hover {
    color: #b8901e;
}

.content h3,
.content h4 {
    color: #1a1208;
    margin-top: 1.4em;
    margin-bottom: 0.4em;
}

.content ul,
.content ol {
    margin: 0.4em 0 1em 1.4em;
}

.content li {
    margin: 3px 0;
}

.content blockquote {
    margin: 0.8em 0 0.8em 0;
    padding: 6px 14px;
    border-left: 3px solid #b8a98a;
    background-color: #fbf6ea;
    color: #333;
}

.content table {
    border-collapse: collapse;
    margin: 0.8em 0;
}

.content th,
.content td {
    border: 1px solid #c8b895;
    padding: 4px 10px;
    text-align: left;
}

.content th {
    background-color: #ece1c6;
    color: #8b6914;
}

/* --- Arbeitsplan-Tabelle ------------------------------------------- */
.content table.arbeitsplan {
    width: 100%;
    margin: 0.4em 0 1.2em 0;
}

.content table.arbeitsplan th,
.content table.arbeitsplan td {
    vertical-align: top;
    padding: 5px 10px;
}

.content table.arbeitsplan td:first-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #8b6914;
    font-weight: 600;
    width: 6.5em;
}

.content table.arbeitsplan tbody tr:nth-child(even) {
    background-color: #fbf6ea;
}

.content table.arbeitsplan tr.hinweis-zeile td {
    text-align: center;
    background-color: #ece1c6;
    color: #6b5d3f;
    border-top: 2px solid #c8b895;
    border-bottom: 2px solid #c8b895;
}

.arbeitsplan-hinweise {
    margin-top: 1.2em;
    padding: 12px 16px;
    background-color: #fbf6ea;
    border-left: 3px solid #b8a98a;
    font-size: 0.95em;
}

.arbeitsplan-hinweise p {
    margin: 0.3em 0;
}

.arbeitsplan-hinweise p.stand {
    margin-top: 0.8em;
    font-size: 0.85em;
    color: #6b5d3f;
    text-align: right;
    font-style: italic;
}

/* --- Vereine-Kacheln (verein/freunde.php + wittgensdorf/vereine.php)  */
.vereine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin: 1.2em 0;
}

.vereine-post p {
    margin: 1em 0 0.4em 0;
}

.verein-kachel {
    background-color: #fbf6ea;
    border: 1px solid #d8cdb6;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.verein-kachel h3,
.content .verein-kachel h3 {
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8cdb6;
    color: #8b6914;
    font-size: 1.05em;
    line-height: 1.3;
}

.verein-kachel table.verein-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92em;
    table-layout: fixed;
}

.verein-kachel table.verein-info th,
.verein-kachel table.verein-info td {
    border: none;
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    background-color: transparent;
}

.verein-kachel table.verein-info th {
    color: #6b5d3f;
    font-weight: 600;
    width: 9em;
    white-space: nowrap;
}

.verein-kachel table.verein-info td {
    color: #222;
    overflow-wrap: anywhere;
}

.verein-kachel table.verein-info td.anschrift {
    white-space: pre-line;
}

.verein-kachel a {
    color: #8b6914;
    text-decoration: none;
}

.verein-kachel a.weblink {
    font-size: 0.92em;
}

.verein-kachel a:hover {
    text-decoration: underline;
}

/* --- Befreundete Vereine: gemeinsame Liste (verein/freunde.php) ----- */
.freunde-liste {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    table-layout: fixed;
    margin: 1.2em 0;
}

.freunde-liste th {
    width: 9em;
    color: #6b5d3f;
    font-weight: 600;
    padding: 2px 8px 2px 0;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.freunde-liste td {
    color: #222;
    padding: 2px 0;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.freunde-liste td.anschrift {
    white-space: pre-line;
}

.freunde-liste tr.freunde-trenner td {
    padding: 10px 0 8px 0;
    border: none;
}

.freunde-liste tr.freunde-trenner td hr {
    border: none;
    border-top: 3px solid #8b6914;
    margin: 0;
}

.freunde-liste a {
    color: #8b6914;
    text-decoration: none;
}

.freunde-liste a:hover {
    text-decoration: underline;
}

/* --- Ärzte und Therapeuten (wittgensdorf/arzt.php) ----------------- */
.aerzte-pre,
.aerzte-post {
    margin: 1em 0;
    padding: 10px 14px;
    background-color: #fbf6ea;
    border-left: 3px solid #b8a98a;
    font-size: 0.95em;
}

.aerzte-pre p,
.aerzte-post p {
    margin: 0.25em 0;
}

.aerzte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin: 1.2em 0;
}

.arzt-kachel {
    background-color: #fbf6ea;
    border: 1px solid #d8cdb6;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.arzt-kachel h3 {
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8cdb6;
    color: #8b6914;
    font-size: 1.05em;
    line-height: 1.3;
}

.arzt-kachel table.praxis-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 4px 0;
    font-size: 0.92em;
}

.arzt-kachel table.praxis-info th,
.arzt-kachel table.praxis-info td {
    border: none;
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    background-color: transparent;
}

.arzt-kachel table.praxis-info th {
    color: #6b5d3f;
    font-weight: 600;
    width: 6.5em;
    white-space: nowrap;
}

.arzt-kachel table.praxis-info td {
    color: #222;
    overflow-wrap: anywhere;
}

.arzt-kachel table.praxis-info td.anschrift {
    white-space: pre-line;
}

.arzt-kachel h4.arzt-name {
    margin: 14px 0 2px 0;
    color: #1a1208;
    font-size: 0.98em;
    font-weight: 600;
}

.arzt-kachel p.zeiten-titel {
    margin: 0.2em 0 0.3em 0;
    font-size: 0.9em;
    color: #6b5d3f;
}

.arzt-kachel table.sprechzeiten {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.6em 0;
    font-size: 0.88em;
}

.arzt-kachel table.sprechzeiten th,
.arzt-kachel table.sprechzeiten td {
    border: 1px solid #d8cdb6;
    padding: 3px 6px;
    text-align: left;
    vertical-align: top;
}

.arzt-kachel table.sprechzeiten th {
    background-color: #ece1c6;
    color: #6b5d3f;
}

.arzt-kachel table.sprechzeiten td.zeit-durchgehend {
    text-align: center;
    background-color: #fbf6ea;
    font-style: italic;
    color: #6b5d3f;
}

.arzt-kachel a {
    color: #8b6914;
    text-decoration: none;
}

.arzt-kachel a.weblink {
    font-size: 0.92em;
}

.arzt-kachel a:hover {
    text-decoration: underline;
}

/* --- Firmenverzeichnis (wittgensdorf/wirtschaft.php) --------------- */
.firmen-pre p,
.firmen-post p {
    margin: 0.25em 0;
}

.firmen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin: 1.2em 0;
}

.firma-kachel {
    background-color: #fbf6ea;
    border: 1px solid #d8cdb6;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.firma-kachel h3 {
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8cdb6;
    color: #8b6914;
    font-size: 1.05em;
    line-height: 1.3;
}

.firma-kachel p.leistung {
    margin: 0 0 8px 0;
    font-size: 0.92em;
    font-style: italic;
    color: #6b5d3f;
}

.firma-kachel table.firma-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92em;
    table-layout: fixed;
}

.firma-kachel table.firma-info th,
.firma-kachel table.firma-info td {
    border: none;
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    background-color: transparent;
}

.firma-kachel table.firma-info th {
    color: #6b5d3f;
    font-weight: 600;
    width: 9em;
    white-space: nowrap;
}

.firma-kachel table.firma-info td {
    color: #222;
    overflow-wrap: anywhere;
}

.firma-kachel table.firma-info td.anschrift {
    white-space: pre-line;
}

.firma-kachel a {
    color: #8b6914;
    text-decoration: none;
}

.firma-kachel a.weblink {
    font-size: 0.92em;
}

.firma-kachel a:hover {
    text-decoration: underline;
}

/* --- Schule und Kitas (wittgensdorf/kitas.php) --------------------- */
.kitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin: 1.2em 0;
}

.kitas-post p {
    margin: 1em 0 0.4em 0;
}

.kita-kachel {
    background-color: #fbf6ea;
    border: 1px solid #d8cdb6;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.kita-kachel h3 {
    margin: 0 0 4px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8cdb6;
    color: #8b6914;
    font-size: 1.05em;
    line-height: 1.3;
}

.kita-kachel p.art {
    margin: 4px 0 8px 0;
    font-size: 0.92em;
    font-style: italic;
    color: #6b5d3f;
}

.kita-kachel table.kita-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92em;
    table-layout: fixed;
}

.kita-kachel table.kita-info th,
.kita-kachel table.kita-info td {
    border: none;
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    background-color: transparent;
}

.kita-kachel table.kita-info th {
    color: #6b5d3f;
    font-weight: 600;
    width: 9em;
    white-space: nowrap;
}

.kita-kachel table.kita-info td {
    color: #222;
    overflow-wrap: anywhere;
}

.kita-kachel table.kita-info td.anschrift {
    white-space: pre-line;
}

.kita-kachel p.hinweis {
    margin: 10px 0 0 0;
    padding: 8px 12px;
    background-color: #ece1c6;
    border-left: 3px solid #b8a98a;
    font-size: 0.9em;
    color: #4a3c20;
}

.kita-kachel a {
    color: #8b6914;
    text-decoration: none;
}

.kita-kachel a.weblink {
    font-size: 0.92em;
}

.kita-kachel a:hover {
    text-decoration: underline;
}

/* --- Kirche und Religion (wittgensdorf/kirche.php) ----------------- */
.kirchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin: 1.2em 0;
}

.kirchen-post p {
    margin: 1em 0 0.4em 0;
}

.kirche-kachel {
    background-color: #fbf6ea;
    border: 1px solid #d8cdb6;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.kirche-kachel h3 {
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8cdb6;
    color: #8b6914;
    font-size: 1.05em;
    line-height: 1.3;
}

.kirche-kachel table.kirche-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92em;
    table-layout: fixed;
}

.kirche-kachel table.kirche-info th,
.kirche-kachel table.kirche-info td {
    border: none;
    padding: 3px 6px 3px 0;
    text-align: left;
    vertical-align: top;
    background-color: transparent;
}

.kirche-kachel table.kirche-info th {
    color: #6b5d3f;
    font-weight: 600;
    width: 9em;
    white-space: nowrap;
}

.kirche-kachel table.kirche-info td {
    color: #222;
    overflow-wrap: anywhere;
}

.kirche-kachel table.kirche-info td.anschrift {
    white-space: pre-line;
}

.kirche-kachel a {
    color: #8b6914;
    text-decoration: none;
}

.kirche-kachel a.weblink {
    font-size: 0.92em;
}

.kirche-kachel a:hover {
    text-decoration: underline;
}

/* Anker-Sprünge sollen nicht hinter dem klebrigen Hauptmenü landen */
.content section[id] {
    scroll-margin-top: calc(var(--menu-h) + 12px);
}

/* Einleitungs-Absatz, der die Seite kurz erklärt */
.bereich-intro {
    font-style: italic;
    color: #6b5d3f;
    border-left: 2px solid #b8901e;
    padding: 4px 0 4px 14px;
    margin: 4px 0 22px 0;
    max-width: 620px;
}

/* --- Bürgerservicestelle (wittgensdorf/service.php) ---------------- */
.service-kontakt {
    margin: 1em 0 1.4em 0;
}

.service-kontakt p.anschrift {
    margin: 0 0 0.4em 0;
    white-space: pre-line;
}

.service-kontakt p {
    margin: 0.2em 0;
}

table.service-termine {
    border-collapse: collapse;
    margin: 0.6em 0 1em 0;
    font-size: 0.95em;
}

table.service-termine th,
table.service-termine td {
    border: 1px solid #d8cdb6;
    padding: 4px 10px;
    text-align: left;
    vertical-align: top;
}

table.service-termine thead th {
    background-color: #ece1c6;
    color: #6b5d3f;
    font-weight: 600;
}

table.service-termine tbody tr:nth-child(even) td {
    background-color: #fbf6ea;
}

/* --- Eingebundene Bilder ------------------------------------------- */
/* Generelle Schutzregel: Inhalts-Bilder bleiben in der Spalte */
.content img {
    max-width: 100%;
    height: auto;
}

.content img.bild {
    display: block;
    margin: 14px auto;
    border: 1px solid #d8cdb6;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.content img.bild.schmal {
    max-width: 420px;
}

.content img.bild.breit {
    max-width: 720px;
}

.content figure {
    margin: 14px auto;
    max-width: 720px;
    text-align: center;
}

.content figure img.bild {
    margin: 0 auto 6px auto;
}

/* --- PDF-Vorschau (als SVG aus dem PDF gerendert) ------------------ */
.content figure .pdf-vorschau {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto 6px auto;
    border: 1px solid #d8cdb6;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.content figcaption {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
    padding: 2px 8px 6px 8px;
}

/* --- Platzhalter für noch fehlende Bilder --------------------------- */
.bild-platzhalter {
    display: block;
    max-width: 520px;
    margin: 12px auto;
    padding: 18px 16px;
    border: 1px dashed #b8a98a;
    background-color: #fffaf0;
    color: #6b5d3f;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    text-align: center;
    border-radius: 4px;
}

/* --- Rundschau-Liste ------------------------------------------------- */
.heft-label {
    color: #6b5d3f;
}

.pdf-link {
    margin-left: 0.6em;
    text-decoration: none;
}

/* --- Aktionsknöpfe (Zurück, Nach oben) ------------------------------ */
.seiten-aktionen {
    margin: 0 0 14px 0;
}

.seiten-aktionen-bottom {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #d8cdb6;
    padding-top: 14px;
}

.btn-zurueck,
.btn-nach-oben,
.btn-download {
    display: inline-block;
    padding: 6px 14px;
    background-color: #8b6914;
    color: #ffffff;
    border: 1px solid #b8901e;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-zurueck:hover,
.btn-nach-oben:hover,
.btn-download:hover {
    background-color: #d4aa40;
    color: #ffffff;
    text-decoration: none;
}

.btn-zurueck:focus,
.btn-nach-oben:focus,
.btn-download:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(184, 144, 30, 0.25);
}

/* Spezifität von .content a überstimmen */
.content a.btn-download,
.content a.btn-download:hover {
    color: #ffffff;
}

.btn-nach-oben {
    background-color: #fffaf0;
    color: #8b6914;
}

.btn-nach-oben:hover {
    background-color: #ece1c6;
    color: #8b6914;
}

