/* assets/css/public-app.css – 2026 Modern Public Styles (Bereinigt 04/2026) */

@import url('public/theme.css');
@import url('components.css');
@import url('forms.css');

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.public-page {
    margin: 0;
    padding: 0;
    max-width: none;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

.public-page h1,
.public-page h2,
.public-page h3 {
    line-height: 1.2;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2b2b2b;
    border-bottom: none;
    box-shadow: var(--shadow-nav);
}

.site-header__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-header__title {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-left: auto;
}

/* ================================================
   HAMBURGER
   ================================================ */
.nav-toggle {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 201;
}

.nav-toggle__lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle:hover .nav-toggle__line {
    background: var(--color-accent);
}
.nav-toggle.is-open .nav-toggle__line {
    background: var(--color-accent);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-section-label {
    display: block;
    padding: 12px 2rem 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    cursor: default;
}

.nav-sub {
    padding-left: 2.75rem;
}

/* ================================================
   MOBILE NAV — volle Breite
   ================================================ */
.site-nav--mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 200;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 32px;
    gap: 2px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

@media (min-width: 480px) {
    .site-nav--mobile {
        width: 50%;
    }
}

@media (min-width: 900px) {
    .site-nav--mobile {
        width: 33%;
    }
}

.site-nav--mobile__logo {
    padding: 8px 0 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.site-nav--mobile__logo img {
    height: 60px;
    width: auto;
    display: block;
}

.site-nav--mobile.is-open {
    transform: translateX(0);
}

.site-nav--mobile__close {
    position: absolute;
    top: 18px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.site-nav--mobile__close:hover {
    background: #e2e8f0;
    color: #111;
}

/* Nav bleibt immer hell — auch im Dark Mode */
html.dark-theme .site-nav--mobile {
    background: #ffffff;
}

html.dark-theme .site-nav--mobile__close {
    color: #555;
}

html.dark-theme .site-nav--mobile__close:hover {
    background: #e2e8f0;
    color: #111;
}

html.dark-theme .site-nav--mobile__logo {
    border-bottom-color: #e2e8f0;
}

html.dark-theme .accordion-group details summary {
    color: #d0d0d0;
}

/* ================================================
   THEME SWITCHER (unten im Nav)
   ================================================ */
.theme-switcher {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.theme-btn {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: #f0f0f0;
}

/* ================================================
   BACKDROP
   ================================================ */
.site-nav--backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0,0,0,0.30);
}

.site-nav--backdrop.is-open {
    display: block;
}

/* ================================================
   HERO
   ================================================ */
.site-hero {
    height: var(--hero-min-height);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 24px auto 0;
    max-width: 800px;
}

.site-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* ================================================
   MAIN
   ================================================ */
.site-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 0px;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: #2b2b2b;
    color: #ffffff;
    padding: 40px 24px;
    margin-top: 60px;
}

.site-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.site-footer__logo {
    width: 200px;
    height: auto;
    display: block;
}

.site-footer__address {
    font-style: normal;
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 0.75;
    line-height: 1.6;
    margin: 0;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__link {
    color: #ffffff;
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.site-footer__link:hover {
    opacity: 1;
}

.site-footer__copy {
    font-size: 0.82rem;
    color: #ffffff;
    opacity: 0.5;
    margin: 0;
}

@media (max-width: 600px) {
    .site-footer__inner {
        flex-direction: column;
        gap: 24px;
    }
}

/* ================================================
   POST-CARDS (index.php)
   ================================================ */
.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.post-card h2 {
    font-weight: 500;
    margin-top: 0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(42,77,63,0.12);
}

.post-card__meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.post-card__meta-sep {
    margin: 0 0.35em;
    color: var(--color-text-muted);
}

.post-card__public-in {
    color: var(--color-text-muted);
}

.post-card__public-in-val {
    font-family: var(--font-mono, monospace);
    font-size: 0.95em;
    letter-spacing: 0.02em;
}

.post-card__excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ================================================
   POST DETAIL (post.php)
   ================================================ */
.post-detail {
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.post-content a,
.post-card__excerpt a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post-content a:hover,
.post-card__excerpt a:hover {
    color: var(--color-primary-dark);
}

.post-nav {
    margin-bottom: 20px;
}

.post-nav__back {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.post-nav__back:hover {
    color: var(--color-primary-dark);
}

.post-content blockquote,
.post-card__excerpt blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg);
    margin: 16px 0;
    padding: 16px 16px;
    border-radius: 0 6px 6px 0;
    color: var(--color-text-muted);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
}

/* ================================================
   DARK MODE
   ================================================ */
html.dark-theme a,
html.dark-theme .post-content a,
html.dark-theme .post-card__excerpt a,
html.dark-theme .post-nav__back {
    color: #d0d0d0;
}

html.dark-theme a:hover,
html.dark-theme .post-content a:hover,
html.dark-theme .post-card__excerpt a:hover,
html.dark-theme .post-nav__back:hover {
    color: #ffffff;
}

/* Header & Footer: Links immer weiß */
.site-header a,
.site-footer a,
.site-footer .site-footer__link {
    color: #ffffff;
}

html.dark-theme .site-header a,
html.dark-theme .site-footer a,
html.dark-theme .site-footer .site-footer__link {
    color: #ffffff;
}

html.dark-theme .site-footer .site-footer__link:hover,
html.dark-theme .site-footer a:hover {
    opacity: 1;
    color: #ffffff;
}

/* Nav: immer hell, keine active-Hervorhebung — light UND dark
   MUSS nach .site-header a stehen, da Nav innerhalb header eingebettet ist */
.site-nav--mobile a,
html.dark-theme .site-nav--mobile a {
    color: #1f2937;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 4px 14px;
    border-radius: 6px;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav--mobile a:hover,
html.dark-theme .site-nav--mobile a:hover {
    background: #e2e8f0;
    color: #2a4d3f;
}

.site-nav--mobile a.nav-active,
html.dark-theme .site-nav--mobile a.nav-active {
    background: none;
    color: #1f2937;
    font-weight: 400;
}

/* --- Public: Karten, Formulare, Hinweise --- */
html.dark-theme .public-page .info-card {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-theme .public-page .confirmation-title,
html.dark-theme .public-page .confirmation-card__title {
    color: var(--color-primary);
}

html.dark-theme .public-page code {
    background: #2a2a2a;
    color: #f0f0f0;
    padding: 0.12em 0.45em;
    border-radius: 4px;
    font-size: 0.92em;
}

html.dark-theme .public-page .small-hint,
html.dark-theme .public-page .event-box .small-hint {
    color: var(--color-text-muted);
}

html.dark-theme .public-page label,
html.dark-theme .public-page legend {
    color: var(--color-text);
}

html.dark-theme .public-page .form-control {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-theme .public-page .form-control::placeholder {
    color: var(--color-text-muted);
}

html.dark-theme .public-page .radio-label:hover:not(.text-muted):not(.option-disabled) {
    background: #2a2a2a;
}

html.dark-theme .public-page .text-muted,
html.dark-theme .public-page .option-disabled {
    color: var(--color-text-muted);
}

html.dark-theme .public-page fieldset.form-section {
    border-color: var(--color-border);
}

html.dark-theme .public-page .btn-secondary {
    background: #2a2a2a;
    color: #e8e8e8;
    border: 1px solid #555555;
}

html.dark-theme .nav-contact-toggle {
    color: #e8e8e8;
}

html.dark-theme .nav-contact-toggle:hover {
    background: #333333;
}

html.dark-theme .nav-contact__select {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-theme .nav-contact__result {
    background: #2a2a2a;
}

html.dark-theme .nav-contact__address {
    color: var(--color-text);
}

html.dark-theme .nav-contact__icon {
    color: var(--color-text-muted);
}

html.dark-theme .nav-contact__icon:hover {
    color: var(--color-primary);
}

/* Post-Inhalt: Tabellen aus Editor (ohne Inline-Farben) */
html.dark-theme .public-page .post-content table {
    color: var(--color-text);
}

html.dark-theme .public-page .post-content th,
html.dark-theme .public-page .post-content td {
    border-color: var(--color-border);
}

/* ================================================
   EVENT-BOX & FORM-GRID (forms/)
   ================================================ */
.event-box {
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-top: 32px;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.event-box .small-hint {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: #6b6560;
    line-height: 1.4;
}

/* ================================================
   BESTÄTIGUNG (confirmation.php)
   ================================================ */
.confirmation-header {
    margin-bottom: 24px;
}

.confirmation-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.confirmation-lead {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.confirmation-page .info-card {
    margin-bottom: 1.25rem;
}

.confirmation-card__title {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.confirmation-data,
.confirmation-steps {
    margin: 0;
    padding-left: 0;
    list-style: none;
    line-height: 1.55;
}

.confirmation-data li + li,
.confirmation-steps li + li {
    margin-top: 0.85rem;
}

.confirmation-steps {
    padding-left: 1.25rem;
    list-style: decimal;
}

.confirmation-nav {
    margin-top: 1.5rem;
}

/* ================================================
   BUTTONS (public-spezifisch)
   ================================================ */
.public-page .btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
}

.public-page .btn-primary { background: #d6c9a8; color: #3a3228; }
.public-page .btn-success  { background: #d6c9a8; color: #3a3228; }
.public-page .btn-danger   { background: #a55050; color: white; }

.public-page .btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(42,77,63,0.25);
}

html.dark-theme .public-page .btn-primary { background: #2a2a2a; color: #e8e8e8; border: 1px solid #555555; }
html.dark-theme .public-page .btn-success  { background: #2a2a2a; color: #e8e8e8; border: 1px solid #555555; }
html.dark-theme .public-page .btn-danger   { background: #3a1f1f; color: #e8e8e8; border: 1px solid #555555; }

.public-page .btn-register {
    background: #2a4d3f;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 8px;
    letter-spacing: 0.02em;
    justify-content: center;
}

.public-page .btn-register:hover {
    background: #1f3a2f;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(42,77,63,0.3);
}

html.dark-theme .public-page .btn-register {
    background: #d0d0d0;
    color: #111111;
    border: none;
}

/* ================================================
   HILFSTEXTE
   ================================================ */
.text-muted  { color: var(--color-text-muted); }
.text-small  { font-size: 0.85rem; }
.section-divider { border: none; border-top: 1px solid var(--color-border); margin: 32px 0; }

/* ================================================
   ACCORDION (details/summary) — exklusiv, +/− links
   ================================================ */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}

.accordion-group details {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-group details[open] {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.accordion-group details summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

.accordion-group details summary::-webkit-details-marker {
    display: none;
}

.accordion-group details summary::before {
    content: '+';
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary);
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    transition: background 0.2s ease, color 0.2s ease;
}

.accordion-group details[open] summary::before {
    content: '−';
    background: var(--color-primary);
    color: #fff;
}

.accordion-group details .details-body {
    padding: 16px 16px 16px calc(16px + 2.25rem + 14px);
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   NAV KONTAKT-WIDGET
   ================================================ */
.nav-contact-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 1.2rem;
    color: #1f2937;
    text-align: left;
    transition: background 0.2s;
    width: 100%;
}

.nav-contact-toggle:hover {
    background: #e2e8f0;
}

.nav-contact {
    padding: 6px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-contact__select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1f2937;
    background: #f8f8f8;
    cursor: pointer;
}

.nav-contact__result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.nav-contact__address {
    flex: 1;
    color: #1f2937;
    word-break: break-all;
}

.nav-contact__icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    padding: 2px 4px;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-contact__icon:hover {
    color: #2a4d3f;
}

/* ================================================
   DROP-MODAL (Startseite, Footer-Symbol)
   ================================================ */
.site-footer__intern-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drop-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #fff;
    opacity: 0.32;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
}

.drop-trigger:hover,
.drop-trigger:focus-visible {
    opacity: 0.78;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.drop-trigger svg { display: block; }

.drop-modal[hidden] { display: none !important; }

.drop-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.drop-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 14, 0.52);
}

.drop-modal__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 680px);
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 22px 22px 20px;
}

.drop-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drop-modal__close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.drop-modal__kicker {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 4px;
}

.drop-modal__title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--color-primary);
}

.drop-modal__lead {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.drop-modal__admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(42, 77, 63, 0.09);
    border-radius: 999px;
    padding: 3px 10px;
    margin: 0 0 14px;
}

.drop-modal__admin[hidden] {
    display: none !important;
}

html.dark-theme .drop-modal__admin {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.drop-modal__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-shrink: 0;
}

.drop-modal__actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.drop-modal__err {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #a55050;
}

.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 148px;
    padding: 20px 16px;
    flex-shrink: 0;
    border: 1.5px dashed var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
    cursor: pointer;
    text-align: center;
    color: var(--color-text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s, min-height 0.15s;
}

.drop-zone.is-compact {
    min-height: 72px;
    padding: 10px 12px;
    gap: 2px;
}

.drop-zone.is-compact svg { display: none; }

.drop-zone:hover,
.drop-zone.is-over {
    border-color: var(--color-primary);
    background: rgba(42, 77, 63, 0.06);
    color: var(--color-primary);
}

html.dark-theme .drop-zone:hover,
html.dark-theme .drop-zone.is-over {
    background: rgba(255, 255, 255, 0.04);
}

.drop-zone svg {
    color: var(--color-primary);
    margin-bottom: 4px;
}

.drop-zone__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.drop-zone__sub { font-size: 0.82rem; }

.drop-files {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 11.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    scrollbar-gutter: stable;
}

.drop-files li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 0.84rem;
}

.drop-files li.is-bad {
    border-color: #e8c4c4;
    background: #fdf6f6;
}

.drop-files__kind {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e8efe9;
    color: #2a4d3f;
}

.drop-files li.is-bad .drop-files__kind {
    background: #f3d6d6;
    color: #a55050;
}

.drop-files__meta { flex: 1; min-width: 0; }

.drop-files__name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-files__size {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.drop-files__rm {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.drop-files__rm:hover { color: #a55050; }

.drop-success {
    text-align: center;
    padding: 8px 0 4px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.drop-success svg {
    color: #4a8c60;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.drop-success__groups {
    text-align: left;
    margin-top: 8px;
    max-height: 14rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.drop-success__group {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    padding: 8px 10px;
    margin-bottom: 8px;
}

.drop-success__group:last-child { margin-bottom: 0; }

.drop-success__group-h {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
}

.drop-success__group-dest {
    margin: 0 0 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.drop-success ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.drop-success li {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-border);
}

.drop-success li:last-child { border-bottom: 0; }

.drop-lock { text-align: center; padding: 12px 8px 4px; }

.drop-lock svg {
    color: #a55050;
    margin-bottom: 8px;
}

.drop-modal .panel {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drop-modal .panel[hidden] { display: none !important; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .site-header__inner { padding: 0 16px; }

    .site-hero { height: 180px; max-width: 100%; margin: 0; border-radius: 0; }

    .site-main { padding: 20px 4px; }
}

/* ── Abstimmung-Leiste unten (Event-Tag / ?abstimmung=1) ── */
.has-abstimmung-bar .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.abstimmung-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding: .6rem max(.75rem, env(safe-area-inset-right, 0px))
             calc(.6rem + env(safe-area-inset-bottom, 0px))
             max(.75rem, env(safe-area-inset-left, 0px));
    background: var(--color-bg-nav);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
}
.abstimmung-bar__inner {
    max-width: 800px;
    margin: 0 auto;
}
.abstimmung-bar__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    background: #4a7fa5;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.abstimmung-bar__cta:hover,
.abstimmung-bar__cta:focus-visible {
    background: #3d6d8f;
    color: #ffffff;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    text-decoration: none;
}
