/* ─── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Brand Tokens ───────────────────────────────────────────── */
:root {
    --orange:     #ee6929;
    --orange-d:   #d45a20;
    --orange-l:   #fdf1eb;
    --blue:       #1c75bc;
    --blue-d:     #155a96;
    --blue-l:     #e8f2fb;
    --text:       #1e2330;
    --text-2:     #4a4e57;
    --text-3:     #8a909d;
    --bg:         #f5f6f8;
    --bg-white:   #ffffff;
    --border:     #e0e3ea;
    --border-l:   #eceef2;
    --nav-bg:     #1a2035;
    --nav-h:      250px;   /* header height */
    --radius:     10px;
    --radius-s:   6px;
    --shadow:     0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }

/* ─── Utility ────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGES (Login + Gallery)
═══════════════════════════════════════════════════════════════ */

/* ─── Public Header ──────────────────────────────────────────── */
.pub-header {
    background: var(--nav-bg);
    border-bottom: 3px solid var(--orange);
}
.pub-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.pub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}
.pub-header-logo img { height: 46px; width: auto; }
.pub-header-actions { display: flex; gap: .75rem; align-items: center; }

/* ─── Page Hero ──────────────────────────────────────────────── */
.page-hero {
    background: var(--nav-bg);
    padding: 2.5rem 0 2rem;
}
.page-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.page-hero .sub {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    margin-top: .35rem;
}
.hero-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 60%, transparent 100%);
}

/* ─── Login Page ─────────────────────────────────────────────── */
.login-wrap {
    min-height: 100vh;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
}
.login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.login-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 2.8rem 2.4rem;
    width: 100%;
    max-width: 430px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--orange);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.login-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; }
.login-card .sub { color: var(--text-3); font-size: .9rem; margin-bottom: 1.8rem; }

.login-footer {
    background: rgba(0,0,0,.2);
    text-align: center;
    padding: 1rem;
    color: rgba(255,255,255,.35);
    font-size: .78rem;
}
.login-footer a { color: rgba(255,255,255,.5); }
.login-footer a:hover { color: var(--orange); }

/* ─── Gallery ────────────────────────────────────────────────── */
.gallery-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }

/* Hero Meta: Datum + Foto-Anzahl nebeneinander */
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}
.hero-photo-count {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 20px;
}

.gallery-main { flex: 1; padding: 2rem 0 4rem; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-s);
    cursor: pointer;
    background: var(--border);
    position: relative;
}
.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease, filter .3s;
}
.photo-item:hover img { transform: scale(1.05); filter: brightness(.9); }
.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    background: rgba(238,105,41,.18);
}
.photo-overlay svg { width: 36px; height: 36px; fill: #fff; drop-shadow: 0 2px 4px rgba(0,0,0,.4); }
.photo-item:hover .photo-overlay { opacity: 1; }

.empty-gallery {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-3);
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(10,12,20,.97);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.lightbox[hidden] { display: none; }

.lb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.2rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.lb-counter { color: rgba(255,255,255,.5); font-size: .88rem; }
.lb-topbar-actions { display: flex; gap: .6rem; align-items: center; }

.lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 4rem;
}
.lb-stage img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.lb-nav:hover { background: var(--orange); border-color: var(--orange); }
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }

/* ─── Public Footer ──────────────────────────────────────────── */
.pub-footer {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.35);
    font-size: .78rem;
    text-align: center;
    padding: 1.1rem;
}
.pub-footer a { color: rgba(255,255,255,.45); }
.pub-footer a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   FORMS (shared)
═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .7rem .95rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-s);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(238,105,41,.13);
}
.form-group small { color: var(--text-3); font-size: .8rem; margin-top: .3rem; display: block; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { width: auto; accent-color: var(--orange); flex-shrink: 0; }
.form-check label { margin: 0; font-size: .92rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1.3rem;
    border-radius: var(--radius-s);
    border: 1.5px solid transparent;
    font-family: inherit;
    font-size: .88rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
    line-height: 1.4;
}
.btn-primary {
    background: var(--orange); color: #fff; border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }

.btn-blue {
    background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }

.btn-outline {
    background: transparent; border-color: var(--border); color: var(--text-2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-ghost {
    background: transparent; border-color: transparent; color: var(--text-3);
}
.btn-ghost:hover { background: var(--border-l); color: var(--text); }

.btn-ghost-light {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn-danger { background: #d63031; color: #fff; border-color: #d63031; }
.btn-danger:hover { background: #b02424; border-color: #b02424; color: #fff; }

.btn-sm { padding: .38rem .9rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-s);
    margin-bottom: 1rem;
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid;
    display: flex; align-items: flex-start; gap: .5rem;
}
.alert-error  { background: #fff5f5; border-color: #fca5a5; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-warn   { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 1.4rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Logo in der Sidebar */
.sidebar-brand-link { display: block; padding: .25rem; }
.sidebar-brand img  { width: 85%; max-width: 190px; height: auto; display: block; }

/* Navigations-Sections */
.sidebar-nav-sections { flex: 1; overflow-y: auto; padding: .5rem 0; }

.sb-section {
    padding: .4rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sb-section:last-child { border-bottom: none; }
.sb-section-bottom { margin-top: auto; }

.sb-section-label {
    padding: .7rem 1.2rem .2rem;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.25);
}

/* Sidebar-Links mit SVG-Icons */
.sb-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .58rem 1.2rem;
    color: rgba(255,255,255,.58);
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .13s, background .13s, border-color .13s;
    text-decoration: none;
}
.sb-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
    border-left-color: var(--orange);
}
.sb-link.active {
    color: #fff;
    background: rgba(238,105,41,.12);
    border-left-color: var(--orange);
}

/* Icon-Wrapper */
.sb-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    opacity: .7;
    transition: opacity .13s;
}
.sb-icon svg { width: 16px; height: 16px; display: block; }
.sb-link:hover .sb-icon,
.sb-link.active .sb-icon { opacity: 1; }
.sb-link.active .sb-icon svg { stroke: var(--orange); }

/* Footer-Copyright */
.sidebar-footer-copy {
    padding: .9rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .72rem;
    color: rgba(255,255,255,.2);
    text-align: center;
    flex-shrink: 0;
}

/* Alte Klassen – Fallback damit nichts bricht */
.sidebar-label  { padding: .6rem 1.2rem .2rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.25); }
.sidebar-link   { display: flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem; color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 500; border-left: 3px solid transparent; transition: color .13s, background .13s; text-decoration: none; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--orange); }
.sidebar-bottom { margin-top: auto; padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .75rem; color: rgba(255,255,255,.25); text-align: center; }

/* ─── Admin Main ─────────────────────────────────────────────── */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }

.admin-topbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.admin-subtitle { font-size: .85rem; color: var(--text-3); margin-top: .1rem; }

.admin-body { padding: 1.8rem 2rem; flex: 1; }

/* ─── Admin Table ────────────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    /* overflow:hidden ist entscheidend damit border-radius die Tabellenecken abschneidet */
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.card-header h2 { font-size: 1rem; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th {
    padding: .7rem 1.1rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--border-l);
    color: var(--text);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }

/* Aktions-Zelle: nie umbrechen, immer rechtsbündig */
.cell-actions {
    display: flex;
    gap: .35rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
}

.badge {
    display: inline-block;
    padding: .18rem .6rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray  { background: #f1f5f9; color: #64748b; }
.badge-blue  { background: var(--blue-l); color: var(--blue); }

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-l);
    color: var(--orange);
    font-size: .78rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 20px;
    margin-left: .5rem;
}

/* ─── Admin Photo Grid ───────────────────────────────────────── */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.admin-photo-item {
    position: relative; aspect-ratio: 1;
    border-radius: var(--radius-s); overflow: hidden;
    background: var(--border-l);
    border: 1px solid var(--border);
}
.admin-photo-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .15s;
}
.admin-photo-item:hover img { opacity: .8; }
.delete-btn {
    position: absolute; top: 5px; right: 5px;
    background: rgba(30,35,48,.85);
    color: #fff; border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; line-height: 1;
    text-decoration: none;
    opacity: 0; transition: opacity .15s, background .15s;
    border: none; cursor: pointer;
}
.delete-btn:hover { background: #d63031; color: #fff; }
.admin-photo-item:hover .delete-btn { opacity: 1; }

/* ─── Upload Drop Zone ───────────────────────────────────────── */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, background .2s;
    margin-bottom: 1rem;
}
.drop-zone:hover, .drop-zone.over {
    border-color: var(--orange);
    background: var(--orange-l);
}
.drop-zone.has-files {
    padding: 1.2rem 2rem;
    border-style: solid;
    border-color: var(--border);
}
.drop-zone.has-files .drop-icon { font-size: 1.4rem; }
.drop-zone.has-files .drop-title { font-size: .85rem; }
.drop-icon { font-size: 2.5rem; color: var(--text-3); margin-bottom: .5rem; transition: font-size .2s; }
.drop-title { font-weight: 600; color: var(--text-2); margin-bottom: .25rem; }
.drop-hint { font-size: .82rem; color: var(--text-3); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.preview-area { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.preview-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 80px; }
.preview-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-s); border: 1.5px solid var(--border); }
.preview-item span { font-size: .62rem; color: var(--text-3); word-break: break-all; text-align: center; }

/* ─── Section head ───────────────────────────────────────────── */
.section-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.section-head h2 { font-size: 1rem; font-weight: 700; }

/* ─── Form Card ──────────────────────────────────────────────── */
.form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ─── Admin mobile header ────────────────────────────────────── */
.admin-mobile-bar {
    display: none;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--orange);
    padding: .75rem 1rem;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 200;
}
.admin-mobile-bar img { height: 34px; }
.hamburger {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 3px;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .admin-sidebar {
        position: fixed; top: 0; left: -240px; height: 100%;
        z-index: 300; transition: left .25s ease;
    }
    .admin-sidebar.open { left: 0; }
    .admin-mobile-bar { display: flex; }
    .admin-body { padding: 1.2rem 1rem; }
    .admin-topbar { padding: 1rem; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; }
    .login-card { padding: 2rem 1.4rem; }
    .lb-stage { padding: 1rem 3rem; }
    .lb-prev { left: .3rem; }
    .lb-next { right: .3rem; }
    .pub-header-inner { padding: .7rem 1rem; }
    .pub-header-logo img { height: 36px; }
    .data-table th, .data-table td { padding: .6rem .7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   LOCATIONS
═══════════════════════════════════════════════════════════════ */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.loc-section-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-3);
    border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin-bottom: 1rem;
}
@media (max-width: 500px) { .form-row { flex-direction: column; } }

/* ═══════════════════════════════════════════════════════════════
   TOGGLE SWITCH (Status)
═══════════════════════════════════════════════════════════════ */
.toggle-wrap { margin-top: .3rem; }
.toggle-label {
    display: inline-flex; align-items: center; gap: .75rem;
    cursor: pointer; user-select: none;
}
.toggle-label input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    width: 44px; height: 24px; flex-shrink: 0;
    background: var(--border); border-radius: 99px;
    position: relative; transition: background .2s;
}
.toggle-label input:checked ~ .toggle-track { background: var(--orange); }
.toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: left .2s;
}
.toggle-label input:checked ~ .toggle-track .toggle-thumb { left: 23px; }
.toggle-text { font-size: .9rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD BUTTON (Gallery Header)
═══════════════════════════════════════════════════════════════ */
.download-all-btn {
    box-shadow: 0 2px 8px rgba(238,105,41,.4);
    transition: all .15s;
}
.download-all-btn:hover {
    box-shadow: 0 4px 16px rgba(238,105,41,.55);
    transform: translateY(-1px);
    color: #fff;
}
/* Langer Text nur auf Desktop */
.dl-short { display: none; }
@media (max-width: 520px) {
    .dl-long  { display: none; }
    .dl-short { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════
   ZIP MODAL
═══════════════════════════════════════════════════════════════ */
.zip-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10,12,20,.75);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.zip-modal[hidden] { display: none; }
.zip-modal-box {
    background: var(--nav-bg);
    border-radius: 12px;
    width: 100%; max-width: 380px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.1);
}
.zip-modal-head {
    display: flex; align-items: center; gap: .7rem;
    padding: 1rem 1.3rem;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff; font-weight: 700; font-size: .95rem;
}
.zip-modal-body { padding: 1.4rem 1.3rem; }
.zip-msg {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    margin-bottom: 1rem;
    min-height: 1.3em;
}
.zip-prog-wrap {
    height: 8px;
    background: rgba(255,255,255,.1);
    border-radius: 99px; overflow: hidden;
    margin-bottom: .5rem;
}
.zip-prog-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--orange), var(--blue));
    border-radius: 99px;
    transition: width .3s ease, background .4s;
}
.zip-pct { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.5); text-align: right; }
.zip-modal-footer {
    padding: .85rem 1.3rem;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex; justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════
   HERO 2-SPALTEN-LAYOUT
═══════════════════════════════════════════════════════════════ */
.hero-cols {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}
.hero-left { min-width: 0; }
.hero-right { flex-shrink: 0; }

/* ─── Location Card (rechte Spalte) ──────────────────────────── */
.loc-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    border-left: 3px solid var(--orange);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.loc-card-head {
    display: flex; align-items: center; gap: .55rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: .1rem;
}
.loc-card-name { color: #fff; font-weight: 700; font-size: .95rem; }
.loc-card-row {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .83rem; line-height: 1.45;
    color: rgba(255,255,255,.6);
}
.loc-link {
    color: rgba(255,255,255,.7);
    text-decoration: none; word-break: break-all;
    transition: color .13s;
}
.loc-link:hover { color: var(--orange); }

/* SVG-Icon (Feather-Style, konsistent) */
.loc-svg {
    flex-shrink: 0;
    width: 15px; height: 15px;
    margin-top: .1rem;
    color: rgba(255,255,255,.45);
}
.loc-svg svg {
    width: 15px; height: 15px;
    display: block;
}
/* Größer im Card-Head */
.loc-card-head .loc-svg { width: 17px; height: 17px; color: var(--orange); }
.loc-card-head .loc-svg svg { width: 17px; height: 17px; }

.loc-card-social {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin-top: .1rem;
    padding-top: .55rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.loc-social-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    border-radius: 4px;
    padding: .28rem .7rem;
    font-size: .75rem; font-weight: 600;
    text-decoration: none;
    transition: background .13s, border-color .13s, color .13s;
}
.loc-social-btn .loc-svg { color: rgba(255,255,255,.6); }
.loc-social-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.loc-social-btn:hover .loc-svg { color: #fff; }

/* ─── Beschreibung (links, als HTML) ─────────────────────────── */
.event-desc {
    margin-top: .75rem;
    color: rgba(255,255,255,.62);
    font-size: .9rem;
    line-height: 1.7;
}
.event-desc p { margin-bottom: .4rem; }
.event-desc strong, .event-desc b { color: rgba(255,255,255,.88); }
.event-desc a { color: var(--orange); }
.event-desc ul, .event-desc ol { padding-left: 1.4rem; margin: .3rem 0; }

/* Mobile: Hero einspaltig */
@media (max-width: 700px) {
    .hero-cols { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ─── btn-outline-light (für dark backgrounds) ───────────────── */
.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,.3);
    color: rgba(255,255,255,.8);
}
.btn-outline-light:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   TOTOP BUTTON
═══════════════════════════════════════════════════════════════ */
.totop-btn {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 46px; height: 46px;
    background: var(--orange);
    color: #fff;
    border: none; border-radius: 50%;
    font-size: 1.4rem; line-height: 1;
    cursor: pointer;
    opacity: 0; transform: translateY(12px);
    transition: opacity .25s, transform .25s, background .15s, box-shadow .15s;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(238,105,41,.4);
    display: flex; align-items: center; justify-content: center;
}
.totop-btn.visible { opacity: 1; transform: translateY(0); }
.totop-btn:hover { background: var(--orange-d); box-shadow: 0 4px 20px rgba(238,105,41,.55); }

/* ═══════════════════════════════════════════════════════════════
   SEITEN-MODAL (Datenschutz / Impressum)
═══════════════════════════════════════════════════════════════ */
.page-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.page-modal[hidden] { display: none; }
.page-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(10,12,20,.78);
    backdrop-filter: blur(6px);
}
.page-modal-box {
    position: relative; z-index: 1;
    background: var(--bg-white);
    border-radius: 12px;
    width: 100%; max-width: 760px;
    max-height: 88vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 72px rgba(0,0,0,.4);
    overflow: hidden;
    animation: modal-in .2s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.page-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: var(--nav-bg);
    border-bottom: 3px solid var(--orange);
    flex-shrink: 0;
}
.page-modal-head h2 {
    font-size: 1.05rem; font-weight: 700;
    color: #fff; margin: 0;
}
.page-modal-close {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: background .13s, color .13s;
    flex-shrink: 0;
}
.page-modal-close svg { width: 16px; height: 16px; }
.page-modal-close:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-modal-body {
    padding: 1.8rem 2rem;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.8;
    font-size: .95rem;
}
.page-modal-body h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 1rem; color: var(--text); }
.page-modal-body h2 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .5rem; color: var(--text); }
.page-modal-body h3 { font-size: .98rem; font-weight: 700; margin: 1.2rem 0 .4rem; color: var(--text); }
.page-modal-body p  { margin-bottom: .9rem; color: var(--text-2); }
.page-modal-body ul, .page-modal-body ol { padding-left: 1.5rem; margin-bottom: .9rem; color: var(--text-2); }
.page-modal-body li { margin-bottom: .25rem; }
.page-modal-body a  { color: var(--blue); }
.page-modal-body a:hover { color: var(--orange); }
.page-modal-body strong, .page-modal-body b { color: var(--text); }
.loading-hint { color: var(--text-3) !important; font-style: italic; }

/* ─── Footer-Button (wie Link gestylt) ──────────────────────── */
.footer-page-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.45); font-size: inherit;
    font-family: inherit; padding: 0;
    text-decoration: none;
    transition: color .13s;
}
.footer-page-btn:hover { color: var(--orange); }
/* Auf hellem Hintergrund (login-footer hat dunklen BG, passt) */

/* ═══════════════════════════════════════════════════════════════
   UPLOAD: Details/Summary für vorhandene Fotos
═══════════════════════════════════════════════════════════════ */
.photos-details {
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    overflow: hidden;
}
.photos-summary {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    list-style: none;
    user-select: none;
    transition: background .13s;
}
.photos-summary::-webkit-details-marker { display: none; }
.photos-summary::before {
    content: '▶';
    font-size: .65rem;
    color: var(--text-3);
    transition: transform .2s;
    flex-shrink: 0;
}
.photos-details[open] .photos-summary::before { transform: rotate(90deg); }
.photos-summary:hover { background: var(--bg); }
.photos-summary-hint {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-3);
}
.photos-details > div:last-child { padding: 0 1rem 1rem; }
