/* =========================================
   styles/style.css
   Frontend-Styles (ohne Toast/Animation-Duplikate)
========================================= */

:root {
    --green-deep: #0a1f14;
    --green-dark: #0d2818;
    --green-mid: #1f5130;
    --green-soft: #4a9d5f;
    --green-neon: #5cb874;
    --off-white: #f4f1ea;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .22);
    --muted: rgba(255, 255, 255, .58);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--green-deep);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--green-soft);
    color: #fff;
}

.mono {
    font-family: 'Inter', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

a {
    color: inherit;
}

/* ----- NAVIGATION ----- */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 31, 20, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

nav .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    display: inline-flex;
    align-items: center;
    height: 46px;
}

nav .logo img {
    height: 46px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

nav ul a {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: color .2s;
}

nav ul a:hover {
    color: var(--green-neon);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media(max-width:820px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--green-deep);
        padding: 18px;
        gap: 14px;
        border-bottom: 1px solid var(--line);
    }

    nav ul.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }
}

/* ----- HERO ----- */
header.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
    padding-block: clamp(60px, 9vw, 120px);
    /* ← nur oben/unten */
}

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

.eyebrow {
    color: var(--muted);
    margin-bottom: 26px;
}

h1.title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: .94;
    letter-spacing: -.04em;
    margin-bottom: 22px;
    text-transform: uppercase;
}

h1.title em {
    font-style: normal;
    color: var(--green-soft);
}

.tagline {
    color: var(--muted);
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    text-decoration: none;
    border: 1px solid var(--line-strong);
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: all .25s;
    font-family: inherit;
}

.btn:hover {
    background: #fff;
    color: var(--green-deep);
}

.btn.primary {
    background: #fff;
    color: var(--green-deep);
    border-color: #fff;
}

.btn.primary:hover {
    background: transparent;
    color: #fff;
}

.btn.disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

/* ----- COUNTDOWN ----- */
.countdown-box {
    border: 1px solid var(--line-strong);
    padding: 32px;
    background: rgba(0, 0, 0, .15);
    position: relative;
}

.countdown-box .cap {
    position: absolute;
    top: -10px;
    left: 28px;
    background: var(--green-deep);
    padding: 0 12px;
    font-size: 10px;
    color: var(--muted);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cd-item {
    text-align: center;
    border-right: 1px solid var(--line);
}

.cd-item:last-child {
    border-right: none;
}

.cd-val {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cd-lbl {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
}

/* ----- FACTS ----- */
.facts {
    border-bottom: 1px solid var(--line);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

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

.fact {
    padding: 32px clamp(18px, 3vw, 32px);
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.fact:last-child {
    border-right: none;
}

.fact .k {
    color: var(--green-neon);
    margin-bottom: 10px;
}

.fact .v {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.fact .v strong {
    color: #fff;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

/* ----- SECTIONS ----- */
section.block {
    padding: clamp(60px, 8vw, 110px) 0;
    border-bottom: 1px solid var(--line);
}

.sec-head {
    margin-bottom: 48px;
    max-width: 680px;
}

.sec-head .eyebrow {
    color: var(--green-neon);
    margin-bottom: 18px;
}

.sec-head h2 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.sec-head h2 em {
    font-style: normal;
    color: var(--green-soft);
}

.sec-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

/* ----- BEWERBE ----- */
.bewerbe {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

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

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

.bewerb {
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}

.bewerb:hover {
    background: rgba(255, 255, 255, .04);
}

.bewerb .n {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    color: var(--green-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bewerb h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 21px;
    margin: 12px 0 10px;
}

.bewerb .t {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.bewerb .p {
    color: var(--green-neon);
    margin-top: 12px;
    font-size: 11px;
}

.note {
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.7;
}

/* ----- FORMULAR ----- */
.form-section {
    background: var(--off-white);
    color: var(--green-deep);
}

.form-section .eyebrow {
    color: var(--green-mid);
}

.form-section h2 em {
    color: var(--green-mid);
}

.form-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
    margin-top: 48px;
}

@media(max-width:900px) {
    .form-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

form {
    display: grid;
    gap: 26px;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.field label {
    font-family: 'Inter', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 500;
    color: var(--green-mid);
    margin-bottom: 8px;
    display: block;
}

.field input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 40, 24, .25);
    padding: 10px 0;
    color: var(--green-deep);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color .3s;
}

.field input:focus {
    border-bottom-color: var(--green-deep);
}

.field input.valid {
    border-bottom-color: var(--green-neon);
}

.field input.invalid {
    border-bottom-color: #7a2222;
}

.bewerb-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
    margin-top: 6px;
}

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

.bewerb-checks label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14.5px;
    color: rgba(13, 40, 24, .85);
    padding: 6px 0;
    border-bottom: 1px solid rgba(13, 40, 24, .08);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin: 0;
}

.bewerb-checks input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--green-mid);
    margin-top: 3px;
    flex-shrink: 0;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(13, 40, 24, .7);
    cursor: pointer;
    line-height: 1.5;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    /* ← Checkbox darf NICHT schrumpfen */
    accent-color: var(--green-mid);
    cursor: pointer;
}

.check>span {
    flex: 1 1 auto;
    /* ← Text darf wachsen & umbrechen */
    min-width: 0;
    /* ← Wichtig für sauberes Umbruch-Verhalten */
}

.check a {
    color: var(--green-mid);
    text-decoration: underline;
}

.submit {
    font-size: 14px;
    font-weight: 500;
    padding: 16px 32px;
    background: var(--green-deep);
    color: var(--off-white);
    border: 1px solid var(--green-deep);
    justify-self: start;
    cursor: pointer;
    transition: all .25s;
    font-family: inherit;
}

.submit:hover {
    background: transparent;
    color: var(--green-deep);
}

.submit:disabled {
    opacity: .5;
    cursor: default;
}

/* ----- SIDEBAR (Nenngeld) ----- */
aside.side {
    border: 1px solid rgba(13, 40, 24, .15);
    padding: 32px;
}

aside.side h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 18px;
}

aside.side .li {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid rgba(13, 40, 24, .1);
    font-size: 15px;
}

aside.side .li:last-of-type {
    border-bottom: none;
}

aside.side .li b {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
}

aside.side .small {
    font-size: 13px;
    color: rgba(13, 40, 24, .6);
    margin-top: 24px;
    line-height: 1.6;
}

/* ----- NENNSTAND ----- */
.stand-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.stand-top .btn {
    padding: 12px 22px;
    font-size: 13px;
}

.stand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

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

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

.stand-card {
    padding: 28px 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stand-card h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 4px;
}

.stand-card .sub {
    font-size: 13px;
    color: var(--muted);
}

.stand-card .count {
    font-family: 'Archivo', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: var(--green-neon);
    margin: 14px 0;
}

.stand-card .count small {
    font-size: 14px;
    color: var(--muted);
    margin-left: 6px;
}

/* Progress-Bar für Nennstand */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 12px 0 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--green-neon);
    transition: width 0.5s ease-out;
}

.progress-fill.full {
    background: #d4a017;
}

.stand-card ol {
    list-style: none;
    counter-reset: item;
}

.stand-card li {
    counter-increment: item;
    font-size: 13.5px;
    padding: 7px 0;
    color: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.stand-card li::before {
    content: counter(item, decimal-leading-zero);
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    width: 22px;
    flex-shrink: 0;
}

.stand-card li:last-child {
    border-bottom: none;
}

.stand-card li .verein {
    color: var(--muted);
    font-size: 12px;
    margin-left: auto;
}

.stand-card li.wait::before {
    color: #d4a017;
}

.stand-card li.wait {
    color: rgba(255, 255, 255, .55);
}

.stand-card .wait-hd {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #d4a017;
    margin: 14px 0 4px;
}

.stand-empty {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 0;
}

.stand-meta {
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
}

/* ----- ERGEBNISSE / FILES ----- */
.current-files {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.file-card {
    border: 1px solid var(--line-strong);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(0, 0, 0, .15);
    min-width: 0;
    overflow-wrap: break-word;
}

.file-card .btn {
    max-width: 100%;
    white-space: normal;
    /* Buttons dürfen umbrechen */
}

.file-card .k {
    color: var(--green-neon);
}

.file-card h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 22px;
}

.chip {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--line-strong);
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s;
}

.chip:hover {
    background: #fff;
    color: var(--green-deep);
}

.chip.off {
    opacity: .35;
    pointer-events: none;
}

/* ----- ARCHIV ----- */
.archive {
    border-top: 1px solid var(--line);
}

/* ----- KONTAKT ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
}

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

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--line);
    transition: opacity .2s, transform .2s;
    background: var(--green-dark);
}

.cblock {
    margin-bottom: 26px;
}

.cblock .k {
    color: var(--green-neon);
    margin-bottom: 6px;
}

.cblock .v {
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-weight: 300;
}

.cblock .v a {
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color .2s;
}

.cblock .v a:hover {
    border-color: #fff;
}

.venue {
    border: 1px solid var(--line);
    padding: 32px;
    background: rgba(0, 0, 0, .15);
}

.venue h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 14px;
}

.venue .addr {
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.map-wrap {
    aspect-ratio: 16/10;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--green-dark);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95);
}

/* ----- IMPRESSUM ----- */
.impressum {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 56px;
    max-width: 900px;
}

@media(max-width:680px) {
    .impressum {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.imp-block .k {
    color: var(--green-neon);
    margin-bottom: 8px;
}

.imp-block p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.imp-block p a {
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
}

.imp-block p a:hover {
    border-color: #fff;
}

/* ----- FOOTER ----- */
footer {
    border-top: 1px solid var(--line);
    padding: 50px 0 28px;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.foot .logo {
    height: 84px;
    width: auto;
    display: block;
}

.foot .meta {
    text-align: right;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

@media(max-width:600px) {
    .foot .meta {
        text-align: left;
    }
}

/* ----- LIGHTBOX (aus app.js ausgelagert) ----- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 15, 9, .94);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border: 1px solid var(--line-strong);
}

.lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 26px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
}

.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 0 22px;
    font-family: 'Archivo', sans-serif;
    opacity: .8;
    transition: opacity .2s;
}

.lightbox .lb-nav:hover {
    opacity: 1;
}

.lightbox .lb-prev {
    left: 8px;
}

.lightbox .lb-next {
    right: 8px;
}

.lightbox .lb-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.lb-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 24px;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 101;
}

/* Wenn Caption sichtbar ist */
.lb-caption.show {
    display: block;
}

/* ----- UTILITIES ----- */
.fade {
    animation: fade .7s ease both;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.loading {
    padding: 80px 0;
    text-align: center;
    color: var(--muted);
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
}

/* Sticky CTA für Mobile */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(10, 31, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 90;
    text-align: center;
}

.sticky-cta .btn {
    width: 100%;
    max-width: 400px;
}

@media(max-width: 820px) {
    .sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }
}

/* =========================================
   TOAST - FRONTEND
========================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.toast {
    padding: 16px 24px;
    background: var(--green-dark, #0d2818);
    color: #fff;
    font-size: 14px;
    border-left: 4px solid var(--green-neon, #5cb874);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: slideIn 0.3s ease forwards;
    border-radius: 8px;
    line-height: 1.5;
}

.toast.error {
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}