/* ==========================================================================
   Event-Anmeldung – Theme im Stil von productionvillage.de
   Ergänzt/überschreibt Bootstrap 5. Farben, Schriften und Abstände werden
   zentral über die CSS-Variablen in :root gepflegt.
   ========================================================================== */

/* Optional: Schrift selbst hosten (DSGVO) – Dateien nach assets/fonts/ legen,
   in config/event.php 'fonts_url' leeren und diesen Block einkommentieren.
@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("../fonts/outfit-300.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("../fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fonts/outfit-700.woff2") format("woff2"); }
*/

:root {
    /* ---- Markenfarben ---- */
    --pv-gold: #e6be8a;          /* Akzentfarbe (Buttons, aktive Navigation, Copyright-Leiste) */
    --pv-gold-dark: #c9a06a;     /* Hover / Icons auf hellem Grund */
    --pv-gold-rgb: 230, 190, 138;
    --pv-dark: #1e1e1e;          /* Text, dunkle Flächen, Footer */
    --pv-dark-rgb: 30, 30, 30;
    --pv-light: #eeeeee;         /* helle Sektionen */
    --pv-white: #ffffff;
    --pv-blue: #4cb9e9;          /* Zweitakzent */
    --pv-muted: #6c6c6c;
    --pv-border: #dcdcdc;
    --pv-success: #2f8f5b;
    --pv-danger: #c0392b;
    --pv-on-gold: #ffffff;       /* Textfarbe auf Gold (für mehr Kontrast z. B. var(--pv-dark)) */

    /* ---- Schriften ---- */
    --pv-font: "Outfit", Arial, sans-serif;
    --pv-weight-light: 300;
    --pv-weight-regular: 400;
    --pv-weight-bold: 700;

    /* ---- Formen & Abstände ---- */
    --pv-radius-pill: 70px;
    --pv-radius-lg: 1.5rem;
    --pv-radius: 1rem;
    --pv-shadow: 0 7px 14px rgba(0, 0, 0, .15);
    --pv-header-top: 28px;
    --pv-header-logo: 80px;
    --pv-section-padding: clamp(3rem, 7vw, 5.5rem);

    /* ---- Bootstrap-Variablen überschreiben ---- */
    --bs-body-font-family: var(--pv-font);
    --bs-body-color: var(--pv-dark);
    --bs-body-bg: var(--pv-white);
    --bs-primary: var(--pv-gold);
    --bs-primary-rgb: var(--pv-gold-rgb);
    --bs-dark-rgb: var(--pv-dark-rgb);
    --bs-link-color: var(--pv-dark);
    --bs-link-color-rgb: var(--pv-dark-rgb);
    --bs-link-hover-color: var(--pv-gold-dark);
    --bs-link-hover-color-rgb: 201, 160, 106;
    --bs-border-color: var(--pv-border);
    --bs-border-radius: .75rem;
    --bs-focus-ring-color: rgba(var(--pv-gold-rgb), .45);
}

/* ==========================================================================
   Basis
   ========================================================================== */
body {
    font-family: var(--pv-font);
    font-weight: var(--pv-weight-regular);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: var(--pv-weight-bold);
}

strong, b, .fw-bold { font-weight: var(--pv-weight-bold) !important; }

a { text-underline-offset: .2em; }

.text-gold { color: var(--pv-gold) !important; }
.text-prewrap { white-space: pre-line; }

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .5rem 1rem;
    background: var(--pv-dark);
    color: var(--pv-white);
    border-radius: var(--pv-radius-pill);
}

/* Kleine Überschrift über Titeln */
.eyebrow {
    margin-bottom: .5rem;
    color: var(--pv-gold-dark);
    font-size: .85rem;
    font-weight: var(--pv-weight-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Buttons (Pillenform, Versalien – wie auf der Website)
   ========================================================================== */
.btn {
    --bs-btn-font-weight: var(--pv-weight-bold);
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-border-radius: var(--pv-radius-pill);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.btn-lg {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-padding-y: .95rem;
    --bs-btn-font-size: 1rem;
}

.btn-sm {
    --bs-btn-padding-x: .9rem;
    --bs-btn-padding-y: .45rem;
    --bs-btn-font-size: .8rem;
}

.btn-primary {
    --bs-btn-color: var(--pv-on-gold);
    --bs-btn-bg: var(--pv-gold);
    --bs-btn-border-color: var(--pv-gold);
    --bs-btn-hover-color: var(--pv-white);
    --bs-btn-hover-bg: var(--pv-dark);
    --bs-btn-hover-border-color: var(--pv-dark);
    --bs-btn-active-color: var(--pv-white);
    --bs-btn-active-bg: var(--pv-dark);
    --bs-btn-active-border-color: var(--pv-dark);
    --bs-btn-disabled-color: var(--pv-on-gold);
    --bs-btn-disabled-bg: var(--pv-gold);
    --bs-btn-disabled-border-color: var(--pv-gold);
    --bs-btn-focus-shadow-rgb: var(--pv-gold-rgb);
}

.btn-dark {
    --bs-btn-bg: var(--pv-dark);
    --bs-btn-border-color: var(--pv-dark);
    --bs-btn-hover-bg: var(--pv-gold);
    --bs-btn-hover-border-color: var(--pv-gold);
    --bs-btn-hover-color: var(--pv-on-gold);
}

.btn-outline-dark {
    --bs-btn-color: var(--pv-dark);
    --bs-btn-border-color: var(--pv-dark);
    --bs-btn-hover-bg: var(--pv-dark);
    --bs-btn-hover-border-color: var(--pv-dark);
}

/* Quadratische Icon-Buttons in Tabellen */
.btn-icon {
    --bs-btn-padding-x: .55rem;
    --bs-btn-padding-y: .35rem;
    --bs-btn-border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
}

@media (min-width: 576px) {
    .w-sm-auto { width: auto !important; }
}

/* ==========================================================================
   Formulare
   ========================================================================== */
.form-control,
.form-select {
    padding: .75rem 1rem;
    border-color: var(--pv-border);
    border-radius: .75rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--pv-gold);
    box-shadow: 0 0 0 .25rem rgba(var(--pv-gold-rgb), .3);
}

.form-check-input:checked {
    background-color: var(--pv-dark);
    border-color: var(--pv-dark);
}

.input-group-sm > .form-control { padding: .35rem .75rem; }

/* Honeypot-Feld für Bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Header – schwebende, abgerundete Leiste mit Blur-Effekt
   ========================================================================== */
.site-header {
    position: fixed;
    top: var(--pv-header-top);
    left: 0;
    right: 0;
    z-index: 1030;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.5rem .85rem .85rem;
    border-radius: var(--pv-radius-pill);
    background: rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--pv-shadow);
    transition: background-color .3s ease, padding .3s ease;
}

/* Nach dem Scrollen: dunkle Leiste (wie auf der Website) */
.site-header.is-scrolled .site-header__bar {
    background: rgba(var(--pv-dark-rgb), .92);
}

.site-header__logo img {
    display: block;
    width: var(--pv-header-logo);
    height: var(--pv-header-logo);
    border-radius: 50%;
    transition: width .3s ease, height .3s ease;
}

.site-header.is-scrolled .site-header__logo img {
    width: calc(var(--pv-header-logo) * .8);
    height: calc(var(--pv-header-logo) * .8);
}

.site-nav ul {
    display: flex;
    gap: clamp(1.25rem, 3.5vw, 4.5rem);
    margin: 0;
    padding: 0 1rem 0 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    color: var(--pv-white);
    font-size: .96rem;
    font-weight: var(--pv-weight-bold);
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    white-space: nowrap;
    transition: color .2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.3rem;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    color: var(--pv-gold);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

/* Sprachumschalter DE | EN */
.lang-switch {
    display: flex;
    flex-shrink: 0;
    gap: .15rem;
    padding: .2rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: var(--pv-radius-pill);
}

.lang-switch a {
    padding: .3rem .6rem;
    border-radius: var(--pv-radius-pill);
    color: var(--pv-white);
    font-size: .8rem;
    font-weight: var(--pv-weight-bold);
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    transition: background-color .2s ease, color .2s ease;
}

.lang-switch a:hover { color: var(--pv-gold); }

.lang-switch a.active {
    background: var(--pv-gold);
    color: var(--pv-on-gold);
    text-shadow: none;
}

@media (min-width: 992px) {
    .lang-switch { margin-left: clamp(1.5rem, 3vw, 3rem); }
}

.site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pv-white);
    font-size: 2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.site-header__toggle:focus-visible {
    outline: 2px solid var(--pv-gold);
}

/* Mobile Navigation (Offcanvas) */
.mobile-nav {
    --bs-offcanvas-bg: var(--pv-dark);
    --bs-offcanvas-color: var(--pv-white);
    --bs-offcanvas-width: min(360px, 85vw);
}

.mobile-nav__logo { border-radius: 50%; }

.mobile-nav__list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.mobile-nav__list a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--pv-white);
    font-size: 1.15rem;
    font-weight: var(--pv-weight-bold);
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-nav__list a:hover,
.mobile-nav__list a.active {
    color: var(--pv-gold);
}

@media (max-width: 991.98px) {
    :root {
        --pv-header-top: 14px;
        --pv-header-logo: 58px;
    }
    .site-header__bar { padding: .55rem .9rem .55rem .55rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 82vh, 840px);
    padding: calc(var(--pv-header-top) + var(--pv-header-logo) + 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
    background: var(--pv-dark);
    color: var(--pv-white);
}

.hero--compact {
    min-height: clamp(360px, 48vh, 480px);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bildausschnitt: bei schmalen Bildschirmen den rechten Teil (Unit III) zeigen */
    object-position: var(--pv-hero-focus, 78% 50%);
}

/* Verlauf für Lesbarkeit (oben für den Header, unten für den Text) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(var(--pv-dark-rgb), .55) 0%, rgba(var(--pv-dark-rgb), .05) 30%, rgba(var(--pv-dark-rgb), .88) 100%),
        linear-gradient(90deg, rgba(var(--pv-dark-rgb), .6) 0%, rgba(var(--pv-dark-rgb), .3) 20%, transparent 60%);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero .eyebrow { color: var(--pv-gold); }

.hero__title {
    max-width: 18ch;
    margin-bottom: .5rem;
    font-size: clamp(2rem, 5.5vw, 3.1rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.hero__subtitle {
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.6vw, 1.75rem);
    font-weight: var(--pv-weight-light);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.hero__meta li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hero__meta i { color: var(--pv-gold); font-size: 1.15rem; }

/* ==========================================================================
   Sektionen & Inhalte
   ========================================================================== */
.section {
    padding: var(--pv-section-padding) 0;
    scroll-margin-top: calc(var(--pv-header-top) + var(--pv-header-logo) - 2rem);
}
.section--light { background: var(--pv-light); }

.event-description { margin-bottom: 1.5rem; }
.event-description ul { padding-left: 1.2rem; }

.event-details {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-details li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.event-details i {
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--pv-dark);
    color: var(--pv-gold);
}

.event-details strong {
    display: block;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.event-details--inline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding-top: 1.5rem;
    border-top: 1px solid var(--pv-border);
}

.event-details--inline li { align-items: center; }
/* Formular-Karte */
.rsvp-card {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--pv-radius-lg);
    background: var(--pv-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}

.rsvp-card__icon {
    display: inline-block;
    margin-bottom: .75rem;
    color: var(--pv-gold);
    font-size: 3.25rem;
    line-height: 1;
}

/* Auswahlkarten Zusage / Absage */
.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    height: 100%;
    padding: 1.5rem 1rem;
    border: 2px solid var(--pv-border);
    border-radius: 1.25rem;
    background: var(--pv-white);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.choice-card:hover {
    border-color: var(--pv-gold);
    transform: translateY(-2px);
}

.choice-card i {
    margin-bottom: .25rem;
    color: var(--pv-muted);
    font-size: 2.25rem;
    line-height: 1;
    transition: color .2s ease;
}

.choice-card__title {
    font-size: 1.15rem;
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
}

.choice-card__text {
    color: var(--pv-muted);
    font-size: .9rem;
}

@media (max-width: 575.98px) {
    .choice-card { padding: 1.1rem .5rem; }
    .choice-card i { font-size: 1.9rem; }
    .choice-card__text { font-size: .8rem; }
}

.btn-check:focus-visible + .choice-card {
    box-shadow: 0 0 0 .25rem rgba(var(--pv-gold-rgb), .45);
}

.btn-check:checked + .choice-card--yes {
    border-color: var(--pv-gold);
    background: rgba(var(--pv-gold-rgb), .14);
}

.btn-check:checked + .choice-card--yes i { color: var(--pv-gold-dark); }

.btn-check:checked + .choice-card--no {
    border-color: var(--pv-dark);
    background: rgba(var(--pv-dark-rgb), .06);
}

.btn-check:checked + .choice-card--no i { color: var(--pv-dark); }

/* Ein-/Ausblenden der Begleitpersonen (per JS) */
.is-collapsed { display: none !important; }

.privacy-box {
    padding: 1rem 1.25rem;
    border-radius: var(--pv-radius);
    background: var(--pv-light);
}

/* Zusammenfassung */
.summary-list {
    margin: 0;
    border-top: 1px solid var(--pv-border);
}

.summary-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 35%) 1fr;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--pv-border);
}

.summary-list dt {
    color: var(--pv-muted);
    font-weight: var(--pv-weight-regular);
}

.summary-list dd {
    margin: 0;
    font-weight: var(--pv-weight-bold);
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .summary-list > div { grid-template-columns: 1fr; gap: .15rem; }
}

/* Status-Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border-radius: var(--pv-radius-pill);
    font-size: .8rem;
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Sprachkürzel im Backend (DE/EN) */
.lang-badge {
    display: inline-block;
    min-width: 2.2rem;
    padding: .2rem .45rem;
    border: 1px solid var(--pv-border);
    border-radius: .4rem;
    font-size: .72rem;
    font-weight: var(--pv-weight-bold);
    text-align: center;
}

.status-badge--yes { background: rgba(var(--pv-gold-rgb), .25); color: #7a5a2c; }
.status-badge--no  { background: rgba(var(--pv-dark-rgb), .08); color: var(--pv-dark); }

/* ==========================================================================
   Footer – dunkel mit Struktur, goldene Copyright-Leiste
   ========================================================================== */
.site-footer {
    color: var(--pv-white);
    background-color: var(--pv-dark);
    background-image:
        linear-gradient(90deg, rgba(var(--pv-dark-rgb), .6) 0%, rgba(var(--pv-dark-rgb), .3) 20%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-footer__main { padding: 70px 0 42px; }

.site-footer a {
    color: var(--pv-white);
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--pv-gold); }

.site-footer__logo img {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    max-height: 120px;
}

.site-footer__heading {
    margin-bottom: .75rem;
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
}

.contact-list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: .75rem;
}

.contact-list i { color: var(--pv-white); }

.social-links {
    display: flex;
    gap: .6rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
}

.social-links a:hover {
    border-color: var(--pv-gold);
    background: var(--pv-gold);
    color: var(--pv-on-gold);
}

.site-footer hr {
    margin: 2.5rem 0 1.25rem;
    border-color: rgba(255, 255, 255, .35);
    opacity: 1;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 575.98px) {
    .legal-links { flex-direction: column; }
}

.site-footer__bottom {
    padding: 7px 0;
    background: var(--pv-gold);
    color: var(--pv-on-gold);
    font-size: .8rem;
}

.site-footer__bottom a { color: inherit; }

/* Nach-oben-Button (goldener Kreis, unten mittig) */
.back-to-top {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--pv-gold);
    color: var(--pv-on-gold);
    font-size: 1.25rem;
    box-shadow: var(--pv-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1rem);
    transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.back-to-top:hover { background: var(--pv-dark); color: var(--pv-white); }

/* Mobil rechts unten, damit der Button keine Formularinhalte verdeckt */
@media (max-width: 767.98px) {
    .back-to-top {
        left: auto;
        right: 1rem;
        transform: translateY(1rem);
    }
    .back-to-top.is-visible { transform: none; }
}

/* ==========================================================================
   Admin-Backend (vereinfachte Variante)
   ========================================================================== */
.admin-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--pv-light);
}

.admin-header {
    background-color: var(--pv-dark);
    box-shadow: var(--pv-shadow);
}

.admin-header .navbar { --bs-navbar-padding-y: .6rem; }

.admin-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
}

.admin-brand img { border-radius: 50%; }

.admin-header .nav-link {
    --bs-nav-link-color: var(--pv-white);
    --bs-navbar-active-color: var(--pv-gold);
    --bs-nav-link-hover-color: var(--pv-gold);
    font-size: .85rem;
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
}

.admin-header .btn-link.nav-link {
    border: 0;
    letter-spacing: 0;
    padding: var(--bs-nav-link-padding-y) var(--bs-navbar-nav-link-padding-x, .5rem);
}

.admin-header .nav-link.active { color: var(--pv-gold); }

.admin-main {
    flex: 1 0 auto;
    padding: 2.5rem 0 3rem;
}

.admin-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--pv-radius-lg);
    background: var(--pv-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.login-card { margin-top: clamp(1rem, 6vh, 4rem); }

.admin-card dt { color: var(--pv-muted); font-weight: var(--pv-weight-regular); }
.admin-card dd { font-weight: var(--pv-weight-bold); }

/* Umschalter zwischen den Veranstaltungen */
.event-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}

.event-switch__item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--pv-radius-lg);
    background: var(--pv-white);
    color: var(--pv-dark);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: border-color .2s ease, background-color .2s ease;
}

.event-switch__item:hover {
    border-color: var(--pv-gold);
    color: var(--pv-dark);
}

.event-switch__item.is-active {
    border-color: var(--pv-dark);
    background: var(--pv-dark);
    color: var(--pv-white);
}

.event-switch__title {
    font-weight: var(--pv-weight-bold);
    text-transform: uppercase;
}

.event-switch__meta {
    color: var(--pv-muted);
    font-size: .85rem;
}

.event-switch__item.is-active .event-switch__meta { color: var(--pv-gold); }

/* Kennzahlen */
.kpi {
    position: relative;
    height: 100%;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    border-radius: var(--pv-radius-lg);
    background: var(--pv-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.kpi__icon {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--pv-border);
    font-size: 1.75rem;
}

.kpi__value {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: var(--pv-weight-bold);
    line-height: 1.1;
}

.kpi__label {
    color: var(--pv-muted);
    font-size: .8rem;
    font-weight: var(--pv-weight-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kpi--yes .kpi__icon { color: var(--pv-gold); }

.kpi--highlight {
    background: var(--pv-dark);
    color: var(--pv-white);
}

.kpi--highlight .kpi__label { color: var(--pv-gold); }
.kpi--highlight .kpi__icon { color: rgba(255, 255, 255, .25); }

/* Tabellen */
.admin-table {
    --bs-table-hover-bg: rgba(var(--pv-gold-rgb), .08);
    font-size: .92rem;
}

.admin-table thead th {
    border-bottom-width: 2px;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sort-link {
    color: inherit;
    text-decoration: none;
}

.sort-link:hover,
.sort-link[aria-current="true"] { color: var(--pv-gold-dark); }

.comment-cell {
    max-width: 280px;
    color: var(--pv-muted);
    font-size: .85rem;
}

.link-cell { min-width: 320px; }

.pagination {
    --bs-pagination-active-bg: var(--pv-dark);
    --bs-pagination-active-border-color: var(--pv-dark);
    --bs-pagination-color: var(--pv-dark);
    --bs-pagination-hover-color: var(--pv-gold-dark);
    margin-top: 1rem;
}

.admin-footer { flex-shrink: 0; padding: 10px 0; }
