:root {
    --bg-color: #050704;
    --card-bg: rgba(18, 25, 16, 0.7);
    --primary-color: #55A739;
    --primary-glow: rgba(85, 167, 57, 0.3);
    --text-color: #FAFAFA;
    --text-muted: #B3C0AF;
    --border-color: rgba(56, 79, 48, 0.5);
    --input-bg: #111a11;
    --header-height: 60px;
    --transition: all 0.2s ease;
}

body.light-mode {
    --bg-color: #F2F4F1;
    --card-bg: #FFFFFF;
    --text-color: #121910;
    --text-muted: #5A6B56;
    --border-color: #D1D9CD;
    --input-bg: #F9FAF9;
    --primary-glow: rgba(85, 167, 57, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-color); color: var(--text-color); font-size: 0.8rem; line-height: 1.4; overflow-x: hidden; }

.reveal { opacity: 0; transform: translateY(10px); transition: 0.4s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 768px) { .container { padding: 0 1rem; } }

header { height: var(--header-height); background: rgba(5,7,4,0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1rem; font-weight: 800; color: var(--primary-color); text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 1.2rem; }
nav a { text-decoration: none; color: var(--text-muted); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }

.main-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding-bottom: 60px; max-width: 1300px; margin: 0 auto; }

/* Sidebar */
.contact-sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-section { background: var(--card-bg); padding: 1.2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 0.8rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.sidebar-section h3 { font-size: 0.85rem; margin-bottom: 1rem; }

.contact-item { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; }
.icon-modern { color: var(--primary-color); flex-shrink: 0; margin-top: 1px; }
.icon-modern svg { width: 16px; height: 16px; }

.contact-item h4 { font-size: 0.6rem; color: var(--primary-color); text-transform: uppercase; margin-bottom: 0.1rem; }
.contact-item p { font-size: 0.8rem; color: var(--text-color); font-weight: 500; }

.info-tag {
    display: inline-block;
    background: rgba(85, 167, 57, 0.15);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.btn-outline-map { 
    border: 1px solid var(--border-color); 
    color: var(--text-color); 
    width: 100%; 
    padding: 0.7rem; 
    border-radius: 8px; 
    background: transparent; 
    font-size: 0.75rem; 
    font-weight: 800; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.6rem; 
}
.btn-outline-map svg { width: 16px !important; height: 16px !important; color: var(--primary-color); flex-shrink: 0; }

/* Slider Section */
.hall-slider-container { position: relative; width: 100%; margin-bottom: 1.5rem; }
.hall-slider-wrapper { overflow: hidden; width: 1008px; padding-top: 10px; }
.hall-slider { display: flex; gap: 16px; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

.hall-card {
    min-width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 290px; /* SHORTER */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hall-card.active { border-color: var(--primary-color); background: rgba(85, 167, 57, 0.05); }
.hall-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }

.card-icon-box { height: 40px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: flex-start; color: var(--primary-color); }
.card-icon-box svg { width: 36px; height: 36px; stroke-width: 2.5; }

.hall-content h3 { font-size: 0.95rem; margin-bottom: 0.6rem; font-weight: 800; line-height: 1.2; }
.hall-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 1rem; }

.btn-select-card {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.hall-card:hover .btn-select-card, .hall-card.active .btn-select-card { border-color: var(--primary-color); background: var(--primary-color); color: white; }

/* Arrows */
.slider-arrow {
    background: #0d120d;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 5px rgba(85, 167, 57, 0.2);
}
.slider-arrow:hover {
    background: var(--primary-color);
    color: black;
    box-shadow: 0 0 15px var(--primary-glow);
}
.arrow-right:hover i, .arrow-right:hover svg { transform: translateX(3px); }
.arrow-left:hover i, .arrow-left:hover svg { transform: translateX(-3px); }

.slider-arrow svg, .slider-arrow i { transition: transform 0.3s ease; }
.arrow-left { left: -19px; }
.arrow-right { right: -19px; }

/* Form */
.embedded-form-narrow {
    width: 1008px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
#form-title { font-size: 1rem; font-weight: 800; }
#form-subtitle { font-size: 0.75rem; }

.konfigurator-teaser {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    text-align: right;
}
.konfigurator-teaser p {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-color);
}
.btn-config-small { 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color); 
    padding: 0.6rem 1.2rem; 
    border-radius: 10px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    background: rgba(85, 167, 57, 0.05); 
    cursor: pointer; 
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-config-small:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }

input, select, textarea {
    background: var(--input-bg); border: 1px solid var(--border-color); padding: 0.7rem; border-radius: 8px;
    color: white; font-size: 0.8rem; font-family: inherit;
    transition: var(--transition);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355A739' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.fieldset-group { border: 1px solid var(--border-color); border-radius: 12px; padding: 1.2rem; margin-top: 1.2rem; position: relative; }
.fieldset-label { position: absolute; top: -8px; left: 12px; background: #0b110b; padding: 0 8px; font-size: 0.6rem; color: var(--primary-color); font-weight: 900; }

/* PUR Layout Fixes */
.radio-grid-row, .radio-grid-6, .action-grid-2 { display: grid; gap: 0.6rem; }
.radio-grid-row { grid-template-columns: repeat(3, 1fr); }
.radio-grid-6 { grid-template-columns: repeat(6, 1fr); }
.action-grid-2 { grid-template-columns: repeat(2, 1fr); }

.radio-item-modern {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 45px;
    user-select: none;
    transition: transform 0.1s ease, border-color 0.2s ease;
}
.radio-item-modern:hover {
    border-color: var(--primary-color);
    background: rgba(85, 167, 57, 0.05);
}
.radio-item-modern input[type="radio"] { 
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}
.radio-dot { display: none; }

/* Instant feedback without transition for color */
.radio-item-modern:has(input[type="radio"]:checked) {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}
.radio-item-modern input[type="radio"]:checked ~ span {
    color: white !important;
}
.radio-item-modern span {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}
.radio-item-modern:active { transform: scale(0.97); }

.action-item-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.action-item-modern:hover {
    border-color: var(--primary-color);
    background: rgba(85, 167, 57, 0.05);
    border-style: solid;
}
.action-item-modern svg { width: 18px; height: 18px; color: var(--primary-color); }
.action-item-modern span { font-size: 0.8rem; font-weight: 800; color: var(--text-color); }

.info-boxes-row { display: flex; gap: 1rem; align-items: flex-end; }
.info-box {
    flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    padding: 0.6rem; border-radius: 8px; display: flex; flex-direction: column; gap: 0.2rem;
}
.info-label { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; }
.info-value { font-size: 0.85rem; color: var(--text-color); font-weight: 800; }

/* Comprehensive Responsive Overhaul */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; padding: 0 1rem; }
    .contact-sidebar { 
        position: relative; top: 0; width: 100%; 
        display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; 
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    header { padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(5,7,4,0.9); backdrop-filter: blur(10px); }
    body { padding-top: 80px; }
    
    .nav-container { flex-direction: column; gap: 0.8rem; }
    nav ul { display: flex; gap: 1rem; font-size: 0.7rem; }
    .btn-primary-small { font-size: 0.65rem; padding: 0.4rem 1rem; }

    .contact-sidebar { grid-template-columns: 1fr; }
    
    .hall-slider-container { margin: 0 -1rem; position: relative; }
    .hall-slider { 
        display: flex; 
        overflow-x: scroll; 
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    .hall-slider::-webkit-scrollbar { display: none; }
    .hall-card { 
        flex: 0 0 280px; 
        scroll-snap-align: center;
        margin: 0;
    }
    .slider-arrow { display: none; } /* Hide arrows on mobile touch */

    .form-row { grid-template-columns: 1fr; gap: 1rem; }
    .radio-grid-3, .radio-grid-6, .action-grid-2 { grid-template-columns: 1fr; gap: 0.5rem; }
    .info-boxes-row { flex-direction: column; gap: 0.5rem; }
    .form-actions { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }
    nav ul { gap: 0.5rem; }
    
    .embedded-form-narrow { padding: 1.2rem; margin: 0; border-radius: 0; border-left: none; border-right: none; }
    .form-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    
    .hall-card { flex: 0 0 85%; }
}

/* Global Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background: #468c2e;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(85, 167, 57, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary-small { 
    background: var(--primary-color); 
    color: white; 
    padding: 0.5rem 1.2rem; 
    font-size: 0.75rem; 
    border-radius: 8px; 
    font-weight: 800; 
    text-decoration: none; 
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-primary-small:hover { 
    background: #468c2e; 
    box-shadow: 0 0 15px var(--primary-glow); 
}


@media (max-width: 1300px) {
    .main-layout { grid-template-columns: 1fr; }
    .hall-slider-wrapper, .embedded-form-narrow { width: 100%; }
    .slider-arrow { display: none; }
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { color: var(--primary-color); transform: scale(1.1); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Light Mode Styles */
body.light-mode .hall-card { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.light-mode .sidebar-section { background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
body.light-mode header { background: rgba(255,255,255,0.95); border-bottom: 1px solid #e2e8f0; }
body.light-mode .logo { color: var(--primary-color); }
body.light-mode nav a { color: #444; }
body.light-mode nav a:hover { color: var(--primary-color); }
body.light-mode .embedded-form-narrow { background: white; }
body.light-mode .slider-arrow { background: white; border-color: #d1d9cd; }
body.light-mode .slider-arrow:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; }
body.light-mode .radio-item-modern span, 
body.light-mode .radio-item-modern label { color: var(--text-color); font-weight: 700; }

body.light-mode .radio-item-modern input:checked ~ span,
body.light-mode .radio-item-modern input:checked ~ label { 
    color: #ffffff !important; 
    font-weight: 800 !important;
}
body.light-mode .fieldset-label { background: var(--primary-color); color: white; padding: 2px 10px; border-radius: 4px; }
body.light-mode .info-box:hover { border-color: var(--primary-color); background: white; }
body.light-mode .action-item-modern:hover { border-color: var(--primary-color); background: white; }
