/* =========================================================================
   MyCMS — app.css  (Theme "Bindebir": Navy-Header, Oliv-Menü, cremiger
   Content-Hintergrund, grüne Überschriften — Farben aus der alten Seite)
   ========================================================================= */

:root {
    /* Primärfarbe (Buttons, Links, aktive Zustände) = das Grün der
       Content-Überschriften der alten Seite */
    --blue-900: #1c1240;
    --blue-800: #2a1c5c;
    --blue-700: #3a2a78;
    --blue-600: #5c8a2e;
    --blue-500: #74a83f;
    --blue-400: #93c25e;
    --blue-200: #cfe3ab;
    --blue-100: #e9f2d3;
    --blue-050: #f5fab8;
    --teal-500: #14b8c4;
    --ink: #2a2a1f;
    --muted: #6b6f52;
    --line: #d8d9a8;
    --bg-2: #999872;
    --bg: #c8c793;
    --bg-init: #eef1e0;
    --surface: #e0ddbd;
    --surface-init: #fffef4;
    --ok: #1e9e5a;
    --warn: #d98324;
    --err: #c0392b;
    --site-header-title: #f5fab8;

    /* Zusätzliche Bindebir-Theme-Farben */
    --accent-red: #7F161F;
    --olive-500: #acb88c;
    --olive-500-init: #c7cd7c;

    --olive-600: #adb463;
    --olive-700: #949a4d;
    --heading-green: #5c8a2e;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(16, 38, 59, .08), 0 1px 2px rgba(16, 38, 59, .06);
    --shadow: 0 6px 20px rgba(16, 38, 59, .12);
    --maxw: 1120px;
    --site-maxw: 1400px;
    --header-h: 68px;

    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    --font-brand: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(15px, 1vw + 13px, 17px);
    line-height: 1.6;
    color: var(--ink);
    /* Farbiger Rahmen links/rechts (sichtbar auf breiten Bildschirmen) -
       die eigentliche Seite liegt zentriert in .site-frame darueber.
       padding-inline sorgt dafuer, dass der rote Rand auch auf mittelbreiten
       Bildschirmen (nicht nur bei sehr breiten) mindestens ~1.25rem (20px) sichtbar bleibt. */
    background: var(--accent-red);
    padding-inline: clamp(0.75rem, 2vw, 1.25rem);
}

/* Zentriert die gesamte Seite (Header/Hero/Content/Footer) innerhalb des
   roten Rahmens; Hintergrund cremefarben wie der restliche Content. */
.site-frame {
    max-width: var(--site-maxw);
    margin-inline: auto;
    background: var(--bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, .18);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    color: var(--blue-800);
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.25;
    color: var(--heading-green);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(14px, 3vw, 28px);
}

/* "Boxed"-Layout: Kopfleiste, Menue, Bilderleiste und Footer schliessen buendig
   mit dem Inhaltsbereich ab (gleiche Breite, zentriert) statt ueber die volle
   Bildschirmbreite zu laufen. */
/*
.site-header,
.site-nav,
.thumbstrip,
.site-footer {
    max-width: var(--maxw);
    margin-inline: auto;
}
*/

.muted {
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1000;
    background: var(--blue-700);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blue-900);
    color: #fff;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--accent-red);
}

.site-header__bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    min-height: var(--header-h);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
}

.site-header__brand:hover {
    text-decoration: none;
}

.site-header__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.site-header__titles {
    display: flex;
    flex-direction: column;
    padding-block: 10px;
}

.site-header__title {
    font-family: var(--font-brand);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: .01em;
    /* color: var(--accent-red);*/
    color: var(--site-header-title);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.site-header__subtitle {
    font-family: var(--font-brand);
    font-style: italic;
    /* font-size: .95rem; */
    font-size: 1.95rem;
    color: #e9e6f5;
    opacity: .9;
}

.site-header__date {
    font-size: .82rem;
    opacity: .9;
    white-space: nowrap;
}

/* ---------- Hero-Banner (Bild unter dem Header) ----------
   Nutzt zusaetzlich die .container-Klasse (siehe Layout.php), damit die
   Breite exakt der von .page-shell (Sidebar + Content) entspricht, statt
   ueber die volle Fensterbreite zu laufen. */
.hero-banner {
    line-height: 0;
    padding-block: clamp(12px, 2.5vw, 20px) 0;
}

.hero-banner img {
    width: 100%;
    height: clamp(90px, 16vw, 180px);
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Seitenlayout: Sidebar-Menü (links) + Content (rechts) ---------- */
.page-shell {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 3vw, 28px);
    padding-block: clamp(20px, 4vw, 32px);
}

/* Menü rechts (Einstellungen -> Menüposition): Sidebar hinter den Content stellen. */
.page-shell--right {
    flex-direction: row-reverse;
}

/* Menü oben: Sidebar wird zur horizontalen Leiste ueber dem Content. */
.page-shell--top {
    flex-direction: column;
}
.page-shell--top .site-nav {
    width: 100%;
    flex: none;
}
.page-shell--top .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
}

/* ---------- Navigation / Sidebar-Menü ("Ana Menü") ---------- */
.site-nav {
    flex: 0 0 240px;
    width: 240px;
}

/* Ohne dies wird ein Flex-Kind nie schmaler als sein breitester Inhalt
   (z.B. eine breite Tabelle) - dadurch würde .page-content über den
   Seitenrand hinausragen, statt dass die Tabelle innerhalb von
   .table-wrap horizontal scrollt. */
.page-content {
    flex: 1 1 0%;
    min-width: 0;
}

.site-nav__box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.site-nav__heading {
    margin: 0;
    padding: 12px 16px;
    font-size: 1.05rem;
    color: var(--blue-900);
    border-bottom: 1px solid var(--line);
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-nav__list a {
    display: block;
    padding: 10px 12px;
    background: var(--olive-500);
    color: var(--blue-900);
    font-size: .92rem;
    font-weight: 700;
    border-radius: 6px;
}

.site-nav__list a:hover {
    background: var(--olive-600);
    color: var(--blue-900);
    text-decoration: none;
}

.site-nav__list a.is-active {
    background: var(--olive-700);
    color: #fff;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 32, .5);
    z-index: 40;
}

/* ---------- Thumbnail strip (Top 50) ---------- */
.thumbstrip {
    background: var(--blue-050);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 8px 0;
}

.thumbstrip__track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: thumbscroll 90s linear infinite;
}

.thumbstrip:hover .thumbstrip__track,
.thumbstrip:focus-within .thumbstrip__track {
    animation-play-state: paused;
}

.thumbstrip__item {
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

/*** menu fit to contnets **/
.thumbstrip__item img {
    width: auto;
    height: 128px;
    object-fit: contain;
    display: block;
    transition: transform .25s;
}

.thumbstrip__item:hover img {
    transform: scale(1.06);
}

@keyframes thumbscroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .thumbstrip__track {
        animation: none;
        overflow-x: auto;
    }
}

/* ---------- Main / cards ---------- */
.main {
    padding-block: clamp(20px, 4vw, 40px);
    min-height: 50vh;
}

.card {
    /*     background: var(--surface);  */
	background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 3vw, 30px);
    margin-bottom: 22px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.card--link {
    display: block;
    transition: transform .2s, box-shadow .2s;
}

.card--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.card--link h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.card--link p {
    margin: 0;
    color: var(--muted);
}

.welcome__title {
    margin-top: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.welcome__sign {
    margin-top: 18px;
}

.welcome__hits {
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
}

.page-title {
    margin: 0 0 18px;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--blue-200);
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    gap: 14px;
    max-width: 640px;
}

.form--wide {
    max-width: 900px;
}

.form__row {
    display: grid;
    gap: 6px;
}

.form label {
    font-weight: 600;
    font-size: .92rem;
    color: var(--blue-800);
}

.input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue-400);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--blue-600);
    color: #fff;
    transition: background .2s;
}

.btn:hover {
    background: var(--blue-800);
    text-decoration: none;
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--blue-700);
    border: 1px solid var(--blue-200);
}

.btn--ghost:hover {
    background: var(--blue-100);
    color: var(--blue-800);
}

.btn--danger {
    background: var(--err);
}

.btn--danger:hover {
    background: #97271c;
}

.btn--sm {
    padding: 6px 12px;
    font-size: .85rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Captcha */
.captcha {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha__code {
    font-size: 1.1rem;
    letter-spacing: .25em;
    background: var(--blue-100);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--blue-400);
}

.captcha__input {
    width: 120px;
}

.captcha__hint {
    color: var(--muted);
    font-size: .85rem;
}

/* Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert--ok {
    background: #e6f6ec;
    border-color: #b6e0c4;
    color: #14663a;
}

.alert--err {
    background: #fbeae8;
    border-color: #f0c2bc;
    color: #8f261c;
}

.alert--info {
    background: var(--blue-100);
    border-color: var(--blue-200);
    color: var(--blue-800);
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

table.data th,
table.data td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

table.data thead th {
    background: var(--blue-100);
    color: var(--blue-900);
    position: sticky;
    top: 0;
}

table.data tbody tr:nth-child(even) {
    background: var(--blue-050);
}

table.data tbody tr:hover {
    background: var(--blue-100);
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 20px 0;
}

.pager a,
.pager span {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue-700);
    font-weight: 600;
}

.pager a:hover {
    background: var(--blue-100);
    text-decoration: none;
}

.pager .is-active {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue-900);
    color: #cfe0f2;
    margin-top: 40px;
    padding: 22px 0;
    text-align: center;
}

.site-footer a {
    color: #fff;
}

/* Theme-Umschalter (zum Vergleichen der 3 Designs) */
.theme-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.theme-switch__label {
    color: #cfe0f2;
    font-size: .85rem;
    opacity: .85;
}

.theme-switch a {
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
}

.theme-switch a:hover {
    background: rgba(255, 255, 255, .25);
    text-decoration: none;
}

.theme-switch a.is-active {
    background: #fff;
    color: var(--blue-900);
    border-color: #fff;
}

/* ---------- Content prose (static pages) ---------- */
.prose h2 {
    margin-top: 1.6em;
}

.prose img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin: 14px 0;
}

.prose ul {
    padding-left: 1.2em;
}

.link-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.link-list a {
    display: block;
    padding: 12px 16px;
    /* background: #fff;  */
	background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.link-list a:hover {
    background: var(--blue-050);
    text-decoration: none;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .site-header__subtitle {
        display: none;
    }

    .site-header__date {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        transform: translateX(-100%);
        transition: transform .28s ease;
        z-index: 45;
        overflow-y: auto;
        padding-top: calc(var(--header-h) + 10px);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav__list {
        flex-direction: column;
        gap: 2px;
        padding: 10px;
    }

    .site-nav__list a {
        font-size: 1rem;
    }
}

@media (min-width: 861px) {
    .nav-backdrop {
        display: none !important;
    }
}
/* ---------- Language switch (MyCMS) ---------- */
/* ---------- Kategorie-/Album-Suche (Şiirler, Galerie-Album, Sitesuche) ----------
   Suchfeld + Button (+ evtl. "Zurücksetzen"-Link) bleiben immer in EINER
   Zeile: Eingabefeld nimmt den verfuegbaren Platz, Buttons behalten ihre
   natuerliche Breite - kein Umbruch, auch nicht auf schmalen Bildschirmen. */
.rehber-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.rehber-search .input {
    flex: 1 1 auto;
    min-width: 0; /* verhindert, dass das Input-Feld die Zeile sprengt */
}
.rehber-search .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}
/* ---------- Sitesuche im Header ---------- */
.site-search {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 2px 4px 2px 10px;
}
.site-search input {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: .85rem;
    width: clamp(90px, 14vw, 170px);
    outline: none;
}
.site-search input::placeholder {
    color: rgba(255, 255, 255, .65);
}
.site-search button {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
    padding: 4px 6px;
}
@media (max-width: 720px) {
    .site-search { order: 3; margin-left: 0; width: 100%; margin-top: 8px; }
}

.lang-switch { display: flex; gap: 6px; margin-left: 12px; }
.lang-switch a {
    color: #dceaf8; font-size: .78rem; font-weight: 700; padding: 4px 8px;
    border-radius: 6px; background: rgba(255,255,255,.12);
}
.lang-switch a:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.lang-switch a.is-active { background: #fff; color: var(--blue-900); }

.entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.entry-meta span { margin-right: 14px; } /* Fallback fuer sehr alte Browser ohne flexbox-gap */

/* ---------- "Drucken"/"E-Mail"-Icons oben rechts an Artikeln ---------- */
.entry-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.entry-titlebar h1 {
    margin: 0;
}
.entry-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.entry-actions__btn {
    background: var(--blue-100);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .8rem;
    color: var(--blue-800);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.entry-actions__btn:hover {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
}
@media (max-width: 480px) {
    .entry-actions__btn span { display: none; } /* nur Icon auf sehr schmalen Screens */
}
/* Beim Drucken: Menue/Header/Footer/Aktionen/Navigator ausblenden, nur den Artikeltext zeigen. */
@media print {
    .site-header, .site-nav, .site-footer, .entry-actions,
    .lang-switch, .site-search, .nav-toggle, .pager, .entry-nav,
    .hero-banner { display: none !important; }
    body { background: #fff !important; }
    .site-frame { box-shadow: none !important; max-width: 100% !important; }
    .page-shell { padding: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
}
.entry-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.guestbook-entry { border-bottom: 1px solid var(--line); padding: 14px 0; }
.guestbook-entry:last-child { border-bottom: none; }
.guestbook-entry__author { font-weight: 700; color: var(--blue-800); }
.guestbook-entry__date { color: var(--muted); font-size: .8rem; }

/* ---------- Blog-Grid (Kachel-Ansicht mit Teaser + "Weiterlesen") ----------
   auto-fill/minmax statt fester Spaltenzahl+Breakpoints - robuster und
   passt sich der verfuegbaren Breite automatisch an (wie .cards/.gallery-grid). */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.blog-card__cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: block;
}
.blog-card__title {
    font-size: 1.05rem;
    margin: 0 0 4px;
}
.blog-card__title a {
    color: var(--heading-green);
}
.blog-card__meta {
    font-size: .78rem;
    margin: 0 0 8px;
}
.blog-card__teaser {
    font-size: .92rem;
    color: var(--ink);
    flex: 1;
    margin: 0 0 12px;
}
.blog-card__more {
    align-self: flex-start;
}

/* ---------- Galerie: Platzhalter fuer Eintraege ohne Titelbild ---------- */
.gallery-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    color: var(--heading-green);
    background: var(--blue-100);
}

/* ---------- Vorheriger/Naechster Eintrag (unten auf der Detailseite) ---------- */
.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}
.entry-nav__prev,
.entry-nav__next {
    flex: 1 1 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--heading-green);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.entry-nav__next {
    text-align: right;
    align-items: flex-end;
}
.entry-nav__title {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (max-width: 560px) {
    .entry-nav { flex-direction: column; }
    .entry-nav__next { text-align: left; align-items: flex-start; }
}

/* ---------- Gaestebuch als Karten (Name/Datum-Kopf + Inhaltsbox) ---------- */
.gb-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gb-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.gb-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    background: var(--blue-100);
    flex-wrap: wrap;
}
.gb-card__author {
    font-weight: 700;
    color: var(--blue-900);
}
.gb-card__date {
    font-size: 0.82rem;
    color: var(--muted);
}
.gb-card__body {
    padding: 14px 16px;
}
.gb-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.gb-card__text {
    margin: 0 0 10px;
}
.gb-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.gb-card__meta span { margin-right: 16px; } /* Fallback fuer sehr alte Browser ohne flexbox-gap */

/* ---------- Admin: Foto-Auswahlraster je Album (Media -> Gallery) ---------- */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.gallery-admin-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    background: var(--surface);
}
.gallery-admin-item:has(input:checked) {
    border-color: var(--accent-red);
    background: #fdeeea;
}
.gallery-admin-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 6px 0 4px;
}
.gallery-admin-item__name {
    display: block;
    font-size: .74rem;
    color: var(--muted);
    word-break: break-all;
}
