:root{
    --red:#b20d18;
    --red-dark:#760911;
    --green:#127a3a;
    --green-dark:#07582a;
    --gold:#f2c14e;
    --cream:#fff8ec;
    --ink:#241512;
    --muted:#6f5e55;
    --card:#ffffff;
    --line:#eadccc;
    --shadow:0 18px 50px rgba(36,21,18,.14);
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    color:var(--ink);
    background:var(--cream);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.site-header{
    position:sticky;
    top:0;
    z-index:50;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:14px clamp(18px,4vw,60px);
    background:rgba(255,248,236,.92);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:12px;font-weight:900}
.brand img{width:58px;height:58px;object-fit:contain;border-radius:50%}
.brand strong{display:block;font-size:20px}
.brand small{display:block;color:var(--green);letter-spacing:.18em;text-transform:uppercase;font-weight:900}

.main-nav{display:flex;align-items:center;gap:18px;font-weight:800}
.main-nav a{padding:10px 12px;border-radius:999px}
.main-nav a:hover{background:#fff;color:var(--red)}
.nav-toggle{display:none;border:0;border-radius:12px;background:var(--red);color:white;font-size:24px;padding:8px 12px}

.hero{
    min-height:620px;
    display:grid;
    align-items:center;
    padding:80px clamp(18px,4vw,70px);
    background:
        radial-gradient(circle at 15% 15%, rgba(242,193,78,.55), transparent 25%),
        radial-gradient(circle at 85% 20%, rgba(18,122,58,.35), transparent 28%),
        linear-gradient(135deg, var(--red-dark), var(--red) 48%, var(--green-dark));
    color:white;
    overflow:hidden;
}
.hero-grid{
    max-width:1180px;
    margin:auto;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:42px;
    align-items:center;
}
.badge{
    display:inline-flex;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.28);
    border-radius:999px;
    padding:10px 16px;
    font-weight:900;
    color:#fff3c7;
}
.hero h1{font-size:clamp(44px,7vw,86px);line-height:.95;margin:20px 0 18px}
.hero p{font-size:20px;line-height:1.65;color:rgba(255,255,255,.88)}
.hero-card{
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.24);
    border-radius:34px;
    padding:28px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(12px);
}
.hero-card img{width:170px;margin:0 auto 22px;border-radius:50%;background:white;padding:10px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:12px 18px;
    border-radius:999px;
    border:0;
    background:var(--red);
    color:white;
    font-weight:900;
    cursor:pointer;
}
.btn.gold{background:var(--gold);color:var(--ink)}
.btn.green{background:var(--green)}
.btn.light{background:white;color:var(--red)}
.btn.danger{background:#7d0b12}
.section{padding:70px clamp(18px,4vw,70px)}
.section-head{max-width:1180px;margin:0 auto 26px}
.kicker{font-weight:900;color:var(--red);letter-spacing:.22em;text-transform:uppercase;font-size:13px}
h2{font-size:clamp(30px,4vw,50px);margin:8px 0 12px}
.grid{max-width:1180px;margin:auto;display:grid;gap:22px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
.card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:26px;
    padding:24px;
    box-shadow:var(--shadow);
}
.card h3{margin-top:0;font-size:24px}
.meta{color:var(--green);font-weight:900}
.text-muted{color:var(--muted);line-height:1.6}
.event-date{
    display:inline-block;
    background:#fff2bd;
    color:#6d4200;
    padding:8px 12px;
    border-radius:999px;
    font-weight:900;
    margin-bottom:12px;
}
.gallery-tile{
    aspect-ratio:4/3;
    border-radius:26px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--red),var(--green));
    color:white;
    display:flex;
    align-items:end;
    padding:22px;
    box-shadow:var(--shadow);
}
.gallery-tile h3{margin:0;font-size:26px}
.form{
    max-width:860px;
    display:grid;
    gap:14px;
}
input,textarea,select{
    width:100%;
    border:1px solid var(--line);
    border-radius:16px;
    padding:13px 14px;
    font:inherit;
    background:white;
}
textarea{min-height:140px;resize:vertical}
label{font-weight:900}
.table-wrap{overflow:auto;background:white;border-radius:22px;border:1px solid var(--line)}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{padding:14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#fff6de}
.notice{padding:14px 16px;border-radius:18px;background:#e7ffe9;color:#145c23;font-weight:900;margin-bottom:18px}
.error{padding:14px 16px;border-radius:18px;background:#ffe2e2;color:#7a0000;font-weight:900;margin-bottom:18px}

.site-footer{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:34px clamp(18px,4vw,70px);
    background:var(--ink);
    color:white;
}

/* Admin */
.admin-body{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
    background:#f7efe2;
}
.admin-sidebar{
    background:linear-gradient(180deg,var(--red-dark),var(--green-dark));
    color:white;
    padding:20px;
}
.admin-logo{display:flex;align-items:center;gap:12px;font-weight:900;margin-bottom:24px}
.admin-logo img{width:52px;height:52px;border-radius:50%;background:white;padding:4px}
.admin-sidebar nav{display:grid;gap:8px}
.admin-sidebar a{padding:13px 14px;border-radius:14px;font-weight:900}
.admin-sidebar a:hover{background:rgba(255,255,255,.14)}
.admin-content{padding:28px;overflow:auto}
.admin-topbar{
    display:flex;
    justify-content:space-between;
    gap:18px;
    background:white;
    border:1px solid var(--line);
    border-radius:22px;
    padding:16px 20px;
    margin-bottom:24px;
    box-shadow:var(--shadow);
}
.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stat{background:white;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}
.stat strong{display:block;font-size:34px;color:var(--red)}
.login-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--red-dark),var(--green-dark));
    padding:20px;
}
.login-box{
    width:min(440px,100%);
    background:rgba(255,255,255,.92);
    border-radius:28px;
    padding:32px;
    box-shadow:0 30px 80px rgba(0,0,0,.28);
}
.login-box img{width:120px;margin:0 auto 20px;border-radius:50%}

@media (max-width:900px){
    .hero-grid,.grid.cols-3,.grid.cols-4,.admin-grid{grid-template-columns:1fr}
    .nav-toggle{display:block}
    .main-nav{
        display:none;
        position:absolute;
        left:18px;
        right:18px;
        top:86px;
        background:white;
        border-radius:24px;
        padding:14px;
        box-shadow:var(--shadow);
        flex-direction:column;
        align-items:stretch;
    }
    .nav-open .main-nav{display:flex}
    .site-footer{flex-direction:column}
    .admin-body{grid-template-columns:1fr}
    .admin-sidebar{position:relative}
}

/* Rechtliches & Cookie Banner */
.legal-card{
    max-width:980px;
    margin:auto;
    line-height:1.75;
}
.legal-card h3{
    margin-top:30px;
    color:var(--red);
}
.legal-card a{
    color:var(--green);
    font-weight:900;
    text-decoration:underline;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:14px;
    align-items:center;
}
.footer-links a,
.footer-cookie-button{
    color:white;
    font:inherit;
    font-weight:800;
    background:transparent;
    border:0;
    padding:0;
    cursor:pointer;
    text-decoration:underline;
}
.footer-cookie-button:hover,
.footer-links a:hover{
    color:var(--gold);
}

.cookie-banner{
    position:fixed;
    inset:auto 18px 18px 18px;
    z-index:9999;
}
.cookie-box{
    max-width:1180px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr auto;
    gap:22px;
    align-items:center;
    background:rgba(36,21,18,.97);
    color:white;
    border:1px solid rgba(255,255,255,.18);
    border-radius:26px;
    padding:24px;
    box-shadow:0 25px 80px rgba(0,0,0,.38);
}
.cookie-box h3{
    margin:0 0 8px;
    font-size:24px;
}
.cookie-box p{
    margin:0;
    color:rgba(255,255,255,.82);
    line-height:1.55;
}
.cookie-options{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:16px;
}
.cookie-options label{
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;
    padding:9px 12px;
}
.cookie-options input{
    width:auto;
}
.cookie-links{
    margin-top:14px!important;
    display:flex;
    gap:16px;
}
.cookie-links a{
    color:var(--gold);
    font-weight:900;
    text-decoration:underline;
}
.cookie-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:210px;
}
.cookie-actions .btn{
    width:100%;
}

@media (max-width:900px){
    .cookie-box{
        grid-template-columns:1fr;
    }
    .cookie-actions{
        min-width:0;
    }
    .footer-links{
        justify-content:flex-start;
    }
}

/* HPv1.1 Media */
.hero-slider{
    position:relative;
    overflow:hidden;
    border-radius:32px;
    min-height:420px;
    background:linear-gradient(135deg,var(--red-dark),var(--green-dark));
    box-shadow:var(--shadow);
}
.hero-slide{
    position:absolute;
    inset:0;
    display:flex;
    align-items:end;
    padding:40px;
    color:white;
    opacity:0;
    transition:opacity .6s ease;
    background-size:cover;
    background-position:center;
}
.hero-slide.active{
    opacity:1;
}
.hero-slide::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.15));
}
.hero-slide-content{
    position:relative;
    z-index:2;
}
.media-card{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    cursor:pointer;
    background:#111;
}
.media-card img,
.media-card video{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}
.media-card:hover img,
.media-card:hover video{
    transform:scale(1.05);
}
.media-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:16px;
    background:linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color:white;
    font-weight:900;
}
.play-badge{
    position:absolute;
    top:14px;
    right:14px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:rgba(0,0,0,.72);
    display:grid;
    place-items:center;
    color:white;
    font-size:22px;
    border:2px solid rgba(255,255,255,.35);
}

.member-card{
    position:relative;
    overflow:hidden;
}
.member-card img{
    cursor:pointer;
}
.member-role-badge{
    position:absolute;
    top:16px;
    left:16px;
    background:var(--gold);
    color:var(--ink);
    padding:8px 12px;
    border-radius:999px;
    font-weight:900;
}

.hp-lightbox{
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.92);
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}
.hp-lightbox.active{
    display:flex;
}
.hp-lightbox img,
.hp-lightbox video{
    max-width:95vw;
    max-height:90vh;
    border-radius:18px;
    box-shadow:0 20px 80px rgba(0,0,0,.5);
}
.hp-lightbox-close{
    position:absolute;
    top:20px;
    right:20px;
    width:56px;
    height:56px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.14);
    color:white;
    font-size:34px;
    cursor:pointer;
}

/* HPv1.5.1 Mitglieder/Vorstand Fix */
.member-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-height:100%;
}
.member-card h3{
    margin-top:16px;
    margin-bottom:8px;
}
.board-card{
    border:2px solid var(--gold)!important;
}
.member-photo{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:22px;
    background:linear-gradient(135deg,var(--red),var(--green));
    cursor:pointer;
}
.member-placeholder{
    display:grid;
    place-items:center;
    color:white;
    font-size:64px;
    font-weight:900;
    cursor:default;
}
.member-placeholder span{
    transform:translateY(-2px);
}
.member-role-badge{
    position:absolute;
    top:16px;
    left:16px;
    z-index:2;
    background:var(--gold);
    color:var(--ink);
    padding:8px 12px;
    border-radius:999px;
    font-weight:900;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}

/* HPv1.5.4 Hintergrund-Upgrade */
body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    color:var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(178,13,24,.14), transparent 24%),
        radial-gradient(circle at 92% 18%, rgba(18,122,58,.13), transparent 26%),
        radial-gradient(circle at 50% 96%, rgba(242,193,78,.16), transparent 28%),
        linear-gradient(135deg, #fffaf1 0%, #fff5e4 42%, #f7ead8 100%);
    background-attachment: fixed;
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-2;
    background-image:
        linear-gradient(120deg, rgba(178,13,24,.035) 0 1px, transparent 1px 32px),
        linear-gradient(30deg, rgba(18,122,58,.035) 0 1px, transparent 1px 38px);
    opacity:.9;
}

body::after{
    content:"";
    position:fixed;
    right:-170px;
    bottom:-190px;
    width:min(760px,80vw);
    height:min(760px,80vw);
    pointer-events:none;
    z-index:-1;
    opacity:1;
}

main{
    position:relative;
    overflow:hidden;
}

main::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background:
        radial-gradient(circle at 14% 30%, rgba(242,193,78,.16) 0 3px, transparent 4px),
        radial-gradient(circle at 24% 72%, rgba(178,13,24,.16) 0 4px, transparent 5px),
        radial-gradient(circle at 78% 38%, rgba(18,122,58,.15) 0 3px, transparent 4px),
        radial-gradient(circle at 88% 82%, rgba(20,67,128,.13) 0 4px, transparent 5px);
    background-size:180px 180px, 220px 220px, 210px 210px, 240px 240px;
    opacity:.65;
}

.section{
    position:relative;
}

.section::after{
    content:"";
    position:absolute;
    left:clamp(18px,4vw,70px);
    right:clamp(18px,4vw,70px);
    bottom:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(178,13,24,.22), rgba(18,122,58,.22), transparent);
    pointer-events:none;
}

.card,
.table-wrap,
.admin-topbar,
.stat,
.login-box{
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(10px);
}

.site-header{
    background:rgba(255,250,241,.9);
}

.hero-slider{
    border:1px solid rgba(255,255,255,.45);
}

.admin-body{
    background:
        radial-gradient(circle at 12% 10%, rgba(178,13,24,.16), transparent 25%),
        radial-gradient(circle at 86% 90%, rgba(18,122,58,.16), transparent 28%),
        linear-gradient(135deg,#fffaf1,#f3e4cf);
}

/* HPv1.5.5 Dynamic Hero */
.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
}
.hero-dots{
    position:absolute;
    left:40px;
    bottom:26px;
    z-index:4;
    display:flex;
    gap:10px;
}
.hero-dots button{
    width:14px;
    height:14px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.75);
    background:rgba(255,255,255,.2);
    cursor:pointer;
}
.hero-dots button.active{
    background:var(--gold);
    border-color:var(--gold);
}
.hero-slide-content{
    max-width:760px;
}
.hero-slide-content h1{
    text-shadow:0 8px 26px rgba(0,0,0,.34);
}
.hero-slide-content p{
    max-width:680px;
    font-size:clamp(18px,2.4vw,26px);
    text-shadow:0 6px 20px rgba(0,0,0,.32);
}

.grid.cols-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid.cols-2{grid-template-columns:1fr}}

/* HPv1.6.5 - UI Optimierung: Galerie, Mitglieder, Mobile Menü, Sponsoren */

/* Mobile Menü */
@media (max-width:900px){
    .site-header{
        align-items:center;
    }

    .main-nav{
        top:82px !important;
        left:14px !important;
        right:14px !important;
        padding:18px !important;
        border:1px solid rgba(255,255,255,.55);
        background:rgba(255,250,241,.94) !important;
        backdrop-filter:blur(16px);
        box-shadow:0 18px 50px rgba(36,21,18,.16);
        gap:6px !important;
    }

    .main-nav a{
        width:100%;
        padding:15px 16px !important;
        border-radius:16px !important;
        background:rgba(255,255,255,.55);
    }

    .main-nav a:hover{
        background:white;
    }

    .nav-toggle{
        min-width:48px;
        min-height:48px;
        border-radius:16px;
        box-shadow:0 8px 20px rgba(36,21,18,.16);
    }
}

/* Mitgliederkarten */
.member-card{
    transition:transform .25s ease, box-shadow .25s ease;
}
.member-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 60px rgba(36,21,18,.16);
}
.member-photo{
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.member-role-badge{
    backdrop-filter:blur(8px);
}

/* Galerie Masonry */
.gallery-masonry{
    max-width:1180px;
    margin:auto;
    column-count:4;
    column-gap:18px;
}
.gallery-masonry .media-card,
.gallery-masonry .card{
    display:inline-block;
    width:100%;
    margin:0 0 18px;
    break-inside:avoid;
}
.gallery-masonry .media-card img,
.gallery-masonry .media-card video{
    aspect-ratio:auto;
    min-height:160px;
    max-height:420px;
    object-fit:cover;
}
@media (max-width:1100px){
    .gallery-masonry{column-count:3;}
}
@media (max-width:760px){
    .gallery-masonry{column-count:2;}
}
@media (max-width:480px){
    .gallery-masonry{column-count:1;}
}

/* Sponsoren */
.sponsor-grid{
    max-width:1180px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}
.sponsor-card{
    min-height:180px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    text-align:center;
    background:rgba(255,255,255,.88);
    border:1px solid var(--line);
    border-radius:28px;
    padding:24px;
    box-shadow:var(--shadow);
    transition:transform .25s ease, box-shadow .25s ease;
}
.sponsor-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 60px rgba(36,21,18,.16);
}
.sponsor-card img{
    max-width:180px;
    max-height:90px;
    object-fit:contain;
}
.sponsor-card h3{
    margin:0;
    font-size:20px;
}
.sponsor-grid.gold .sponsor-card{
    border:2px solid var(--gold);
}
.sponsor-placeholder{
    width:92px;
    height:92px;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-size:42px;
    font-weight:900;
    background:linear-gradient(135deg,var(--red),var(--green));
    color:white;
}
@media (max-width:1000px){
    .sponsor-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
    .sponsor-grid{grid-template-columns:1fr;}
}

/* HPv1.6.6 Sponsor Layout */

.main-sponsor-card{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:320px 1fr;
    gap:36px;
    align-items:center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,236,.88));
    border:2px solid var(--gold);
    border-radius:36px;
    padding:38px;
    box-shadow:0 24px 70px rgba(36,21,18,.14);
    position:relative;
    overflow:hidden;
}

.main-sponsor-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right, rgba(242,193,78,.18), transparent 36%);
    pointer-events:none;
}

.main-sponsor-label{
    position:absolute;
    top:18px;
    right:18px;
    padding:10px 18px;
    border-radius:999px;
    background:var(--gold);
    font-weight:800;
    color:#2a1a10;
}

.main-sponsor-card img{
    width:100%;
    max-height:180px;
    object-fit:contain;
    background:white;
    border-radius:24px;
    padding:20px;
}

.floating-sponsors{
    position:fixed;
    top:140px;
    z-index:30;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.floating-sponsors.left{
    left:12px;
}

.floating-sponsors.right{
    right:12px;
}

.floating-sponsor{
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    border-radius:22px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.55);
    backdrop-filter:blur(10px);
    box-shadow:0 12px 30px rgba(36,21,18,.12);
    transition:transform .2s ease;
}

.floating-sponsor:hover{
    transform:translateY(-3px) scale(1.03);
}

.floating-sponsor img{
    width:84%;
    height:84%;
    object-fit:contain;
}

@media (max-width:1380px){
    .floating-sponsors{
        display:none;
    }
}

@media (max-width:860px){
    .main-sponsor-card{
        grid-template-columns:1fr;
        padding:24px;
    }
}

/* HPv1.7.0 YouTube Gallery */
.youtube-frame-wrap{
    width:min(1100px, 92vw);
    aspect-ratio:16/9;
    background:#000;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 80px rgba(0,0,0,.5);
}

.youtube-frame-wrap iframe{
    width:100%;
    height:100%;
    display:block;
}

.media-card .play-badge{
    pointer-events:none;
}

/* HPv1.7.1 Gallery Captions Navigation */
.hp-lightbox-caption{
    margin-top:14px;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    color:white;
    text-align:center;
    font-weight:800;
}

.hp-lightbox-content{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.hp-lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:58px;
    height:72px;
    border:0;
    border-radius:20px;
    background:rgba(255,255,255,.14);
    color:white;
    font-size:56px;
    line-height:1;
    cursor:pointer;
    z-index:10002;
}

.hp-lightbox-nav:hover{
    background:rgba(255,255,255,.24);
}

.hp-lightbox-nav.prev{
    left:22px;
}

.hp-lightbox-nav.next{
    right:22px;
}

@media (max-width:700px){
    .hp-lightbox-nav{
        width:46px;
        height:58px;
        font-size:42px;
    }

    .hp-lightbox-nav.prev{
        left:8px;
    }

    .hp-lightbox-nav.next{
        right:8px;
    }
}

/* HPv1.7.8 Galerie Übersicht & Reihenfolge */

/* Öffentliche Galerie: zeilenweise statt spaltenweise */
.gallery-row-grid{
    max-width:1180px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
    align-items:start;
}

.gallery-row-grid .media-card{
    width:100%;
}

.gallery-row-grid .media-card img,
.gallery-row-grid .media-card video{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}

/* Admin Galerie: Alben klappbar */
.admin-album-details{
    padding:0!important;
    overflow:hidden;
}

.admin-album-details summary{
    list-style:none;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:22px 26px;
    font-size:22px;
    font-weight:900;
    color:var(--ink);
    background:rgba(255,255,255,.72);
    border-bottom:1px solid rgba(0,0,0,.06);
}

.admin-album-details summary::-webkit-details-marker{
    display:none;
}

.admin-album-details summary::before{
    content:"▸";
    color:var(--red);
    font-size:24px;
    transition:transform .2s ease;
}

.admin-album-details[open] summary::before{
    transform:rotate(90deg);
}

.admin-album-details summary span{
    flex:1;
}

.admin-album-details summary small{
    font-size:14px;
    color:var(--muted);
    font-weight:800;
    background:rgba(255,255,255,.72);
    padding:8px 12px;
    border-radius:999px;
}

.album-actions{
    padding:18px 24px 0;
}

.gallery-admin-grid{
    padding:24px;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
}

@media (max-width:1100px){
    .gallery-row-grid,
    .gallery-admin-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:760px){
    .gallery-row-grid,
    .gallery-admin-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:520px){
    .gallery-row-grid,
    .gallery-admin-grid{
        grid-template-columns:1fr;
    }

    .admin-album-details summary{
        font-size:18px;
        padding:18px;
    }

    .gallery-admin-grid{
        padding:18px;
    }
}

/* HPv1.7.9 Öffentliche Galerie klappbar */
.public-album-details{
    max-width:1180px;
    margin:0 auto 22px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(255,255,255,.55);
    border-radius:28px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.public-album-details summary{
    list-style:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:24px 28px;
    font-size:26px;
    font-weight:900;
    color:var(--ink);
    background:
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,248,236,.74));
}

.public-album-details summary::-webkit-details-marker{
    display:none;
}

.public-album-details summary::before{
    content:"▸";
    color:var(--red);
    font-size:26px;
    transition:transform .2s ease;
}

.public-album-details[open] summary::before{
    transform:rotate(90deg);
}

.public-album-details summary span{
    flex:1;
    display:flex;
    align-items:baseline;
    gap:12px;
    flex-wrap:wrap;
}

.public-album-details summary small{
    color:var(--green);
    font-size:18px;
    font-weight:900;
}

.public-album-details summary em{
    font-style:normal;
    font-size:14px;
    color:var(--muted);
    background:rgba(255,255,255,.74);
    padding:8px 13px;
    border-radius:999px;
}

.public-gallery-grid{
    padding:24px;
}

@media (max-width:700px){
    .public-album-details summary{
        font-size:21px;
        padding:20px;
    }

    .public-album-details summary em{
        font-size:12px;
    }

    .public-gallery-grid{
        padding:18px;
    }
}

/* HPv1.8.0 Hero halbiert + Prinzenpaar */
.home-top-grid{
    max-width:1180px;
    margin:auto;
    display:grid;
    grid-template-columns:minmax(0, 1.2fr) minmax(320px, .8fr);
    gap:24px;
    align-items:stretch;
}
.compact-hero{min-height:clamp(300px, 36vw, 430px)!important;}
.prince-card{
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,236,.84));
    border:1px solid rgba(255,255,255,.58);
    border-radius:28px;
    padding:26px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
}
.prince-card h2{margin:8px 0 16px;font-size:clamp(28px,3vw,42px);}
.prince-card img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:24px;
    box-shadow:0 12px 34px rgba(36,21,18,.12);
    margin-bottom:18px;
}
.prince-names{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    font-size:clamp(20px,2.2vw,30px);
    color:var(--ink);
}
.prince-names span{color:var(--gold);font-weight:900;}
.prince-card p{margin-top:14px;color:var(--muted);line-height:1.55;}
@media (max-width:980px){
    .home-top-grid{grid-template-columns:1fr;}
    .compact-hero{min-height:360px!important;}
}

/* HPv1.8.1 Interne Orden */
.order-card-admin,
.order-card-public{
    text-align:center;
}

.order-card-admin img,
.order-card-public img{
    width:140px;
    height:140px;
    object-fit:contain;
    margin:0 auto 16px;
    display:block;
    background:rgba(255,255,255,.82);
    border-radius:24px;
    padding:12px;
    box-shadow:0 10px 28px rgba(36,21,18,.10);
}

.order-placeholder{
    width:140px;
    height:140px;
    display:grid;
    place-items:center;
    margin:0 auto 16px;
    border-radius:24px;
    background:rgba(255,255,255,.82);
    font-size:54px;
}

.member-badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:8px 0 10px;
}

.member-badges img{
    width:34px!important;
    height:34px!important;
    object-fit:contain!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.9);
    padding:3px;
    box-shadow:0 5px 14px rgba(36,21,18,.14);
    margin:0!important;
    aspect-ratio:1/1!important;
}

/* HPv1.8.2 Gedenkseite */
.memorial-section{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.55), transparent 34%),
        linear-gradient(135deg, rgba(255,250,241,.88), rgba(244,231,211,.72));
}

.memorial-grid{
    max-width:1050px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
}

.memorial-card{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:26px;
    align-items:center;
    background:rgba(255,255,255,.9);
    border:1px solid rgba(120,90,70,.16);
}

.memorial-card img{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:22px;
    filter:saturate(.82);
    box-shadow:0 12px 34px rgba(36,21,18,.12);
}

.memorial-placeholder{
    width:180px;
    height:220px;
    display:grid;
    place-items:center;
    border-radius:22px;
    background:rgba(255,255,255,.72);
    font-size:54px;
}

.memorial-content h3{
    font-size:clamp(26px,3vw,38px);
    margin:0 0 8px;
}

.memorial-dates{
    font-weight:800;
    color:var(--red);
    margin:0 0 8px;
}

.memorial-subtitle{
    color:var(--green);
    font-weight:900;
    margin:0 0 12px;
}

@media (max-width:760px){
    .memorial-card{
        grid-template-columns:1fr;
    }

    .memorial-card img,
    .memorial-placeholder{
        width:100%;
        height:auto;
        aspect-ratio:4/3;
    }
}

/* HPv2.0 Medienarchiv Fix */
.media-admin-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
}

.media-admin-card h3{
    font-size:16px;
    word-break:break-word;
}

.media-used{
    margin:12px 0;
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:13px;
}

.media-used span{
    display:inline-block;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(18,122,58,.10);
    color:var(--green);
    font-weight:800;
}

.unused-media{
    display:inline-block;
    color:var(--red);
    background:rgba(178,13,24,.08);
    padding:7px 10px;
    border-radius:999px;
    font-weight:900;
    font-size:13px;
}

.media-link-input{
    width:100%;
    font-size:12px;
    margin:10px 0;
}

@media (max-width:1200px){
    .media-admin-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:850px){
    .media-admin-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:560px){
    .media-admin-grid{
        grid-template-columns:1fr;
    }
}

/* HPv2.1 Mitglieder Orden-Zuweisung */
.order-select-box{
    margin-top:18px;
    padding:18px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:22px;
    background:rgba(255,255,255,.62);
}

.order-select-box h3{
    margin-top:0;
}

.order-checkbox-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
}

.order-checkbox{
    display:flex!important;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(0,0,0,.08);
    cursor:pointer;
}

.order-checkbox input{
    width:auto!important;
}

.order-checkbox img,
.order-mini-placeholder{
    width:42px;
    height:42px;
    object-fit:contain;
    border-radius:50%;
    background:white;
    padding:4px;
    box-shadow:0 5px 14px rgba(36,21,18,.10);
    flex:0 0 auto;
}

.order-checkbox strong{
    font-size:14px;
}

.admin-badges{
    margin:0;
}

.admin-badges span{
    width:34px;
    height:34px;
    display:inline-grid;
    place-items:center;
    border-radius:50%;
    background:white;
    box-shadow:0 5px 14px rgba(36,21,18,.12);
}

@media (max-width:1000px){
    .order-checkbox-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:620px){
    .order-checkbox-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:768px){
    body{
        padding-bottom:150px;
    }
}

/* HPv2.6 Besucher-IP Limit Dropdown */
.visitor-limit-form{
    display:flex;
    align-items:center;
    gap:12px;
    margin:14px 0 18px;
    flex-wrap:wrap;
}

.visitor-limit-form label{
    font-weight:800;
    color:var(--ink);
}

.visitor-limit-form select{
    width:auto;
    min-width:110px;
}

/* HPv2.7 Slim Fixed Footer */
body{
    padding-bottom:70px;
}

footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    z-index:9999;
    backdrop-filter:blur(10px);
    box-shadow:0 -5px 18px rgba(0,0,0,.12);
    padding:10px 18px !important;
    min-height:auto !important;
}

footer .footer-inner,
footer .container,
footer .footer-content{
    padding-top:0 !important;
    padding-bottom:0 !important;
    gap:10px !important;
}

footer p,
footer a,
footer li,
footer span{
    font-size:0.88rem;
    line-height:1.2;
}

@media (max-width:768px){
    body{
        padding-bottom:105px;
    }

    footer{
        padding:8px 12px !important;
    }
}

/* HPv3.1 Klickbare Newsbilder */
.news-home-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.news-home-link .media-card{
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease;
}

.news-home-link:hover .media-card{
    transform:translateY(-2px);
    box-shadow:0 10px 26px rgba(0,0,0,.16);
}

/* HPv3.2 News Kacheln */
.news-tile-grid{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:24px;
    align-items:start;
}

.news-tile{
    display:block;
    overflow:hidden;
    border-radius:26px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(255,255,255,.58);
    box-shadow:var(--shadow);
    text-decoration:none;
    color:inherit;
    transition:transform .22s ease, box-shadow .22s ease;
}

.news-tile:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 54px rgba(36,21,18,.16);
}

.news-tile-media{
    position:relative;
    width:100%;
    aspect-ratio:16/10;
    background:
        radial-gradient(circle at top left, rgba(242,193,78,.20), transparent 38%),
        linear-gradient(135deg, rgba(178,13,24,.12), rgba(18,122,58,.10));
    display:grid;
    place-items:center;
    overflow:hidden;
}

.news-tile-media img,
.news-tile-media video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.news-tile-media .news-tile-fallback{
    width:58%;
    height:58%;
    object-fit:contain;
    filter:drop-shadow(0 10px 20px rgba(36,21,18,.18));
}

.news-tile-content{
    padding:18px 20px 22px;
}

.news-tile-content h3{
    margin:6px 0 0;
    font-size:clamp(20px, 2vw, 26px);
    line-height:1.15;
}

.news-detail-card{
    max-width:980px;
    margin:0 auto 34px;
    overflow:hidden;
}

.news-detail-media{
    border-radius:24px;
    overflow:hidden;
    margin-bottom:22px;
    cursor:pointer;
    background:
        radial-gradient(circle at top left, rgba(242,193,78,.20), transparent 38%),
        linear-gradient(135deg, rgba(178,13,24,.12), rgba(18,122,58,.10));
}

.news-detail-media img,
.news-detail-media video{
    width:100%;
    max-height:560px;
    object-fit:cover;
    display:block;
}

.news-detail-fallback{
    display:grid;
    place-items:center;
    padding:40px;
}

.news-detail-fallback img{
    width:min(240px, 55%);
    height:auto;
    object-fit:contain;
}

.news-detail-content h3{
    font-size:clamp(30px, 4vw, 52px);
    margin:8px 0 16px;
}

@media (max-width:640px){
    .news-tile-grid{
        grid-template-columns:1fr;
    }

    .news-tile-content{
        padding:16px;
    }
}

/* HPv3.2b Hero Slider Punkte unten fixieren */
.hero-slider{
    position:relative !important;
    padding-bottom:48px !important;
}

.hero-dots,
.hero-slider .slider-dots,
.hero-pagination{
    position:absolute !important;
    left:50% !important;
    right:auto !important;
    top:auto !important;
    bottom:18px !important;
    transform:translateX(-50%) !important;
    z-index:5 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:18px !important;
    margin:0 !important;
}

.hero-dots button,
.hero-slider .slider-dots button,
.hero-pagination button,
.hero-dot,
.hero-slider .slider-dot{
    width:12px !important;
    height:12px !important;
    min-width:12px !important;
    min-height:12px !important;
}

/* Button bleibt darüber, Punkte mit Abstand darunter */
.hero-slide .actions,
.hero-slide-content .actions,
.hero-content .actions{
    margin-bottom:30px !important;
}


/* HPv3.4f Ticket Button als Rubrik */
.ticket-presale-nav-item{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    height:44px;
    padding:0 18px !important;
    margin-right:18px !important;
    border-radius:14px !important;
    font-size:0.95rem;
    font-weight:900 !important;
    background:linear-gradient(135deg, var(--gold), #ffe08a) !important;
    color:#2a1a10 !important;
    text-decoration:none !important;
    border:1px solid rgba(255,255,255,.55);
    box-shadow:0 8px 20px rgba(36,21,18,.14);
    white-space:nowrap;
}

.ticket-presale-nav-item::before{
    content:"🎟️";
    margin-right:8px;
}

.ticket-presale-nav-item:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(36,21,18,.20);
}

@media (max-width:900px){
    .ticket-presale-nav-item{
        width:100%;
        margin-right:0 !important;
        margin-bottom:10px;
    }
}


/* HPv3.5 Mobile Footer normal */
@media (max-width:768px){
    body{
        padding-bottom:0 !important;
    }

    footer{
        position:relative !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        width:100% !important;
        z-index:auto !important;
        box-shadow:none !important;
    }
}


    position:relative;
    width:100%;
    aspect-ratio:16/10;
    border-radius:24px;
    overflow:hidden;
    background:
        linear-gradient(135deg, rgba(178,13,24,.35), rgba(18,122,58,.32)),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 22%),
        radial-gradient(circle at 70% 60%, rgba(242,193,78,.35), transparent 28%);
    box-shadow:var(--shadow);
}

    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:clamp(28px,4vw,54px);
    font-weight:900;
    color:rgba(255,255,255,.65);
    text-transform:uppercase;
    letter-spacing:.08em;
}

    position:absolute;
    left:24px;
    bottom:24px;
    color:white;
    font-weight:900;
    text-shadow:0 2px 8px rgba(0,0,0,.7);
    max-width:70%;
}


    position:relative;
    width:100%;
    aspect-ratio:16/10;
    border-radius:24px;
    overflow:hidden;
    background:
        linear-gradient(135deg, rgba(178,13,24,.35), rgba(18,122,58,.32)),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 22%),
        radial-gradient(circle at 70% 60%, rgba(242,193,78,.35), transparent 28%);
    box-shadow:var(--shadow);
}

    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:clamp(28px,4vw,54px);
    font-weight:900;
    color:rgba(255,255,255,.65);
    text-transform:uppercase;
    letter-spacing:.08em;
}

    position:absolute;
    left:24px;
    bottom:24px;
    color:white;
    font-weight:900;
    text-shadow:0 2px 8px rgba(0,0,0,.7);
    max-width:70%;
}


/* HPv3.8 Hauptsponsor komplett klickbar */
.main-sponsor-click-card{
    text-decoration:none;
    color:inherit;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.main-sponsor-card.main-sponsor-click-card{
    display:grid;
}

.main-sponsor-click-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 44px rgba(36,21,18,.18);
    border-color:rgba(242,193,78,.65);
}

.sponsor-card{
    text-decoration:none;
    color:inherit;
}

.sponsor-link-text{
    display:inline-block;
    margin-top:8px;
    font-weight:800;
    opacity:.78;
}


/* HPv3.9 Admin News Editor */
.admin-editor-layout{
    display:grid;
    grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
    gap:24px;
    align-items:start;
}

.admin-editor-layout .form{
    max-width:none;
}

.news-preview-panel{
    position:sticky;
    top:24px;
}

.news-preview-card{
    cursor:default;
}

.news-preview-card:hover{
    transform:none;
    box-shadow:var(--shadow);
}

.news-preview-panel .news-tile-media{
    border-radius:18px 18px 0 0;
}

.news-preview-panel .news-tile-content p{
    margin-bottom:0;
}

.upload-progress{
    display:grid;
    gap:8px;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fffaf0;
}

.upload-progress[hidden]{
    display:none;
}

.upload-progress-bar{
    width:100%;
    height:12px;
    overflow:hidden;
    border-radius:999px;
    background:#eadccc;
}

.upload-progress-bar span{
    display:block;
    width:0;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg, var(--green), var(--gold));
    transition:width .18s ease;
}

.upload-progress strong{
    color:var(--green-dark);
    font-size:14px;
}

.news-admin-table{
    margin-top:24px;
}

@media (max-width:1000px){
    .admin-editor-layout{
        grid-template-columns:1fr;
    }

    .news-preview-panel{
        position:static;
    }
}


/* HPv4.1 Mitglieder Zusatzinfos / Detailmodal */
.member-card-clickable{
    cursor:pointer;
    height:auto!important;
    align-self:start;
    transition:transform .18s ease, box-shadow .18s ease;
}

.member-card-clickable:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 54px rgba(36,21,18,.18);
}

.member-card-more{
    display:inline-block;
    margin-top:12px;
    font-weight:900;
    color:var(--red);
}

.member-info-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
}

.member-info-modal.is-open{
    display:block;
}

.member-info-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(20,10,8,.72);
    backdrop-filter:blur(6px);
}

.member-info-modal-box{
    position:relative;
    z-index:2;
    width:min(960px, calc(100vw - 32px));
    max-height:calc(100vh - 48px);
    overflow:auto;
    margin:24px auto;
    background:var(--card);
    border-radius:28px;
    box-shadow:0 30px 90px rgba(0,0,0,.35);
    padding:28px;
}

.member-info-close{
    position:absolute;
    top:16px;
    right:16px;
    width:42px;
    height:42px;
    border-radius:50%;
    border:0;
    background:var(--red);
    color:white;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}

.member-info-modal-grid{
    display:grid;
    grid-template-columns:minmax(220px, 340px) 1fr;
    gap:28px;
    align-items:start;
}

.member-info-photo{
    width:100%;
    aspect-ratio:3/4;
    object-fit:cover;
    border-radius:22px;
    box-shadow:var(--shadow);
}

.member-info-placeholder{
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--red),var(--green));
    color:white;
    font-size:72px;
    font-weight:900;
}

.member-info-modal-box h2{
    margin-top:8px;
    font-size:clamp(30px,4vw,52px);
}

.modal-role{
    display:inline-block;
    margin-bottom:8px;
}

.modal-badges{
    margin:8px 0 18px;
}

.member-public-info-list{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.member-public-info-row{
    padding:12px 14px;
    border-radius:16px;
    background:rgba(255,248,236,.75);
    border:1px solid var(--line);
}

.member-public-info-row strong{
    display:block;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--muted);
    margin-bottom:4px;
}

.member-public-info-row span{
    display:block;
    line-height:1.45;
}

.member-modal-open{
    overflow:hidden;
}

.member-info-admin-box{
    margin:18px 0;
    padding:18px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:22px;
    background:rgba(255,255,255,.62);
}

.field-public-badge,
.field-private-badge{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
}

.field-public-badge{
    background:rgba(18,122,58,.14);
    color:var(--green-dark);
}

.field-private-badge{
    background:rgba(111,94,85,.14);
    color:var(--muted);
}

@media (max-width:760px){
    .member-info-modal-box{
        padding:22px;
        margin:12px auto;
        max-height:calc(100vh - 24px);
    }

    .member-info-modal-grid{
        grid-template-columns:1fr;
    }
}


/* HPv4.2 Öffentliche Rubriken Reihenfolge */
.public-nav-add-grid{
    display:grid;
    grid-template-columns:120px 1fr 1fr auto;
    gap:10px;
    align-items:center;
    margin:12px 0 18px;
}

@media (max-width:900px){
    .public-nav-add-grid{
        grid-template-columns:1fr;
    }
}


/* HPv4.2a Admin Seitenband sauber strukturiert */
.admin-sidebar,
aside.sidebar,
.sidebar{
    overflow-y:auto;
    scrollbar-width:thin;
}

.admin-sidebar nav,
aside nav,
.sidebar nav,
nav.admin-nav,
.admin-menu{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:10px 8px 22px;
}

.admin-nav-section{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:10px 6px 12px;
    border-radius:18px;
    background:rgba(255,255,255,.28);
    border:1px solid rgba(0,0,0,.045);
}

.admin-nav-section + .admin-nav-section{
    margin-top:2px;
}

.admin-nav-group-title{
    margin:0 4px 5px;
    padding:0 6px 7px;
    font-size:11px;
    line-height:1.1;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.09em;
    opacity:.76;
    border-bottom:1px solid rgba(0,0,0,.10);
}

.admin-sidebar nav a,
aside nav a,
.sidebar nav a,
nav.admin-nav a,
.admin-menu a{
    display:flex;
    align-items:center;
    min-height:38px;
    padding:9px 12px;
    border-radius:13px;
    margin:0;
    line-height:1.2;
    transition:transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.admin-sidebar nav a:hover,
aside nav a:hover,
.sidebar nav a:hover,
nav.admin-nav a:hover,
.admin-menu a:hover{
    transform:translateX(2px);
    box-shadow:0 8px 18px rgba(36,21,18,.08);
}

.admin-nav-grouped[data-group="Dashboard"]{
    font-weight:900;
}

.admin-nav-grouped[data-group="Mitglieder"]{
    border-left:4px solid rgba(178,13,24,.35);
}

.admin-nav-grouped[data-group="Benutzer"]{
    border-left:4px solid rgba(18,122,58,.35);
}

.admin-nav-grouped[data-group="Inhalt"]{
    border-left:4px solid rgba(242,193,78,.55);
}

.admin-nav-grouped[data-group="Einstellungen"]{
    border-left:4px solid rgba(111,94,85,.35);
}

.admin-nav-grouped[data-group="System"]{
    border-left:4px solid rgba(0,0,0,.25);
}

.admin-nav-grouped[data-group="Weitere"]{
    border-left:4px solid rgba(120,120,120,.28);
}

@media (max-width:900px){
    .admin-sidebar nav,
    aside nav,
    .sidebar nav,
    nav.admin-nav,
    .admin-menu{
        padding:8px 0 14px;
        gap:10px;
    }

    .admin-nav-section{
        padding:8px;
        border-radius:14px;
    }

    .admin-sidebar nav a,
    aside nav a,
    .sidebar nav a,
    nav.admin-nav a,
    .admin-menu a{
        margin:0;
    }
}


/* HPv4.2b Öffentliche Rubriken wieder als Buttons */
.public-main-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.public-main-nav a,
.public-main-nav .public-nav-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    border-radius:14px;
    text-decoration:none!important;
    font-weight:850;
    line-height:1.1;
    border:1px solid rgba(255,255,255,.42);
    background:rgba(255,255,255,.72);
    color:var(--text, #2d211d)!important;
    box-shadow:0 6px 16px rgba(36,21,18,.08);
    transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    white-space:nowrap;
}

.public-main-nav a:hover,
.public-main-nav .public-nav-button:hover{
    transform:translateY(-2px);
    background:#fff;
    border-color:rgba(242,193,78,.75);
    box-shadow:0 12px 26px rgba(36,21,18,.16);
}

.public-main-nav .public-nav-button.is-active,
.public-main-nav a.is-active{
    background:linear-gradient(135deg, var(--red, #b20d18), #d93b45);
    color:#fff!important;
    border-color:rgba(255,255,255,.55);
    box-shadow:0 10px 28px rgba(178,13,24,.22);
}

.public-main-nav .ticket-presale-nav-item{
    background:linear-gradient(135deg, var(--gold, #f2c14e), #ffe08a)!important;
    color:#2a1a10!important;
    font-weight:900!important;
    border-color:rgba(255,255,255,.7)!important;
    margin-right:12px;
}

.public-main-nav .ticket-presale-nav-item::before{
    content:"🎟️";
    margin-right:8px;
}

@media (max-width:900px){
    .public-main-nav{
        justify-content:stretch;
        align-items:stretch;
        gap:8px;
    }

    .public-main-nav a,
    .public-main-nav .public-nav-button{
        width:100%;
        justify-content:center;
    }

    .public-main-nav .ticket-presale-nav-item{
        margin-right:0;
    }
}


/* HPv4.2e Mobile Navigation als Overlay */
@media (max-width:900px){
    header,
    .site-header,
    .main-header{
        position:relative;
        z-index:10000;
    }

    .public-main-nav{
        display:flex!important;
        position:absolute;
        top:100%;
        left:12px;
        right:12px;
        width:auto;
        max-height:0;
        overflow:hidden;
        opacity:0;
        pointer-events:none;
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;
        gap:8px;
        margin-top:8px;
        padding:0 12px;
        border-radius:18px;
        background:rgba(255,255,255,.94);
        border:1px solid rgba(0,0,0,.10);
        box-shadow:0 22px 48px rgba(36,21,18,.24);
        transform:translateY(-8px);
        transition:
            max-height .24s ease,
            opacity .18s ease,
            transform .18s ease,
            padding .18s ease;
        z-index:10001;
        backdrop-filter:blur(10px);
    }

    .public-main-nav.is-open{
        max-height:75vh;
        overflow-y:auto;
        opacity:1;
        pointer-events:auto;
        padding:12px;
        transform:translateY(0);
    }

    .public-main-nav a,
    .public-main-nav .public-nav-button{
        width:100%;
        justify-content:center;
        min-height:44px;
        margin:0!important;
    }

    .public-main-nav .ticket-presale-nav-item{
        width:100%;
        margin-right:0!important;
    }

    .menu-toggle,
    .nav-toggle,
    .hamburger,
    .burger,
    [aria-controls="publicMainNav"]{
        cursor:pointer;
        position:relative;
        z-index:10002;
    }

    body.public-menu-open{
        overflow-x:hidden;
    }
}

@media (max-width:480px){
    .public-main-nav{
        left:8px;
        right:8px;
        border-radius:16px;
    }

    .public-main-nav.is-open{
        max-height:72vh;
    }
}


/* HPv4.2v Upload-Hinweise */
.upload-hint{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:6px 0 14px;
    padding:7px 10px;
    width:max-content;
    max-width:100%;
    border-radius:999px;
    background:rgba(242,193,78,.18);
    border:1px solid rgba(242,193,78,.42);
    color:var(--muted, #6f5e55);
    font-size:12px;
    font-weight:800;
    line-height:1.25;
}

.upload-hint::before{
    content:"ⓘ";
    font-weight:900;
    color:var(--red, #b20d18);
}

@media (max-width:700px){
    .upload-hint{
        width:100%;
        justify-content:center;
        border-radius:14px;
        text-align:center;
    }
}


/* HPv4.2w Upload-Hinweis Resize-Link */
.upload-resize-link{
    display:inline-flex;
    align-items:center;
    margin-left:8px;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(178,13,24,.10);
    color:var(--red, #b20d18)!important;
    font-weight:900;
    text-decoration:none!important;
    white-space:nowrap;
}

.upload-resize-link:hover{
    background:rgba(178,13,24,.18);
    transform:translateY(-1px);
}

.upload-resize-link::after{
    content:"↗";
    margin-left:5px;
    font-size:11px;
}

@media (max-width:700px){
    .upload-hint{
        flex-wrap:wrap;
        gap:6px;
    }

    .upload-resize-link{
        margin-left:0;
    }
}


/* HPv4.2x Gedenken Kacheln klickbar */
.memorial-card-clickable{
    cursor:pointer;
    height:auto!important;
    align-self:start;
    transition:transform .18s ease, box-shadow .18s ease;
}

.memorial-card-clickable:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 54px rgba(36,21,18,.18);
}

.memorial-photo{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:18px;
    margin-bottom:14px;
    box-shadow:0 10px 24px rgba(36,21,18,.10);
}

.memorial-placeholder{
    display:grid;
    place-items:center;
    background:linear-gradient(135deg, rgba(178,13,24,.10), rgba(242,193,78,.22));
    border:1px solid rgba(0,0,0,.07);
    font-size:48px;
}

.memorial-dates{
    font-weight:850;
    color:var(--muted, #6f5e55);
    margin:.2rem 0 .6rem;
}

.memorial-card-more{
    display:inline-block;
    margin-top:12px;
    font-weight:900;
    color:var(--red, #b20d18);
}

.memorial-info-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
}

.memorial-info-modal.is-open{
    display:block;
}

.memorial-info-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(20,10,8,.72);
    backdrop-filter:blur(6px);
}

.memorial-info-modal-box{
    position:relative;
    z-index:2;
    width:min(980px, calc(100vw - 32px));
    max-height:calc(100vh - 48px);
    overflow:auto;
    margin:24px auto;
    background:var(--card, #fff);
    border-radius:28px;
    box-shadow:0 30px 90px rgba(0,0,0,.35);
    padding:28px;
}

.memorial-info-close{
    position:absolute;
    top:16px;
    right:16px;
    width:42px;
    height:42px;
    border-radius:50%;
    border:0;
    background:var(--red, #b20d18);
    color:white;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}

.memorial-info-modal-grid{
    display:grid;
    grid-template-columns:minmax(220px, 360px) 1fr;
    gap:28px;
    align-items:start;
}

.memorial-info-photo{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    border-radius:22px;
    box-shadow:var(--shadow, 0 14px 30px rgba(0,0,0,.15));
}

.memorial-info-placeholder{
    display:grid;
    place-items:center;
    background:linear-gradient(135deg, rgba(178,13,24,.10), rgba(242,193,78,.24));
    font-size:76px;
}

.memorial-info-modal-box h2{
    margin-top:8px;
    font-size:clamp(30px,4vw,52px);
}

.memorial-info-dates{
    font-weight:900;
    color:var(--red, #b20d18);
    margin:8px 0 10px;
}

.memorial-info-subtitle{
    font-size:1.08rem;
    font-weight:850;
    color:var(--muted, #6f5e55);
    margin-bottom:18px;
}

.memorial-info-text{
    padding:16px 18px;
    border-radius:18px;
    background:rgba(255,248,236,.75);
    border:1px solid var(--line, rgba(0,0,0,.08));
    line-height:1.55;
}

.memorial-modal-open{
    overflow:hidden;
}

@media (max-width:760px){
    .memorial-info-modal-box{
        padding:22px;
        margin:12px auto;
        max-height:calc(100vh - 24px);
    }

    .memorial-info-modal-grid{
        grid-template-columns:1fr;
    }
}


/* HPv4.2y Mailto Links in Mitglieder/Vorstand Zusatzfeldern */
.member-public-info-row a.member-mail-link{
    color:var(--red, #b20d18);
    font-weight:900;
    text-decoration:none;
    word-break:break-word;
}

.member-public-info-row a.member-mail-link:hover{
    text-decoration:underline;
}


/* HPv4.2ae Besucherstatistik kompakt & links ausgerichtet */
.visitor-bottom-cards{
    display:grid!important;
    grid-template-columns:minmax(300px, 520px) minmax(300px, 520px)!important;
    justify-content:start!important;
    justify-items:start!important;
    align-items:start!important;
    gap:24px!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
}

.visitor-bottom-cards > .card,
.visitor-bottom-cards > .top-pages-card,
.visitor-bottom-cards > .visitor-ip-card{
    width:100%!important;
    max-width:520px!important;
    margin-left:0!important;
    margin-right:0!important;
    justify-self:start!important;
    align-self:start!important;
    padding:16px!important;
    border-radius:18px!important;
}

.visitor-ip-card h2,
.visitor-ip-card h3,
.top-pages-card h2,
.top-pages-card h3{
    margin-bottom:10px!important;
    font-size:1.05rem!important;
}

.visitor-ip-card table,
.top-pages-card table,
.visitor-slim-table,
.top-pages-slim-table,
.admin-compact-table{
    width:100%!important;
    border-collapse:separate;
    border-spacing:0 6px;
    font-size:13px;
}

.visitor-ip-card th,
.visitor-ip-card td,
.top-pages-card th,
.top-pages-card td,
.visitor-slim-table th,
.visitor-slim-table td,
.top-pages-slim-table th,
.top-pages-slim-table td,
.admin-compact-table th,
.admin-compact-table td{
    padding:7px 9px!important;
    line-height:1.2!important;
    vertical-align:middle;
}

.visitor-ip-card td,
.top-pages-card td,
.visitor-slim-table td,
.top-pages-slim-table td,
.admin-compact-table td{
    background:rgba(255,255,255,.58);
    border-top:1px solid rgba(0,0,0,.045);
    border-bottom:1px solid rgba(0,0,0,.045);
}

.visitor-ip-card td:first-child,
.top-pages-card td:first-child,
.visitor-slim-table td:first-child,
.top-pages-slim-table td:first-child,
.admin-compact-table td:first-child{
    border-left:1px solid rgba(0,0,0,.045);
    border-radius:12px 0 0 12px;
}

.visitor-ip-card td:last-child,
.top-pages-card td:last-child,
.visitor-slim-table td:last-child,
.top-pages-slim-table td:last-child,
.admin-compact-table td:last-child{
    border-right:1px solid rgba(0,0,0,.045);
    border-radius:0 12px 12px 0;
}

.visitor-ip-card code,
.top-pages-card code,
.visitor-slim-table code,
.top-pages-slim-table code{
    display:inline-block;
    max-width:100%;
    padding:3px 7px;
    border-radius:999px;
    background:rgba(0,0,0,.055);
    font-size:12px;
    white-space:nowrap;
}

.top-pages-card a,
.top-pages-slim-table a,
.top-pages-card .page-path,
.top-pages-slim-table .page-path{
    display:inline-block;
    max-width:360px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    vertical-align:bottom;
}

.visitor-stat-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    padding:3px 8px;
    border-radius:999px;
    background:rgba(178,13,24,.10);
    color:var(--red, #b20d18);
    font-size:12px;
    font-weight:900;
}

@media (max-width:1100px){
    .visitor-bottom-cards{
        grid-template-columns:1fr!important;
    }

    .visitor-bottom-cards > .card,
    .visitor-bottom-cards > .top-pages-card,
    .visitor-bottom-cards > .visitor-ip-card{
        max-width:720px!important;
    }
}

@media (max-width:760px){
    .top-pages-card a,
    .top-pages-slim-table a,
    .top-pages-card .page-path,
    .top-pages-slim-table .page-path{
        max-width:210px;
    }

    .visitor-ip-card th,
    .visitor-ip-card td,
    .top-pages-card th,
    .top-pages-card td,
    .visitor-slim-table th,
    .visitor-slim-table td,
    .top-pages-slim-table th,
    .top-pages-slim-table td{
        font-size:12px;
        padding:6px!important;
    }
}


/* HPv4.2af Gedenken Modal Performance */
.memorial-info-photo{
    background:rgba(255,248,236,.75);
}

.memorial-info-modal:not(.is-open) #memorialFastImage{
    display:none;
}

.memorial-card-clickable{
    contain:layout paint;
}


/* HPv4.2ag Gedenken Modal öffnet sofort, Bild lädt nach */
.memorial-image-loading{
    width:100%;
    aspect-ratio:4/5;
    display:grid;
    place-items:center;
    border-radius:22px;
    background:rgba(255,248,236,.82);
    border:1px solid rgba(0,0,0,.07);
    color:var(--muted, #6f5e55);
    font-weight:900;
    box-shadow:var(--shadow, 0 14px 30px rgba(0,0,0,.15));
}

#memorialFastImage{
    min-height:260px;
}

.memorial-info-modal-box{
    content-visibility:auto;
}


/* HPv4.2aj Admin Sicherheit & Uploadqualität */
.admin-system-warning{
    margin:12px 18px;
    padding:12px 16px;
    border-radius:16px;
    background:rgba(178,13,24,.10);
    border:1px solid rgba(178,13,24,.35);
    color:var(--red, #b20d18);
    font-weight:900;
    box-shadow:0 8px 22px rgba(36,21,18,.08);
}

.upload-client-error{
    margin:7px 0 12px;
    padding:9px 12px;
    border-radius:14px;
    background:rgba(178,13,24,.10);
    border:1px solid rgba(178,13,24,.30);
    color:var(--red, #b20d18);
    font-weight:900;
    font-size:13px;
}

.upload-input-error{
    outline:2px solid rgba(178,13,24,.35);
    border-color:rgba(178,13,24,.65)!important;
}


/* HPv4.2ak Veranstaltungen klickbar + Detailfenster */
.event-public-card{cursor:pointer;height:auto!important;align-self:start;transition:transform .18s ease, box-shadow .18s ease;}
.event-public-card:hover{transform:translateY(-3px);box-shadow:0 20px 54px rgba(36,21,18,.18);}
.event-public-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:18px;margin-bottom:14px;box-shadow:0 10px 24px rgba(36,21,18,.10);}
.event-public-placeholder{display:grid;place-items:center;background:linear-gradient(135deg, rgba(178,13,24,.10), rgba(242,193,78,.22));border:1px solid rgba(0,0,0,.07);font-size:48px;}
.event-public-date{display:inline-flex;flex-direction:column;gap:2px;margin-bottom:10px;padding:7px 10px;border-radius:14px;background:rgba(178,13,24,.10);color:var(--red, #b20d18);font-weight:950;}
.event-public-date small{color:var(--muted, #6f5e55);font-weight:900;}
.event-public-more{display:inline-block;margin-top:12px;font-weight:900;color:var(--red, #b20d18);}
.event-info-modal{display:none;position:fixed;inset:0;z-index:99999;}
.event-info-modal.is-open{display:block;}
.event-info-modal-backdrop{position:absolute;inset:0;background:rgba(20,10,8,.72);backdrop-filter:blur(6px);}
.event-info-modal-box{position:relative;z-index:2;width:min(980px, calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;margin:24px auto;background:var(--card, #fff);border-radius:28px;box-shadow:0 30px 90px rgba(0,0,0,.35);padding:28px;}
.event-info-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:50%;border:0;background:var(--red, #b20d18);color:white;font-size:28px;line-height:1;cursor:pointer;}
.event-info-modal-grid{display:grid;grid-template-columns:minmax(220px, 360px) 1fr;gap:28px;align-items:start;}
.event-info-photo{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:22px;box-shadow:var(--shadow, 0 14px 30px rgba(0,0,0,.15));background:rgba(255,248,236,.75);}
.event-info-placeholder{display:grid;place-items:center;background:linear-gradient(135deg, rgba(178,13,24,.10), rgba(242,193,78,.24));font-size:76px;}
.event-info-modal-box h2{margin-top:8px;font-size:clamp(30px,4vw,52px);}
.event-info-meta{display:grid;gap:8px;margin:12px 0 18px;font-weight:900;color:var(--muted, #6f5e55);}
.event-info-meta p{margin:0;}
.event-info-meta a{color:var(--red, #b20d18);font-weight:950;text-decoration:none;}
.event-info-meta a:hover{text-decoration:underline;}
.event-info-text{padding:16px 18px;border-radius:18px;background:rgba(255,248,236,.75);border:1px solid var(--line, rgba(0,0,0,.08));line-height:1.55;}
.event-modal-open{overflow:hidden;}
@media (max-width:760px){.event-info-modal-box{padding:22px;margin:12px auto;max-height:calc(100vh - 24px)}.event-info-modal-grid{grid-template-columns:1fr;}}


/* HPv4.2ap Aktuelles-Kacheln wieder kompakt */
.news-card,
.news-public-card,
.home-news-card,
.latest-news-card,
.aktuelles-card,
.card.news-card,
.card.home-news-card,
section[id*="news"] .card,
section[id*="aktuelles"] .card,
.news-section .card,
.aktuelles-section .card,
.home-news-section .card{
    height:auto!important;
    min-height:0!important;
    align-self:start!important;
}

.news-card img,
.news-public-card img,
.home-news-card img,
.latest-news-card img,
.aktuelles-card img,
section[id*="news"] .card img,
section[id*="aktuelles"] .card img,
.news-section .card img,
.aktuelles-section .card img,
.home-news-section .card img{
    max-height:220px!important;
    object-fit:cover!important;
    border-radius:18px!important;
}

/* Falls Event-Detail-CSS versehentlich News-Karten berührt hat */
section[id*="news"] .event-public-photo,
section[id*="aktuelles"] .event-public-photo,
.news-section .event-public-photo,
.aktuelles-section .event-public-photo,
.home-news-section .event-public-photo{
    aspect-ratio:auto!important;
    max-height:220px!important;
}

/* Aktuelles-Kacheln nicht wie große Event-Kacheln aufblasen */
section[id*="news"] .event-public-card,
section[id*="aktuelles"] .event-public-card,
.news-section .event-public-card,
.aktuelles-section .event-public-card,
.home-news-section .event-public-card{
    transform:none!important;
}

section[id*="news"] .grid,
section[id*="aktuelles"] .grid,
.news-section .grid,
.aktuelles-section .grid,
.home-news-section .grid{
    align-items:start!important;
}


/* HPv4.2ar Startseite Links präzise */
.home-events-section,
.home-events-section .grid,
.events-section,
.events-section .grid{
    cursor:default!important;
}

.home-events-section .card,
.home-events-section a.card,
.event-public-card{
    cursor:pointer!important;
}

.home-news-section,
.home-news-section .grid,
.news-section,
.news-section .grid,
.aktuelles-section,
.aktuelles-section .grid{
    cursor:default!important;
}

.home-news-section .card,
.home-news-section a.card,
.news-section .card,
.news-section a.card,
.aktuelles-section .card,
.aktuelles-section a.card{
    cursor:pointer;
}


/* HPv4.2as Startseite: News und Termine sauber klickbar */
.home-news-card,
.home-event-card{
    display:block;
    color:inherit;
    text-decoration:none!important;
    cursor:pointer;
    height:auto!important;
    min-height:0!important;
    align-self:start!important;
    transition:transform .18s ease, box-shadow .18s ease;
}

.home-news-card:hover,
.home-event-card:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 54px rgba(36,21,18,.16);
}

.home-news-section,
.home-events-section,
.home-news-section .grid,
.home-events-section .grid{
    cursor:default!important;
}

.home-card-more{
    display:inline-block;
    margin-top:12px;
    color:var(--red, #b20d18);
    font-weight:900;
}

.home-news-card .media-card,
.home-event-card .media-card{
    cursor:pointer;
}

.home-news-card .media-card img,
.home-event-card .media-card img,
.home-news-card .media-card video,
.home-event-card .media-card video{
    max-height:220px;
    object-fit:cover;
}


/* HPv4.2at Upload-Optimierung Meldungen */
.upload-client-info{
    margin:7px 0 12px;
    padding:9px 12px;
    border-radius:14px;
    background:rgba(18,122,58,.10);
    border:1px solid rgba(18,122,58,.26);
    color:#127a3a;
    font-weight:900;
    font-size:13px;
}


/* HPv4.2ba Admin Galerie: YouTube-Reihe unter Album/Upload */
.admin-gallery-youtube-row{
    margin-top:18px;
    align-items:start;
}

.admin-gallery-youtube-row .card{
    align-self:start;
}

/* Erste Reihe unverändert lassen, nur eigener Klassenname zur Struktur */
.admin-gallery-main-actions{
    align-items:start;
}


/* HPv4.2bh Dashboard Besucherreihe sauber */
.dashboard-visitor-row-clean{
    margin:0 0 22px;
    align-items:stretch;
}

.dashboard-visitor-row-clean > .card{
    min-height:120px;
}

.dashboard-visitor-row-clean h3{
    margin-bottom:8px;
}

.dashboard-visitor-number{
    font-size:clamp(32px, 5vw, 48px);
    line-height:1;
    font-weight:1000;
    color:var(--red, #b20d18);
}


/* HPv4.3a Gilden-NAS */
.nas-main-link{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    text-decoration:none!important;
    color:inherit;
    margin-bottom:18px;
    border:2px solid rgba(178,13,24,.12);
}
.nas-main-link:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 54px rgba(36,21,18,.14);
}
.nas-info-grid{margin:14px 0 16px;}
.nas-info-card{min-height:150px;}
.nas-info-card textarea{min-height:100px;}
.nas-log-form{margin-bottom:18px;}
.nas-log-form textarea{min-height:110px;}
.nas-log-list{display:flex;flex-direction:column;gap:12px;}
.nas-log-entry{
    padding:14px;
    border-radius:16px;
    background:rgba(255,248,236,.72);
    border:1px solid rgba(0,0,0,.06);
}
.nas-log-meta{
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:8px;
    color:var(--muted,#6f5e55);
}
.nas-log-entry p{margin:0;}
.section-head.compact{margin-bottom:8px;}
.small{font-size:.86rem;}


/* HPv4.3b Gilden-NAS Menü */
a[href="/admin/nas.php"]{
    white-space:nowrap;
}


/* HPv4.3d Ticket Plan Foundation */
.ticket-season-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.ticket-days-list{margin-top:16px;display:flex;flex-direction:column;gap:10px;}
.ticket-day-row,.ticket-element-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,248,236,.72);border:1px solid rgba(0,0,0,.06);}
.ticket-element-form{margin:12px 0 18px;}
.ticket-plan-size-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
@media (max-width:720px){.ticket-plan-size-fields{grid-template-columns:1fr;}}
.ticket-plan-wrap{overflow:auto;border-radius:22px;border:1px solid rgba(0,0,0,.08);background:transparent;margin:16px 0;width:max-content;max-width:100%;}
.ticket-plan-svg{width:var(--ticket-plan-width, 1200px);height:var(--ticket-plan-height, auto);max-width:none;display:block;background:#fff8ec;}
.ticket-plan-wrap{scrollbar-gutter:stable;}
.ticket-elements-list{display:flex;flex-direction:column;gap:10px;}
.ticket-public-days{display:flex;flex-wrap:wrap;gap:10px;}
.ticket-public-day{padding:12px 14px;border-radius:16px;background:rgba(255,248,236,.72);border:1px solid rgba(0,0,0,.06);}
.ticket-public-day strong{display:block;}
.ticket-public-day span{color:var(--muted,#6f5e55);}
.btn-danger{background:#b20d18!important;color:#fff!important;}


/* HPv4.3e Ticket Kalendertermin-Auswahl */
.ticket-calendar-events-card{
    margin-bottom:18px;
}

.ticket-calendar-events-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.ticket-calendar-event-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:16px;
    background:rgba(255,248,236,.72);
    border:1px solid rgba(0,0,0,.06);
}

.ticket-calendar-event-row strong{
    display:block;
}

.ticket-calendar-event-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
}

.ticket-calendar-event-actions form{
    margin:0;
}

@media (max-width:760px){
    .ticket-calendar-event-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .ticket-calendar-event-actions{
        justify-content:flex-start;
    }
}


/* HPv4.3f Ticket Plan Drag & Drop */
.ticket-plan-editor-svg .ticket-plan-element{
    cursor:move;
    user-select:none;
}

.ticket-plan-editor-svg .ticket-label{
    pointer-events:none;
}

.ticket-plan-editor-svg .ticket-plan-element.is-dragging{
    opacity:.78;
}

.ticket-plan-editor-svg .ticket-plan-element:hover .ticket-shape,
.ticket-plan-editor-svg .ticket-plan-element:hover .ticket-text-only{
    filter:drop-shadow(0 4px 8px rgba(0,0,0,.24));
}

.ticket-plan-editor-svg{
    touch-action:none;
}


/* HPv4.3l Ticket Plan Resize Handles */
.ticket-plan-editor-svg .ticket-resize-handle{
    cursor:nwse-resize;
    opacity:.78;
    pointer-events:all;
}

.ticket-plan-editor-svg .ticket-plan-element:hover .ticket-resize-handle,
.ticket-plan-editor-svg .ticket-plan-element.is-resizing .ticket-resize-handle{
    opacity:1;
}

.ticket-plan-editor-svg .ticket-plan-element.is-resizing{
    opacity:.86;
}

/* HPv4.3m Ticket Saison Buttons Abstand */
.ticket-delete-season-form{
    margin-top:22px;
}


/* HPv4.3n Öffentlicher Kartenverkauf */
/* HPv4.3s Öffentlicher Kartenverkauf: Reservierungstage schmäler, Saalplan größer */
.ticket-public-days-card{
    max-width:860px;
    margin-left:auto;
    margin-right:auto;
}
#saalplan.card{
    width:fit-content;
    max-width:calc(100vw - (clamp(18px,4vw,70px) * 2));
    min-width:0;
    margin-left:auto;
    margin-right:auto;
    transform:none;
    box-sizing:border-box;
}
@media (max-width: 760px){
    #saalplan.card{
        width:100%;
        max-width:100%;
    }
}
.ticket-public-plan-wrap{
    width:max-content;
    max-width:100%;
    margin-left:0;
    margin-right:0;
}
.ticket-public-plan-wrap .ticket-plan-svg{
    width:var(--ticket-plan-width, 1600px);
    height:var(--ticket-plan-height, auto);
    min-width:0;
    max-width:none;
}
.ticket-public-day{
    display:block;
    color:inherit;
    text-decoration:none;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ticket-public-day:hover,
.ticket-public-day:focus{
    transform:translateY(-1px);
    border-color:rgba(18,122,58,.45);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
    outline:none;
}
.ticket-public-day.is-active{
    border-color:rgba(18,122,58,.75);
    box-shadow:0 0 0 3px rgba(18,122,58,.12);
}

/* HPv4.3r Ticket Plan Raster + Reservierbar-Umschaltung */
.ticket-grid-controls{
    display:flex;
    flex-wrap:wrap;
    gap:12px 18px;
    align-items:center;
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid rgba(36,21,18,.14);
    border-radius:14px;
    background:rgba(255,248,236,.72);
}
.ticket-grid-controls label{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-weight:700;
}
.ticket-grid-controls input[type="number"]{
    width:88px;
    margin:0;
}
.ticket-plan-editor-svg .ticket-grid-layer{
    pointer-events:none;
}
.ticket-element-row-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
}
.ticket-element-row-actions form{
    margin:0;
}
.ticket-reservable-label{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-weight:700;
    white-space:nowrap;
}
.ticket-reservable-toggle:disabled{
    opacity:.55;
    cursor:wait;
}
@media (max-width:760px){
    .ticket-element-row-actions{
        justify-content:flex-start;
        width:100%;
    }
}

/* HPv4.3t Öffentlicher Kartenverkauf: Reservierungen */
.ticket-public-legend{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
    align-items:center;
    margin:4px 0 12px;
    color:var(--muted,#6f5e55);
    font-weight:800;
}
.ticket-public-legend span{
    display:inline-flex;
    align-items:center;
    gap:7px;
}
.ticket-legend-dot{
    width:13px;
    height:13px;
    border-radius:999px;
    display:inline-block;
    border:2px solid rgba(36,21,18,.28);
}
.ticket-legend-dot.free{background:#127a3a;}
.ticket-legend-dot.pending{background:#e0a500;}
.ticket-legend-dot.reserved{background:#b20d18;}
.ticket-legend-dot.blocked{background:#9f958d;}
.ticket-public-element text{
    pointer-events:none;
}
.ticket-public-element.is-free{
    cursor:pointer;
}
.ticket-public-element.is-free:hover > rect,
.ticket-public-element.is-free:hover > circle:first-child,
.ticket-public-element.is-free:focus > rect,
.ticket-public-element.is-free:focus > circle:first-child{
    filter:drop-shadow(0 6px 10px rgba(18,122,58,.35));
    stroke:#127a3a;
    stroke-width:4;
    outline:none;
}
.ticket-public-element.is-selected > rect,
.ticket-public-element.is-selected > circle:first-child{
    fill:#2fbe63 !important;
    filter:drop-shadow(0 8px 14px rgba(18,122,58,.45));
    stroke:#0a6b30;
    stroke-width:5;
    outline:none;
}
.ticket-public-element.is-pending,
.ticket-public-element.is-reserved,
.ticket-public-element.is-blocked{
    cursor:not-allowed;
}
.ticket-public-element.is-pending > rect,
.ticket-public-element.is-pending > circle:first-child,
.ticket-public-element.is-reserved > rect,
.ticket-public-element.is-reserved > circle:first-child{
    opacity:.55;
}
.ticket-public-element.is-blocked > rect,
.ticket-public-element.is-blocked > circle:first-child{
    opacity:.42;
}
.ticket-public-state-dot{
    fill:#127a3a;
    stroke:#fff;
    stroke-width:2;
    pointer-events:none;
}
.ticket-public-element.is-pending .ticket-public-state-dot{
    fill:#e0a500;
}
.ticket-public-element.is-reserved .ticket-public-state-dot{
    fill:#b20d18;
}
.ticket-public-element.is-blocked .ticket-public-state-dot{
    fill:#9f958d;
}
.ticket-reservation-card{
    max-width:920px;
    margin-left:auto;
    margin-right:auto;
}
.ticket-selected-element{
    margin:0 0 14px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,248,236,.86);
    border:1px solid rgba(36,21,18,.12);
    font-weight:900;
}
.ticket-reservation-form textarea{
    min-height:92px;
}
.notice.success{
    border-color:rgba(18,122,58,.28);
    background:rgba(18,122,58,.10);
}
.notice.error{
    border-color:rgba(178,13,24,.28);
    background:rgba(178,13,24,.10);
}

/* HPv4.3t Admin Reservierungsliste */
.ticket-admin-reservations{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.ticket-admin-reservation-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,248,236,.78);
    border:1px solid rgba(36,21,18,.10);
}
.ticket-admin-reservation-row > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.ticket-admin-reservation-row small{
    color:var(--muted,#6f5e55);
}
.ticket-admin-reservation-row form{
    display:flex;
    gap:10px;
    align-items:end;
    margin:0;
}
.ticket-admin-reservation-row.status-pending{
    border-left:6px solid #e0a500;
}
.ticket-admin-reservation-row.status-confirmed{
    border-left:6px solid #127a3a;
}
.ticket-admin-reservation-row.status-cancelled{
    border-left:6px solid #b20d18;
    opacity:.72;
}
@media (max-width:780px){
    .ticket-admin-reservation-row,
    .ticket-admin-reservation-row form{
        flex-direction:column;
        align-items:stretch;
    }
}


/* HPv4.3zl Öffentlicher Saalplan: Reservierbare Elemente und Legende deutlicher */
.ticket-public-legend{
    padding:10px 12px;
    border-radius:16px;
    background:rgba(255,248,236,.82);
    border:1px solid rgba(36,21,18,.10);
}
.ticket-legend-dot{
    box-shadow:0 0 0 3px rgba(255,255,255,.85), 0 2px 7px rgba(36,21,18,.16);
}
.ticket-legend-dot.selected{
    background:#0b7f91;
}
.ticket-public-element.is-free > rect,
.ticket-public-element.is-free > circle:first-child{
    stroke:#127a3a;
    stroke-width:3;
    filter:drop-shadow(0 3px 7px rgba(18,122,58,.20));
}
.ticket-public-element.is-free:hover > rect,
.ticket-public-element.is-free:hover > circle:first-child,
.ticket-public-element.is-free:focus > rect,
.ticket-public-element.is-free:focus > circle:first-child{
    stroke:#0b7f36;
    stroke-width:5;
    filter:drop-shadow(0 7px 14px rgba(18,122,58,.42));
}
.ticket-public-element.is-selected > rect,
.ticket-public-element.is-selected > circle:first-child{
    stroke:#0b7f91;
    stroke-width:5;
    filter:drop-shadow(0 7px 16px rgba(11,127,145,.42));
}
.ticket-public-element.is-pending > rect,
.ticket-public-element.is-pending > circle:first-child{
    stroke:#e0a500;
    stroke-width:4;
    opacity:.78;
    filter:drop-shadow(0 4px 9px rgba(224,165,0,.24));
}
.ticket-public-element.is-reserved > rect,
.ticket-public-element.is-reserved > circle:first-child{
    stroke:#b20d18;
    stroke-width:4;
    opacity:.78;
    filter:drop-shadow(0 4px 9px rgba(178,13,24,.22));
}
.ticket-public-element.is-blocked > rect,
.ticket-public-element.is-blocked > circle:first-child{
    stroke:#9f958d;
    stroke-width:3;
    opacity:.45;
}
.ticket-public-state-dot{
    r:9px;
    stroke:#fff8ec;
    stroke-width:3;
    filter:drop-shadow(0 2px 4px rgba(36,21,18,.28));
}
.ticket-public-element.is-selected .ticket-public-state-dot{
    fill:#0b7f91;
}

/* HPv4.3zo Kartenverkauf: E-Mail-Vorlagen im Admin */
.ticket-mail-template-form {
    gap: 18px;
}

.ticket-mail-template-block {
    border: 1px solid rgba(36, 21, 18, .12);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 248, 236, .55);
}

.ticket-mail-template-block h3 {
    margin-top: 0;
}

.ticket-mail-template-block textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.45;
}

.ticket-placeholder-help {
    border: 1px dashed rgba(36, 21, 18, .22);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.65);
}

.ticket-placeholder-help summary {
    cursor: pointer;
    font-weight: 800;
}

.ticket-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ticket-placeholder-list code {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(36, 21, 18, .08);
}

/* HPv4.3zp Kartenverkauf: Reiter für Unterseiten */
.ticket-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ticket-admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 21, 18, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: var(--fg-blue, #123b7a);
    font-weight: 700;
    text-decoration: none;
}

.ticket-admin-tab:hover,
.ticket-admin-tab.active {
    background: var(--fg-blue, #123b7a);
    color: #fff;
    border-color: var(--fg-blue, #123b7a);
}

/* HPv4.3zr Kartenverkauf: Elemente neutral, Admin-Elementliste 6-spaltig */
.ticket-public-element.is-free > rect,
.ticket-public-element.is-free > circle:first-child,
.ticket-public-element.is-free:hover > rect,
.ticket-public-element.is-free:hover > circle:first-child,
.ticket-public-element.is-free:focus > rect,
.ticket-public-element.is-free:focus > circle:first-child,
.ticket-public-element.is-selected > rect,
.ticket-public-element.is-selected > circle:first-child,
.ticket-public-element.is-pending > rect,
.ticket-public-element.is-pending > circle:first-child,
.ticket-public-element.is-reserved > rect,
.ticket-public-element.is-reserved > circle:first-child,
.ticket-public-element.is-blocked > rect,
.ticket-public-element.is-blocked > circle:first-child{
    stroke:#241512 !important;
    stroke-width:2 !important;
    filter:none !important;
    opacity:1 !important;
}
.ticket-public-element.is-selected > rect,
.ticket-public-element.is-selected > circle:first-child{
    fill:inherit;
}
.ticket-public-element.is-free:hover,
.ticket-public-element.is-free:focus{
    outline:none;
}
.ticket-public-element.is-selected .ticket-public-state-dot{
    fill:#0b7f91;
    stroke:#fff8ec;
    stroke-width:3;
    r:9px;
}

.ticket-elements-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
    gap:6px;
    align-items:stretch;
}
.ticket-element-row{
    min-width:0;
    gap:6px;
    padding:6px 7px;
    border-radius:10px;
}
.ticket-element-row > span{
    min-width:0;
    line-height:1.12;
}
.ticket-element-row > span strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.86rem;
}
.ticket-element-row .text-muted{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.70rem;
}
.ticket-element-row form{margin:0;}
.ticket-element-row .btn{
    padding:4px 7px;
    font-size:.70rem;
    border-radius:8px;
}
@media (min-width:1180px){
    .ticket-elements-list{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width:1450px){
    .ticket-elements-list{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (min-width:1680px){
    .ticket-elements-list{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media (max-width:720px){
    .ticket-elements-list{grid-template-columns:1fr;}
}

/* HPv4.3zt Admin Saalplan: Elementliste 7-spaltig nach Entfernen der Koordinaten */
.ticket-elements-list{
    grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
    gap:5px;
}
.ticket-element-row{
    gap:5px;
    padding:5px 6px;
}
.ticket-element-row > span strong{
    font-size:.82rem;
}
.ticket-element-row .text-muted{
    font-size:.66rem;
}
.ticket-element-row .btn{
    padding:4px 6px;
    min-width:30px;
    font-size:.68rem;
}
@media (min-width:1180px){
    .ticket-elements-list{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (min-width:1450px){
    .ticket-elements-list{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media (min-width:1720px){
    .ticket-elements-list{grid-template-columns:repeat(7,minmax(0,1fr));}
}
@media (max-width:720px){
    .ticket-elements-list{grid-template-columns:1fr;}
}

/* HPv4.3zv Admin Saalplan: Element-Beschriftung in der kompakten Liste +4pt */
.ticket-element-row > span strong{
    font-size:calc(.82rem + 4pt);
}

/* HPv4.3zw Admin Reservierungen: eigene Seite mit Saalplan */
.ticket-reservation-filter-card h3{
    margin-bottom:8px;
}
.ticket-admin-day-tabs{
    margin-top:6px;
}
.ticket-admin-reservation-plan-wrap{
    margin-top:12px;
}
.ticket-admin-reservation-element.is-free > rect,
.ticket-admin-reservation-element.is-free > circle:first-child{
    fill:#d7f3df !important;
}
.ticket-admin-reservation-element.is-pending > rect,
.ticket-admin-reservation-element.is-pending > circle:first-child{
    fill:#ffe39b !important;
}
.ticket-admin-reservation-element.is-reserved > rect,
.ticket-admin-reservation-element.is-reserved > circle:first-child{
    fill:#ffc8c8 !important;
}
.ticket-admin-reservation-element.is-blocked > rect,
.ticket-admin-reservation-element.is-blocked > circle:first-child{
    fill:#ded8d1 !important;
}
.ticket-admin-reservation-element .ticket-public-state-dot{
    r:9px;
}
.ticket-admin-reservation-element.is-free .ticket-public-state-dot{fill:#127a3a;}
.ticket-admin-reservation-element.is-pending .ticket-public-state-dot{fill:#e0a500;}
.ticket-admin-reservation-element.is-reserved .ticket-public-state-dot{fill:#b20d18;}
.ticket-admin-reservation-element.is-blocked .ticket-public-state-dot{fill:#9f958d;}
.ticket-plan-size-form{margin:12px 0 10px;align-items:end;}
.ticket-plan-size-note{align-self:center;}
.ticket-plan-size-note p{margin:0;}
@media (max-width:720px){.ticket-plan-size-form{grid-template-columns:1fr;}}
