/* ==========================================================================
   1. Variablen & Basis-Reset
   ========================================================================== */
:root {
    --primary-color: #0b2545; 
    --accent-color: #007bb5; 
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

section {
    overflow: hidden; /* Schützt vor ausschwenkenden Animationen */
}

/* Optimierung der Performance für Transformationen */
.hero-text, .hero-image, .card, .about-text, .about-image, form {
    will-change: transform, opacity;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

.lang-switch {
    font-size: 0.9rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-switch a:hover {
    color: var(--accent-color);
}

.lang-switch .active {
    font-weight: bold;
    color: var(--accent-color);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #005f8d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #133a6e);
    color: var(--white);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .highlight {
    color: #4dc3ff;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   5. Trust Bar & Services
   ========================================================================== */
.trust-bar {
    background-color: #e2e8f0;
    padding: 15px 0;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.services {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitle {
    margin-bottom: 40px;
    color: #666;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #e2e8f0;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

/* ==========================================================================
   6. About Section (Nuestro Enfoque)
   ========================================================================== */
.about-section {
    background-color: var(--white);
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.rounded-img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 8px solid var(--bg-light);
    max-height: 400px;
}

/* ==========================================================================
   7. Contact Form & Location
   ========================================================================== */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Vereinheitlichung von Input, Textarea und Select */
.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    appearance: none; /* Entfernt Standard-Browser-Styling bei Select */
}

/* Spezielles Styling für Select (Dropdown-Pfeil) */
.contact-form select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230b2545%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.contact-form input:focus, 
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 123, 181, 0.2);
}

/* Checkbox Gruppe */
.form-group {
    text-align: left;
    background: var(--white);
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group p {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: var(--transition);
}

.form-group label:hover {
    color: var(--accent-color);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
}

/* Standort Info */
.location-info {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 25px;
    line-height: 1.5;
}

.location-info strong {
    color: var(--primary-color);
}

/* ==========================================================================
   8. Footer & Legal
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

footer a {
    color: #4dc3ff;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   9. Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .hero-content, .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Safari & Mobile Fixes */
.form-group label span {
    display: inline-block;
    line-height: 1.4;
    cursor: pointer;
}

/* Verhindert, dass Safari die Checkbox-Größe ignoriert */
input[type="checkbox"] {
    -webkit-appearance: checkbox; /* Erzwingt Standard-Darstellung in Safari */
    appearance: checkbox;
    flex-shrink: 0;
}

/* Optimierung für Touch-Geräte */
@media (max-width: 768px) {
    .form-group label {
        padding: 10px 0; /* Größere Klickfläche auf dem Handy */
    }
}
/* Cookie Bar Styling */
.cookiebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0b2545; /* Dein Primary Blue */
    color: white;
    padding: 20px 0;
    z-index: 1000;
    display: none; /* Wird per JS angezeigt */
}

.cookiebar .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookiebar p {
    font-size: 0.9rem;
    margin: 0;
}

.cookiebar a {
    color: #4dc3ff;
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}

.btn-cookie.accept {
    background: #007bb5;
    color: white;
}

.btn-cookie.reject {
    background: transparent;
    border: 1px solid white;
    color: white;
}
/* Effekt wenn der Header gescrollt ist */
header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Fallback für Animationen falls JS deaktiviert ist */
.hero, .card, section, form {
    will-change: opacity, transform;
}
/* Animation für den blauen Schimmer-Effekt */
.reveal-glow {
    animation: accent-glow-fade 1.5s ease-out forwards;
}

@keyframes accent-glow-fade {
    0% {
        box-shadow: 0 0 0px transparent;
        filter: brightness(1);
    }
    30% {
        /* Nutzt deine Akzentfarbe #007bb5 mit Transparenz */
        box-shadow: 0 0 25px rgba(0, 123, 181, 0.5);
        filter: brightness(1.1);
    }
    100% {
        box-shadow: 0 0 0px transparent;
        filter: brightness(1);
    }
}
/* Scroll-to-Top Button Styling */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #ffffff !important; /* Weißer Pfeil erzwingen */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Wird vom JS auf "flex" gesetzt */
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Maximaler Wert, damit er über allen Animationen liegt */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 24px;
    font-weight: bold;
    -webkit-appearance: none; /* Safari Fix gegen Standard-Button-Styling */
}

.scroll-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer-Link Styling für bessere Abstände */
.footlinks {
    margin-top: 15px;
}
.footlinks a {
    margin: 0 10px;
}