/* =====================================================
   SCS - Dark Theme Design System
   ===================================================== */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
    /* Dark Theme Colors - Verbesserte Kontraste */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #161616;
    --color-bg-elevated: #1e1e1e;
    --color-bg-nav: rgba(10, 10, 10, 0.95);

    /* Text Colors - Verbesserte Kontraste */
    --color-text: #ffffff;
    --color-text-muted: #c9cdd4;
    --color-text-subtle: #8b9099;

    /* Accent Colors - Blau passend zum SCS Logo */
    --color-primary: #1976d2;
    --color-primary-hover: #42a5f5;
    --color-primary-glow: rgba(25, 118, 210, 0.4);
    --color-accent: #0288d1;
    --color-accent-hover: #03a9f4;

    /* Borders & Dividers */
    --color-border: #27272a;
    --color-border-light: #3f3f46;

    /* Gradients - Blau passend zum SCS Logo */
    --gradient-primary: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    --gradient-hero: linear-gradient(180deg, #0a0a0a 0%, #18181b 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --shadow-glow-accent: 0 0 30px rgba(34, 211, 238, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-hero: clamp(2.5rem, 6vw, 4.5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base Styles ----- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ----- Section Styles ----- */
.section {
    padding: var(--space-section) 0;
}

.section-dark {
    background: var(--gradient-hero);
}

.section-card {
    background-color: var(--color-bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* ----- Navigation ----- */
.navbar {
    padding: var(--space-md) 0;
    background: transparent;
    transition: all var(--transition-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--color-bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border);
    padding: var(--space-sm) 0;
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text) !important;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--color-primary);
}

.navbar-nav .nav-link {
    color: var(--color-text-muted) !important;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md) !important;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-text) !important;
}

.navbar-toggler {
    border: none;
    padding: var(--space-sm);
    color: var(--color-text);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--color-primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--space-xl);
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--color-border-light);
    color: var(--color-text);
}

.btn-outline-light:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ----- Cards ----- */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-2xl);
    color: white;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.card-text {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ----- Lists in Cards ----- */
.card ul,
.card ol {
    color: var(--color-text);
    padding-left: 1.5rem;
    margin-bottom: var(--space-md);
}

.card ul li,
.card ol li {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.card .list-unstyled {
    color: var(--color-text);
    padding-left: 0;
}

.card .list-unstyled li {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.card .list-unstyled li:last-child {
    border-bottom: none;
}

.card .list-unstyled li i {
    font-size: var(--font-size-lg);
}

/* Content text in cards */
.card p {
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.card strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ----- Service Cards ----- */
.service-card {
    height: 100%;
}

.service-card:hover .card-icon {
    box-shadow: var(--shadow-glow);
}

/* ----- About Section ----- */
.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--color-primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----- CTA Section ----- */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ----- Contact Section ----- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-item i {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
}

.contact-item-content h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
}

.contact-item-content p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

/* ----- Forms ----- */
.form-control,
.form-select {
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--color-bg-elevated);
    border-color: var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control::placeholder {
    color: var(--color-text-subtle);
}

.form-label {
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ----- Footer ----- */
.footer {
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    display: block;
}

.footer-brand span {
    color: var(--color-primary);
}

.footer-text {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    max-width: 300px;
}

.footer-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-hover);
}

.footer-links li {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.footer-links li i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-xl);
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    color: var(--color-text-subtle);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--color-text-subtle);
    font-size: var(--font-size-sm);
}

.footer-legal a:hover {
    color: var(--color-text-muted);
}

/* ----- Social Links ----- */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ----- Scroll to Top Button ----- */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ----- Badges ----- */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5em 0.9em;
}

.badge.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.badge.fs-6 {
    font-size: 0.95rem !important;
    padding: 0.6em 1em;
}

/* ----- Utility Classes ----- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.bg-dark {
    background-color: var(--color-bg-dark) !important;
}

.bg-card {
    background-color: var(--color-bg-card) !important;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Staggered animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    :root {
        --space-section: 5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .navbar-collapse {
        background: var(--color-bg-nav);
        padding: var(--space-lg);
        margin-top: var(--space-md);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    :root {
        --space-section: 4rem;
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }
}

/* ----- Accessibility ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ----- Loading State ----- */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- Alert Messages ----- */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
