/* CONTAINER: .wrapper */
.wrapper {
  width: 100%;
  max-width: 1600px;
  /* Zentriert den Wrapper selbst */
  margin: 0 auto 0; 
  /* Steuert die Einrückung des gesamten Inhalts (H2, H3, Liste) */
  padding: 0 20px 0 40px; 
  box-sizing: border-box;
}

/* Grundlayout – stabil, scrollbar-frei, sauber */
html, body {
    margin: 0;               /* absolut notwendig */
    padding: 0;
    width: 100%;
    overflow-x: hidden;      /* verhindert horizontale Scrollleisten */
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.background {
    width: 100%;
    background-color: rgb(247, 249, 253);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* =========================================================
   LANGUAGE-BAR
   ========================================================= */

.language-bar {  
    padding: 6px 0;
    left: 0px;                 
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center; 
}

.language-bar a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: rgb(0, 60, 110); /* Dunkelblau für Links */
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover nur für die nicht-aktiven Links */
.language-bar a:not(.active-lang):hover {
    color: rgb(0, 30, 60);
    text-decoration: underline;
}

/* Stil für die aktive Sprache (ausgegraut) */
.language-bar a.active-lang {
    color: rgb(160, 160, 160); /* Ein neutrales Grau */
    font-weight: normal;       /* Optional: etwas leichter, um den Fokus wegzunehmen */
    cursor: default;           /* Zeigt an, dass man hier nicht klicken muss */
    pointer-events: none;      /* Verhindert das Klicken auf die bereits aktive Sprache */
}

.language-bar span {
    color: rgb(80, 80, 80); /* Dezente Farbe für den Separator */
    margin: 0 4px; /* Platz um den Separator herum */
}

/* --- Sprache oben: Schriftgröße anpassen --- */
.language-bar,
.language-bar a,
.language-bar span {
  font-size: 18px;
}

/* Slogan Bar */
.slogan-bar {
    margin:10px auto 0; /* Zentriert die Slogan-Bar horizontal */
    align-items: center;
    display: flex;
    background-color: rgb(247, 249, 253);
    height: auto;
    z-index: 10; /* Sicherstellen, dass es hinter .menu-icon liegt */
    text-align: center;
}

/* Slogan-Text */
.slogan {
    font-size: 22px;              /* deutlich kleiner als bisher */
    font-weight: 600;
    color: rgb(0, 60, 110);
    font-family: 'Nunito', sans-serif;
    text-align: center;
    margin: 5px auto 15px auto;
    max-width: 1400px;
    line-height: 1.4;   
}

@media (max-width: 768px) {
    .slogan {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .slogan {
        font-size: 15px;
    }
}

/* =========================================================
   HAMBURGER & LANGUAGE-BAR – UNVERÄNDERT ÜBERNOMMEN
   ========================================================= */

.menu-toggle {
    display: none; /* Versteckt die Checkbox vollständig */
}

.hidden {
    display: none; /* Element wird vollständig unsichtbar */
}

/* Hover-Effekt für Hamburger-Button */
.menu-icon:hover span {
    background-color: rgb(60, 90, 130); /* Farbänderung bei Hover */
}

/* Anpassung für Smartphones */

#hamburger-menu {
    display: none;
    flex-direction: column; 
    position: absolute;
    top: 50px; /* Weniger Abstand nach oben */
    right: 10px; /* Etwas näher am Rand */
    background-color: rgb(0, 60, 110);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 8px; /* Weniger Innenabstand */
    z-index: 1000;
}

#hamburger-menu a {
    color: rgb(200, 200, 200);
    text-decoration: none;
    padding: 8px 0; /* Weniger Abstand zwischen den Links */
    font-weight: bold;
    font-size: 14px; /* Kleinere Schriftgröße */
    display: block;
}

/* Hover-Effekt für Links im Menü */
#hamburger-menu a:hover {
    background-color: #004080; /* Dunkleres Blau bei Hover */
    color: rgb(220, 220, 220); /* Etwas hellerer Grauton bei Hover */
    border-radius: 5px; /* Abgerundete Ecken beim Hover */
}

/* 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: 14px; /* Schriftgröße für kleinere Bildschirme */
        padding: 8px 0; /* Vertikalen Abstand optimieren */
    }
}

/* Menü sichtbar machen, wenn Checkbox aktiviert ist */
.menu-toggle:checked + .menu-icon + #hamburger-menu {
    display: flex;
    background-color: rgb(0, 60, 110);
    color: #ffffff;
    border-radius: 8px;
}

/* Checkbox, um das Menü sichtbar zu machen */
.menu-toggle:checked + .menu-icon + #hamburger-menu {
    display: flex; /* Menü sichtbar */
}

.menu-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon span {
    width: 35px;
    height: 5px;
    background-color: rgb(0, 60, 110);
    border-radius: 2px;
    margin: 3px 0;
}


/* =========================================================
   HEADER-CONTAINER
   ========================================================= */

.header-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.header-image {
    width: 100%; /* Nimmt die gesamte Breite des Containers ein */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    display: block; /* Korrekte Blockdarstellung */
    margin: 0 auto; /* Zentriert das Bild */
    object-fit: cover; /* Schützt das Seitenverhältnis, schneidet ggf. Teile ab */
    object-position: center; /* Zentriert das Bild-Inhalt */
}

@media (max-width: 768px) {
    .header-container {
        height: auto; /* Automatische Höhe, damit es sich an den Inhalt anpasst */
        margin: 0 auto; /* Zentriert das Header-Image */
    }

    .header-image {
        width: 100%; /* Bild füllt die Breite des Viewports */
        height: auto; /* Beibehaltung des Seitenverhältnisses */
        object-fit: cover; /* Verhindert Verzerrungen */
        object-position: center top; /* Positioniert das Bild oben zentriert */
    }
}

@media (max-width: 480px) {
    .header-container {
        height: auto; /* Gleiche automatische Höhe für sehr kleine Bildschirme */
        margin: 0 auto; /* Zentrierung bleibt erhalten */
    }

    .header-image {
        width: 100%; /* Breite bleibt bei 100% */
        height: auto; /* Seitenverhältnis bleibt erhalten */
        object-fit: cover; /* Verhindert Verzerrungen */
        object-position: center top; /* Positioniert das Bild oben zentriert */
    }
}

@media (max-width: 480px) {
    .language-bar,
    .language-bar a,
    .language-bar span {
        font-size: 13px; /* Deutlich lesbarer als 8px */
    }
    
    .language-bar {
        padding: 4px 0; /* Etwas mehr Raum zum Tippen */
    }
    
    .language-bar a {
        margin: 0 4px; /* Etwas mehr Platz zwischen den Sprachen */
    }

    .language-bar span {
        margin: 0 2px; 
    }
}

/* =========================================================
   ABOUT / HERO-BANNER / NAV-ICONS
   ========================================================= */

.about-hero {
    width: 100%;
    max-width: 1600px; 
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.about-hero .about-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-banner {
  width: 100%;
  max-height: 600px;           /* du kannst 500–600 px testen */
  object-fit: cover;           /* füllt Container ohne Verzerrung */
  object-position: center top; /* Fokus auf obere Bildhälfte */
  display: block;
}

/* Navigationsleiste mit Icons */
.nav-icons {
    display: flex; /* Icons nebeneinander anordnen */
    justify-content: center; /* Zentriert die Icons horizontal */
    align-items: center;
    margin: 40px auto 0;
    padding: 0 20px; 
    gap: 90px;
    flex-wrap: wrap;
}

/* Icons */
.nav-icons img {
    display: block; /* Entfernt zusätzliche Abstände durch Inline-Elemente */
    max-width: 150px;
    height: auto;
}

.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: rgb(60, 90, 130);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 8px; /* Innenabstand für den Tooltip-Text */
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    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 */
}

.add-margin {
    margin-top: 20px; /* Passe den Abstand nach Bedarf an */
}

@media (max-width: 768px) {
    .nav-icons {
        gap: 24px;
        padding: 0 12px;
    }

    .nav-icons img {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 18px;
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .nav-icons img {
        width: 48px;          /* kleine Smartphone-Icons */
    }
}

h2 {
  /* Deutlich größer als h3 (22px), um die Sektion zu markieren */
  font-size: 33px;
  /* Konsistenz zur h3 durch den leichten Schriftschnitt */
  font-weight: 300;
  text-align: center;
  /* Fixierte Markenfarbe */
  color: rgb(0, 60, 110);
  /* Mehr Abstand nach oben, um die neue Sektion optisch zu trennen */
  /* Eine saubere Zeilenhöhe für die Lesbarkeit bei größeren Schriften */
  line-height: 1.2;
  /* Optional: Ein leichter Buchstabenabstand für moderne Eleganz */
  letter-spacing: -0.01em;
}

h3.main-title {
    font-size: 28px;
    font-weight: 300;
    color: rgb(0, 60, 110);
    margin-top: 35px; /* Viel Platz zum vorherigen Block */
    /*margin-bottom: 100px;*/
    line-height: 1.1;
    margin-bottom: 8px;
}

h4 {
    font-size: 18px;
    font-weight: bold;
    color: #007bff; /* Akzentblau */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1px;
    
}

.content-block h4 {
    margin-bottom: 3px; 
    display: block; /* Sicherstellen, dass es als Block-Element fungiert */
}

/* 1. Den umschließenden Absatz bändigen, wenn er auf eine h4 folgt */
h4 + p {
    margin-top: 0 !important;
    margin-bottom: 10px;
}

/* 2. Den Link-Stil zentralisieren und Redundanzen entfernen */
.report-link {
    display: block;
    font-weight: bold;
    text-align: left;
    /* 15px oder 16px wirkt harmonischer als 18px neben der h4 */
    font-size: 18px; 
    color: rgb(0, 60, 110);
    text-decoration: none;
    /* Minimaler Abstand nach oben, falls kein p drumherum ist */
    margin-top: 2px; 
    margin-bottom: 5px;
    word-wrap: break-word;
    transition: color 0.3s ease, transform 0.3s ease;
}

.report-link:hover {
    color: #007bff;
    text-decoration: underline;
    transform: translateX(5px);
}

/* 3. Media Queries aufräumen (nur noch Größen anpassen) */
@media (max-width: 480px) {
    .report-link {
        font-size: 14px;
        margin-left: 0; /* Falls Einrückung mobil nicht gewünscht */
    }
}

.content-block p {
    line-height: 1.6; 
    font-size: 17px; 
    letter-spacing: 0.3px;
    margin-bottom: 10px; /* Standard-Absatzabstand */
    padding-left: 0;
}

.content-block p:last-of-type {
    margin-bottom: 50px; 
}

.content-block li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding-left: 25px; /* Add spacing for marker */
    position: relative;
}

.content-block ul {
    padding-left: 80px; /* Einheitliche Einrückung */
    margin: 15px 0; /* Abstand vor und nach der Liste */
    list-style-type: disc; /* Standardsymbol für Listenpunkte */
}

.content-block ul li {
    margin-bottom: 10px; /* Abstand zwischen Listenelementen */
    line-height: 1.5; /* Angenehme Lesbarkeit */
}

/*.content-examples {
    padding: 0px; /* Hier stellen Sie den Einzug für die Beispiele ein
}*/

/*
.content-examples p {
    margin-bottom: 10px;
}*/


div p.first-example {
    position: relative;
    margin-left: 20px;
}

.reduced-spacing p {
    margin: 20px 0;
}

/* Arrow symbol for language directions */
.arrow-symbol {
    font-size: 1.2em;
    color: #0056b3;
    margin: 0 5px;
}

/* Anpassungen für kleine Bildschirme */
@media (max-width: 768px) {
    .text-container {
        width: 90%;
        margin: 0 auto;
        padding: 0 5%;
        box-sizing: border-box;
    }

    .content-block {
        padding: 0;
        margin: 0;
        text-align: left;
    }

    }

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .text-container {
        width: 100%;
        padding: 0 10px;
    }

    .content-block {
        text-align: left;
    }

    .first-example {
        margin: 8px 0;
        line-height: 1.4;
    }
}

/* Anpassung NUR für study.html */
@media (max-width: 768px) {
    .study-content-block {
        position: relative;
    }
}

.study-content-block .report-link {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 20px;
}

/* Zusätzliche Anpassung für sehr kleine Displays (bis 480px) */
@media (max-width: 480px) {
    .study-content-block {
        left: -220px;
    }

    .study-content-block .first-example {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .study-content-block .report-link {
        font-size: 12px;
        margin-left: 20px;
    }
}

/* Anpassung NUR für work.html */
@media (max-width: 768px) {
    .work-content-block {
        position: relative;
    }
}

.work-content-block .report-link {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 20px;
}

/* Zusätzliche Anpassung für sehr kleine Displays (bis 480px) */
@media (max-width: 480px) {
    .work-content-block {
        left: -220px;
    }

    .work-content-block .first-example {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .work-content-block .report-link {
        font-size: 12px;
        margin-left: 20px;
    }
}

.webdesign-credits {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgb(0, 60, 110);
    letter-spacing: 1px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
}

.page-title {   
    color: rgb(0, 60, 110);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 20px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 16px;
        padding: 6px 10px;
    }
}

.centered-text-two {
    text-align: center; 
    font-weight: bold;
}

.about-de-image,
.about-en-image,
.about-fr-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    position: relative;
    overflow: visible;
}

.about-de-image-img,
.about-en-image-img,
.about-fr-image-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.impress-de, .brand {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.privacy-main {
    padding-left: 19px;
}

/* FOOTER */

.footer-links {
    margin-top: 20px;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    justify-content: center;
    gap: 22px;
}

.footer-links a {
    color: rgb(0, 60, 110);
    text-decoration: none;
    font-size: 24px;
    font-weight: 550;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Social-Icons mittig */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.footer-social a img {
    width: 60px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social img {
    width: 32px;
    height: 32px;
    display: block;
}

.footer-content-wrapper {
    background-image: url('../bilder/viewport_translate_footer_1600_120.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 1600px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(0, 60, 110);    
    margin: 50px auto 0;
}

.copyright-text-overlay {
    position: absolute; /* Positioniert den Text relativ zum .footer-content-wrapper */
    bottom: 10px;       /* 10px Abstand vom unteren Rand */
    right: 20px;        /* 20px Abstand vom rechten Rand */
    
    color: rgb(0, 60, 110); /* Passende Farbe, die sich vom Hintergrund abhebt */
    font-size: 12px;        /* Kleine, diskrete Schriftgröße */
    opacity: 0.8;           /* Leicht transparent, um es als Overlay zu kennzeichnen */
}

/* Standard-Margin vom p-Tag entfernen */
.copyright-text-overlay p {
    margin: 0;
}

.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;
    height: auto;
}

.content-block-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.professional-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
}

.large-link {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.larger-text {
    font-size: calc(1em + 8px);
}

.smaller-footer {
    font-size: 44px;
    margin-top: 48px;
    text-align: center;
}

.first-example {
    margin: 15px 0;
    padding-left: 20px;
    line-height: 1.5;
}

.languages {
    font-size: 30px;
    text-align: center;
    color: rgb(0, 60, 110);
    margin-top: -5px;
    line-height: 1.3;
    text-shadow: 
        1px 1px 0.5px rgba(0, 0, 0, 0.5), 
        -1px -1px 0.5px rgba(255, 255, 255, 0.8), 
        1px 1px 2px rgba(0, 0, 0, 0.3);
}

.spacing {
    display: block;
    height: 10px;
}

.responsive-img {
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .footer-logo img {
        width: 30%;
        max-width: 120px;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
  .footer-logo img {
    position: static;
    width: 40%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
    .footer-links ul {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .footer-links ul li {
        display: block;
        margin: 5px 0;
        width: 100%;
    }

    .footer-links ul li a {
        display: block;
        font-size: 16px;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        color: rgb(0, 60, 110);
        transition: color 0.3s ease;
    }

    .footer-links ul li a:hover {
        color: #007bff;
    }
}

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .footer-links ul {
        width: 100%;
        padding: 0 5%;
    }

    .footer-links ul li a {
        font-size: 12px;
        padding: 8px;
    }
}

.text-container, .content-block { /* Beide Klassen bekommen das Standard-Layout */
    max-width: 1600px;
    margin: 0 auto; 
    text-align: left; 

    box-sizing: border-box; 
}

.text-container .content-block ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.text-container .content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background-color: black;
    border-radius: 0;
}

/* Global angenehmer Zeilenabstand & Absatzabstände */
body { line-height: 1.6; }
p {
  margin: 0 0 10px;
  line-height: 1.6;
}

/* Listen luftiger machen */
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 10px; }

.container--narrow { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 16px; 
}

/* Icon-Reihe oben/unten mehr Luft */
.icon-row { 
    margin: 24px 0 20px; 
}

section.apply-section {
  max-width: 900px;
  /*margin: 0 auto;*/
  /*padding: 1.5rem 2rem;*/
  background: #fafafa;
  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;
  padding: 0;
}

/* Wrapper */
.file-input {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: .4rem .5rem;
}

/* echtes Input unsichtbar */
.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;
}

/* Button-Stil */
.file-btn {
  background: #005fcc;
  color: #fff;
  padding: .45rem .9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .95rem;
  user-select: none;
}

.file-btn:hover { background: #004b99; }

/* Dateiname/Placeholder */
.file-name {
  color: #666;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Mobile-Anpassung: kleinere Social Icons === */
@media (max-width: 600px) {
  .footer-social { gap: 8px; }
  .footer-social a img,
  .footer-social img {
    width: 22px;
    height: 22px;
    margin: 4px;
  }
}

/* --- Mobile-Abstand für Textbereiche --- */
@media (max-width: 768px) {
  .content-block {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .content-block {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 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;
  }
}

/* textarea */
textarea {
  min-height: 160px;
  resize: vertical;
  box-sizing: border-box;
  width: 100%;
}

/* --- shared success layouts --- */

.study-section {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  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;
}

.text-heading {
    display: inline-block;
    margin-top: 8px;
}


main h1 {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  color: rgb(0, 60, 110);
  margin: 70px auto 0;
  line-height: 1.25;
}

@media (max-width: 768px) {
  main h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  main h1 { font-size: 18px; }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

/* 1. CONTAINER-FIX: Verhindert die weiße Leere */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Geben Sie hier die gewünschte feste Höhe ein! */
    overflow: hidden;
    background: transparent;
}

/* 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: 80%;
    max-height: 80%;
    object-fit: contain;
    /* Die Animationen kümmern sich um die Bewegung */
}

/* 4. ANIMATIONEN: Zurück zu stabilen Werten */
@keyframes zoom-in-slide-left {
    /* START: Bleibt gleich */
    0% { transform: scale(0.1); opacity: 0; }
    
    /* VERLANGSAMTER ZOOM: 
       Wir erhöhen von 30% auf 50%. 
       Das Bild braucht nun 2,5 statt 1,5 Sekunden, um groß zu werden. */
    50% { transform: scale(1); opacity: 1; }
    
    /* STANDZEIT: 
       Das Bild steht nun von 50% bis 85% ruhig in der Mitte. */
    85% { transform: translateX(0) scale(1); opacity: 1; }
    
    /* SLIDE-OUT: 
       Der bewährte Auszug nach links in den letzten 15%. */
    100% { transform: translateX(-100%) scale(1); opacity: 0; }
}

@keyframes final-slide-animation {
    0% { transform: translateX(100%); opacity: 0; }
    15% { 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 !important;
    z-index: 10 !important;
}

.hero-slider .slide.zoom-animation img {
    animation: zoom-in-slide-left 5s ease-in-out both;
}

.hero-slider .slide.slide-animation img {
    animation: final-slide-animation 5s ease-in-out both;
}

/* Optimierung für die Vektor-Qualität während der Animation */
.hero-slider .slide img[src$=".svg"] {
    width: auto;
    height: auto;
    max-width: 70%;  /* Oder 80%, passend zu deinen PNGs */
    max-height: 70%;
    object-fit: cover; /* Sorgt dafür, dass die Textur den Slide voll ausfüllt */
    shape-rendering: geometricPrecision; /* Erhält die Schärfe der Illustrator-Pfade */
    backface-visibility: hidden; /* Verhindert Flackern bei Zoom-Animationen */
}

.hero-slider .slide.extra-time.is-active img {
    animation-duration: 6s !important;
}

.about-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;     /* Dies zentriert das gesamte Projekt im Browser */
    height: 500px;
    overflow: hidden;
}

@keyframes slideInToCenter {
    0% { transform: translateX(100vw); opacity: 0; }
    100% { transform: translateX(-50%); opacity: 1; }
}

@keyframes slideInToLeftEdge {
    0% { transform: translateX(100vw); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.about-bg {
    position: absolute;
    top: 0; 
    left: 50%;
    width: 100%; 
    max-width: 1600px;
    height: 100%;
    background: url('about_us_bg-1600.png') no-repeat left center;
    background-size: contain; 
    z-index: 1;
    animation: slideInToCenter 2s ease-out forwards;
    background-repeat: no-repeat;
    background-position: center;
}

/*.about-footer-grey {
    position: absolute;
    bottom: 2px; 
    left: 50%;
    margin-left: -800px;
    width: 100%; 
    height: 110px; 
    background: url('about_us_footer_grey-1600.png') no-repeat bottom left;
    background-size: contain;
    z-index: 2;
    opacity: 0;
    animation: slideInToLeftEdge 2s ease-out 1.0s forwards;
}*/

.about-footer-border {
    position: absolute;
    bottom: 0px; 
    left: 41%;
    margin-left: -800px;
    width: 1250px; 
    height: 540px;
    background: url('../bilder/about_us_border_footer_white-1600.png') no-repeat bottom left;
    background-size: contain;
    z-index: 3;
    opacity: 0;
    animation: slideInToLeftEdge 2s ease-out 2.0s forwards;
}

.about-grades {
    position: absolute;
    bottom: 0;
    left: 40%;
    margin-left: -622px;
    width: 1025px; 
    height: 610px;
    background: url('../bilder/about_us_grades-1600.png') no-repeat bottom left;
    background-size: contain;
    z-index: 4;
    opacity: 0;
    animation: slideInToLeftEdge 2s ease-out 3.0s forwards;
}

.about-photo {
    position: absolute;
    bottom: 1.3%; 
    left: 41.3%;           /* Mitte als Anker */
    margin-left: -800px;  /* Zieht das Foto exakt an die linke Kante der Weltkarte */
    height: 90%;
    width: auto;
    opacity: 0;
    z-index: 10;
    /* WICHTIG: Nutzt jetzt die slideInToLeftEdge Animation */
    animation: slideInToLeftEdge 2s ease-out 4.0s forwards;
}

/* 1. Basis-Container */
.about-info {
    position: absolute;
    left: 50%;
    margin-left: -650px; 
    top: 45%;
    color: rgb(0, 60, 110);
    z-index: 11;
    display: flex;
    flex-direction: column;
}

/* 1. Gemeinsame Regeln (Nur noch für die p-Tags) */
.about-info p {
    margin: 0;
    padding: 0;
    text-align: left;
    opacity: 0;
    font-weight: bold;
    display: block;
}

/* Slide 1: Patrick Jungo */
.about-info p.name {
    font-size: 25px;
    margin-bottom: 2px;
    animation: slideInToLeftEdge 2s ease-out 4.8s forwards;
}

/* Slide 2: Die Titelzeilen */
.about-info p:not(.name) {
    font-size: 21px; /* Ersetzt 1.3rem für Konsistenz */
    animation: slideInToLeftEdge 2s ease-out 6.0s forwards;
}

/* Slide 3: Schweiz (Zusammengeführt und stabilisiert) */
.about-info h2.location {
    margin: 0;          /* Reset wie bei den p-Tags */
    padding: 0;
    text-align: left;
    font-weight: bold;
    
    display: flex;      /* Wichtig für die Flagge */
    align-items: center;
    position: relative;
    left: 0;         /* Der Versatz nach rechts */
    
    margin-top: 5px; 
    font-size: 28px;
    opacity: 0;
    
    /* Deine originale Animation */
    animation: slideInToLeftEdge 2s ease-out 7.2s forwards;
}

/* Die Flagge selbst */
.about-info .swiss-flag {
    height: 24px;
    width: auto;
    margin-right: 12px;
    display: block;
}

/* Container */
section.apply-section {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #fafafa;
  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;
}

/* Überschrift */
section.apply-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Überschrift der Seite */
h2.main-title2 {
  margin: 0.2rem 0 1rem;
  text-align: center;
  font-weight: bold;
}

.consent {
  margin-top: 1rem;
}

/* Submit-Button */
button[type="submit"] {
  background-color: #005fcc;
  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;
}

/* 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: #005fcc;
  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;
  color: #0066cc;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: none;
  color: #004b99;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  margin: 0;
}

/* Grundzustand des Buttons */
.hero-cta {
    font-size: 20px;          /* Entspricht ca. 19.2px */
    font-weight: bold;          /* Text in fett */
    text-decoration: none;
    display: inline-block;
    padding: 12px 24px;         /* Abstand im Inneren des Buttons */
    background-color: #007bff;  /* Beispielhafte Hintergrundfarbe (Blau) */
    color: #ffffff;             /* Textfarbe Weiß */
    border-radius: 5px;         /* Leicht abgerundete Ecken */
    transition: all 0.3s ease;  /* Macht den Hover-Effekt geschmeidig */
    border: 2px solid transparent;
}

/* HOVER-EFFEKT: Wenn man mit der Maus darüberfährt */
.hero-cta:hover {
    background-color: #ffffff;  /* Hintergrund wird weiß */
    color: #007bff;             /* Text wird blau */
    border: 2px solid #007bff;  /* Blauer Rahmen erscheint */
    transform: translateY(-2px); /* Button hebt sich leicht an */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Sanfter Schatten */
}