/*
 * ================================================================
 * CLASSIC TEMPLATE – ÖFFENTLICHES GALERIE-FRONTEND
 * ================================================================
 *
 * Strukturierte Fassung des bisherigen Stylesheets.
 * Alle Selektoren, Werte und die ursprüngliche CSS-Reihenfolge bleiben
 * erhalten. Spätere Regeln können frühere bewusst überschreiben.
 *
 * Neue Header-/Dropdown-Regeln bitte erst nach Prüfung ergänzen.
 * ================================================================
 */

/* Classic – public frontend. Independent of admin CSS. */

/* ================================================================
 * 01  GRUNDEINSTELLUNGEN UND FARBVARIABLEN
 * ================================================================ */

:root {
    --background: #f3f6f8;
    --surface: #fff;
    --ink: #203443;
    --muted: #657988;
    --accent: #628494;
    --edge: #dce4e9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui,-apple-system,"Segoe UI",sans-serif;
    margin: 0;
    background: var(--background);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================================================
   LUMZENA – Logo im Galerie-Header
================================================== */

.gallery-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.gallery-logo-image {
    display: block;
    width: 125px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ==================================================
   LUMZENA – Logo auf kleinen Bildschirmen
================================================== */

@media (max-width: 768px) {

    .gallery-logo-image {
        width: 105px;
    }

}

/* ================================================================
 * 02  KOPFZEILE, MARKENNAME UND SPRACHWAHL
 * ================================================================ */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--edge);
    padding: 18px max(22px,calc((100vw - 1100px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    font-size: 25px;
    color: #355d70;
    text-decoration: none;
}

.site-langs {
    display: flex;
    gap: 8px;
}

.site-langs a {
    border: 1px solid var(--edge);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
    text-decoration: none;
    color: var(--ink);
}

.site-langs a[aria-current=true] {
    background: #dcebf1;
    border-color: var(--accent);
}


/* ================================================================
 * 03  SEITENLAYOUT UND WILLKOMMENSBEREICH
 * ================================================================ */

.gallery-main {
    width: min(1100px,100%);
    margin: 0 auto;
    flex: 1;
    padding: 65px 22px;
}

.welcome-panel {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 20px;
    padding: 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
}

h1 {
    font-size: clamp(30px,5vw,46px);
    margin: 12px 0;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

.gallery-placeholder {
    height: 240px;
    margin-top: 25px;
    display: grid;
    place-items: center;
    background: #e4edf2;
    border-radius: 18px;
    border: 1px dashed #b4cbd5;
}

.gallery-placeholder span {
    font-size: 80px;
    color: #8ca9b7;
}

.site-footer {
    text-align: center;
    background: white;
    border-top: 1px solid var(--edge);
    padding: 22px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width:600px) {
    .site-header {
        padding: 15px;
        flex-wrap: wrap;
    }

    .gallery-main {
        padding: 30px 15px;
    }

    .welcome-panel {
        padding: 24px;
    }

}


/* ================================================================
 * 04  SEITENTITEL, ALBEN UND ALBUMKARTEN
 * ================================================================ */

.page-heading {
    margin-bottom: 26px;
}

.page-heading h1 {
    margin-top: 5px;
}

.section-title {
    margin: 40px 0 20px;
    font-size: 23px;
}

.count {
    color: var(--muted);
    font-size: 16px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(235px,1fr));
    gap: 22px;
}

.album-card,.photo-card {
    background: white;
    border: 1px solid var(--edge);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s,box-shadow .2s;
}

.album-card:hover,.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px #20344318;
}

.album-cover {
    height: 180px;
    background: #e5edf1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    font-size: 56px;
    color: #819ca9;
}

.album-meta {
    padding: 15px 17px 18px;
}

.album-meta h2 {
    font-size: 19px;
    margin: 0 0 6px;
}

.album-meta span {
    font-size: 13px;
    color: var(--muted);
}

.empty-state {
    border: 1px dashed #bfd0d9;
    border-radius: 16px;
    background: #fff;
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}


/* ================================================================
 * 05  BREADCRUMBS UND FOTOGITTER
 * ================================================================ */

.breadcrumbs {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.breadcrumbs a {
    color: #355d70;
    text-decoration: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
    gap: 17px;
}

.photo-card img {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.photo-card span {
    display: block;
    padding: 11px 13px;
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* ================================================================
 * 06  SEITENNAVIGATION UND FOTOANSICHT
 * ================================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
}

.pagination a,.photo-navigation a,.photo-navigation button {
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 9px;
    padding: 10px 14px;
    color: #355d70;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.photo-view {
    background: white;
    border: 1px solid var(--edge);
    border-radius: 16px;
    padding: 14px;
}

.photo-large {
    display: grid;
    place-items: center;
    background: #17252d;
    border-radius: 10px;
    overflow: hidden;
}

.photo-large img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
}

.photo-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
}


/* ================================================================
 * 07  EXIF-BEREICH UND LIGHTBOX
 * ================================================================ */

.exif-panel {
    margin-top: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 16px;
}

.exif-panel h2 {
    font-size: 22px;
    margin: 0 0 18px;
}

.exif-panel dl {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
    margin: 0;
}

.exif-panel dl div {
    border-bottom: 1px solid var(--edge);
    padding: 9px 0;
}

.exif-panel dt {
    font-size: 12px;
    color: var(--muted);
}

.exif-panel dd {
    margin: 4px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5,12,18,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    right: 20px;
    top: 12px;
    color: white;
    background: none;
    border: 0;
    font-size: 45px;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}


/* ================================================================
 * 08  PASSWORTSCHUTZ UND FEHLERMELDUNGEN
 * ================================================================ */

.lock-panel {
    max-width: 530px;
    margin: auto;
}

.lock-panel form {
    display: grid;
    gap: 12px;
}

.lock-panel input {
    padding: 13px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    font-size: 16px;
}

.lock-panel button {
    background: #355d70;
    color: white;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.form-error {
    background: #fff0f0;
    border: 1px solid #d99;
    border-radius: 8px;
    color: #8a2020;
    padding: 12px;
    margin-bottom: 12px;
}

@media (max-width:600px) {
    .photo-navigation {
        justify-content: center;
    }

    .album-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .album-cover {
        height: 130px;
    }

    .album-meta {
        padding: 10px;
    }

    .album-meta h2 {
        font-size: 15px;
    }

    .photo-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .photo-card img {
        height: 140px;
    }

    .exif-panel {
        padding: 18px;
    }

}


/* ================================================================
 * 09  SCHLAGWORTE, BEWERTUNGEN UND FARBPALETTE
 * ================================================================ */

.gallery-tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.gallery-tags span {
    padding: 6px 12px;
    background: #edf4f7;
    border-radius: 100px;
    font-size: 13px;
}

.gallery-rating-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-rating-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gallery-rating-buttons button {
    border: 1px solid #dfc688;
    background: #fff8e1;
    color: #70551e;
    border-radius: 7px;
    padding: 8px 10px;
    cursor: pointer;
}

.gallery-rating-buttons button:hover {
    background: #f9e3a5;
}

.gallery-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-color-palette div {
    width: 90px;
    text-align: center;
}

.gallery-color-palette span {
    display: block;
    width: 90px;
    height: 55px;
    border-radius: 9px;
    border: 1px solid #dce4e9;
}

.gallery-color-palette small {
    font-size: 11px;
}

/* Galerie 0.1.7 – Foto-Details: separate information / EXIF cards */

/* ================================================================
 * 10  FOTO-DETAILS IN ZWEI SPALTEN
 * ================================================================ */

.gallery-detail-columns {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
    gap: 22px;
    margin-top: 24px;
}

.gallery-detail-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 16px;
    padding: 25px 26px;
    box-shadow: 0 5px 22px rgba(24,47,60,.035);
}

.gallery-detail-card h2 {
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 19px;
}

.gallery-detail-list {
    display: block;
    margin: 0;
}

.gallery-detail-row {
    display: grid;
    grid-template-columns: minmax(120px,38%) minmax(0,1fr);
    gap: 15px;
    align-items: start;
    border-bottom: 1px solid #e7edf0;
    padding: 10px 0;
    font-size: 14px;
}

.gallery-detail-row:first-child {
    padding-top: 0;
}

.gallery-detail-row:last-child {
    border-bottom: 0;
}

.gallery-detail-row dt {
    color: #617989;
    font-weight: 500;
    line-height: 1.5;
}

.gallery-detail-row dd {
    margin: 0;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: #203443;
}

.gallery-detail-section {
    border-top: 1px solid var(--edge);
    margin-top: 19px;
    padding-top: 18px;
}

.gallery-detail-section h3 {
    font-size: 16px;
    margin: 0 0 12px;
}


/* ================================================================
 * 11  STERNEBEWERTUNG UND FARBPALETTEN-DETAILS
 * ================================================================ */

.gallery-rating-summary {
    font-size: 14px;
    margin: 0 0 13px;
}

.gallery-rating-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gallery-rating-label {
    font-size: 14px;
    color: var(--muted);
}

.gallery-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
}

.gallery-rating-stars button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9caebb;
    cursor: pointer;
    font-family: Arial,sans-serif;
    font-size: 34px;
    line-height: 1;
    padding: 2px 3px;
    transition: color .12s ease,transform .12s ease;
}

.gallery-rating-stars button:hover,.gallery-rating-stars button:hover~button,.gallery-rating-stars button:focus-visible,.gallery-rating-stars button:focus-visible~button {
    color: #e1a62c;
    transform: scale(1.06);
}

.gallery-rating-stars button:hover span,.gallery-rating-stars button:hover~button span,.gallery-rating-stars button:focus-visible span,.gallery-rating-stars button:focus-visible~button span {
    font-weight: bold;
}

.gallery-rating-stars button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 5px;
}

.gallery-color-palette {
    gap: 9px;
}

.gallery-color-palette div {
    width: 64px;
}

.gallery-color-palette span {
    width: 64px;
    height: 42px;
}

@media (max-width:760px) {
    .gallery-detail-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-detail-card {
        padding: 22px;
    }

}

@media (max-width:420px) {
    .gallery-detail-row {
        grid-template-columns: 112px minmax(0,1fr);
        gap: 10px;
        font-size: 13px;
    }

    .gallery-detail-card {
        padding: 17px;
    }

}

/* Galerie 0.1.7 – Fotoansicht: Bild ohne dunkle seitliche Balken */
.photo-large {
    background: transparent;
    border-radius: 8px;
}

.photo-large img {
    max-height: 72vh;
    border-radius: 8px;
}

/* Lesbarere Beschriftungen in beiden Informationskarten */
.gallery-detail-row {
    font-size: 15px;
}

.gallery-detail-row dt {
    color: #526b7b;
    font-weight: 550;
}

.gallery-rating-label,.gallery-rating-summary {
    font-size: 15px;
    color: #526b7b;
}

.gallery-tags span {
    font-size: 14px;
}

/* Sterne: Gespeicherte Auswahl ist nach dem Neuladen weiterhin gefüllt */
.gallery-rating-stars {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1px;
}

.gallery-rating-stars .gallery-star {
    appearance: none;
    background: transparent;
    border: 0;
    color: #a0b0bc;
    font-size: 31px;
    line-height: 1.2;
    padding: 2px 3px;
    cursor: pointer;
    transition: color .12s ease,transform .12s ease;
}

.gallery-rating-stars .gallery-star.is-selected {
    color: #dfab28;
}

.gallery-rating-stars .gallery-star:hover {
    transform: scale(1.08);
}

.gallery-rating-stars .gallery-star:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 5px;
}

@media (max-width:420px) {
    .gallery-detail-row {
        font-size: 14px;
    }

}

/* 0.1.7c: Bild ohne aeusseren Kartenrahmen; Navigation unveraendert */
.photo-view {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.photo-large {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.photo-large img {
    border-radius: 0;
}

/* Gallery 0.1.8 – public search */

/* ================================================================
 * 12  KOPFZEILEN-SUCHE UND SCHNELLSUCHE
 * ================================================================ */

.site-header-tools {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.site-quicksearch {
    display: flex;
    min-width: 180px;
    max-width: 240px;
    border: 1px solid var(--edge);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.site-quicksearch input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 0;
    outline-offset: -2px;
    font: inherit;
    font-size: 13px;
}

.site-quicksearch button {
    background: #e8f0f4;
    color: #355d70;
    border: 0;
    padding: 0 12px;
    font-size: 20px;
    cursor: pointer;
}

.site-search-link {
    color: #355d70;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.site-search-link:hover {
    text-decoration: underline;
}


/* ================================================================
 * 13  ERWEITERTE SUCHE UND FILTER
 * ================================================================ */

.gallery-search-form {
    background: #fff;
    border: 1px solid var(--edge);
    border-radius: 16px;
    padding: 22px;
    display: grid;
    gap: 19px;
}

.gallery-search-inputrow {
    display: flex;
    gap: 10px;
}

.gallery-search-inputrow input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--edge);
    border-radius: 9px;
    padding: 12px 14px;
    font: inherit;
}

.gallery-search-inputrow button {
    border: 0;
    border-radius: 9px;
    background: #355d70;
    color: white;
    font: inherit;
    font-weight: 700;
    padding: 11px 22px;
    cursor: pointer;
}

.gallery-search-options {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.gallery-search-options legend {
    font-weight: 700;
    margin-bottom: 12px;
}

.gallery-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 10px;
}

.gallery-search-fields label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    cursor: pointer;
}

.gallery-search-fields input {
    width: 16px;
    height: 16px;
    flex: none;
    accent-color: #27834e;
    margin: 0;
}

.gallery-search-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.gallery-search-sort select {
    border: 1px solid var(--edge);
    border-radius: 8px;
    padding: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width:760px) {
    .site-header-tools {
        width: 100%;
        gap: 10px;
    }

    .site-quicksearch {
        flex: 1;
        max-width: none;
    }

    .gallery-search-form {
        padding: 17px;
    }

    .gallery-search-fields {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

}

@media (max-width:430px) {
    .gallery-search-inputrow {
        flex-direction: column;
    }

    .gallery-search-inputrow button {
        width: 100%;
    }

    .gallery-search-fields {
        grid-template-columns: 1fr;
    }

    .site-search-link {
        font-size: 12px;
    }

}

/* ============================================================ Classic theme: color-based search ============================================================ */

/* ================================================================
 * 14  SUCHE NACH FARBE
 * ================================================================ */

.gallery-search-color {
    margin-top: 20px;
}

.gallery-search-color-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gallery-search-color-controls input[type="color"] {
    width: 64px;
    height: 44px;
    padding: 3px;
    cursor: pointer;
}

.gallery-search-color-controls select {
    padding: 10px;
    border: 1px solid var(--edge);
    border-radius: 7px;
}

.gallery-search-color-controls button {
    padding: 12px 20px;
    background: #355d70;
    color: white;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

/* ================================================================ CLASSIC TEMPLATE – SEARCH LINKS IN PHOTO METADATA Add only these rules to the existing classic template stylesheet. ================================================================ */

/* ================================================================
 * 15  ANKLICKBARE METADATEN UND FARBEN
 * ================================================================ */

.gallery-metadata-search {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.gallery-metadata-search:hover,
.gallery-metadata-search:focus-visible {
    color: var(--accent, #628494);
    text-decoration-style: solid;
}

.gallery-palette-search {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
}

.gallery-palette-search:hover,
.gallery-palette-search:focus-visible {
    outline: 2px solid var(--accent, #628494);
    outline-offset: 3px;
}

.gallery-search-filter-info {
    margin: 1rem 0;
}
/* ============================================================
   CLASSIC – FRONTEND-HEADER / ALBUM-DROPDOWN / STARTSEITE
   Nur am Ende von templates/classic/assets/css/style.css anfügen!
   BYB-Farben: #0c3945, #125955, #628494
   ============================================================ */

/* 1. Header und Navigation */
.gallery-new-header {
    position: relative;
    z-index: 40;
    padding: 0 24px;
    background: linear-gradient(115deg, #0c3945 0%, #125955 100%);
    border-bottom: 3px solid #628494;
    color: #fff;
}
.gallery-header-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 78px;
}
.gallery-new-header .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    font-size: 23px;
    color: #fff;
}
.gallery-brand-symbol { color: #a3c5cd; font-size: 27px; }
.gallery-primary-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.gallery-nav-trigger,
.gallery-header-nav-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 13px 4px;
    border: 0;
    background: transparent;
    color: #f8fcfd;
    text-decoration: none;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.gallery-nav-trigger:hover,
.gallery-header-nav-link:hover { color: #d8eef0; }
.gallery-nav-dropdown { position: relative; }
.gallery-nav-menu[hidden] { display: none !important; }
.gallery-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(385px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    overflow-y: auto;
    background: #fff;
    color: #203443;
    border: 1px solid #c7d9df;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(5, 36, 43, .22);
    padding: 10px 0;
    z-index: 100;
}
.gallery-nav-menu a {
    color: #203443;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 15px;
}
.gallery-nav-menu a:hover,
.gallery-nav-menu a:focus-visible { background: #e8f3f3; }
.gallery-nav-all { border-bottom: 1px solid #dce4e9; font-weight: 700; }
.gallery-nav-albums-level { padding: 0; margin: 0; list-style: none; }
.gallery-nav-albums-level .gallery-nav-albums-level { margin-left: 17px; border-left: 2px solid #dce9eb; }
.gallery-nav-album-item { min-width: 0; }
.gallery-nav-album-title { min-width: 0; overflow-wrap: anywhere; }
.gallery-nav-album-count {
    flex: 0 0 auto;
    min-width: 37px;
    padding: 4px 7px;
    background: #385d69;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    border-radius: 6px;
    text-align: center;
}
.gallery-nav-empty { margin: 10px 15px; }
.gallery-nav-future-links { display: flex; gap: 14px; }
.gallery-new-header .site-header-tools { flex: 0 1 auto; }
.gallery-new-header .site-quicksearch { border-color: rgba(255, 255, 255, .28); }
.gallery-new-header .site-quicksearch button { background: #628494; color: #fff; }
.gallery-new-header .site-langs a { color: #fff; border-color: rgba(255, 255, 255, .38); }
.gallery-new-header .site-langs a[aria-current=true] { background: #e2f0f2; color: #103c48; }

/* 2. Startseite: Albumüberschrift und Albumkarten */
.gallery-home-main { width: min(1320px, 100%); padding-top: 42px; }
.gallery-home-heading {
    margin-bottom: 24px;
    border: 2px solid #628494;
    border-radius: 12px 30px 30px 12px;
    padding: 16px 22px;
    background: #fff;
}
.gallery-home-heading h1 { font-size: 25px; margin: 0; font-weight: 650; }
.gallery-home-album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gallery-home-album-card {
    border: 1px solid #a7c2c9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.gallery-home-album-cover { height: 195px; }
.gallery-home-album-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-height: 122px;
    gap: 16px;
    padding: 17px 12px 19px;
    text-align: center;
}
.gallery-home-album-meta h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.gallery-home-album-meta span { font-size: 13px; color: #547480; }

/* 3. Mobilgeräte und Tastaturbedienung */
@media (max-width: 1080px) {
    .gallery-header-inner { flex-wrap: wrap; padding: 12px 0; gap: 10px 20px; }
    .gallery-primary-nav { order: 3; flex-basis: 100%; }
    .gallery-new-header .site-header-tools { margin-left: auto; }
    .gallery-home-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
    .gallery-new-header { padding: 0 15px; }
    .gallery-header-inner { align-items: flex-start; }
    .gallery-new-header .site-header-tools { margin-left: 0; width: 100%; }
    .gallery-new-header .site-quicksearch { flex: 1 1 180px; }
    .gallery-primary-nav { flex-wrap: wrap; gap: 12px; }
    .gallery-nav-menu { left: 0; }
    .gallery-home-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-home-album-cover { height: 150px; }
    .gallery-home-album-meta { min-height: 108px; }
}
@media (max-width: 430px) {
    .gallery-home-album-grid { grid-template-columns: 1fr; }
    .gallery-home-album-cover { height: 210px; }
    .gallery-new-header .site-langs { width: 100%; }
}

/* ==========================================================
   CLASSIC TEMPLATE – SEITENÜBERSCHRIFTEN
   ==========================================================

   Seiten:
   - album.php
   - search.php
   - photo.php

   Einheitliche Umrandung wie auf der Album-Startseite.
   ========================================================== */

/* ----------------------------------------------------------
   1. Seitenüberschrift – Rahmen
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) > .page-heading {
    margin-bottom: 24px;
    padding: 16px 22px;

    background: #ffffff;
    border: 2px solid #628494;
    border-radius: 12px 30px 30px 12px;
}

/* ----------------------------------------------------------
   2. Titel innerhalb des Rahmens
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) > .page-heading h1 {
    margin: 0;

    font-size: 25px;
    font-weight: 650;
    line-height: 1.35;
}

/* ----------------------------------------------------------
   3. Zusatzinformationen und Beschreibungen
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) > .page-heading .eyebrow {
    margin: 0 0 8px;
}

.gallery-main:not(.gallery-home-main) > .page-heading p:not(.eyebrow) {
    margin: 10px 0 0;
}

/* ----------------------------------------------------------
   4. Responsive Darstellung – Smartphones
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .gallery-main:not(.gallery-home-main) > .page-heading {
        padding: 14px 17px;
        border-radius: 10px 24px 24px 10px;
    }

    .gallery-main:not(.gallery-home-main) > .page-heading h1 {
        font-size: 22px;
    }

}
/* ============================================================
   CLASSIC TEMPLATE – SPRACHAUSWAHL IM HEADER
   ============================================================
   Separat in templates/classic/assets/css/style.css einfügen.
   Bestehende CSS-Regeln nicht löschen oder überschreiben.
   Funktion: kompakte, erweiterbare Sprachwahl (DE/EN/ES/FR)
   ============================================================ */

/* ------------------------------------------------------------
   1. Sprachmenü – Position und Grundstruktur
   ------------------------------------------------------------ */

.gallery-new-header .gallery-language-navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.gallery-new-header .gallery-language-dropdown {
    position: relative;
}

/* ------------------------------------------------------------
   2. Auslöser – aktuell ausgewählte Sprache
   ------------------------------------------------------------ */

.gallery-new-header .gallery-language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 73px;
    padding: 10px 12px;
    color: #103c48;
    background: #e2f0f2;
    border: 1px solid #a8c4cb;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.gallery-new-header .gallery-language-trigger::-webkit-details-marker {
    display: none;
}

.gallery-new-header .gallery-language-trigger::marker {
    content: "";
}

.gallery-new-header .gallery-language-trigger:hover {
    background: #ffffff;
}

.gallery-new-header .gallery-language-trigger:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.gallery-new-header .gallery-language-arrow {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.gallery-new-header .gallery-language-dropdown[open] .gallery-language-arrow {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------
   3. Aufklappmenü – alle verfügbaren Sprachen
   ------------------------------------------------------------ */

.gallery-new-header .gallery-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 110;
    min-width: 118px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #c7d9df;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(5, 36, 43, 0.22);
}

.gallery-new-header .gallery-language-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: #203443;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

.gallery-new-header .gallery-language-menu a:hover,
.gallery-new-header .gallery-language-menu a:focus-visible {
    background: #e8f3f3;
}

.gallery-new-header .gallery-language-menu a[aria-current="true"] {
    color: #103c48;
    background: #e2f0f2;
    font-weight: 750;
}

.gallery-new-header .gallery-language-current {
    color: #125955;
    font-weight: 800;
}

/* ------------------------------------------------------------
   4. Mobile Darstellung
   ------------------------------------------------------------ */

@media (max-width: 430px) {
    .gallery-new-header .gallery-language-navigation {
        width: auto;
        margin-left: auto;
    }

    .gallery-new-header .gallery-language-trigger {
        min-width: 66px;
        padding: 9px 10px;
    }
}

/* ==========================================================
   CLASSIC TEMPLATE – BREADCRUMB-NAVIGATION
   ==========================================================

   Seiten:
   - album.php
   - photo.php

   Größere Navigationslinks und bessere Lesbarkeit.
   ========================================================== */

/* ----------------------------------------------------------
   1. Breadcrumb-Navigation
   ---------------------------------------------------------- */

.breadcrumbs {
    margin-bottom: 26px;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;

    color: #526b7b;
}

/* ----------------------------------------------------------
   2. Navigationslinks
   ---------------------------------------------------------- */

.breadcrumbs a {
    display: inline-block;

    padding: 3px 0;

    color: #355d70;
    text-decoration: none;

    transition: color 0.2s ease;
}

/* ----------------------------------------------------------
   3. Hover und Tastaturfokus
   ---------------------------------------------------------- */

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: #628494;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ----------------------------------------------------------
   4. Mobile Darstellung
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .breadcrumbs {
        font-size: 15px;
        line-height: 1.7;
    }

}

/* ==========================================================
   CLASSIC TEMPLATE – EINHEITLICHE BILDBESCHRIFTUNGEN
   ==========================================================

   Seite:
   - album.php

   Gleiche Schriftgrößen und gleichmäßige Beschriftungsbereiche
   für Unteralben und Fotos.

   Die Album-Startseite bleibt unverändert.
   ========================================================== */

/* ----------------------------------------------------------
   1. Unteralben – Beschriftungsbereich
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) .album-grid .album-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 68px;
    padding: 11px 13px;
}

/* ----------------------------------------------------------
   2. Unteralben – Titel
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) .album-grid .album-meta h2 {
    margin: 0 0 5px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------
   3. Unteralben – Fotoanzahl
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) .album-grid .album-meta span {
    font-size: 13px;
    line-height: 1.4;

    color: #657988;
}

/* ----------------------------------------------------------
   4. Fotos – Beschriftungsbereich
   ---------------------------------------------------------- */

.gallery-main:not(.gallery-home-main) .photo-grid .photo-card span {
    display: flex;
    align-items: center;

    min-height: 68px;
    padding: 11px 13px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    color: #203443;
    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------
   5. Mobilgeräte
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .gallery-main:not(.gallery-home-main) .album-grid .album-meta,
    .gallery-main:not(.gallery-home-main) .photo-grid .photo-card span {
        min-height: 62px;
        padding: 10px;
    }

}

/* ==========================================================
   CLASSIC TEMPLATE – ALBUMKARTEN AUF DER STARTSEITE
   ==========================================================

   Seite:
   - index.php

   Abstand zwischen Albumtitel und Fotoanzahl verkleinern.
   Gleiche kompakte Darstellung wie in album.php.
   ========================================================== */

/* ----------------------------------------------------------
   1. Beschriftungsbereich der Albumkarten
   ---------------------------------------------------------- */

.gallery-home-album-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-height: 68px;
    gap: 5px;
    padding: 11px 13px;

    text-align: left;
}

/* ----------------------------------------------------------
   2. Albumtitel
   ---------------------------------------------------------- */

.gallery-home-album-meta h2 {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    color: #203443;
}

/* ----------------------------------------------------------
   3. Anzahl der Fotos
   ---------------------------------------------------------- */

.gallery-home-album-meta span {
    font-size: 13px;
    line-height: 1.4;

    color: #657988;
}

/* ----------------------------------------------------------
   4. Mobile Darstellung
   ---------------------------------------------------------- */

@media (max-width: 730px) {

    .gallery-home-album-meta {
        min-height: 68px;
        gap: 5px;
        padding: 11px 13px;
    }

}

/* ==========================================================
   CLASSIC – FOTOKARUSSELL IN DER FOTO-DETAILANSICHT
   Nur an templates/classic/assets/css/style.css anhängen.
   ========================================================== */
.gallery-album-carousel {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(98, 132, 148, 0.28);
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
}

.gallery-album-carousel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-album-carousel-heading h2 {
    margin: 0;
    font-size: 20px;
}

.gallery-album-carousel-controls {
    display: flex;
    gap: 8px;
}

.gallery-album-carousel-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #628494;
    border-radius: 9px;
    color: #0c3945;
    background: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.gallery-album-carousel-arrow:hover,
.gallery-album-carousel-arrow:focus-visible {
    color: #ffffff;
    background: #125955;
}

.gallery-album-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
}

.gallery-album-carousel-item {
    flex: 0 0 170px;
    min-width: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    color: inherit;
    background: rgba(98, 132, 148, 0.07);
    text-decoration: none;
    scroll-snap-align: start;
}

.gallery-album-carousel-item.is-current {
    border-color: #628494;
}

.gallery-album-carousel-item img {
    display: block;
    width: 100%;
    height: 115px;
    object-fit: cover;
}

.gallery-album-carousel-item span {
    display: block;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .gallery-album-carousel {
        padding: 14px;
    }

    .gallery-album-carousel-item {
        flex-basis: 132px;
    }

    .gallery-album-carousel-item img {
        height: 92px;
    }
}
/* ==========================================================
   CLASSIC – FOTOKARUSSELL IN DER FOTO-DETAILANSICHT
   Exakt 5 ganze Vorschaubilder im sichtbaren Bereich
   ========================================================== */
.gallery-album-carousel-track {
    --carousel-gap: 12px;

    display: flex;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-album-carousel-track::-webkit-scrollbar {
    display: none;
}

.gallery-album-carousel-item {
    flex: 0 0 calc((100% - (4 * var(--carousel-gap))) / 5);
    max-width: calc((100% - (4 * var(--carousel-gap))) / 5);
    min-width: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    color: inherit;
    background: rgba(98, 132, 148, 0.07);
    text-decoration: none;
    scroll-snap-align: start;
}

.gallery-album-carousel-item.is-current {
    border-color: #628494;
}

.gallery-album-carousel-item img {
    display: block;
    width: 100%;
    height: 115px;
    object-fit: cover;
}

.gallery-album-carousel-item span {
    display: block;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 980px) {
    .gallery-album-carousel-item {
        flex-basis: calc((100% - (3 * var(--carousel-gap))) / 4);
        max-width: calc((100% - (3 * var(--carousel-gap))) / 4);
    }
}

/* Kleineres Tablet */
@media (max-width: 760px) {
    .gallery-album-carousel-item {
        flex-basis: calc((100% - (2 * var(--carousel-gap))) / 3);
        max-width: calc((100% - (2 * var(--carousel-gap))) / 3);
    }
}

/* Handy */
@media (max-width: 520px) {
    .gallery-album-carousel {
        padding: 14px;
    }

    .gallery-album-carousel-item {
        flex-basis: calc((100% - var(--carousel-gap)) / 2);
        max-width: calc((100% - var(--carousel-gap)) / 2);
    }

    .gallery-album-carousel-item img {
        height: 92px;
    }
}
/* ==========================================================
   CLASSIC – KARUSSELL MIT MAUS ZIEHEN
   Nur ergänzen, falls dieser Block noch nicht vorhanden ist.
   ========================================================== */
.gallery-album-carousel-track {
    cursor: grab;
}

.gallery-album-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.gallery-album-carousel-track img {
    user-select: none;
    -webkit-user-drag: none;
}
/* ================================================================
   CLASSIC TEMPLATE – ÖFFENTLICHER GALERIE-FOOTER
   Nur am Ende von templates/classic/assets/css/style.css anhängen.
   ================================================================ */

.gallery-site-footer {
    margin-top: auto;
    padding: 34px max(22px, calc((100vw - 1100px) / 2)) 20px;
    background: linear-gradient(115deg, #0c3945 0%, #125955 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #e8f3f5;
    text-align: left;
}

.gallery-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-footer-main {
    padding-bottom: 26px;
}

.gallery-footer-brand {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-footer-description {
    max-width: 590px;
    margin: 0;
    color: #d6e9ec;
    font-size: 15px;
    line-height: 1.7;
}

.gallery-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.21);
}

.gallery-footer-copyright {
    margin: 0;
    color: #d6e9ec;
    font-size: 13px;
}

.gallery-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-footer-social,
.gallery-footer-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid rgba(230, 246, 248, 0.5);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.gallery-footer-social:hover,
.gallery-footer-social:focus-visible,
.gallery-footer-top:hover,
.gallery-footer-top:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.gallery-footer-social svg,
.gallery-footer-top svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-footer-social .gallery-footer-icon-dot {
    fill: currentColor;
    stroke: none;
}

@media (max-width: 640px) {
    .gallery-site-footer {
        padding: 26px 18px 18px;
    }

    .gallery-footer-brand {
        font-size: 21px;
    }

    .gallery-footer-bottom {
        align-items: flex-start;
    }
}
/* ==========================================================
   FRONTEND – PHOTO PROTECTION NOTICE
   ========================================================== */
.gallery-protection-notice {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border: 1px solid #a4a9ad;
    border-radius: 0.75rem;
    background: #eef1f3;
    color: #263238;
}
.gallery-protection-notice button {
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 0.45rem;
    background: #628494;
    color: #fff;
    cursor: pointer;
}
/* ==========================================================
   CLASSIC – FOTOS ENTDECKEN (an bestehende Template-CSS anhängen)
   ========================================================== */

.gallery-explore-page .gallery-explore-controls {
    margin: 0 0 2rem;
    padding: 1.4rem;
    background: var(--card-bg, #f4f6f8);
    border: 1px solid #d9e1e5;
    border-radius: 14px;
}

.gallery-explore-page .gallery-explore-controls h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.gallery-explore-sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.gallery-explore-sort {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: #365766;
    background: #fff;
    border: 1px solid #c9d5db;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gallery-explore-sort:hover,
.gallery-explore-sort:focus-visible {
    border-color: #628494;
    background: #e9f0f3;
}

.gallery-explore-sort.is-active {
    color: #fff;
    background: #628494;
    border-color: #628494;
}

.gallery-explore-results {
    margin-bottom: 2rem;
}
