/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Dynamisch beweglicher Farbverlauf-Hintergrund */
body.bg-image-body {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #065f46, #1e293b, #311042);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Gradient Text */
.animated-gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #34d399, #38bdf8);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: moveGradient 6s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* Navbar */
.navbar {
    background-color: #0b0f19;
    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);
}

.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: white; 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: 36px; width: auto; cursor: pointer; }
.nav-center { flex-grow: 1; max-width: 450px; margin: 0 20px; }
.search-input { width: 100%; padding: 9px 18px; border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.4); outline: none; background-color: #161e2e; color: white; }
.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: #0b0f19;
    transition: left 0.3s ease;
    z-index: 999;
    border-right: 1px solid rgba(56, 189, 248, 0.3);
}
.sidebar.active { left: 0; }
.sidebar ul { list-style: none; padding: 20px; }
.sidebar ul li { margin-bottom: 15px; }
.sidebar ul li a { color: white; text-decoration: none; font-size: 18px; display: block; padding: 8px 12px; border-radius: 6px; }
.sidebar ul li a:hover, .sidebar ul li a.active { background-color: #161e2e; color: #38bdf8; }

/* Page Content */
.page-content {
    flex: 1;
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
}

/* Main Header Block & Install Button */
.main-header-block {
    text-align: center;
    margin-top: 10px;
}

.main-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.animated-btn {
    background: linear-gradient(90deg, #0284c7, #6366f1, #0d9488, #0284c7);
    background-size: 300% 100%;
    animation: moveGradient 5s linear infinite;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 36px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animated-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.7);
}

/* Große Powered by Banner-Überschrift (Nebeneinander) */
.powered-by-heading {
    display: flex;
    flex-direction: row; /* Ändert die Ausrichtung von untereinander zu nebeneinander */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Abstand zwischen Text und Logo */
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(56, 189, 248, 0.5);
    padding: 14px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.powered-text {
    font-size: 1.3rem;
    color: #94a3b8;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.nam-tv-logo-large {
    max-height: 50px; /* Leicht angepasst für optimale Höhe neben dem Text */
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Info Section Accordion */
.info-section, .card-section {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 5px;
}

.accordion-item {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.9);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: rgba(51, 65, 85, 0.95);
}

.toggle-icon {
    font-size: 0.85rem;
    color: #38bdf8;
    transition: transform 0.3s ease;
}

.accordion-item.collapsed .accordion-content {
    display: none;
}

.accordion-item:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px 18px;
    background: rgba(15, 23, 42, 0.7);
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Button Grids */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.action-btn {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    border: 1px solid rgba(56, 189, 248, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.unavailable-btn {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    cursor: not-allowed;
}

.unavailable-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
}

.alt-btn {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: #38bdf8;
}

.alt-btn:hover {
    background: rgba(56, 189, 248, 0.3);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.modal-box h3 {
    font-size: 1.4rem;
    color: #38bdf8;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.confirm-btn {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
}

.redirect-btn {
    background: #0284c7;
    color: white;
}

.redirect-btn:hover {
    background: #0369a1;
}

.cancel-btn {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #aaa;
    background-color: #0b0f19;
    margin-top: auto;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title { font-size: 1.8rem; }
    .powered-text { font-size: 1rem; }
    .nam-tv-logo-large { max-height: 50px; }
}

/* 1. Große Monitore / Extra Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 2. Normale Laptops & Desktop-Monitore */
@media (max-width: 1200px) {
    .page-content {
        width: 95%;
    }
}

/* 3. Tablets (Querformat) & kleinere Laptops */
@media (max-width: 992px) {
    .support-layout {
        grid-template-columns: 1fr; /* Wechsel von 2 auf 1 Spalte */
    }
}

/* 4. Tablets (Hochformat) */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100%; /* Vollbild-Menü auf Mobilgeräten */
    }
}

/* 5. Smartphones */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .nav-center {
        display: none; /* Suchleiste ausblenden für mehr Platz */
    }

    h1 {
        font-size: 1.5rem;
    }
}