/* Root Variables */
:root {
    --primary: #00FFFF;
    --primary-dark: #00CCCC;
    --bg-dark: #0A0E27;
    --bg-darker: #050810;
    --text-light: #E8E8E8;
    --text-gray: #B0B0B0;
    --accent: #FF6B35;
    --border: #1A2040;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Utility Classes */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tagline {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-card {
    background: linear-gradient(135deg, rgba(26, 32, 64, 0.5) 0%, rgba(5, 8, 16, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Notdienst Section */
.notdienst {
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(0, 255, 255, 0.02) 100%);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.notdienst-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notdienst-content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.notdienst-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.notdienst-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary);
    border-radius: 0.8rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    word-break: break-word;
}

.info-value:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: linear-gradient(135deg, rgba(26, 32, 64, 0.3) 0%, rgba(5, 8, 16, 0.3) 100%);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 2rem;
    transition: all var(--transition);
}

.contact-info:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.05);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    line-height: 1.8;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero::before {
        width: 400px;
        height: 400px;
        right: -20%;
    }

    .hero-visual {
        min-height: 200px;
        margin-top: 2rem;
    }

    .hero-icon {
        max-width: 200px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .notdienst-info {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Accessibility */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #F5F5F5;
        --bg-darker: #FFFFFF;
        --text-light: #0A0E27;
        --text-gray: #666666;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }
}
