/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.support-body {
    background-color: #090d16;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

/* Navbar */
.navbar {
    background-color: #050811;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.menu-btn { width: 28px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 1001; }
.menu-btn .bar { width: 100%; height: 3px; background-color: #38bdf8; border-radius: 2px; transition: all 0.3s ease; }
.menu-btn.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; }
.menu-btn.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.logo { height: 32px; width: auto; cursor: pointer; }
.nav-center { flex-grow: 1; max-width: 450px; margin: 0 20px; }
.search-input { width: 100%; padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.4); outline: none; background-color: #0f172a; color: white; font-size: 0.9rem; }
.nav-right { display: flex; align-items: center; gap: 15px; }
.icon-link, .profile-icon { display: flex; align-items: center; cursor: pointer; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #050811;
    transition: left 0.3s ease;
    z-index: 999;
    border-right: 1px solid rgba(56, 189, 248, 0.2);
}
.sidebar.active { left: 0; }
.sidebar ul { list-style: none; padding: 20px; }
.sidebar ul li { margin-bottom: 12px; }
.sidebar ul li a { color: #94a3b8; text-decoration: none; font-size: 16px; display: block; padding: 6px 10px; border-radius: 6px; }
.sidebar ul li a:hover, .sidebar ul li a.active { background-color: #0f172a; color: #38bdf8; }

/* Main Area - Flexibel & Breit */
.page-content {
    flex: 1;
    padding-top: 75px;
    padding-bottom: 20px;
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Section */
.support-hero {
    text-align: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
}

.support-hero h1 {
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Support Layout Grid */
.support-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

/* Formular & FAQ Style */
.ticket-section, .faq-section {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-section h2, .faq-section h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.badge-beta {
    font-size: 0.75rem;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
}

.section-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1e293b;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.readonly-input {
    background: #090d16 !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    padding: 11px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.9; }

.form-status-msg {
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.form-status-msg.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    background: #1e293b;
}

.faq-question {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-toggle { font-size: 1.1rem; color: #38bdf8; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    background: #0f172a;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    padding: 10px 15px;
}

.faq-answer p { font-size: 0.85rem; color: #cbd5e1; line-height: 1.4; }

/* Direct Contact Box */
.direct-contact-box {
    margin-top: 15px;
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid #38bdf8;
    padding: 12px;
    border-radius: 0 6px 6px 0;
}

.direct-contact-box h3 { font-size: 0.9rem; color: #38bdf8; margin-bottom: 4px; }
.direct-contact-box p { font-size: 0.82rem; color: #94a3b8; }
.not-available { color: #ef4444; font-style: italic; font-weight: 600; }

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #64748b;
    background-color: #050811;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    margin-top: auto;
}

/* Erlaubt normales Scrollen für das Impressum */
body.impressum-body {
    background-color: #090d16;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    overflow-y: auto !important; /* Aktiviert das Scrollen */
}

/* Platzierung des Inhalts im Impressum */
body.impressum-body .page-content {
    height: auto !important;
    max-height: none !important;
    margin-bottom: 40px;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================== */

/* Für Desktop (Kein Scrollen auf großen Bildschirmen) */
@media (min-width: 1024px) {
    html, body {
        height: 100vh;
        overflow: hidden;
    }
    
    .page-content {
        height: calc(100vh - 40px);
    }
}

/* Für Tablets & kleinere Bildschirme (Einspaltig + Normales Scrollen) */
@media (max-width: 1023px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }

    .support-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-content {
        width: 95%;
        padding-top: 70px;
    }

    .support-hero h1 {
        font-size: 1.6rem;
    }
}

/* Für Smartphones */
@media (max-width: 600px) {
    .nav-center { display: none; } /* Versteckt Suchleiste in Navbar auf Mobilgeräten */
    
    .ticket-section, .faq-section {
        padding: 16px;
    }

    .support-hero h1 {
        font-size: 1.4rem;
    }
}