/* Reset & Base Styles - OPTION A (Elevated Dark + Glow) */
:root {
    --bg-color: #1c1c1e; /* Mattes Dunkelgrau */
    --bg-darker: #151516; /* Etwas dunkler */
    --text-primary: #f5f5f7; /* Off-White */
    --text-secondary: #a1a1a6; /* Helleres Grau */
    --accent: #e5e5ea; /* Silber/Weiss */
    --accent-hover: #ffffff;
    --border-color: rgba(255,255,255,0.08); /* Feiner Rahmen */
    --card-bg: #2c2c2e; /* Nuance heller */
    
    --glow-1: rgba(56, 189, 248, 0.08); /* Subtle blue glow */
    --glow-2: rgba(139, 92, 246, 0.08); /* Subtle purple glow */
    
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    left: -10vw;
    top: -10vw;
    background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
}

body::after {
    right: -10vw;
    top: 20vh;
    background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
}

/* Mobile Glow Adjustments */
@media (max-width: 768px) {
    body::before, body::after {
        width: 150vw; /* Make them much larger relative to the small screen */
        height: 150vw;
        filter: blur(60px); /* Reduce blur so the color doesn't dissipate completely */
    }
    body::before {
        left: -25vw;
        top: -10vw;
    }
    body::after {
        right: -25vw;
        top: 35vh;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 65ch;
}

.accent {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

.accent-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.accent-link:hover {
    color: var(--accent-hover);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.85); /* Matches bg-color */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-nav {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
}

.nav-links .btn-nav:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-darker); /* Dark text on light button */
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
}

.hero .subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    margin-bottom: 3.5rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    border-radius: 2px;
    margin-top: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
    padding: 3rem 2.5rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03); /* Huge, very faint number in background */
    z-index: 0;
    user-select: none;
}

.service-content {
    position: relative;
    z-index: 1; /* Stay above the number */
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1rem;
}

/* Contact */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-content p {
    text-align: center;
}

.email-text {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background-color: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links li:last-child {
        display: block;
    }
    
    .nav-links {
        display: flex;
        gap: 0;
    }
    .nav-links li:not(:last-child) {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
