/* Allgemeine Einstellungen */
:root {
    --primary-color: #5bf7dc; /* Ein leuchtendes Blau für Akzente (ähnlich React-Blau) */
    --secondary-color: #460096; /* Heller Text */
    --background-dark: #460096; /* Dunkelster Hintergrund, Body */
    --background-medium: #282c34; /* Etwas helleres Dunkel, Sektionen */
    --background-light: #3a3f47; /* Leicht helleres Dunkel (könnte auch für Services verwendet werden) */
    --header-bg-color: #ffffff; /* Weißer Hintergrund für den Header */
    --text-color-light: #f8f8f8;
    --text-color-dark: #333; /* Dunklerer Text für weißen Header */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --header-height-desktop: 80px;
    --header-height-mobile: 60px;
}

html {
    scroll-behavior: smooth; /* Sanftes Scrollen zu Ankerpunkten */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Stellt sicher, dass der Footer am unteren Rand klebt */
    overflow-x: hidden; /* Verhindert horizontale Scrollbalken */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-light);
    margin-top: 0;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Button Styling */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.button:hover {
    background-color: #5a14ce; /* Beispiel für manuelle Hover-Farbe */
    transform: translateY(-2px);
    text-decoration: none;
}

/* Header (Fixierte obere Navigation) */
.header-section {
    background-color: var(--header-bg-color); /* Weißer Hintergrund */
    color: var(--text-color-dark); /* Dunklerer Text für guten Kontrast */
    padding: 15px 0;
    position: fixed; /* Fixiert am oberen Rand */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Weniger Schatten, passt besser zu weiß */
    transition: transform 0.3s ease-in-out; /* Für "Sticky Header" Effekt */
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
}

.header-section.hidden {
    transform: translateY(-100%); /* Header beim Scrollen ausblenden */
}

.header-content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Innenabstand für Desktop */
}

/* Logo Bild Styling */
.site-logo {
    max-height: 100px; /* Höhe des Logos anpassen */
    width: auto;
    display: block;
}

.site-logo-link {
    display: flex; /* Für vertikale Zentrierung des Logos */
    align-items: center;
    height: 100%; /* Wichtig, damit das Logo in der Mitte des Headers ist */
}


.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    margin-left: 30px;
}

.main-navigation ul li a {
    color: var(--text-color-dark); /* Nav-Links nun dunkel auf weißem Header */
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-navigation ul li a::after { /* Unterstrich-Effekt wie hochzeit-peri.de */
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after {
    width: 100%;
}

/* Burger Menü (auf Desktop versteckt) */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Über Nav-Links bei Animation */
}

.burger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color-dark); /* Burger-Icon auf weißem Header dunkel */
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Burger-Animation (X-Form) */
.burger-menu.open .burger-icon:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.open .burger-icon:nth-child(2) {
    opacity: 0;
}
.burger-menu.open .burger-icon:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Main Content Bereiche */
main {
    flex: 1; /* Nimmt den restlichen Platz ein für Sticky Footer */
    padding-top: var(--header-height-desktop); /* Platz für fixierten Header lassen */
}

.hero-image-section {
    position: relative;
    width: 100%;
    max-width: 100vw; /* Volle Breite des Viewports */
    height: 600px; /* Beispielhöhe für Hero-Bereich */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Bereich aus, wird beschnitten */
    object-position: center;
    filter: brightness(0.7); /* Leichte Abdunklung für Textlesbarkeit */
    /* KEINE FILTER-VERÄNDERUNG BEIM HOVERN (Regel entfernt) */
}

/* Entfernt den Hover-Effekt auf das Hero-Image */
.hero-image-section:hover .hero-image {
    filter: brightness(0.7); /* Bleibt gleich */
}


.hero-overlay-text {
    position: absolute;
    color: var(--text-color-light);
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-overlay-text h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px var(--shadow-color);
}

.hero-overlay-text p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px var(--shadow-color);
}


.content-section {
    max-width: 960px;
    margin: 60px auto; /* Abstand zwischen Sektionen */
    padding: 40px;
    background-color: var(--background-medium);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.content-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after { /* Unterstrich unter Überschriften */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}


/* Impressum Section */
.impressum p {
    margin-bottom: 1em;
}

.impressum h3 {
    margin-top: 2em;
    font-size: 1.5em;
    color: var(--primary-color);
}


/* Footer */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 30px 0;
    margin-top: auto; /* Schiebt den Footer nach unten */
    box-shadow: 0 -2px 10px var(--shadow-color);
}

.footer-content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleineren Bildschirmen */
}

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

.footer-nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
}

/* --- Responsive Anpassungen --- */

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header-content-wrapper,
    .content-section,
    .footer-content-wrapper {
        padding: 0 15px; /* Etwas weniger Padding auf Tablets */
    }

    .hero-overlay-text h2 {
        font-size: 3em;
    }
    .hero-overlay-text p {
        font-size: 1.3em;
    }

    .content-section {
        padding: 30px;
    }
}

/* Mobile (unter 768px) */
@media (max-width: 767px) {
    .header-section {
        height: var(--header-height-mobile);
        padding: 10px 0;
    }
    main {
        padding-top: var(--header-height-mobile); /* Platz für fixierten Mobile-Header */
    }

    /* Logo auf Mobile anpassen */
    .site-logo {
        max-height: 40px;
    }

    .header-content-wrapper {
        padding: 0 10px; /* Weniger Padding für Mobile */
    }

    /* Burger-Menü anzeigen, Nav-Links verstecken */
    .burger-menu {
        display: block;
    }

    .main-navigation ul {
        display: none; /* Nav-Links standardmäßig versteckt */
        flex-direction: column;
        position: absolute;
        top: var(--header-height-mobile); /* Direkt unter dem Header */
        left: 0;
        width: 100%;
        background-color: var(--header-bg-color); /* Weißer Hintergrund für ausgeklappte Mobile-Nav */
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 15px 0;
        align-items: center; /* Links zentrieren */
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Startposition außerhalb des Bildschirms */
    }

    .main-navigation ul.active {
        display: flex; /* Nav-Links anzeigen */
        transform: translateY(0); /* Einblenden */
    }

    .main-navigation ul li {
        margin: 10px 0; /* Vertikale Abstände für mobile Links */
    }

    .main-navigation ul li a {
        color: var(--text-color-dark); /* Links in Mobile-Nav auch dunkel */
    }

    .main-navigation ul li a::after { /* Unterstrich auf Mobile auch über volle Breite */
        width: 100%;
    }

    /* Hero Section Anpassungen */
    .hero-image-section {
        height: 400px; /* Kleinere Höhe auf Mobile */
    }
    .hero-overlay-text h2 {
        font-size: 2.2em;
    }
    .hero-overlay-text p {
        font-size: 1.1em;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .content-section {
        margin: 30px auto;
        padding: 25px;
    }

    .content-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Services untereinander */
    }

    .footer-nav ul {
        flex-direction: column;
    }
    .footer-nav ul li {
        margin: 5px 0;
    }
}
