/* Grundlegende Einstellungen */
:root {
    --primary-color: #1a2b3c; /* Dunkles Marineblau */
    --accent-color: #c5a059;  /* Dezentes Gold/Beige für Akzente */
    --text-color: #333333;
    --bg-light: #f4f7f9;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

section {
    /* Verhindert, dass der Sticky Header den Sektionsanfang verdeckt */
    scroll-margin-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

/* --- NEUES LOGO BILD-STYLING (ersetzt Text-Styling) --- */
.main-header {
    /* Behalten Sie align-items: center bei, um Logo und Nav zu zentrieren */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Optional: Passen Sie das vertikale Padding an */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center; /* Interne vertikale Zentrierung */
    flex-shrink: 0; /* Verhindert das Zusammenziehen des Logos */
    margin-right: 20px; /* Abstand zur Navigation */
    padding: 0;
}

.logo-image {
    max-height: 50px; /* Begrenzt die Höhe des Logos im Header */
    width: auto;      /* Erhält das Seitenverhältnis */
    object-fit: contain;
    display: block;   /* Verhindert whitespace-Lücken */
    transition: max-height 0.3s ease;
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 32px;
    }
}

@media (max-width: 360px) {
    .logo-image {
        max-height: 28px;
    }
}

/* Präzise vertikale Zentrierung im Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Zentriert Logo und Nav zueinander */
}

/* Header-Rechtsbereich für Navigation und Sprachumschalter */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Elegantes Pill-Design für den Sprachumschalter */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f4f8;
    border: 1px solid #dce3eb;
    border-radius: 20px;
    padding: 3px 5px;
    gap: 2px;
    user-select: none;
    flex-shrink: 0;
}

.lang-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 11px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(26, 43, 60, 0.25);
}

.lang-divider {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0 1px;
}

nav {
    display: flex;
    align-items: center; /* Zentriert ul und Burger-Button innerhalb der Nav */
}

nav ul {
    display: flex;
    align-items: center; /* Zentriert die Listenpunkte vertikal */
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1; /* Verhindert Versatz durch Standard-Zeilenhöhe */
    display: block;
    font-size: 1.2rem;
    margin-left: 20px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Sektionen Styling */
section {
    padding: 80px 0;
}

/* --- Hero-Abschnitt: Klassisch mit Hintergrund-Animation --- */

#hero {
    /* Setzt die Höhe auf 100% des sichtbaren Bildschirms */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* --- Fix für die Textanzeige im Hero-Bereich --- */
#hero .hero-content {
    /* Setzt die Textfarbe für h1, p sowie den Button-Text auf weiß */
    color: var(--white);
    /* Zentriert den Text horizontal innerhalb des Containers */
    text-align: center;
}

/* --- Optional: Feinabstimmung für h1 sowie p --- */
#hero h1 {
    color: var(--white);
    margin-bottom: 20px; /* Abstand nach unten */
}

#hero p {
    color: var(--white);
    max-width: 700px; /* Verhindert zu lange Textzeilen auf Desktop */
    margin: 0 auto 30px auto; /* Zentriert den p-Block & gibt Abstand nach unten */
}

.back-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    z-index: -1; /* Schiebt das Video hinter den Inhalt */
    object-fit: cover; /* Sorgt dafür, dass das Video den Container füllt */
    /* OPTIONAL: Ein dunkles Overlay, damit der Text lesbar bleibt */
    filter: brightness(0.2);
}

@keyframes consultingGradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

#hero h1 {
    font-size: 2.8rem; /* Reduziert für 1920x1080 Monitore */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none; /* Entfernt Capslock für ein seriöseres Bild */
}

#hero p {
    font-size: 1.25rem; /* Harmonischere Größe zum Titel */
    max-width: 750px;
    margin: 0 auto 35px auto;
    opacity: 0.9;
}

/* Entfernen Sie alle alten CSS-Regeln für #flip-container, #flip und @keyframes flipScroll */

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

/* Grid für Leistungen */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

article {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

/* Über mich Sektion Styling */
#ueber-mich {
    background-color: var(--bg-light); /* Leichter Kontrast zum Rest der Seite */
}

#ueber-mich h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text-wrapper h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text-wrapper p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* Kontakt Sektion Styling */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer im Design des Headers */
.main-footer {
    background-color: var(--white);
    padding: 30px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* Schatten nach oben */
}

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

.footer-nav ul {
    display: flex;
    list-style: none;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav ul li {
        margin-left: 0;
    }
}


/* ... (Bestehende CSS-Regeln) ... */

/* Optimierung des Leistungs-Grids für 6 Elemente */
.grid {
    display: grid;
    /* Erzeugt ein 3x2 Raster auf Desktops, 2x3 auf Tablets, 1 Spalte auf Mobils */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e1e8ed;
    background-color: var(--white);
}

.accordion-header {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Plus-Icon Styling */
.plus-icon {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.plus-icon::before,
.plus-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

/* Horizontaler Balken */
.plus-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* Vertikaler Balken */
.plus-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* Animation bei Aktivierung */
.accordion-item.active .plus-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-item.active .plus-icon::before {
    transform: translateY(-50%) rotate(180deg);
}

/* Content-Bereich */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 60px; /* Einzug passend zum Textstart nach dem Icon */
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Genügend Platz für den Text auch auf kleineren Bildschirmen */
    padding-bottom: 20px;
}

.accordion-content p {
    color: #555;
    margin: 0;
}

/* Grundzustand: Auf dem Desktop immer versteckt */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}


/* Scroll-Down-Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    opacity: 1;
}

.scroll-down-arrow svg {
    display: block;
    /* Ein mittleres Grau, das auf dem dunklen Video gut sichtbar ist */
    stroke: #aaaaaa;
}

/* Animation für das dezente Hüpfen */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* MOBILE VERSION */
/* --- Finale Mobilansicht (max-width: 768px) --- */
@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }

    .lang-switcher {
        padding: 2px 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.78rem;
    }

    /* Burger Button sichtbar machen und positionieren */
    .burger-menu {
        display: flex !important; /* Erzwingt die Anzeige */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    /* Die drei Striche des Menüs */
    .burger-menu span {
        width: 100%;
        height: 3px;
        background-color: #1a2b3c; /* Marineblau passend zum Logo */
        border-radius: 10px;
        display: block;
    }

    /* Das Hauptmenü im Header als mobiles Overlay */
    #navLinks {
        display: none; /* Im Normalzustand versteckt */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Höhe des Headers beachten */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
        margin: 0;
    }

    /* Einblenden wenn die Klasse .active per JS gesetzt wird */
    #navLinks.active {
        display: flex !important;
    }

    #navLinks li {
        margin: 15px 0;
        text-align: center;
        margin-left: 0;
    }

    /* Hero Text Korrektur gegen Abschneiden */
    #hero h1 {
        font-size: 1.5rem;
        padding: 0 20px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
}


