/* CONTAINER: .wrapper */
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px 0 40px; 
    box-sizing: border-box;
    margin-top: -10px !important;
}

html {
    height: auto;
    margin: 1px; /* Entfernt äußeren Rand */
    padding: 0; /* Entfernt inneren Abstand */
    box-sizing: border-box; /* Padding und Margin einbeziehen */
    overflow-x: hidden; /* Horizontales Scrollen vermeiden */
}

.background {
    max-width: 1500px;
    margin: 0 auto;
    background-color: #FDFBF7;
    min-height: 1200px;
    z-index: 1;
    position: relative;
}

.language-bar { 
    font-size: 14px;
    padding: 3px 6px; /* Weniger Innenabstand */
    bottom: 5px; /* Näher am unteren Rand */
    right: 5px; /* Näher am rechten Rand */
    left: 0px;                 
    background-color: #FDFBF7; 
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;     /* Links zentrieren */ 
}

.language-bar a {
    display: inline-block;
    text-decoration: none; /* Entfernt Unterstreichung */
    color: #064e3b; /* Dunkelblau für Links */
    font-weight: bold;
    font-size: 14px;
    margin: 0 6px;
    transition: all 0.2s ease-in-out;
}

/* Schritt 1: Sichtbarer Hover-Effekt in der Sprachleiste */
.language-bar a:hover {
    color: #800080; /* Purple (statt rgb(0, 30, 60)) */
    transform: scale(1.1);
    text-shadow: 0.5px 0 0 #800080;
}

.language-bar span {
    color: rgb(80, 80, 80); /* Dezente Farbe für den Separator */
    margin: 0 4px; /* Platz um den Separator herum */
    font-size: 14px;
    display: inline-block;
    pointer-events: none;
}

/* Slogan Bar */
.slogan-bar {
    max-width: 1200px; 
    margin: 10px auto; 
    overflow-wrap: break-word;
    white-space: normal;
    align-items: center;
    display: flex;
    background-color: #FDFBF7;
    font-size: 24px;
    font-weight: bold;
    height: auto;
    min-height: 100px;
    width: 100%;
    position: relative; /* Notwendig für z-index */
    z-index: 10; 
    text-align: center;
}

/* Slogan-Text */
.slogan {
    max-width: 1040px; /* Begrenzung des Textbereichs */
    margin: 0 auto;
    text-align: center;
    color: #064e3b;
    font-size: 22px;
    font-family: 'Nunito', sans-serif; /* Super abgerundete Schriftart */
    font-weight: 700; /* Fett dargestellt */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    /*letter-spacing: 1px; /* Optional: Buchstaben leicht auseinanderziehen */
    padding: 10px 20px; /* Abstand für einen sanften Look */
    border-radius: 10px; /* Abgerundete Ecken */    
}

.hidden {
    display: none; /* Element wird vollständig unsichtbar */
}



/* 1. Die Checkbox (unsichtbarer Schalter) */
.menu-toggle {
    display: none;
}

.menu-icon:hover span {
    background-color: #800080 !important; /* Purple, passend zur Bar */
    transform: scaleY(1.3);
    box-shadow: 0 0 1px #800080;
}

.menu-toggle:not(:checked) + .menu-icon:hover span:nth-child(1) { 
    transform: scaleY(1.3) translateY(-1px); 
}
.menu-toggle:not(:checked) + .menu-icon:hover span:nth-child(3) { 
    transform: scaleY(1.3) translateY(1px); 
}

/* 3. Das Icon selbst bleibt stabil (kein Springen mehr) */
.menu-icon:hover {
    transform: translateY(-50%) scale(1.05); /* Nur eine minimale Vergrößerung */
    transition: all 0.2s ease-in-out;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* WICHTIG: Erzeugt die Abstände automatisch */
    width: 30px;
    height: 18px; /* Etwas flacher für bessere Proportion */
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 4px 0; /* Erzeugt "Schutzraum" oben und unten */
    pointer-events: auto; 
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #064e3b;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0; /* Margins entfernen, da space-between das regelt! */
}

/* 3. Das eigentliche Menü (Die Liste) */
#hamburger-menu {
    display: none; /* Standardmäßig aus */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Direkt unter der Sprachleiste */
    right: 0;
    width: 250px;
    background-color: #064e3b;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
    z-index: 750;
}

/* Menü-Links */
#hamburger-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 12px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#hamburger-menu a:last-child {
    border-bottom: none;
}

#hamburger-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 4. LOGIK: Einblenden bei Klick */
.menu-toggle:checked ~ #hamburger-menu {
    display: flex;
}

/* Animation des Icons (Optional: wird zum X) */
.menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .slogan {
        font-size: 20px;      
        line-height: 1.3;
        box-sizing: border-box !important;
    }
}

/* Anpassung für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .slogan {
        font-size: 18px;
    }
}

/* Hamburger-Menü Responsivität */
@media screen and (max-width: 768px) {
    #hamburger-menu {
        top: 10px; /* Menü weiter nach oben schieben */
        right: 4px; /* Nähe des Randes anpassen */
        width: 60%; /* Menübreite flexibler machen */
    }

    #hamburger-menu a {
        font-size: 10px; /* Schriftgröße für kleinere Bildschirme */
        padding: 8px 0; /* Vertikalen Abstand optimieren */
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        width: 28px;
        height: 20px;
        padding: 5px;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
    }

    .menu-icon span {
        width: 100%;
        height: 3px;
        margin: 0;
        background-color: #064e3b; /* Farbe der Striche */
        display: block;
        border-radius: 3px; /* Abgerundete Striche */
    }
}

/* Noch kleinere Anpassungen für Smartphones */
@media screen and (max-width: 480px) {
    .menu-icon {
        width: 22px; /* Kleinere Breite für Smartphones */
        height: 12px; /* Kleinere Höhe für Smartphones */
        right: 10px;
        padding: 0; /* Innenabstand reduzieren */
    }

    .menu-icon span {
        width: 18px; /* Kleinere Breite der Linien */
        height: 2px; /* Kleinere Höhe der Linien */
    }
}

    @media (max-width: 480px) {
    .language-bar {
        font-size: 8px; /* Noch kleinere Schriftgröße */
        padding: 1px 2px; /* Geringere Abstände */
        bottom: 0; /* Näher am unteren Rand */
        right: 1px; /* Näher am rechten Rand */
    }
    
    .language-bar a {
    margin: 0 1px; /* Minimaler Abstand zwischen Links */
    }

    .language-bar span {
    margin: 0 1px; /* Minimaler Abstand um Separatoren */
    }
    }

/* --- 1. Das schmale Banner ganz oben (Logo/Flaggen) --- */
.header-container {
    width: 100%;
    max-width: 1200px; 
    margin: 10px auto;    /* Zentriert den gesamten Header-Bereich */
    position: relative;
    text-align: center;
}

.header-image {
    width: 100%;       /* Nutzt die volle Breite des Containers */
    height: auto;      /* Verhindert Verzerrung */
    display: block;    
}

/* --- 3. Globaler Hintergrund (Wärmer) --- */
body {
    background-color: #FDFBF7; /* Dein gewünschtes warmes Off-White */
    margin: 0;
    padding: 0;
    font-family: "Myriad Pro", sans-serif; /* Deine gewählte Schriftart */
}

/* Navigationsleiste mit Icons */
.nav-icons {
    width: 100%;
    max-width: 1150px; /* Icons bleiben im Sichtfeld des Nutzers */
    display: flex;
    justify-content: center; /* Zentriert die Icons horizontal */
    align-items: flex-start; /* Verhindert unerwünschte vertikale Abstände */
    padding: 15px 10px; /* Entfernt Innenabstände */
    margin: 10px auto 30px; 
    gap: 50px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* Icons */
.nav-icons img {
    /*width: 120px;*/
    width: 100%;
    display: block; /* Entfernt zusätzliche Abstände durch Inline-Elemente */
    /*max-width: 100%;*/
    max-width: 100px;
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    margin: 0; /* Entfernt alle Außenabstände */
    /*padding: 0; /* Entfernt alle Innenabstände */
    /*object-fit: contain; /* Beibehaltung der Bildproportionen */
}

.nav-icons a {
    display: inline-flex; /* Behebt unnötige Inline-Abstände */
    align-items: center; /* Zentriert das Icon im Link */
    justify-content: center;
    margin: 0; /* Entfernt Außenabstände */
    padding: 0; /* Entfernt Innenabstände */
}

/* Hover-Effekt für Icons */
.nav-icons img:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Tooltip-Stile */
.nav-icons a[data-tooltip] {
    position: relative; /* Basisposition für Tooltip und Pfeil */
}

.nav-icons a[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 5px); /* Nur 5px Abstand zwischen Icon und Tooltip */
    left: 50%;
    transform: translateX(-50%);
    background-color:#064e3b;
    color: #FDFBF7;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 8px; /* Innenabstand für den Tooltip-Text */
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    /*pointer-events: none; /* Tooltip nicht klickbar */
    z-index: 10; /* Sicherstellen, dass Tooltip über Icons bleibt */
}

.nav-icons a[data-tooltip]::after {
    content: "";
    position: absolute;
    top: calc(100% + 0px); /* Pfeil direkt unter dem Tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px; /* Größe des Pfeils */
    border-style: solid;
    border-color: rgb(60, 90, 130) transparent transparent transparent; /* Pfeil zeigt nach oben */
    opacity: 0; /* Unsichtbar bis Hover */
    z-index: 10;
}

/* Tooltip und Pfeil sichtbar machen */
.nav-icons a[data-tooltip]:hover::before,
.nav-icons a[data-tooltip]:hover::after {
    opacity: 1; /* Tooltip und Pfeil sichtbar machen */
}

.nav-icons a.active {
    pointer-events: none; /* Aktiver Link ist nicht klickbar */
}

.nav-icons a.active img {
    filter: grayscale(100%); /* Wandelt das Icon in Graustufen um */
    opacity: 0.6; /* Leichte Transparenz */
}

/* Tablet (bis 768px) */
@media (max-width: 768px) {
    .nav-icons {
        gap: 20px; /* Noch enger zusammen für mehr Platz */
    }
    .nav-icons img {
        max-width: 80px; /* Icons auf Tablets etwas kleiner als 125px */
    }
}

/* Smartphone (bis 480px) */
@media (max-width: 480px) {
    .nav-icons {
        gap: 15px;
        margin: 5px auto 20px;
    }
    .nav-icons img {
        /* Hier erhöhen wir die Präsenz: 
           Zwei Icons nebeneinander wirken meist besser als winzige in einer Reihe */
        max-width: 65px; 
    }
    
    /* Tooltips auf dem Handy ausschalten (man kann nicht "hovern") */
    .nav-icons a[data-tooltip]::before,
    .nav-icons a[data-tooltip]::after {
        display: none !important;
    }
}

.add-margin {
    margin-top: 20px; /* Passe den Abstand nach Bedarf an */
}

/* Anpassung für Icon-Navigationsbar auf kleinen Displays */
@media (max-width: 768px) {
    .icon-nav-bar {
        margin: 0 5px; /* Abstand von 1,5mm (5px) links und rechts */
    }
}

@media (max-width: 768px) {
    .icon-nav-bar {
        margin: 5px 5px; /* Horizontaler Abstand zum Rand */
        padding: 0; /* Zusätzlicher Innenabstand */
    }
}

/* Main-Titel */
.main-title {
    max-width: 1200px; /* Maximale Breite */
    background-color: rgba(6, 95, 70, 0.03); /* Hintergrundfarbe */
    border-radius: 15px; /* Abgerundete Ecken */
    text-align: center; /* Zentriert den Text horizontal */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Schatteneffekt */
    font-size: 24px; /* Schriftgröße */
    font-weight: bold; /* Fettgedruckte Schrift */
    line-height: 1.4; /* Angenehmer Zeilenabstand */
    font-family: "Myriad Pro", sans-serif;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content;
    padding-right: 40px !important;
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .main-title {
        font-size: 16px; /* Reduzierte Schriftgröße */
        padding: 8px 12px; /* Weniger Abstand */
    }
}

/* Anpassung für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .main-title {
        font-size: 14px; /* Noch kleinere Schriftgröße für .main-title */
        padding: 6px 10px; /* Minimaler Abstand */
    }
}

/* keyword */
.keyword {
    display: block;  
    font-weight: 800;
    color: #065f46;
    font-size: 18px;
    font-weight: bold;
    margin: 0;      
    position: relative;
}

/* Impressum-spezifisches Styling */ 
.impressum-text {
    margin-left: 300px; /* Verschiebt die Texte nach rechts */
    font-size: 18px; /* Standard-Schriftgröße für Lesbarkeit */
    line-height: 1.5; /* Angenehmer Zeilenabstand */
    color: #222222; /* Dunkelgrau für professionellen Look */
    text-align: left; /* Standardmäßige Ausrichtung */
}

.impressum-text strong,
.impressum-text b {
    font-weight: bold; /* Sicherstellt, dass der Text fett ist */
    font-size: inherit; /* Gleiche Schriftgröße wie der umgebende Text */
    display: block; /* Zeigt die erste Zeile als Blockelement */
    margin-bottom: 5px; /* Abstand zur nächsten Zeile */
}

.impressum-main {
    font-size: 19px;
    display: flex; /* Aktiviert flexbox */
    justify-content: center; /* Zentriert horizontal */
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .impressum-text strong,
    .impressum-text b {
        font-size: 16px; /* Kleiner, aber immer noch deutlich */
    }
}

@media (max-width: 480px) {
    .impressum-text strong,
    .impressum-text b {
        font-size: 14px; /* Noch kleinere Schrift für sehr kleine Geräte */
    }
}

/* Arrow symbol for language directions */
.arrow-symbol {
    font-size: 1.2em;
    color: #064e3b;
    margin: 0 5px;
}

.about-de-image,
.about-en-image,
.about-fr-image {
    display: flex; /* Aktiviert Flexbox */
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Setzt den Inhalt oben ausgerichtet */
    margin: 20px auto; /* Gleichmäßiger Abstand oben und unten */
    position: relative; /* Ermöglicht spätere Anpassungen */
    overflow: visible; /* Verhindert Beschneidung */
}

.about-de-image-img,
.about-en-image-img,
.about-fr-image-img {
    max-width: 1000px; /* Maximale Breite des Bildes */
    width: 90%; /* Bild skaliert bis 90% der Containerbreite */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    display: block; /* Verhindert Inline-Abstände */
    margin: 0; /* Keine zusätzlichen Abstände */
}


.privacy-main {
    padding-left: 19px; /* Abstand von ca. 5 mm links */
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip img.X-icon {
    width: 45px; /* Passe die Breite an */
    height: auto; /* Behalte die Proportionen */
}

.footer {
    width: 100%;
    max-width: 1200px; /* Neue Zielbreite */
    margin: 40px auto 0 auto; /* Zentriert auf der Seite mit Abstand nach oben */
    color: #064e3b;;
    padding: 20px;
    font-family: "Myriad Pro", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert alle Flex-Elemente horizontal */
    gap: 15px;
    text-align: center; /* Zentriert den Text innerhalb der Elemente */
}

/* Das grosse Footer-Banner/Logo */
.footer-logo img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigationslinks im Footer */
.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Zentriert die Link-Liste */
    flex-wrap: wrap; 
    gap: 30px;
    margin: 60px 0 5px 0;
}

.footer-links a {
    color: #064e3b;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    display: inline-block; /* WICHTIG: Erlaubt Transformationen */
    transition: color 0.3s ease, transform 0.3s ease; /* Transition für beides hinzufügen */
}

.footer-links a:hover {
    color: #800080;
    transform: translateY(-8px);
    text-shadow: 0.5px 0 0 #800080;
}

/* Social Media Sektion */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 30px 0 60px 0;
    overflow: visible;
}

.footer-social a img {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
}

/* 1. Den Link-Container vorbereiten */
.footer-social a {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* 2. Den Tooltip NACH UNTEN verschieben */
.footer-social a .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: auto;
    white-space: nowrap; /* Verhindert ungewollte Zeilenumbrüche */
    background-color: #064e3b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    left: 50%;
    /* Positioniert den Tooltip UNTER das Icon */
    top: calc(100% + 15px); 
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    pointer-events: none;
}

/* 3. Den Pfeil so drehen, dass er nach OBEN zeigt (zum Icon) */
.footer-social a .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Pfeil oben am Tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    /* Pfeilfarbe zeigt nach unten, also muss die untere Border gefärbt sein */
    border-color: transparent transparent #064e3b transparent;
}

/* 4. Hover-Effekt: Icon springt hoch, Tooltip erscheint */
.footer-social a:hover {
    transform: translateY(-8px);
}

.footer-social a:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    /* Tooltip bleibt beim Hover ruhig oder bewegt sich minimal */
    transform: translateX(-50%) translateY(0);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .footer-links ul {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        width: 30%; /* Noch kleinere Breite für sehr kleine Displays */
        max-width: 120px; /* Maximale Breite weiter reduziert */
        height: auto; /* Seitenverhältnis bleibt erhalten */
        margin: 0 auto; /* Zentriert das Bild */
    }
}

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .footer-links ul {
        width: 100%; /* Nutzt die volle Breite des Displays */
        padding: 0 5%; /* Füge etwas Polsterung hinzu, um den Rand zu vermeiden */
    }

    .footer-links ul li a {
        font-size: 12px; /* Noch kleinere Schriftgröße */
        padding: 8px; /* Weniger Innenabstand */
    }
}

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 10px; }

.section-title {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 15px;
    text-align: left;
    font-family: "Myriad Pro", sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #064e3b;
    line-height: 1.3;
    padding-left: 40px;
    display: block;
}

.text-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 !important;
    padding: 0 40px;
    font-family: "Myriad Pro", sans-serif;
    text-align: left; /* Alles im Hauptbereich wird zentriert */
}

.text-content p:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Container */
section.apply-section {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #FDFBF7;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-family: system-ui, Arial, sans-serif;
  color: #222;
}

/* Formularelemente */
form label {
  display: block;
  margin-top: 0.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-align: left;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form select,
form input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Gruppierungen */
fieldset {
  border: none;
  margin: 1.2rem 0;
  padding: 0;
}

/* Legenden linksbündig wie Labels */
legend {
  font-weight: 700;
  display: block;
  margin: 0 0 0.3rem 0;   /* gleiche linke Ausrichtung wie label */
  padding: 0;
}


/* Checkbox + Datenschutz */
form .consent {
  margin-top: 1rem;
}

form .consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  line-height: 1.4;
}

form .consent input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Submit-Button */
button[type="submit"] {
  background-color: #065f46;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1.2rem;
}

button[type="submit"]:hover {
  background-color: #004b99;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;   /* ← entfernt die Unterstreichung */
  color: #064e3b;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: none;   /* ← bleibt auch beim Hover ohne Unterstreichung */
  color: #004b99;           /* optional: beim Hover etwas dunkler */
}

.consent-label {
  display: flex;
  align-items: center;   /* vertikal mittig ausrichten */
  gap: 0.5rem;           /* Abstand zwischen Checkbox und Text */
  font-weight: normal;
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  margin: 0;             /* entfernt den Standardabstand oben */
}

/* Wrapper */
.file-input {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #FDFBF7;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: .4rem .5rem;
}

/* echtes Input unsichtbar, aber zugänglich über Label */
.file-input input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


.file-btn {
  background: #065f46;
  color: #fff;
  padding: .45rem .9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .95rem;
  user-select: none;
}

.file-btn:hover { background: #064e3b;; }

/* Dateiname/Placeholder */
.file-name {
  color: #666;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1 {
    width: 100%;
    max-width: 1100px;
    margin: 10px auto 0 auto; /* Zentriert den Kasten auf der Seite */
    padding: 0px;
    text-align: center;
    font-family: "Myriad Pro", sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #064e3b; /* Dunkelstes Smaragdgrün für höchste Seriosität */
    line-height: 1.3;
}

/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        padding: 15px 20px;
        border-left-width: 4px;
    }

    .section-title {
        font-size: 20px;
        padding-left: 40px; /* Reduzierter Einzug auf Tablets */
        margin-top: 15px;
    }

    .keyword {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18px;
        padding: 10px 15px;
        border-left-width: 3px;
    }

    .section-title {
        font-size: 18px;
        padding-left: 15px; /* Minimaler Einzug für kleine Screens */
        margin-top: 10px;
    }

    .keyword {
        font-size: 13px;
        font-weight: 700;
    
}

.slogan-container-wide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
}
/* Mobile enger: geringere Höhe & Abstand */
@media (max-width: 768px){
  .hero-slider { height: 240px; margin-bottom: 8px; }
}

/* --- Kontaktformular / contact_us.html spezifisch --- */

/* Äußerer Container der Kontakt-Seite */
.apply-section {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #FDFBF7;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}

/* Grid-Zweispalter (Name / Email, etc.) */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* bei schmalen Screens -> einspaltig */
@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
  }
}

/* zusätzlicher Wrapper für den DSGVO-Zustimmungsblock */
.consent {
  margin-top: 1rem;
}

/* textarea Zusatzeigenschaften (nur ergänzen falls noch NICHT global geregelt) */
textarea {
  min-height: 160px;
  resize: vertical;
  /* Hinweis: border-radius, padding, etc. kommen bereits
     über deine form input[...] Regel, wenn du textarea dort
     schon drin hast. Falls textarea da NICHT mit drin ist,
     kannst du sie ergänzen: */
  box-sizing: border-box;
  width: 100%;
}

.copyright-text-overlay {
    position: absolute;      /* Absolute Positionierung bricht aus dem Padding aus */
    left: 0;                /* Startet ganz links */
    right: 0;               /* Geht bis ganz rechts */
    margin-left: auto;      /* Zusammen mit margin-right: auto zentriert es */
    margin-right: auto;
    
    max-width: 1200px;      /* Begrenzt die Breite auf deinen Website-Inhalt */
    text-align: center;     /* Zentriert den Text innerhalb dieser 1200px */
    
    bottom: 10px;           /* Abstand vom unteren Rand des Containers */
    
    color: rgb(0, 60, 110); 
    font-size: 8px;         
    opacity: 0.8;
    box-sizing: border-box; /* WICHTIG: Padding wird in die Breite eingerechnet */
}

/* Für Tablets */
@media screen and (max-width: 768px) {
    .copyright-text-overlay {
        font-size: 6px; /* Etwas kleiner auf Tablets */
        bottom: 6px;     /* Rückt etwas näher an den Rand */
    }
}

/* Für Smartphones */
@media screen and (max-width: 480px) {
    .copyright-text-overlay {
        font-size: 5px; /* Sehr diskret auf kleinen Smartphone-Displays */
        bottom: 5px;
        width: 90%;      /* Verhindert Anstoßen an den Bildschirmrand */
    }
}

.study-section {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #FDFBF7;
  border: 1px solid #FDFBF7;
  border-radius: 10px;
}

.success-box {
  background: #eaf7ea;
  border: 1px solid #b8e0b8;
  color: #1b5e20;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.success-box strong {
  display: inline-block;
  margin-right: 0.35rem;
}

.actions {
  margin-top: 1.2rem;
}

.content-block-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.hero-slider, 
.about-hero {
    margin-top: 0 ;
    margin-bottom: 0 ;
    padding-top: 0 ;
    padding-bottom: 0 ;
    /* Falls eine min-height das Ganze künstlich aufbläht: */
    min-height: 0 ; 
}

/* Type-A: Zoom von klein auf groß, bleibt dann stehen */
@keyframes zoom-in-final {
   0% { transform: scale(0.3); image-rendering: pixelated; }
    30% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Type-B: Slide von rechts nach mitte, bleibt dann stehen */
@keyframes slide-in-final {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Das alte Slide geht nach links weg */
@keyframes slide-out-left {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.slide.is-active {
    opacity: 1;
    z-index: 2; /* Das aktive Slide ist immer oben */
}

.slide-animation-type-B { animation: slide-in-final 0s forwards; }
.slide-animation { animation: slide-in-final 0s forwards; }

.hero-slider .slide.slide-animation img {
    animation: final-slide-animation 0s ease-in-out both;
}

.hero-slider .slide.extra-time.is-active img {
    animation-duration: 6s !important;
}

@media screen and (max-width: 480px) {
    /* Wir vergrößern nur die Bilder innerhalb der Slides für Smartphones */
    .hero-slider .slide img {
        max-width: 95% !important; /* Vorher vermutlich durch Container begrenzt, jetzt fast volle Breite */
        max-height: 90% !important; /* Nutzt mehr vertikalen Raum im 440px hohen Container */
        object-fit: contain;
    }

    /* Spezielle Anpassung für deine SVGs, falls vorhanden, damit auch diese größer wirken */
    .hero-slider .slide img[src$=".svg"] {
        max-width: 65% !important;
        max-height: 65% !important;
        object-fit: contain;
    }
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Das ausfahrende Bild */
.slide-out {
    animation: slide-out-left 1s ease-in forwards !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

/* Das neue Bild (wartet 1s, bis das alte weg ist) */
.zoom-animation { 
    animation: zoom-in-clean 4s ease-out forwards;
    z-index: 5;
}

@keyframes zoom-in-clean {
    0% { transform: scale(0.1); opacity: 0; }
    5% { opacity: 1; } /* Erscheint erst HIER, sofort mit Bewegung */
    100% { transform: scale(0.75); opacity: 1; }
}

.slide-out {
    animation: slide-out-left 1s ease-in-out forwards !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

@keyframes slide-out-left {
    0% { 
        /* Startet bei 75%, damit es nicht auf 100% springt */
        transform: translateX(0) scale(0.75); 
    }
    100% { 
        /* Bleibt bei 75%, während es nach links verschwindet */
        transform: translateX(-100%) scale(0.75); 
    }
}

/* --- Spezial-Animationen für das 100% Bild --- */

/* 1. Einzoomen bis volle 100% */
@keyframes zoom-in-full {
    0% { transform: scale(0.1); opacity: 0; }
    5% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* 2. Wegsliden bei vollen 100% (Kein Schrumpfen auf 0.75) */
@keyframes slide-out-full {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(-100%) scale(1); opacity: 0; }
}

/* DER BUTTON-STIL */
.hero-cta {
    display: inline-block;
    background-color: #065f46;      /* TunSui Primärgrün */
    color: #FDFBF7 !important;     /* Kontrastfarbe (dein warmes Weiß) */
    padding: 14px 32px;            /* Angenehme Größe */
    font-size: 20px;               /* Passend zur neuen p-Schriftgröße */
    font-weight: bold;
    text-decoration: none;         /* Entfernt Unterstreichung */
    border-radius: 12px;           /* Modern abgerundete Ecken */
    border: 2px solid #065f46;     /* Rahmen in gleicher Farbe für Stabilität */
    
    /* Deine bestehenden Transitionen ergänzt um Shadow & Border */
    transition: transform 0.3s ease, 
                background-color 0.3s ease, 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    
    font-family: "Myriad Pro", sans-serif;
    cursor: pointer;
}

/* HOVER-EFFEKT (Ausbau deines Entwurfs) */
.hero-cta:hover {
    background-color: #064e3b;      /* Etwas dunklerer Ton beim Hover */
    border-color: #064e3b;
    color: #ffffff !important;
    transform: translateY(-5px);    /* Dein bewährter Sprung */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Etwas tieferer Schatten passend zum Sprung */
}

/* OPTIONAL: Klick-Effekt (Active State) */
.hero-cta:active {
    transform: translateY(-1px);    /* Button drückt sich beim Klick leicht rein */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Schritt 7: Ausgrauen aktiver Links (Sprachen & Footer) */
.active-link {
    color: #a0a0a0 !important; /* Grau-Ton */
    pointer-events: none;       /* Link ist nicht mehr anklickbar */
    cursor: default;            /* Standard-Mauszeiger statt Hand */
    transform: none !important; /* Verhindert den Hover-Sprung bei aktiven Links */
}

.hero-slider, 
.about-hero {
    margin-top: 0 ;
    margin-bottom: 0 ;
    padding-top: 0 ;
    padding-bottom: 0 ;
    /* Falls eine min-height das Ganze künstlich aufbläht: */
    min-height: 0 ; 
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transform: none; /* Wir entfernen translate hier, um Konflikte zu vermeiden */
}

@media (max-width: 480px) {
    /* 1. Bilder im Slider vergrößern */
    .hero-slider .slide img {
        max-width: 95% ; /* Von 80% auf 95% für mehr Präsenz */
        max-height: 90% ;
    }

    /* 2. Falls du SVGs nutzt, auch diese vergrößern */
    .hero-slider .slide img[src$=".svg"] {
        max-width: 65% ;
    }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

/* 2. SLIDE-FIX: Absolute Zentrierung innerhalb der 600px */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transform: none; /* Wir entfernen translate hier, um Konflikte zu vermeiden */
}

/* 3. BILD-FIX: Zentriert das Bild im Slide */
.hero-slider .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Die Animationen kümmern sich um die Bewegung */
}

@keyframes final-slide-animation {
    0% { transform: translateX(100%); opacity: 0; }
    35% { transform: translateX(0); opacity: 1; }
    85% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

/* 5. EBENEN: Überlagerung ohne Hard-Cut */
.hero-slider .slide.is-active {
    opacity: 1 ;
    z-index: 10 ;
}

.hero-slider .slide.slide-animation img {
    animation: final-slide-animation 5s ease-in-out both;
}

.hero-slider .slide.extra-time.is-active img {
    animation-duration: 6s !important;
}

@media screen and (max-width: 480px) {
    /* Wir vergrößern nur die Bilder innerhalb der Slides für Smartphones */
    .hero-slider .slide img {
        max-width: 95% !important; /* Vorher vermutlich durch Container begrenzt, jetzt fast volle Breite */
        max-height: 90% !important; /* Nutzt mehr vertikalen Raum im 440px hohen Container */
    }

    /* Spezielle Anpassung für deine SVGs, falls vorhanden, damit auch diese größer wirken */
    .hero-slider .slide img[src$=".svg"] {
        max-width: 90% !important;
        max-height: 90% !important;
    }
}

/* 6. DER SLIDE-IN (Passt sich der Containerbreite an) */
@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* 1. Globale Regel für Desktop / Standard */
p {
    font-size: 18px;
    line-height: 1.4;
    color: #333333;
    font-family: "Myriad Pro", sans-serif;
}

/* 2. Anpassung für Tablets (bis 768px) */
@media (max-width: 768px) {
    p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* 3. Anpassung für kleine Smartphones (bis 480px) */
@media (max-width: 480px) {
    p {
        font-size: 17px;       /* Etwas kleiner, damit mehr Text in eine Zeile passt */
        line-height: 1.6;       /* Kompakterer Zeilenabstand für den kleinen Screen */
        margin-bottom: 15px;    /* Weniger Verschnitt nach unten */
    }
}

/* DER MASTER-FIX FÜR DEN SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px; /* Standardhöhe Desktop */
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

/* Dynamische Höhenanpassung gegen die "weiße Klaff-Lücke" */
@media (max-width: 1024px) { .hero-slider { height: 400px; } }
@media (max-width: 768px) { .hero-slider { height: 300px; } }
@media (max-width: 480px) { .hero-slider { height: 220px; } }

.hero-slider .slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center; /* Zentriert Bilder vertikal */
    opacity: 0;
    z-index: 1;
}

.hero-slider .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Wichtig für SVGs und PNGs Mix */
}

.hero-slider .slide.is-active {
    opacity: 1;
    z-index: 10;
}

#layers-container {
    position: relative;
    width: 1200px;
    height: 400px;
    margin: 30px auto;
    overflow: hidden; /* Verhindert, dass die Slides außerhalb des Kastens sichtbar sind */
    background: transparent;
}

.about-layer {
    position: absolute;
    top: 0;
    left: 100%; /* Startposition: Ganz rechts außerhalb */
    width: 1200px;
    height: 400px;
    transition: left 2s ease-out; /* Flüssiges Einsliden */
    z-index: 1;
}

/* Aktiver Zustand: Bild ist in der Mitte */
.about-layer.visible {
    left: 0;
}

/* Stacking wie in Ps: Jedes höhere Layer liegt über dem vorherigen */
#layer-2 { z-index: 2; }
#layer-3 { z-index: 3; }
#layer-4 { z-index: 4; }
#layer-5 { z-index: 5; }
#layer-6 { z-index: 6; }
#layer-7 { z-index: 7; }
#layer-8 { z-index: 8; }
#layer-9 { z-index: 9; }

/* Responsive Korrektur für kleinere Bildschirme */
@media (max-width: 1200px) {
    #layers-container, .about-layer {
        width: 100%;
        height: auto;
        aspect-ratio: 1200 / 400;
    }
}

/* Der Container passt sich der Höhe des Bildes an */
.hero-container {
    width: 100%;
    max-width: 1200px; /* Begrenzt die Breite auf das Maximum deiner Bilder */
    margin: 0 auto 30px auto;
    position: relative;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Das Bild bestimmt die Höhe des Containers */
.hero-banner {
    display: block;
    width: 100%;       /* Nutzt immer die volle Breite des Containers */
    height: auto;      /* WICHTIG: Erhält das originale Seitenverhältnis */
    object-fit: scale-down; /* Verhindert, dass kleine Bilder verpixelt werden */
}

h3 {
    display: block;  
    font-weight: 800;
    color: #065f46;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 7px;      
    position: relative;
    
}

/* --- Arabisch / RTL Anpassungen --- */

/* Hauptausrichtung des Layouts */
html[lang="ar"] {
    text-align: right;
}

/* Icons und Navigation spiegeln */
/* --- Präzise Lösung für die Nav-Icons Spiegelung --- */

html[lang="ar"] .nav-icons {
    /* Wir überschreiben die Standard-Logik vollständig */
    direction: rtl !important; 
    flex-direction: row !important; /* row im RTL-Modus spiegelt automatisch! */
    display: flex !important;
    justify-content: center !important;
}

/* Falls die Icons Abstände (Margins) haben, müssen auch diese gespiegelt werden */
html[lang="ar"] .nav-icons a {
    margin-left: initial;
    margin-right: initial;
}

/* Tooltips für Arabisch anpassen */
html[lang="ar"] .nav-icons a::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Sprachleiste Ausrichtung */
html[lang="ar"] .language-bar {
    margin-right: -1.4mm !important;
    margin-left: 1.4mm !important;
    direction: ltr !important;
}

/* Text-Inhalte und Keywords */
html[lang="ar"] .text-content {
    direction: rtl;
    line-height: 1.8; /* Arabische Schrift braucht oft etwas mehr Zeilenabstand */
}

html[lang="ar"] h1 {
    text-align: right;
    display: block;
    width: 100%;
    margin-left: 0;       /* Verhindert linke Blockaden */
    margin-right: 40px;  /* Rückt h1 nach rechts aus dem Container heraus */
}

html[lang="ar"] h2 {
    text-align: right;  /* Rückt h2 noch weiter nach rechts als h1 */
    margin-right: 40px;
}

html[lang="ar"] p {
    text-align: right;
}

/* Footer Social Icons */
html[lang="ar"] .footer-social {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
}

/* Abstände bei Listen im Footer */
html[lang="ar"] .footer-links ul {
    padding: 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
}

/* CTA Wrapper und Button Ausrichtung */
html[lang="ar"] .cta-wrapper {
    display: flex;
    direction: rtl;
}

/* Spezifische Korrektur nur für das Copyright-Overlay im Arabischen */
html[lang="ar"] .copyright-text-overlay {
    direction: rtl; 
    display: flex;
    justify-content: center; /* Zentriert den Block horizontal */
    width: 100%;
}

html[lang="ar"] .copyright-text-overlay p {
    text-align: center !important; /* Erzwingt Zentrierung gegen die allgemeine P-Regel */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Spezifische Stile für den arabischen Apply-Block */
.cta-arabwrapper {
    display: flex !important;
    flex-direction: column !important; /* Stapelt Text und Button untereinander */
    align-items: flex-start !important; /* Richtet den Button rechts aus (da RTL) */
    direction: rtl !important;
    text-align: right !important;
    width: 100% !important;
    /* Das padding-right: 40px hast du bereits im Inline-Style */
}

.hero-arabcta {
    display: inline-block !important; /* Verhindert das Ausdehnen auf 100% Breite */
    text-decoration: none;
    text-align: center;
    
    background-color: #065f46;      /* TunSui Primärgrün */
    color: #FDFBF7 !important;     /* Kontrastfarbe (dein warmes Weiß) */
    padding: 14px 32px;            /* Angenehme Größe */
    font-size: 20px;               /* Passend zur neuen p-Schriftgröße */
    font-weight: bold;
    border-radius: 12px;           /* Modern abgerundete Ecken */
    border: 2px solid #065f46;     /* Rahmen in gleicher Farbe für Stabilität */
    transition: transform 0.3s ease, 
                background-color 0.3s ease, 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    font-family: "Myriad Pro", sans-serif;
    cursor: pointer;
}

/* Verhindert explizit, dass der Button als Flex-Kind die volle Breite einnimmt */
.cta-arabwrapper a.hero-arabcta {
    width: auto !important;
    min-width: 200px; /* Optional: Damit der Button eine schöne Mindestgröße hat */
}

.title-arab {
    display: block;  
    font-weight: 800;
    color: #065f46;
    font-size: 22px;
    margin-bottom: 7px;      
    position: relative;
    direction: rtl !important; 
    text-align: right !important;
    margin-right: 0px !important; /* Gleiche Einrückung wie h1 und h2 */
    width: 100%;
}

html[lang="ar"] .rtl-field {
    display: block !important;
    text-align: right !important;
    direction: rtl !important;
    width: 100%;
    margin-bottom: 5px;
}

.flash-list {
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.flash {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}