/* =============================================
   CSS Variables
   ============================================= */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --navbar-bg: #0f172a;
    --navbar-height: 64px;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

/* =============================================
   Base
   ============================================= */
html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--text);
    background-color: var(--surface-alt);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* =============================================
   Navbar
   ============================================= */
header {
    position: relative;
    z-index: 1030;
}

.app-navbar {
    background-color: var(--navbar-bg);
    min-height: var(--navbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

.app-brand {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.app-nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1);
}

.btn-nav-settings {
    border: 1px solid rgba(255,255,255,0.15) !important;
}

.btn-nav-settings:hover {
    border-color: rgba(255,255,255,0.3) !important;
}

.nav-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    background: rgba(99,102,241,0.2);
    color: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.35);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-hero {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 0 rgba(79,70,229,0.4);
}

.btn-hero:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

.btn-outline-hero {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-outline-hero:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    text-decoration: none;
}

/* =============================================
   Features Section
   ============================================= */
.features-section {
    padding: 60px 0 80px;
    background: var(--surface-alt);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 18px;
    display: block;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.feature-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-block;
}

.feature-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* =============================================
   Footer
   ============================================= */
.app-footer {
    background: var(--navbar-bg);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
}

.app-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.app-footer span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.app-footer a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-footer a:hover {
    color: rgba(255,255,255,0.75);
}

/* =============================================
   Page content (nicht-Index Seiten)
   ============================================= */
.page-content {
    padding: 40px 0 60px;
}

/* =============================================
   Focus styles
   ============================================= */
.btn:focus-visible,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 767px) {
    .hero-section {
        padding: 56px 0 64px;
    }

    .app-navbar {
        height: auto;
        padding: 12px 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hero, .btn-outline-hero {
        width: 100%;
        text-align: center;
    }
}
