/* --- 1. GRUNDLAGEN & VARIABLEN --- */
:root {
    --color-background: #020412;
    --color-surface: #0A192F;
    --color-text: #E0E0E0;
    --color-text-muted: #8892b0;
    --color-gold: #D4AF37;
    --color-gold-hover: #FFD700;
    --color-glow-blue: #00BFFF;
    --color-cyan: #64FFDA;
    --color-green: #00FF7F;
    --color-danger: #DC3545;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    overflow-x: hidden;
}


/* --- 2. ALLGEMEINE LAYOUT- & HELFERKLASSEN --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}


/* --- 3. GLOBALE KOMPONENTEN --- */

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}
.btn-gold {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}
.btn-gold:hover {
    background: var(--color-gold-hover);
    box-shadow: 0 0 15px var(--color-gold-hover);
}
.btn-ghost {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-ghost:hover {
    background: white;
    color: var(--color-background);
}
.btn-primary {
    background: var(--color-glow-blue);
    color: #000;
    border-color: var(--color-glow-blue);
}
.btn-danger {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}
.btn-link {
    background: rgba(0,191,255,0.1);
    color: var(--color-glow-blue);
    border-color: rgba(0,191,255,0.3);
}

/* FORMULARE */
.form-group { margin-bottom: 1.5rem; position: relative; }
label { display: block; margin-bottom: 0.5rem; color: var(--color-text-muted); }
.form-input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-background);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
}
.form-input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-glow-blue);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}
textarea { resize: vertical; min-height: 120px; }

/* KARTEN (CARDS) */
.card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    margin-bottom: 2rem;
}
.card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* TABELLEN (TABLES) */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,191,255,0.1);
}
th { color: var(--color-text-muted); }


/* --- 4. ÖFFENTLICH ZUGÄNGLICHE SEITEN --- */

/* HEADER & NAVIGATION */
header.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(2, 4, 18, 0.3);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header.main-nav .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}
header.main-nav nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
header.main-nav nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
header.main-nav nav a:hover {
    color: var(--color-gold);
}

/* HOMEPAGE: HERO & SEKTIONEN */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(2, 4, 18, 0.6), rgba(2, 4, 18, 1)), url('https://i.imgur.com/kK5tpfy.jpeg') no-repeat center center;
    background-size: cover;
}
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; text-shadow: 0 0 20px rgba(0, 191, 255, 0.5); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 2rem; }
.section { padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; text-align: center; margin-bottom: 3rem; text-shadow: 0 0 10px var(--color-glow-blue); }

.hero .btn-gold {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* PREISSEITE (PRICING) */
.plans-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }
.plan-card { /* Stile für Preiskarten */ }


/* --- 5. AUTH, ONBOARDING & FEEDBACK SEITEN --- */
.auth-container, .feedback-container, .verification-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}
.auth-card, .feedback-card, .info-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.auth-card h1, .feedback-card h1, .info-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}
.onboarding-card {
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}


/* --- 6. INTERNER APP-BEREICH (DASHBOARD, SETTINGS, ORGA) --- */

/* IN-APP NAVIGATION (OBEN) */
header.app-nav { /* Ähnlich zu main-nav, aber für eingeloggte User */ }

/* DASHBOARD LAYOUT */
.dashboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 6rem 2.5% 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* SETTINGS LAYOUT (PROFIL, TEAM, ABRECHNUNG) */
.settings-container { max-width: 1000px; margin: 0 auto; padding: 8rem 2rem 2rem; }
.settings-tabs { display: flex; border-bottom: 1px solid rgba(0, 191, 255, 0.2); margin-bottom: 2rem; }
.settings-tabs a { padding: 1rem 1.5rem; text-decoration: none; color: var(--color-text-muted); font-weight: bold; border-bottom: 3px solid transparent; }
.settings-tabs a.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }

/* ORGANISATIONS-DASHBOARD */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: var(--color-surface); padding: 1.5rem; border-radius: 8px; border: 1px solid rgba(0, 191, 255, 0.2); }
.stat-card.highlight { border-color: var(--color-glow-blue); box-shadow: 0 0 15px rgba(0, 191, 255, 0.2); }
.stat-card .value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: bold; }
.stat-card .label { color: var(--color-text-muted); font-size: 0.9rem; }
.breadcrumbs { margin-bottom: 2rem; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-glow-blue); text-decoration: none; }


/* --- 7. INTERNES ADMIN PANEL --- */
body.admin-body {
    --color-background: #0A192F;
    --color-surface: #172A45;
    --color-sidebar-bg: #020412;
}
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background-color: var(--color-sidebar-bg); padding: 2rem 1rem; flex-shrink: 0; }
.admin-sidebar .logo { font-family: var(--font-heading); font-size: 1.2rem; text-align: center; margin-bottom: 3rem; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 1rem; color: var(--color-text-muted); text-decoration: none; padding: 1rem; border-radius: 5px; margin-bottom: 0.5rem; }
.admin-sidebar nav a.active { background-color: var(--color-surface); color: white; border-left: 3px solid var(--color-gold); }
.admin-content { flex-grow: 1; padding: 3rem; }
.admin-content h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 2rem; }

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.stars {
    background: #000 url(starfield.png) no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(2, 4, 18, 0.3);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.problem-text {
    flex: 1;
}

.problem-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-glow-blue);
}

.problem-visualization {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hologram {
    width: 250px;
    height: 250px;
    background-image: url('construct.png'); /* Abstract network graphic */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotate 30s linear infinite, pulse 4s ease-in-out infinite;
}

.solution-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid var(--color-glow-blue);
    padding: 2rem;
    border-radius: 10px;
    flex: 1;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--color-glow-blue);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cta {
    text-align: center;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta .sub-link {
    margin-top: 1.5rem;
    display: block;
}
.cta .sub-link a {
    color: var(--color-text);
    text-decoration: none;
}
.cta .sub-link a:hover {
    text-decoration: underline;
    color: var(--color-gold);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px var(--color-glow-blue)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 25px var(--color-glow-blue)); opacity: 1; }
}


/* --- 8. RESPONSIVENESS --- */
@media (max-width: 992px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .plans-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { padding: 1rem 3%; }
    nav { gap: 1rem; }
    .logo { font-size: 1.2rem; }
    .btn { padding: 0.5rem 1rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }

    .section-title { font-size: 2rem; }
    
    .problem-layout { flex-direction: column; }
    .solution-cards { flex-direction: column; align-items: center; }

    .cta h2 { font-size: 2rem; }
}


@media (max-width: 480px) {
    nav a:not(.btn) { display: none; } /* Hide text links on very small screens */
}