:root {
    --primary-color: #0054a6;
    --primary-dark: #003d7a;
    --primary-light: #3376b8;
    --secondary-color: #122240;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-main: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 84, 166, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 84, 166, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

header.scrolled .header-container {
    height: 70px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 75px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

header.scrolled .site-logo {
    max-height: 55px;
}

.footer-brand .site-logo {
    max-height: 85px;
    margin-bottom: 1rem;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-me {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    display: inline-block;
    line-height: 1;
}

.logo-title {
    display: flex;
    flex-direction: column;
}

.logo-title strong {
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1.2;
}

.logo-title span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(0, 84, 166, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(18, 34, 64, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='xMidYMax meet'%3E%3Cg fill='%230054a6' opacity='0.15'%3E%3Crect x='0' y='190' width='1000' height='10' /%3E%3Crect x='150' y='80' width='8' height='110' /%3E%3Cellipse cx='154' cy='70' rx='16' ry='8' /%3E%3Crect x='152' y='30' width='4' height='40' /%3E%3Cpolygon points='154,10 152,30 156,30' /%3E%3Crect x='250' y='140' width='40' height='50' /%3E%3Crect x='300' y='120' width='30' height='70' /%3E%3Crect x='340' y='150' width='50' height='40' /%3E%3Crect x='420' y='120' width='25' height='70' /%3E%3Cpolygon points='432.5,20 420,120 445,120' /%3E%3Crect x='450' y='120' width='25' height='70' /%3E%3Cpolygon points='462.5,20 450,120 475,120' /%3E%3Crect x='445' y='140' width='5' height='50' /%3E%3Crect x='530' y='110' width='40' height='80' /%3E%3Cpolygon points='550,60 525,110 575,110' /%3E%3Crect x='525' y='100' width='5' height='10' /%3E%3Cpolygon points='527.5,85 523,100 532,100' /%3E%3Crect x='570' y='100' width='5' height='10' /%3E%3Cpolygon points='572.5,85 568,100 577,100' /%3E%3Crect x='620' y='130' width='45' height='60' /%3E%3Crect x='680' y='160' width='60' height='30' /%3E%3Crect x='750' y='110' width='35' height='80' /%3E%3Cpath d='M 820 190 Q 850 140 880 190' fill='none' stroke='%230054a6' stroke-width='6' /%3E%3Cpath d='M 880 190 Q 910 140 940 190' fill='none' stroke='%230054a6' stroke-width='6' /%3E%3Cpath d='M 940 190 Q 970 140 1000 190' fill='none' stroke='%230054a6' stroke-width='6' /%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 1000px auto;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230054a6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 84, 166, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Services */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 84, 166, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    color: white;
}

.benefits-text p {
    color: #9ca3af;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.benefits-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.benefits-list p {
    margin: 0;
    font-size: 0.9375rem;
}

.benefits-image-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
}

.benefits-portrait {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
}

.image-overlay {
    padding: 2rem;
    width: 100%;
    background: linear-gradient(to top, rgba(18,34,64,0.9), transparent);
    z-index: 1;
}

.image-overlay h3 {
    color: white;
    margin: 0;
}

.image-overlay p {
    color: var(--primary-light);
    margin: 0;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.about-box {
    background: var(--bg-main);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-box::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,84,166,0.1) 0%, transparent 70%);
}

.about-box h2 {
    margin-bottom: 1.5rem;
}

.about-box p {
    font-size: 1.125rem;
    max-width: 800px;
}

/* Contact */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas: 
        "info toast"
        "info form";
    gap: 0 4rem;
}

.contact-info {
    grid-area: info;
}

.contact-form {
    grid-area: form;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-item h3 {
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.1);
    background-color: white;
}

.form-notice {
    font-size: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #9ca3af;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .benefits-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-areas: 
            "info"
            "toast"
            "form";
        gap: 4rem;
    }
    
    .benefits-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-out;
    }

    .main-nav.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-list a.btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-box {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Formular & Sicherheit --- */
.honeypot-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}
.error-message.show {
    display: block;
}

.form-group input.is-invalid, 
.form-group textarea.is-invalid, 
.form-group input[type="checkbox"].is-invalid {
    border-color: #ef4444;
}

/* DSGVO Checkbox */
.dsgvo-group {
    margin-bottom: 1.5rem;
}
.dsgvo-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}
.dsgvo-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
}
.dsgvo-label a {
    color: var(--primary);
    text-decoration: underline;
}
.dsgvo-label a:hover {
    color: var(--primary-dark);
}
.required {
    color: #ef4444;
}

/* Loader */
.loader {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Container */
.toast-container {
    grid-area: toast;
    margin-bottom: 1.5rem;
}
.toast-container:empty {
    display: none;
}
.toast {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.4s ease-out;
}
.toast-success {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.toast-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.toast p {
    margin: 0;
    font-size: 0.95rem;
}
.toast ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}
