/* Captive-IT - Modern Discord-inspired Design */

/* Tarteaucitron Cookie-Consent Styling */
#tarteaucitronRoot {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

#tarteaucitron {
    z-index: 10000 !important;
}

#tarteaucitronRoot #tarteaucitronAlertSmall {
    /* Kompakte Darstellung statt Ausblenden,
       damit Erstbesucher immer ein Element sehen */
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    z-index: 10050 !important;
}

#tarteaucitronRoot #tarteaucitronAlertSmall button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

#tarteaucitronRoot #tarteaucitronAlertSmall button:hover {
    background: var(--primary-hover) !important;
}

#tarteaucitronRoot #tarteaucitron {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronTitle {
    color: var(--text-primary) !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronName {
    color: var(--text-secondary) !important;
}

#tarteaucitronRoot #tarteaucitron button {
    background: var(--primary-color) !important;
    color: white !important;
}

#tarteaucitronRoot #tarteaucitron button:hover {
    background: var(--primary-hover) !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronDeny {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronDeny:hover {
    background: var(--bg-primary) !important;
}

/* Tarteaucitron: Panel-Overlay abschwächen/entfernen (kein weißer Schleier) */
#tarteaucitronRoot .tarteaucitron-overlay,
#tarteaucitronRoot .tarteaucitronOverlay,
#tarteaucitronRoot .tarteaucitronBack,
#tarteaucitronRoot .tarteaucitron-screen {
    background: transparent !important;
}
/* Häufig genutzte ID-Namen des Overlays ebenfalls neutralisieren */
#tarteaucitronRoot #tarteaucitronOverlay,
#tarteaucitronRoot #tarteaucitronBack {
    background: transparent !important;
}
/* Verhindere, dass Overlays Klicks abfangen */
#tarteaucitronRoot .tarteaucitron-overlay,
#tarteaucitronRoot .tarteaucitronOverlay,
#tarteaucitronRoot .tarteaucitronBack,
#tarteaucitronRoot .tarteaucitron-screen,
#tarteaucitronRoot #tarteaucitronOverlay,
#tarteaucitronRoot #tarteaucitronBack {
    pointer-events: none !important;
}
/* Panel selbst soll natürlich klickbar sein */
#tarteaucitronRoot #tarteaucitron {
    pointer-events: auto !important;
    z-index: 999999 !important;
    position: relative;
}

:root {
    --cookie-overlay-bg: rgba(0, 0, 0, 0.65);
}

/* Vollbild-Overlay, blockiert Interaktion bis Consent */
#cookie-consent-blocker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cookie-overlay-bg);
    backdrop-filter: blur(2px);
    z-index: 900; /* deutlich unter dem Panel */
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

#cookie-consent-blocker .inner {
    max-width: 620px;
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
}

#cookie-consent-blocker .inner h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

#cookie-consent-blocker .inner p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

#cookie-consent-blocker .btn-open-consent {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

#cookie-consent-blocker .btn-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

#cookie-consent-blocker .btn-accept-all {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

#cookie-consent-blocker .btn-decline-all {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

:root {
    --primary-color: #5865F2;
    --primary-hover: #4752C4;
    --bg-primary: #23272A;
    --bg-secondary: #2C2F33;
    --bg-tertiary: #36393F;
    --text-primary: #FFFFFF;
    --text-secondary: #DCDDDE;
    --text-muted: #72767D;
    --success: #23A55A;
    --border: #202225;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Navigation */
.navbar {
    background: rgba(32, 34, 37, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px var(--shadow);
}

.navbar.scrolled {
    background: rgba(32, 34, 37, 0.98) !important;
    box-shadow: 0 8px 16px var(--shadow);
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    display: block;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.25rem;
    border-radius: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-secondary);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(88, 101, 242, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #DCDDDE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-outline-light {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(88, 101, 242, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
}

/* Preise Section */
#preise {
    background: var(--bg-secondary);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.price-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.2);
}

.price-card:hover::before {
    transform: scaleX(1);
}

.price-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.price-card .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer h5, .footer h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 0.25rem 0;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .text-muted {
    color: var(--text-muted) !important;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Content */
.page-content {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
}

.page-content h1 {
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.page-content h2, .page-content h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Form Controls für dunkles Design */
.form-control-dark {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.form-control-dark:focus {
    background: var(--bg-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.25) !important;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image svg {
        max-width: 300px;
    }
    
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .admin-logo {
        height: 45px;
    }
}

/* Admin Panel Styles */
.admin-logo {
    height: 55px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-brand:hover .admin-logo {
    opacity: 1;
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--bg-primary);
}

.admin-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}
