/* 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
   ========================================================= */

.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 */
    }
}

/* =========================================================
   SPEZIELLES SMARTPHONE-DESIGN (unter 480px)
   ========================================================= */

@media screen and (max-width: 480px) {
    /* Den Button-Behälter etwas kompakter positionieren */
    .menu-icon {
        right: 8px;
        top: 50%;
    }

    /* Die Hamburger-Striche noch feiner machen */
    .menu-icon span {
        width: 28px;      /* Etwas kürzer als auf dem Desktop */
        height: 1.5px;    /* Sehr feine Strichstärke */
        margin: 3px 0;    /* Engere Abstände für ein kompakteres Icon */
        border-radius: 1px;
    }

    /* Das ausklappbare Menü für kleine Screens optimieren */
    #hamburger-menu {
        top: 45px;        /* Knapp unter dem Header */
        right: 5px;
        width: 80%;       /* Nimmt mehr Breite ein auf dem Handy */
        padding: 6px;     /* Weniger Innenabstand */
    }

    #hamburger-menu a {
        font-size: 13px;  /* Etwas kleinere Schrift für schmale Displays */
        padding: 10px 5px; /* Größere Klickfläche für Daumen-Bedienung */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Trennung der Links */
    }

    /* Den letzten Link ohne Trennlinie */
    #hamburger-menu a:last-child {
        border-bottom: none;
    }
}

/* 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;
}

.hero-container, 
.hero-slider, 
.about-hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* Falls eine min-height das Ganze künstlich aufbläht: */
    min-height: 0 !important; 
}

.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: 45px !important; 
        height: auto;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 18px;
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .nav-icons img {
        width: 38px;          /* kleine Smartphone-Icons */
    }
}

h2 {
  font-size: 33px;
  font-weight: 300;
  text-align: center;
  color: rgb(0, 60, 110);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-left: -150px; /* Dieser Wert schiebt die h2 nach links */
}

.content-block h2 {
    /* Sicherstellen, dass das h2 nicht durch eigenes margin-top wegrückt */
    margin-top: 0 !important;
    padding-top: 10px !important; /* Nur ein kleiner Puffer */ 
    margin-bottom: 0;
    text-align: center;
}

h3.main-title {
    font-size: 28px;
    font-weight: 300;
    color: rgb(0, 60, 110);
    margin-top: 25px; /* Viel Platz zum vorherigen Block */
    /*margin-bottom: 100px;*/
    line-height: 1.1;
    margin-bottom: 8px;
}

h4 {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;    /* Kleiner Abstand nach oben */
    margin-bottom: 2px;  /* Fast kein Abstand nach unten zur H5 */
    display: block;
}

.content-block h4 {
    margin-bottom: 0; 
    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);
}

@media (max-width: 768px) {
    main h1 { 
        margin: 10px auto 5px; 
    }
    .hero-container {
        margin-bottom: 0px !important;
    }
}

/* 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 */
    }
}

@media (max-width: 480px) {
    /* 1. Bilder im Slider vergrößern */
    .hero-slider .slide img {
        max-width: 95% !important; /* Von 80% auf 95% für mehr Präsenz */
        max-height: 90% !important;
    }

    /* 2. Falls du SVGs nutzt, auch diese vergrößern */
    .hero-slider .slide img[src$=".svg"] {
        max-width: 90% !important;
    }

    /* 3. Animation: Verstärkter Zoom oder Bewegung */
    /* Hier passen wir die Keyframes an, falls gewünscht. 
       Wichtig ist, dass die Pause lang genug bleibt. */
}

.content-block p {
    line-height: 1.6; 
    font-size: 17px; 
    letter-spacing: 0.3px;
    margin-bottom: 10px; /* Standard-Absatzabstand */
    padding-left: 0;
    padding-right: 75px; /* Dies kürzt den Text am rechten Rand um ca. 2cm */
    display: block;
}

.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 */
}

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;
    }
}

.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: 2px auto;
    position: relative;
    overflow: visible;
}

.about-de-image-img,
.about-en-image-img,
.about-fr-image-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.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;
}

/* Für Tablets */
@media screen and (max-width: 768px) {
    .copyright-text-overlay {
        font-size: 11px; /* Etwas kleiner auf Tablets */
        bottom: 8px;     /* Rückt etwas näher an den Rand */
    }
}

/* Für Smartphones */
@media screen and (max-width: 480px) {
    .copyright-text-overlay {
        font-size: 10px; /* Sehr diskret auf kleinen Smartphone-Displays */
        bottom: 5px;
        width: 90%;      /* Verhindert Anstoßen an den Bildschirmrand */
    }
}

.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; 
    padding-left: 150px;
}

.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 --- */

.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-bottom: 0 !important;
  padding-bottom: 0 !important;
  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: 440px;
    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: 100%;
    max-height: 100%;
    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; }
    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 !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;
}

@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;
    }
}

/* 1. DER HAUPTCONTAINER (Flexibel bis max. 1600px) */
.about-container {
    position: relative;
    width: 100%;            /* Nutzt die volle Breite des Bildschirms */
    max-width: 1600px;      /* Deckelt bei deiner Photoshop-Breite */
    margin: 0 auto;         /* Zentriert den Container */
    aspect-ratio: 1600 / 600; /* Erzwingt das Seitenverhältnis deiner Arbeitsfläche */
    overflow: hidden;
    background: transparent;
}

/* 2. EBENEN-STAPELUNG (Responsive Layer) */
.about-textur-svg, 
.about-photo-layer, 
.about-content-group,
.about-content-group div,
.about-content-group img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;            /* Passt sich jetzt dem Container an */
    height: 100%;           /* Passt sich jetzt dem Container an */
    display: block;
}

/* 3. DIE HINTERGRUND-TEXTUR (Skaliert jetzt mit!) */
.about-textur-svg {
    z-index: 1;
    background-image: url('../bilder/about_us_textur-1600.svg');
    background-repeat: no-repeat;
    background-position: center center; /* Hält die Grafik immer mittig */
    background-size: contain;           /* SVG skaliert sauber innerhalb der 1600px */
    opacity: 0;
    animation: slideInFromRight 2.0s ease-out forwards;
}

/* 4. DAS FOTO (Skaliert ebenfalls mit) */
.about-photo-layer {
    z-index: 2;
    background-image: url('../bilder/about_us_photo-1600.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0;
    animation: slideInFromRight 2.0s ease-out forwards;
    animation-delay: 1.5s;
}

.about-content-group {
    z-index: 10 !important; /* Oberste Ebene - zwingend höher als 1 und 2 */
    width: 90% !important; 
    height: 90% !important;
}

/* 5. DIE INHALTS-GRAFIKEN (Webp-Layer) */
.about-content-group img {
    object-fit: contain;    /* Sorgt dafür, dass die Webps mit der Textur mitskalieren */
    opacity: 0;
    animation: slideInFromRight 2.5s ease-out forwards;
}

/* Delays bleiben wie gehabt */
.about-name img { animation-delay: 3.0s; }
.about-title-box img { animation-delay: 4.0s; }
.about-domicil img { animation-delay: 5.0s; }

/* 6. DER SLIDE-IN (Passt sich der Containerbreite an) */
@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}


/* 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 */
}

/* H5 Link-Heading Korrektur */
h5.link-heading {
    font-size: 18px;
    margin-top: 0;       /* Verhindert den großen Abstand zur H4 darüber */
    margin-bottom: 0; /* Kleiner Abstand nach unten */
    cursor: pointer;
}

/* Den Link im Inneren stylen - WICHTIG für den Farbwechsel! */
h5.link-heading a {
    display: inline-block;
    color: #0056b3 !important; /* Startfarbe Blau */
    text-decoration: underline !important;
    transition: all 0.3s ease;
}

/* Der Hover-Effekt greift nun direkt auf die Farbe zu */
h5.link-heading:hover a {
    color: #003366 !important; /* Deutlicher Farbwechsel zu Orange/Bernstein beim Hover */
    text-decoration: none !important;
    transform: translate(5px, -2px);
}