/* ==========================================================================
   Schützenbruderschaft St. Kunibertus Hünsborn
   Redesign – traditionell / klassisch / edel
   Grün + Gold, Serif-Headlines (Cormorant), Inter für UI
   ========================================================================== */

:root {
    /* Grün – tiefer, edler, weniger Neon */
    --green-deep:    #0c2a1c;
    --green-900:     #133b27;
    --green-800:     #1a4f33;
    --green-700:     #225f3e;
    --green-600:     #2c7a4f;
    --green-ink:     #0a1f15;

    /* Gold – wärmer, museal, weniger gelb */
    --gold:          #c9a24a;
    --gold-deep:     #9c7a2e;
    --gold-light:    #e8d49a;
    --gold-pale:     #f4e8c8;

    /* Bordeaux – seltener Akzent für Wappen-Optik */
    --bordeaux:      #6b1d1d;

    /* Pergament / Off-White für helle Cards */
    --paper:         #f6efe1;
    --paper-warm:    #efe6d2;
    --ink:           #1a1410;
    --ink-soft:      #4a3f30;

    /* Neutral */
    --white:         #ffffff;
    --gray-50:       #f7f5f1;
    --gray-100:      #ece8df;
    --gray-200:      #d8d2c4;
    --gray-300:      #b8b0a0;
    --gray-600:      #5b5648;
    --gray-700:      #3d3a30;
    --gray-800:      #26241e;

    /* Status */
    --success:       #1f7a4d;
    --error:         #a82828;
    --warning:       #c08a1f;

    /* Schatten – weicher, wärmer */
    --shadow-sm:     0 1px 2px rgba(10, 31, 21, 0.18);
    --shadow-md:     0 6px 18px rgba(10, 31, 21, 0.28);
    --shadow-lg:     0 18px 40px rgba(10, 31, 21, 0.32);
    --shadow-gold:   0 6px 22px rgba(156, 122, 46, 0.35);

    /* Layout */
    --max-width:     1040px;
    --max-narrow:    640px;
    --radius-xs:     4px;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     14px;

    /* Type */
    --font-display:  'Cormorant Garamond', 'Cormorant', 'Garamond', 'Times New Roman', serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--paper);
    background: var(--green-deep);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 74, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 74, 0.06), transparent 60%),
        linear-gradient(180deg, var(--green-deep) 0%, var(--green-900) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern", "liga";
}

/* Subtle paper-grain noise overlay (CSS only) */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.04) 0 1px,
            transparent 1px 3px
        );
    z-index: 0;
}

/* ---------- Navigation ---------- */
.navbar {
    background: linear-gradient(180deg, rgba(8, 28, 18, 0.95), rgba(8, 28, 18, 0.85));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 162, 74, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 2px 0 rgba(201, 162, 74, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--paper);
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
    border: 1px solid rgba(201, 162, 74, 0.3);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--gold-light);
}

.nav-brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(244, 232, 200, 0.6);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

.container-narrow { max-width: var(--max-narrow); }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
    position: relative;
}

.hero::before, .hero::after {
    content: '';
    display: block;
    height: 1px;
    width: 60%;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.5), transparent);
}
.hero::before { margin-bottom: 2rem; }

.hero-crest {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.hero-eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    color: var(--paper);
    letter-spacing: -0.005em;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 500;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(244, 232, 200, 0.85);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.hero-motto {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

.hero-motto::before, .hero-motto::after {
    content: '✦';
    margin: 0 0.85rem;
    font-size: 0.7em;
    opacity: 0.7;
}

/* ---------- Page Title (sub-pages) ---------- */
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    text-align: center;
    color: var(--paper);
    letter-spacing: -0.005em;
    margin-bottom: 0.4rem;
}

.page-title em {
    font-style: italic;
    color: var(--gold-light);
}

.page-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.page-subtitle {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(244, 232, 200, 0.78);
    margin-bottom: 2rem;
}

/* Ornamental divider */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem auto 2rem;
    color: var(--gold);
    max-width: 320px;
}
.ornament::before, .ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.6), transparent);
}
.ornament-mark {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    opacity: 0.85;
}

/* ---------- Cards ---------- */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(201, 162, 74, 0.22);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.card-bordered {
    /* Double-line frame, museum-style */
    box-shadow:
        inset 0 0 0 1px rgba(201, 162, 74, 0.18),
        var(--shadow-md);
    padding: 2.25rem;
}

.card-paper {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid rgba(156, 122, 46, 0.25);
}

.card-paper a { color: var(--green-700); }
.card-paper a:hover { color: var(--green-800); }

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(201, 162, 74, 0.22);
}

.card-paper .card-header {
    border-bottom-color: rgba(156, 122, 46, 0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}
.card-paper .section-title { color: var(--green-800); }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.card-paper .section-eyebrow { color: var(--gold-deep); }

/* ---------- Nav grid (Startseite, Majestäten) ---------- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    color: var(--paper);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(201, 162, 74, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.nav-card:hover {
    background: linear-gradient(180deg, rgba(201, 162, 74, 0.10), rgba(201, 162, 74, 0.04));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-card:hover::before { transform: scaleY(1); }

.nav-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.3);
    color: var(--gold);
    font-size: 1.4rem;
}

.nav-card-text h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.nav-card-text p {
    font-size: 0.85rem;
    color: rgba(244, 232, 200, 0.6);
    line-height: 1.4;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    text-transform: none;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: var(--green-ink);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--gold-deep);
}

.btn-gold:hover {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(156, 122, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: var(--green-700);
    color: var(--paper);
    border-color: rgba(201, 162, 74, 0.4);
}

.btn-primary:hover {
    background: var(--green-600);
    border-color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--paper);
    border-color: rgba(201, 162, 74, 0.4);
}

.btn-outline:hover {
    background: rgba(201, 162, 74, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--bordeaux);
    color: var(--paper);
}
.btn-danger:hover { background: #802020; }

.btn-block { width: 100%; }

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.15rem; }

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
    color: var(--gold-light);
}
.card-paper .form-label { color: var(--ink-soft); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(201, 162, 74, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.18);
}

.form-control::placeholder { color: rgba(244, 232, 200, 0.4); }

.card-paper .form-control {
    border-color: rgba(156, 122, 46, 0.3);
    background: var(--white);
    color: var(--ink);
}
.card-paper .form-control:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2);
}
.card-paper .form-control::placeholder { color: var(--gray-300); }

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c9a24a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-control option {
    background-color: var(--green-900);
    color: var(--paper);
}

.form-hint {
    font-size: 0.78rem;
    color: rgba(244, 232, 200, 0.55);
    margin-top: 0.35rem;
}
.card-paper .form-hint { color: var(--gray-600); }

.required::after {
    content: ' *';
    color: var(--gold);
}
.card-paper .required::after { color: var(--bordeaux); }

/* ---------- Tables ---------- */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(201, 162, 74, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead th {
    background: var(--green-900);
    color: var(--gold-light);
    padding: 0.85rem 1rem;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
    border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}

.data-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(201, 162, 74, 0.08);
}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
    background: rgba(201, 162, 74, 0.08);
}

.data-table td {
    padding: 0.85rem 1rem;
    color: rgba(244, 232, 200, 0.92);
}

.data-table .name-cell {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--paper);
}

/* ---------- Counter / Schusszähler ---------- */
.counter-display {
    text-align: center;
    padding: 1.5rem 1rem;
}

.counter-value {
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--gold-light);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(201, 162, 74, 0.25);
    margin: 0.5rem 0;
}

.counter-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.counter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 162, 74, 0.18);
    font-size: 0.85rem;
    color: rgba(244, 232, 200, 0.7);
}
.counter-meta strong { color: var(--gold-light); font-weight: 600; }

.counter-buttons {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.counter-btn {
    font-size: 1rem;
    padding: 0.95rem 1.6rem;
    min-width: 140px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.counter-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    margin-bottom: 0;
}

.counter-card .counter-value {
    font-size: clamp(3.5rem, 8vw, 5rem);
}

/* ---------- Messages ---------- */
.message {
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin: 1rem auto;
    max-width: 600px;
    border: 1px solid;
}

.msg-success {
    background: rgba(31, 122, 77, 0.15);
    border-color: rgba(31, 122, 77, 0.4);
    color: #a8e0c2;
}

.msg-error {
    background: rgba(168, 40, 40, 0.12);
    border-color: rgba(168, 40, 40, 0.4);
    color: #f0b0b0;
}

.msg-icon { font-size: 1.6rem; display: block; margin-bottom: 0.4rem; }
.message p { font-size: 1rem; margin-bottom: 0.75rem; }

/* ---------- Info Box ---------- */
.info-box {
    background: rgba(0, 0, 0, 0.18);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.15rem 1.4rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.info-box p { margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--gold-light); font-weight: 600; }

/* ---------- Stats ---------- */
.stat-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(244, 232, 200, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.45rem;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid transparent;
}

.badge-gold {
    background: rgba(201, 162, 74, 0.12);
    color: var(--gold-light);
    border-color: rgba(201, 162, 74, 0.4);
}

.badge-success {
    background: rgba(31, 122, 77, 0.18);
    color: #98d4b3;
    border-color: rgba(31, 122, 77, 0.4);
}

.badge-live {
    background: rgba(168, 40, 40, 0.18);
    color: #f0b0b0;
    border-color: rgba(168, 40, 40, 0.4);
}
.badge-live::before {
    content: '';
    width: 6px; height: 6px;
    background: #d04040;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(208, 64, 64, 0.6);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(208, 64, 64, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(208, 64, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(208, 64, 64, 0); }
}

/* ---------- Majestät Header ---------- */
.majestaet-header {
    text-align: center;
    padding: 1.5rem 1rem;
}

.majestaet-header .titel {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.majestaet-header .name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--paper);
    line-height: 1.1;
}

.majestaet-header .partnerin {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(244, 232, 200, 0.7);
    margin-top: 0.85rem;
}

.majestaet-header .partnerin .name {
    font-size: 1.4rem;
    font-style: normal;
    color: var(--paper);
}

.majestaet-logo {
    width: 96px;
    height: auto;
    margin: 1.25rem auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

/* ---------- Admin / Toggle ---------- */
.admin-form .form-group {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
}
.admin-form .form-label {
    text-align: right;
    margin-bottom: 0;
}

.admin-section-title {
    grid-column: 1 / -1;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 162, 74, 0.25);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-section-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.admin-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.toggle-group { display: flex; }
.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border: 1px solid rgba(201, 162, 74, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(244, 232, 200, 0.7);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
    justify-content: center;
}
.toggle-btn:hover {
    border-color: var(--gold);
    color: var(--paper);
}
.toggle-btn.active-ja {
    background: rgba(31, 122, 77, 0.2);
    border-color: var(--success);
    color: #a8e0c2;
}
.toggle-btn.active-offen {
    background: rgba(201, 162, 74, 0.18);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ---------- Success animation ---------- */
.success-animation {
    text-align: center;
    padding: 1.5rem;
}
.success-animation img {
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(201, 162, 74, 0.18);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.site-footer::before {
    content: '✦';
    display: block;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.5em;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.88rem;
    color: rgba(244, 232, 200, 0.65);
}

.footer-inner p { margin-bottom: 0.4rem; }
.footer-inner .footer-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
}

.site-footer a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 74, 0.3);
}
.site-footer a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ---------- Focus / utility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

a {
    color: var(--gold-light);
    transition: var(--transition);
}
a:hover { color: var(--gold); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold-light); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem 2rem; }
    .card { padding: 1.5rem 1.25rem; }
    .nav-grid { grid-template-columns: 1fr; }
    .admin-form .form-group { grid-template-columns: 1fr; }
    .admin-form .form-label { text-align: left; }
    .nav-brand-sub { display: none; }
    .stat-row { gap: 1.5rem; }
    .counter-buttons { flex-direction: column; align-items: stretch; }
    .counter-btn { min-width: 0; width: 100%; }
}
