/* === CSS Variables & Reset === */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #dc2626;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* === Utility Classes for Animation === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* === Typography === */
h1, h2, h3, h4 { 
    line-height: 1.2; 
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); color: var(--text-light); }

a { 
    color: var(--primary); 
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === Icons === */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}
.icon-lg {
    width: 48px;
    height: 48px;
}

/* === Header === */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-top {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-xs) 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.contact-info {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.contact-info a:hover {
    opacity: 1;
    color: white;
}

.header-main {
    padding: var(--space-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

/* Logo Styling (Jetzt als Link) */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.logo:hover span {
    color: var(--text-dark);
}

/* === Navigation === */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.nav-toggle:hover {
    background: var(--bg-light);
}

.nav {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 200px;
    padding: var(--space-xs);
    list-style: none;
    z-index: 200;
    border: 1px solid var(--border);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: var(--space-sm);
    display: block;
    color: var(--text-dark);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

/* Animated Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 20%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 20%);
    animation: pulseBackground 10s infinite alternate;
}

@keyframes pulseBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

/* === Services Grid === */
.services {
    padding: var(--space-2xl) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    /* Rotation entfernt */
}

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

.service-card p {
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

/* WICHTIG: Links in Service-Karten sind standardmäßig blau */
.service-card a {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-card a:hover {
    gap: 0.5rem;
}

/* === Integrierte Sektion: Service & Trust === */
.combined-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-white);
}

.combined-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 992px) {
    .combined-grid {
        grid-template-columns: 4fr 5fr;
    }
}

.full-width-title {
    grid-column: 1 / -1;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: var(--space-sm);
}

.combined-left p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.trust-badges-wrapper {
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.trust-badges-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.trust-badge svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Service List Side */
.service-list-side {
    list-style: none;
    padding: 0;
}

.service-list-side li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border);
}

.service-list-side li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-icon-check {
    color: var(--success);
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
    background: #ecfdf5;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-content h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.list-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Kontakt Sektion === */
.contact-section-new {
    padding: var(--space-2xl) 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: stretch; 
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 4fr 6fr;
    }
}

.contact-card-left a {
    display: inline;
    font-size: inherit;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    margin-right: 0.5rem;
}

.service-card-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: flex-start;
}

/* === Testimonials (Kundenbewertungen) === */
.testimonials-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stars {
    color: #f59e0b; /* Goldgelb für Sterne */
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    flex-grow: 1;
}

.author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* === FAQ Section === */
.faq-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.faq-card {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-card:hover {
    border-color: var(--primary);
}

.faq-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.faq-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* === Footer === */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer h3 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.footer p {
    color: rgba(255,255,255,0.6);
}

.footer a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: var(--space-xs);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.footer-regions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem; 
}

/* === BUTTON STYLES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-xl);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

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

/* === FIX: Spezifische Überschreibung für Buttons innerhalb von Service-Karten === */
.service-card .btn {
    color: var(--primary);
}

.service-card .btn-primary {
    color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        padding: var(--space-md);
        align-items: stretch;
    }
    
    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* FIXED BLOCK START */
    .dropdown-menu {
        position: static; /* Im Fluss lassen */
        transform: none; /* WICHTIG: Verschiebung zurücksetzen */
        left: auto;
        top: auto;
        width: 100%; /* Volle Breite */
        box-shadow: none;
        margin-left: var(--space-md);
        margin-top: var(--space-xs);
        padding-left: 0;
        border: none;
        background: var(--bg-light);
        animation: none;
        display: none;
    }
    /* FIXED BLOCK END */
    
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .hero {
        padding: var(--space-xl) 0;
        text-align: center;
        min-height: 60vh;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}