/* style.css */

/* --- Allgemeine & Reset-Styles --- */
body {
    margin: 0;
    /* Grundschriftart für den gesamten Fließtext */
    font-family: Arial, sans-serif;
    /* Basisschriftgröße für gute Lesbarkeit, besonders bei Serifenschriften */
    font-size: 1.125rem;
    background-color: #fafafa;
    /* Zeilenabstand leicht erhöhen für bessere Lesbarkeit */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

a {
    color: inherit;
    text-decoration: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Header --- */
.header {
    background-color: #dc2626;
    color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* Logo kann auch eine Überschrift sein oder einen eigenen Stil haben */
.logo {
    /* Größe basierend auf der Bedeutung anpassen */
    font-size: 1.5rem;
    font-family: 'Moneta-Black', sans-serif;
    font-weight: 700;
}

.logo img {
    height: 2rem;
}

.logo a:hover {
    color: #fca5a5;
    transition: color 0.3s ease-in-out;
}

/* --- Navigationsmenü (Desktop) --- */
.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    /* Navigationslinks sind wichtig und sollten gut lesbar sein */
    font-size: 1.125rem;
    transition: color 0.3s ease-in-out;
    font-family: Arial, sans-serif;
}

.nav-menu a:hover {
    color: #fca5a5;
}

/* --- Burger-Menü (Mobil) --- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.burger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.nav-links {
    display: none; /* Standardmäßig versteckt */
}

@media (max-width: 799px) {
    /* Mobil-Ansicht */
    .nav-menu {
        display: none; /* Desktop-Nav ausblenden */
    }
    .burger-menu {
        display: flex; /* Burger-Menü anzeigen */
    }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        /* ... andere Stile für aktives Menü ... */
    }
    /* ... weitere Mobil-Styles ... */
}

@media (min-width: 800px) {
    /* Desktop-Ansicht */
    .nav-menu {
        display: flex; /* Desktop-Nav anzeigen */
    }
    .burger-menu {
        display: none; /* Burger-Menü ausblenden */
    }
    .nav-links {
        display: none; /* Mobile Nav ausblenden */
    }
}

/* --- Navigationslinks (Mobil) --- */
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #dc2626;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}
.nav-links.active {
    opacity: 1;
    visibility: visible;
}
.nav-links li {
    margin-bottom: 15px;
}
.nav-links li a {
    color: white;
    text-decoration: none;
    /* Auch mobile Navigationslinks anpassen */
    font-size: 1.375rem;
    transition: color 0.3s ease-in-out;
    font-family: Arial, sans-serif;
}
.nav-links li a:hover {
    color: #f5f5f5;
}

/* ---------------------------------------------------- */
/* --- HERO SECTION & CAROUSEL STYLES (AKTUALISIERT) --- */
/* ---------------------------------------------------- */

.hero {
    position: relative;
    z-index: 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    color: white;
    height: 75vh;
}

.hero-content {
    /* WICHTIG: Positionierung für horizontale und vertikale Zentrierung */
    position: absolute; 
    top: 50%;           
    left: 50%;
    
    /* NEU: Transform für absolute Zentrierung (horizontal und vertikal) */
    transform: translate(-50%, -50%); 
    
    z-index: 2;
    max-width: 40rem; /* Begrenzt die Breite auf großen Bildschirmen */
    width: 100%; 

    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center; 
}

.hero-content h1 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    margin-bottom: 0rem;
    color: #ffffff;
    text-shadow: 3px 6px 20px rgba(49, 35, 35, 0.9);
}

.hero-content p {
    color: #ffffff;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    margin-bottom: 2.5rem;
    margin-top: 0rem;
    text-shadow: 6px 2px 10px rgba(49, 35, 35, 1);
}

.hero-content button {
    background-color: #dc2626;
    color: white;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: background-color 0.3s ease-in-out;
    font-size: 1.125rem;
    font-family: Arial, sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.hero-content button:hover {
    background-color: #ef4444;
}



/* Container für die Slides */
.carousel-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* NEU: Breite auf 100% setzen */
    height: 100%;
    /* display: flex; ENTFERNT */
    /* transition: transform 0.5s ease-in-out; ENTFERNT */
}

/* Die einzelnen Slides */
.carousel-slide {
    width: 100%; /* NEU: Breite auf 100% setzen */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* NEUE REGELN FÜR FADE-EFFEKT: */
    position: absolute; /* Alle Slides übereinander legen */
    top: 0;
    left: 0;
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1.5s ease-in-out; /* Übergang für das Überblenden */
}

/* NEU: Nur das aktive Slide soll sichtbar sein */
.carousel-slide.active {
    opacity: 1;
}

/* Hintergrundbilder für die Slides */
.slide-1 { background-image: url('img/header-bg.png'); }
.slide-2 { background-image: url('img/header-bg2.png'); }
.slide-3 { background-image: url('img/header-bg3.png'); }


.carousel-navigation {
    position: absolute;
    bottom: 2rem;
    /* Zentrierung für Desktop und Mobile */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}
/* --- ENDE HERO SECTION STYLES --- */


.carousel-dot {
    width: 1rem;
    height: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
}

/* --- Allgemeine Section-Styles --- */
.section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

.section h2 {
    /* Generelle h2-Styles für Sektionen, in denen h2 die volle Breite einnimmt */
    font-size: 2.5rem;
    font-family: 'Moneta-Black', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem; 
    color: #dc2626;
}

.bg-gray-section {
    background-color: #ffffff;
    position: relative;
    padding-top: 4rem;
    padding-right: 0rem;
}


.bg-red-section {
    background-color: #f8f8f8;
    padding-top: 6rem; 
    padding-bottom: 1.5rem; 
}


/* --- Maximale Breite für Inhaltscontainer --- */
.max-width-container {
    max-width: 90rem;
    margin-left: 0rem;
    margin-right: auto;
}


#about {
    padding-top: 0rem; 
    padding-bottom: 0rem;
    padding-right: 0rem;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Eine Spalte */
    gap: 2rem; 
    align-items: stretch; 
    max-width: 100rem; 
    margin: 0 auto; 
}

/* Container, der h2 und Text hält (Linke Spalte ab Desktop) */
.about-text-wrapper {
    display: flex;
    flex-direction: column;
    /* Zentriert den gesamten Text-Block-Inhalt auf Mobile */
    align-items: center; 
    text-align: center; 
    padding-top: 8rem; 
    padding-bottom: 8rem;
}


.about-heading-grid {
    font-size: 2.5rem;
    font-family: 'Moneta-Black', sans-serif;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0rem; /* Abstand wie in den anderen Sektionen */
    text-align: center; 
    max-width: 40rem; 
}

/* Inhaltstext-Container */
.about-text-content {
    /* max-width für Lesbarkeit, zentriert sich innerhalb des wrappers */
    max-width: 40rem; 
    margin: 0; 
}

/* Text-Ausrichtung innerhalb des Containers */
.about-text-content p {
    font-size: inherit;
    color: #374151;
    font-family: Arial, sans-serif;
    text-align: center; /* Textausrichtung zentriert */
}


/* Das Bild muss auf dem Desktop die gesamte Spalte füllen */
.about-image-content img {
    width: 100%; 
    height: 100%; /* WICHTIG: Füllt die gesamte Höhe des Containers */
    object-fit: cover;
    display: block;
    border-radius: 0rem; 
}

/* Media Query für die 2-Spalten-Ansicht ab 768px */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; 
        /* KORREKTUR: Muss stretch sein, damit die Spalten die volle Höhe füllen */
        align-items: stretch; 
    }
    
    /* Text-Wrapper füllt die gesamte linke Spalte (Grid-Item) */
    .about-text-wrapper {
        grid-column: 1 / 2; 
        grid-row: 1; 
        width: 100%; 
        max-width: 100%; 
        
        /* KORREKTUR: Flex-Eigenschaften zur vertikalen Zentrierung des Textes */
        display: flex;
        flex-direction: column;
        justify-content: center; /* ZENTRIERT INHALT VERTIKAL */
        align-items: center; /* ZENTRIERT INHALT HORIZONTAL */
        
        /* Setzt die Höhe auf 100% der Grid-Zelle */
        height: 100%; 
        
        /* Größerer Abstand links und rechts */
        padding-left: 3rem; 
        padding-right: 3rem;
    }
    
    /* Das Bild nimmt die gesamte rechte Spalte ein */
    .about-image-content {
        grid-column: 2 / 3;
        grid-row: 1; 
        height: 100%;
    }
}


/* --- Services Section --- */
.service-grid {
    display: grid;
    /* Angepasst für Mobilgeräte (1 Spalte) */
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
}

.service-card {
    background-color: transparent; 
    box-shadow: none; 
    border: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    margin-bottom: 3rem; 
    text-align: center; 
}

.service-image {
    width: auto;
    height: 144px;
    padding-bottom: 0%;
    position: relative;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 144px; 
    height: auto; 
    object-fit: contain; 
}

.service-card h3 {
    /* Service-Karten-Titel anpassen */
    font-size: 1.625rem;
    font-family: 'Moneta-Black', sans-serif;
    font-weight: 600;
    margin-bottom: 0rem;
    color: #dc2626;
}

.service-card p {
    /* Passt sich durch body font-size an */
    font-size: inherit;
    color: #374151;
    margin-bottom: 1.5rem;
    font-family: Arial, sans-serif;
}

/* --- Team Section --- */
.team-grid {
    padding-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.team-member {
    background-color: white;
    box-shadow: 0 4px 6px -1-px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.team-member img {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    /* Team-Mitglied-Titel anpassen */
    font-size: 1.625rem;
    font-family: 'Moneta-Black', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #dc2626;
}

.team-member p:nth-of-type(1) {
    color: #4b5563;
    margin-bottom: 0.75rem;
    /* Passt sich durch body font-size an */
    font-size: inherit;
    font-family: Arial, sans-serif;
}

.team-member p:nth-of-type(2) {
    color: #374151;
    /* Passt sich durch body font-size an */
    font-size: inherit;
    font-family: Arial, sans-serif;
}

/* --- Contact Section --- */
#contact {
    /* clip-path für die Diagonale entfernt, um Überlappung zu vermeiden */
    position: relative;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.contact-form-container {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-form form {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    color: #374151;
    /* Inputfelder und Textareas sollten auch Fließtext-Schriftart und -größe haben */
    font-family: Arial, sans-serif;
    font-size: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ef4444;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ef4444;
}

.contact-form button[type="submit"] {
    background-color: #dc2626;
    color: white;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: background-color 0.3s ease-in-out;
    /* Button-Text anpassen */
    font-size: 1.125rem;
    font-family: Arial, sans-serif;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover {
    background-color: #ef4444;
}

.contact-info {
    margin-top: 2.5rem;
}

.contact-info p {
    color: #374151;
    margin-bottom: 0.75rem;
    /* Passt sich durch body font-size an */
    font-size: inherit;
    font-family: Arial, sans-serif;
}

.contact-info a {
    color: #dc2626;
    font-weight: 600;
    /* Telefonnummer oder E-Mail-Link etwas größer und auffälliger */
    font-size: 1.5rem;
    transition: color 0.3s ease-in-out;
    font-family: Arial, sans-serif;
}

.contact-info a:hover {
    color: #991b1b;
}

/* --- Footer --- */
.footer {
    background-color: #dc2626;
    color: white;
    padding-top: 5rem;
    padding-bottom: 1.5rem;
    text-align: center;
    
    /* KORREKTUR: Alle Regeln zur Überlappung und Diagonale entfernt */
    position: relative; 
    clip-path: polygon(0 40%, 75% 0, 100% 30%, 100% 100%, 0% 100%); 
       margin-top: -5vh; 
       padding-top: 15vh;

}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer p {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    margin-bottom: 0;
}

.footer a {
    color: white;
    transition: color 0.3s ease-in-out;
    font-family: Arial, sans-serif;
    font-size: inherit;
}

.footer a:hover {
    color: #d1d5db;
}

.social-icons {
    display: flex; /* Aktiviert Flexbox für den Container */
    justify-content: center; /* Zentriert die Elemente horizontal */
    align-items: center; /* Zentriert die Elemente vertikal */
}

.social-icons a {
    margin: 0 20px; /* Fügt Abstand zwischen den Icons hinzu */
}
/* --- Media Queries --- */

/* Für Tablets (Medium screens, md: in Tailwind) */
@media (min-width: 768px) {
    .about-image-content {
        grid-column: 2 / 3;
        grid-row: 1; 
        height: 100%; 
        width: 100%; /* Sicherstellen, dass das Bild die volle Breite der Spalte einnimmt */
    }
    .about-text-wrapper {
        grid-column: 1 / 2; 
        grid-row: 1; 
        width: 100%; 
        max-width: 100%; 
        
        /* KORREKTUR: Flex-Eigenschaften zur vertikalen Zentrierung des Textes */
        display: flex;
        flex-direction: column;
        justify-content: center; /* ZENTRIERT INHALT VERTIKAL */
        align-items: center; /* ZENTRIERT INHALT HORIZONTAL */
        
        /* Setzt die Höhe auf 100% der Grid-Zelle */
        height: 100%; 
        
        /* Größerer Abstand links und rechts */
        padding-left: 3rem; 
        padding-right: 3rem; 
    }
    .about-grid {
        grid-template-columns: 1fr 1fr; 
        align-items: stretch; 
        /* WICHTIG: Erlaubt dem Grid, sich über die gesamte Viewport-Breite auszudehnen */
        max-width: none; 
        margin: 0;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem; /* Angepasster Abstand */
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    /* Anpassung der Überschriftengrößen für Tablets */
    .section h2 {
        font-size: 2.25rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Für Desktops (Large screens, lg: in Tailwind) */
@media (min-width: 1024px) {
    
    .service-grid {
        grid-template-columns: repeat(4, 1fr); /* Korrigiert auf 4 Spalten */
        gap: 1.5rem; /* Angepasster Abstand */
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    /* Die Haupt-Desktop-Größen sind bereits in den allgemeinen Regeln definiert */
}

/* Media Query für Mobilgeräte (max-width: 799px) */
@media (max-width: 799px) {
    .nav-menu {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .header-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding-right: 1.5rem;
    }
    .nav-links {
        width: 100%;
    }
    .logo {
        margin-right: auto;
        font-size: 1.375rem;
    }
    .burger-menu {
        margin-left: auto;
    }
    /* Anpassung der Schriftgrößen für Mobilgeräte */
    body {
        font-size: 1rem;
        line-height: 1.5;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.125rem;
    }
    .section h2 {
        font-size: 1.75rem;
    }
    .service-card h3,
    .team-member h3 {
        font-size: 1.25rem;
    }
    .hero-content button,
    .contact-form button[type="submit"] {
        font-size: 1rem;
    }
    .contact-info a {
        font-size: 1.25rem;
    }
    
    /* ANPASSUNG FÜR MOBILE HERO-SEKTION */
    .hero-content {
        position: relative; 
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    /* Carousel Navigation wieder in die Mitte */
    .carousel-navigation {
        left: 50%;
    }
    
}

/* Styles für größere Bildschirme (min-width: 800px) */
@media (min-width: 800px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        margin-right: 1.5rem;
    }
    .nav-menu li {
        margin-left: 1.5rem;
    }
    .nav-menu li a {
        color: white;
        text-decoration: none;
        font-size: 1.125rem;
        font-family: Arial, sans-serif;
    }
    .nav-menu li a:hover {
        color: #f5f5f5;
    }
    .burger-menu {
        display: none;
    }
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 3rem;
        line-height: 3.5rem;

    }
}

#scroll-to-top {
    position: fixed; /* Fixiert das Element am Bildschirm */
    bottom: 20px; /* Abstand vom unteren Rand */
    right: 20px; /* Abstand vom rechten Rand */
    z-index: 1000; /* Stellt sicher, dass das Element über allem anderen liegt */
    display: none; /* Am Anfang versteckt */
    background-color: #e9e9e9; /* Hintergrundfarbe */
    color: #dc2626;/* Pfeilfarbe */
    border-radius: 50%; /* Runde Form */
    width: 50px; /* Breite */
    height: 50px; /* Höhe */
    text-align: center; /* Pfeil zentrieren */
    line-height: 50px; /* Pfeil vertikal zentrieren */
    font-size: 24px; /* Pfeilgröße */
    text-decoration: none; /* Unterstreichung entfernen */
    cursor: pointer; /* Zeigt, dass es anklickbar ist */
    transition: opacity 0.3s ease-in-out; /* Weicher Übergang beim Ein- und Ausblenden */
}

/* Anpassung für Handys (max-width: 576px) */
@media (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}





.download {
    display: flex;            /* Aktiviert Flexbox für die Kindelemente */
    align-items: center;      /* Zentriert Text und Bild vertikal (wichtig!) */
    justify-content: center;  /* Zentriert den gesamten Block horizontal auf der Seite */
    gap: 0.5rem;              /* Fügt einen kleinen Abstand zwischen Text und Icon hinzu */
    
    /* Weitere Formatierungen, damit der Block gut aussieht */
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 100;
    color: #fafafa;
    background-color: #dc2626;
}