@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* GRUNDLAGEN & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #6cf7a9;
    --white-color: #fdfdfd;
    /* Reduziere die Opazität für einen weniger harten Schatten */
    --shadow-color: rgba(0, 0, 0, 0.1); 
}

html {
    /* 1rem = 10px (Basis für responsive Schriftgröße) */
    font-size: 62.5%; 
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ALLGEMEINE KLASSEN */
section {
    min-height: 100vh;
    /* Standard-Padding an den Seiten, ansonsten 10rem oben/unten */
    padding: 10rem 7% 2rem; 
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    /* Verwende die optimierte shadow-color */
    box-shadow: 0 .2rem .5rem var(--shadow-color); 
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: all 0.3s ease; /* Übergang für Hover-Effekte */
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background-color: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s; /* Übergang für Sticky-Effekt */
}

.header.sticky {
    background: var(--bg-color);
    /* Verwende die optimierte shadow-color */
    box-shadow: 0 .1rem 1rem var(--shadow-color); 
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem; /* Abstand zwischen Links */
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a.active {
    color: var(--main-color);
}

/* Navigations-Unterstrich */
.navbar a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--white-color);
    transition: 0.3s ease; /* Übergang für Unterstrich */
}

/* Aktiver Link im normalen Header */
.navbar a.active::before {
    background: var(--white-color);
}

/* Unterstrich im Sticky Header */
.header.sticky .navbar a::before {
    background: var(--main-color);
    opacity: .7;
}

/* DARK MODE ICON & MENU ICON */
#darkMode-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 2rem; /* Abstand zur Navbar */
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: .9;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none; /* Nur für mobile Ansicht anzeigen */
    margin-left: 1.5rem; /* Abstand zum DarkMode-Icon */
}

/* ZURÜCK-PFEIL BUTTON */
.header-iconTurn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.header-iconTurn a:hover {
    outline-color: var(--text-color); /* Ändere von white-color zu text-color, damit es im hellen Modus sichtbar ist */
}

.header-iconTurn a i {
    font-size: 2.4rem;
    color: var(--text-color); /* Verwende var(--text-color) statt festem #333 */
}

/* INTRODUCTION / HAUPTINHALT */
.introduction {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.introduction .introduction-box {
    background: #eee8e8;
    border: .2rem solid var(--main-color);
    border-radius: 18px;
    padding: 5% 2.1rem;
    width: 100%;
}

.introduction .introduction-content {
    display: flex;
    /* KORREKTUR: Zentriert den Titel-Container */
    justify-content: center; 
    align-items: center;
    width: 100%;
    max-width: none; 
    margin: 0;
    /* NEU: Erforderlich für absolute Positionierung des Pfeils */
    position: relative; 
}

/* KORREKTUR: Pfeil absolut positionieren, um Zentrierung nicht zu stören */
.header-iconTurn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Stellt sicher, dass er klickbar ist */
}


/* Spezieller Container für die mittigen Überschriften */
.title-content-center {
    /* flex-grow: 1; <-- Entfernt, wird nicht mehr benötigt */
    text-align: center;
    line-height: 1; 
}

.title-content-center h1,
.title-content-center h3 {
    margin: 0;
}

.introduction-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.introduction-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
    white-space: nowrap;
}

.introduction .img {
    margin: 3rem auto; /* Füge etwas vertikalen Abstand hinzu */
    width: 100%; /* Ändere 80rem auf 100%, um die Box auszufüllen */
    height: 30rem;
    border: 3px solid var(--main-color);
    border-radius: 0%;
    object-fit: cover;
    background-image: url('../../images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.introduction p {
    font-size: 1.6rem;
    margin: 1rem 0rem 3rem;
    width: 100%;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--text-color); /* Konsistent mit header-iconTurn */
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--text-color); /* Konsistent mit header-iconTurn */
}

/* BREAKPOINTS (HINZUGEFÜGT UND ANGEPASST) */

@media (max-width:1250px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:1048px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width:970px) {
    .introduction-content h1 {
         white-space: normal; /* Erlaube Umbruch bei h1 */
    }
}

@media (max-width:855px) {
    #menu-icon {
        display: block;
    }

    /* Verstecke den 'Zurück-Pfeil' im mobilen Header (CSS-Regel von .header-iconTurn) */
    /* KORREKTUR: Spezifischere Regel, um nur den Pfeil in der .introduction-Box auszublenden */
    .introduction .header-iconTurn {
        display: none;
    }

    /* Positioniere DarkMode-Icon links vom Menü-Icon */
    #darkMode-icon {
        /* position: absolute; KORRIGIERT: Entfernt, um Flexbox-Ausrichtung zu nutzen */
        /* right: 7rem; KORRIGIERT: Entfernt */
        font-size: 2.6rem;
        margin-left: 0; /* Überschreibe Desktop-Margin */
        margin-right: 1.5rem; /* Fügt Abstand zwischen den Icons hinzu */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        margin-left: 0; /* Zentriert die Links im mobilen Menü */
        text-align: center;
    }

    .navbar a::before {
        display: none;
    }

    /* Mobile-Anpassung für .introduction */
    .introduction {
        padding-top: 10rem; /* Platz für Header */
    }

    /*
      KORREKTUR: Zentriert den gesamten Inhalt der Box (Titel, Bild, p) auf Mobilgeräten,
      genauso wie es im .home-Abschnitt der Fall war.
    */
    .introduction .introduction-box {
        text-align: center;
    }

    .introduction-content h1 {
        font-size: 4.5rem; /* Etwas kleiner für Mobile */
        white-space: normal;
    }
    .introduction-content h3 {
        font-size: 2.8rem; /* Etwas kleiner für Mobile */
    }

    .introduction .img {
        height: 25rem; /* Höhe des Bildes anpassen */
    }

    .footer {
        /* Stellt sicher, dass das Padding auch bei 855px greift, falls nicht schon bei 1048/970 */
        padding: 2rem 3%;
    }
}

@media (max-width:400px) {
   html{
    font-size: 55%;
   }
}

