/* ============================================================
   Feuerwehrball – "Feuer & Flamme"
   ============================================================ */

:root {
    --bg:          #100c0a;   /* tiefes Anthrazit-Schwarz */
    --bg-elev:     #1a1310;   /* erhöhte Flächen */
    --ember:       #ff6a1a;   /* Glut-Orange */
    --flame:       #c1121f;   /* tiefes Feuerrot */
    --gold:        #f5b921;   /* warmes Gold */
    --text:        #f4ece4;   /* warmes Off-White */
    --text-muted:  #b3a79c;   /* gedämpft */
    --line:        rgba(245, 185, 33, 0.18);
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accent { color: var(--ember); }
.gold   { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    background: linear-gradient(135deg, var(--flame), var(--ember));
    border: none;
    border-radius: 999px;
    padding: 1rem 2.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 106, 26, 0.35);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 106, 26, 0.55);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
    background: rgba(16, 12, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.brand .flame-icon { width: 26px; height: 26px; color: var(--ember); }

/* Emblem: rund, mit warmem Gold-Ring und leichtem Glut-Schein */
.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(245, 185, 33, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.08),
                0 6px 18px rgba(0, 0, 0, 0.55);
    flex: none;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(255, 106, 26, 0.14),
                0 8px 22px rgba(255, 106, 26, 0.35);
}

/* Wortmarke */
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .brand-motto {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    /* Warmer Gold-zu-Glut-Verlauf als Textfüllung */
    background: linear-gradient(100deg, var(--gold) 0%, #ff8a3d 55%, var(--ember) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.brand-name .brand-motto .amp {
    font-style: italic;
    -webkit-text-fill-color: var(--ember);
    color: var(--ember);
    padding: 0 0.1em;
}
.brand-name .brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.site-footer .brand-logo { width: 52px; height: 52px; }
.site-footer .brand-name .brand-motto { font-size: 1.4rem; }

@media (max-width: 520px) {
    .brand-name .brand-motto { font-size: 1.25rem; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name .brand-sub { letter-spacing: 0.32em; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('hero-fire.png') center bottom / cover no-repeat;
    opacity: 0.85;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(16,12,10,0.85) 0%,
        rgba(16,12,10,0.45) 45%,
        rgba(16,12,10,0.75) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.hero h1 {
    font-size: clamp(3.2rem, 11vw, 8rem);
    letter-spacing: 0.01em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero h1 .amp {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.hero .subtitle {
    max-width: 620px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.15rem;
    color: var(--text-muted);
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--ember); }

/* ---------- Section base ---------- */
.section { padding: 6rem 0; position: relative; }
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    text-align: center;
}
.section-lead {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ---------- About ---------- */
.about { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-text p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    padding: 0.1em 0.12em 0 0;
    color: var(--ember);
}

/* ---------- Details cards ---------- */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.detail-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.detail-card:hover { transform: translateY(-4px); border-color: var(--ember); }
.detail-card .icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255, 106, 26, 0.12);
    color: var(--ember);
    margin-bottom: 1.2rem;
}
.detail-card .icon svg { width: 24px; height: 24px; }
.detail-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.detail-card p { color: var(--text-muted); font-size: 0.98rem; }
.detail-card .highlight { color: var(--gold); font-weight: 600; }

/* ---------- Program timeline ---------- */
.program { background: var(--bg-elev); border-top: 1px solid var(--line); }
.timeline {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--ember);
    font-weight: 600;
}
.timeline-desc h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.timeline-desc p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA / Contact ---------- */
.cta { text-align: center; padding: 7rem 0; position: relative; overflow: hidden; }
.cta::before {
    content: '';
    position: absolute; inset: 0;
    background: url('ember-texture.png') center / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }
.cta p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.site-footer .brand { justify-content: center; margin-bottom: 0.8rem; font-size: 1.2rem; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 6, 5, 0.75);
    backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
    width: 100%;
    max-width: 520px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2 { font-size: 2rem; margin-bottom: 0.3rem; }
.modal .modal-lead { color: var(--text-muted); margin-bottom: 1.8rem; font-size: 0.98rem; }
.modal-close {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(255, 106, 26, 0.2); }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ember);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Honeypot – für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Captcha */
.captcha-row { display: flex; align-items: flex-end; gap: 0.8rem; }
.captcha-row .form-group { flex: 1; margin-bottom: 0; }
.captcha-question {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--gold);
    min-width: 92px;
    justify-content: center;
    white-space: nowrap;
}
.captcha-reload {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer; flex: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.captcha-reload:hover { color: var(--ember); border-color: var(--ember); }
.captcha-reload svg { width: 18px; height: 18px; }

.modal .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-message {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 260px;
    overflow-y: auto;
    text-align: left;
}
.form-message.success {
    display: block;
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.4);
    color: #7ee787;
}
.form-message.error {
    display: block;
    background: rgba(193, 18, 31, 0.15);
    border: 1px solid rgba(193, 18, 31, 0.5);
    color: #ff9b9b;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
    .details-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1.2fr 1fr; }
}
