:root {
    /*--blau: #00a2ff;*/
    --blau:#0a9bcf;
    --nav-height:100px;
}

* {
    box-sizing: border-box;
}

/* Grundlegende Stile */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    padding-top:var(--nav-height);
    font-size: 18px;
}

.pcnot {
    display:none;
}

.mobilnot {
    display:block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    padding: 60px 20px;
}

.container a {    
    color: #000;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}

.container a:hover {
    padding:5px 10px;
    background-color: var(--blau);
    color: #fff;
}

.nowrap {
    white-space: nowrap;
}

/* Header */
.header {
    z-index: 9999;
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--blau);
    box-shadow: 0 30px 20px rgba(0, 0, 0, 0.4);
    height:var(--nav-height);
}

.header-left {
    width: 35%;
    max-width: 400px;
}

.header-left img {
    width: 100%;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-nav li {
    margin-left: 25px;
}

.header-nav a {
    padding:5px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    background-color: #fff;
    color: var(--blau);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profil {
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
}

.profil img.pro {
    border: 4px solid #fff;
    position: absolute;
    top: 25px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profil .audio-icon {
    display: flex;
    border-radius: 50px;
    background-color: #fff;
    z-index: 999999;
    bottom: -28px;
    position: absolute;
    width: 30px;
    height: 30px;
    right: 30px;
    align-items: center;
    justify-content: center;
}

.profil .audio-icon img {
    width: 75%;
    border-radius: 50px;
}

/* Top Section - Dreigeteilter Bereich */
.top-section {
    position: relative; /* Für den Slider im Mobile */
    overflow: hidden; /* Wichtig für den Slider */
    /* margin-top: 30px; */ /* Entfernt, um Abstand zum Header zu eliminieren */
}

.top-section-inner {
    height: 70dvh;
    display: flex;
}

.top-section-item {
    flex: 1;
    position: relative;
    background-color: #f9f9f9; /* Fallback für den Fall, dass Bild nicht lädt */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.top-section-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-section-item-content {
    /* Grundlegende Positionierung und Styling */
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    text-align: center;
    box-shadow: 18px 20px 20px rgba(0, 0, 0, 0.7);
    
    /* Wichtig für JS: Diese Eigenschaften im Desktop-Modus nicht festlegen oder durch JS überschreiben lassen */
    height: auto; /* Standardmäßig auto lassen, damit JS die Kontrolle hat */
    min-height: fit-content; /* Beibehaltung der minimalen Höhe */
    /* max-height: 333px; <--- Diese Linie kommentieren oder im JS steuern, wenn sie die Höheneinstellung stören würde */
}

.top-section-item-content .datum {
    left: 10px;
    position: absolute;
    top: 10px;
    color: var(--blau);
}

.top-section-item-content .datum.bgblau {
    background-color: var(--blau);
    color:#fff;
    padding:0 5px;
}

.top-section-item-content h2, .overlay h2 {
    margin-top: 20px;
    line-height: 1em;
    font-size: 60px;
    margin-bottom: 5px;
    color: #000;
}

.top-section-item-content p, .overlay p {
    font-size: 18px; /* Angepasste Schriftgröße */
    line-height: 1.4;
    color: #555;
    margin-top: 0; /* Abstand nach oben entfernen */
}

/* Slider Controls (Desktop versteckt, Mobile sichtbar) */
.slider-bullets {
    display: none; /* Standardmäßig versteckt */
    justify-content: center;
    margin-top: 20px;
}

.slider-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-bullet.active {
    background-color: var(--blau);
}

/* Middle Section - Bodo & Markus */
.middle-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

.middle-section-inside {
    flex: 1;
    min-width: 300px; /* Mindestbreite für responsives Verhalten */
}

.middle-section-inside ul {
    line-height: 1.4em;
    padding-left: 20px;
    font-size: 20px;
}

h1 {
    font-size: 55px;
    color: var(--blau);
    margin-top: 0;
    line-height: 1.2em;
}


h2 {
    margin-bottom: 10px;
    font-size: 45px;
    margin-top: 0;
    color: #000;
}

h3 {
    color: #000;
    font-size: 28px; 
}

.middle-section p {
    font-size: 100%;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.middle-section p.klein {
    margin:0;
    font-size: 14px;
}

.middle-section .date-box {
    background-color: var(--blau);
    color: #fff;
    padding: 15px 30px;
    font-size: 2.5em;
    font-weight: 700;
    border-radius: 8px;
    display: inline-block;
}

span.blau {
    color:var(--blau);
}

.full-width {
    position:relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 40dvh;
    align-items: center;
    justify-content: center;
}

.full-width img {
    width:100%;
}

.full-width .overlay {
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    left: 40px;
    width: fit-content;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    text-align: center;
    box-shadow: 18px 20px 20px rgba(0, 0, 0, 0.7);
    height: auto;
    min-height: fit-content;
}

.zproz {
    right: 20%;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
}

.riese {
    margin: 0;
    letter-spacing: -28px;
    font-weight: 900;
    font-size: 230px;
    color: #fff;
}

.stempel {
    padding: 0 15px;
    border: 5px solid var(--blau);
    font-weight: 900;
    transform: rotate(346deg);
    right: 80px;
    bottom: -18px;
    z-index: 999;
    font-size: 43px;
    color: var(--blau);
    position: absolute;
}

.wd60 {
    min-width:60%;
}

.center {
    margin-top: 20px!important;
    margin:0 auto;
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    font-family: 'Roboto', sans-serif;
    color: var(--blau);
    margin-top: 0px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.countdown-number {
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
}

.countdown-label {
    font-size: 1.5em; /* Kleinere Schriftgröße für die Labels */
    font-weight: 400;
    margin-top: 5px; /* Abstand zwischen Zahl und Label */
    text-transform: uppercase;
}

/* Hamburger-Menü Stile (standardmäßig versteckt für Desktop) */
.hamburger-menu {
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 101; /* Über dem Header und Overlay */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Stil für den Hamburger-Button, wenn er aktiv ist (geöffnet) */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Menü Overlay Stile (standardmäßig versteckt) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler, halbtransparenter Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99; /* Unter dem Header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #007bff;
}
/*Mobiles Menü Ende*/

footer {
    gap: 50px;
    padding: 20px;
    display: flex;
    height: 250px;
    background-color: var(--blau);
    align-items: center;
    justify-content: center;
}

footer .logo {
    width: 40%;
    max-width: 700px;
}

footer .logo img {
    width: 100%;
}

footer .links {
    color:#fff;
}

footer .links a {
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer .links a:hover {
    background-color: #fff;
    color: var(--blau);
}

div.aufklapper button {
    z-index: 999;
    padding: .5em 1em;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 170%;
    position: relative;
}

.bgmenschen {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('../bilder/1280/menschen2.webp');
}

.bgkollage {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('../bilder/1280/kollage.webp');
}

.cta-btn, .container a.cta-btn {
    border: 3px solid #fff;
    border-radius: 50px;
    padding: 10px 40px;
    text-decoration: none;
    color: #fff;
    background-color: var(--blau);
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 120%;    
}

.cta-btn.abs {
    transform: translateX(-50%);
    left: 50%;
    bottom: 40px;
    position: absolute;
}

.cta-btn:hover, .container a.cta-btn:hover {
    background-color:#fff;
    border:3px solid var(--blau);
    color:var(--blau);
}

.nomargin {
    margin:0!important;
}

@media (max-width: 1600px) {
    .top-section-inner {
        height: 60dvh;
    }

    .top-section-item-content {
        top: 25px;
    }
}

@media (max-width: 1360px) {
    .top-section-item-content h2, .overlay h2 {
        font-size: 50px;
    }

    .zproz {
        right: 10%;
    }
}

@media (max-width: 1024px) {

    .header-left {
        width: 40%;
        max-width: 400px;
    }

    .top-section {
        /* Reset flex-direction, da innerer Container das übernimmt */
        flex-direction: row; /* Wichtig für den Slider, dass der inner container dies hat */
        width: 100%;
        height: auto; /* Höhe flexibel anpassen */
        position: relative;
        overflow-x: hidden; /* Nur horizontal scrollbar für Slider */
        margin-top: 0; /* Auch mobil kein Abstand zum Header */
    }

    .top-section-inner {
        height: 50dvh;
        display: flex;
        width: 300%;
        transition: transform 0.5s ease-in-out;
        gap: 0;
    }

    .top-section-item {
        flex-shrink: 0; /* Verhindert, dass die Items schrumpfen */
        width: 100%; /* Jedes Item nimmt volle Breite ein */
        height: 100%; /* Beispielhöhe für mobile Slider-Elemente */
        margin-bottom: 10px; /* Etwas Abstand zum nächsten Element (falls nicht im Slider) */
    }

    .top-section-item-content {
        height: fit-content!important;
        width:60%;
    }


    .top-section-item-content h2, .overlay h2 {
        font-size: 65px;
    }

    .slider-bullets {
        display: flex; /* Im Mobile sichtbar */
    }

    .zproz {
        right: 5%;
    }

    .riese {
        font-size:200px;
    }

    /*Mobiles Menü*/
    .header-nav {
        display: none; /* Desktop-Navigation verstecken */
    }

    .hamburger-menu {
        display: flex; /* Hamburger-Button anzeigen */
        order: 1; /* Positioniert den Hamburger-Button nach links vom Header-Left, falls gewünscht. Standard ist, dass er innerhalb des .header-right wäre. Wenn er ganz links sein soll, muss er direkt in .header verschoben werden und header-left ggf. order: 2 bekommen. Ich habe ihn hier einfach in der Mitte des Headers positioniert. */
        margin-right: auto; /* Schiebt ihn nach links, um Platz für header-right zu machen, wenn er in .header-right ist, sonst anders positionieren. */
    }

    .header .header-left {
        order: 2; /* Logo in der Mitte */
        margin: 0 auto; /* Zentriert das Logo, wenn Hamburger links ist */
    }

    .header .header-right {
        order: 3; /* Profilbereich rechts */
        margin-left: 0; /* Entfernt den vorherigen Margin */
    }

    /* Neuordnung für Header im Mobile, wenn Hamburger links vom Logo sein soll */
    .header {
        justify-content: space-between; /* Passt die Verteilung an */
        padding: 15px 20px;
    }

    .countdown-number {
        font-size: 120px;
    }
}


/* Media Queries für mobile Ansicht */
@media (max-width: 768px) {
    .pcnot {
        display:block;
    }

    .mobilnot {
        display:none;
    }

    .wd60 {
        width: 100%;
    }

    .header-nav {
        display: none; /* Navigation im Mobile verstecken, falls nicht als Hamburger Menü gewünscht */
    }

    .top-section-item-content h2, .overlay h2 {
        font-size: 45px;
    }

    .header-left {
        width: 45%;
        max-width: 400px;
    }

    .middle-section {
        flex-direction: column; /* Stapelt die Elemente */
        margin-top: 0px;
        padding: 0px;
        gap:0;
    }

    .middle-section-left,
    .middle-section-right {
        margin: 0;
        width: 100%;
    }

    .middle-section-left {
        margin-bottom: 30px;
    }

    .middle-section h1 {
        font-size: 2em;
    }

    .middle-section p {
        font-size: 1em;
    }

    .middle-section .date-box {
        font-size: 30px;
        padding: 10px 20px;
    }

        .countdown-container {
        gap: 15px;
    }
    .countdown-number {
        font-size: 4em; /* Kleinere Zahlen auf Mobilgeräten */
    }
    .countdown-label {
        font-size: 1em; /* Kleinere Labels auf Mobilgeräten */
    }

    .full-width img {
        width: auto;
        height: 100%;
    }

    .zproz {
        display: flex;
        width: 100%;
        right: unset;
        top: unset;
        left: unset;
        position: absolute;
        bottom: 110px;
        transform: translateX(0);
        justify-content: center;
    }

    .stempel {
        padding: 0 15px;
        border: 5px solid var(--blau);
        font-weight: 900;
        transform: rotate(346deg) translateX(50%);
        right: 50%;
        bottom: -27px;
        z-index: 999;
        font-size: 24px;
        color: var(--blau);
        position: absolute;
    }

    .riese {
        margin: 0;
        letter-spacing: -12px;
        font-weight: 900;
        font-size: 130px;
        color: #fff;
    }

    .full-width {
        position: relative;
        display: flex;
        overflow: hidden;
        width: 100%;
        height: 50dvh;
        align-items: center;
        justify-content: center;
    }

    .full-width .overlay {
        transform: translateX(-50%);
        position: absolute;
        top: 35px;
        left: 50%;
        width: fit-content;
        padding: 15px 20px;
        background-color: rgba(255, 255, 255, 0.9);
        box-sizing: border-box;
        text-align: center;
        box-shadow: 18px 20px 20px rgba(0, 0, 0, 0.7);
        height: auto;
        min-height: fit-content;
    }

    h2 {
        margin-bottom: 10px;
        font-size: 35px;
        margin-top: 0;
        color: #000;
    }

    footer {
        flex-direction: column;
    }

    footer .logo {
        width:60%;
    }
}

@media (max-width: 550px) {
    :root {
        --nav-height:60px;
    }

    .full-width {
        height:80dvh;
    }

    .full-width .overlay {
        width:100%;
    }

    .nowrap {
        white-space: inherit;
    }

    .countdown-container {
        gap: 10px;
    }
    .countdown-number {
        font-size: 3em; /* Noch kleinere Zahlen auf sehr kleinen Bildschirmen */
    }
    .countdown-label {
        font-size: 0.8em;
    }

    h1 {
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 35px;
        color: var(--blau);
        margin-top: 0;
    }

    .middle-section-inside {
        max-width: 100%;
        flex: 1;
        min-width: unset;
    }

    .middle-section-inside ul {
        margin-top: 0;
        margin-bottom: 0px;
        line-height: 1.4em;
        padding-left: 20px;
        font-size: 18px;
    }

    .top-section-item-content {
        height: 90%!important;
        width: calc(100% - 40px);
        max-height: unset!important;
    }

    .zproz {
        bottom:50px;
    }

    .profil, .profil img.pro {
        height: 60px;
        width: 60px;
    }

    .profil .audio-icon {
        bottom: -33px;
        width: 25px;
        height: 25px;
        right: 25px;    
    }

    .header-left {
        width: 55%;
        max-width: 400px;
    }

    footer .logo {
        width:70%;
    }

}

@media (max-width: 300px) {

    .riese {
        margin: 0;
        letter-spacing: -10px;
        font-weight: 900;
        font-size: 80px;
        color: #fff;
    }

    .profil img.pro {
        border: 4px solid #fff;
        position: absolute;
        top: 15px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .profil {
        height: 60px;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .profil .audio-icon {
        display: flex;
        border-radius: 50px;
        background-color: #fff;
        z-index: 999999;
        bottom: -22px;
        position: absolute;
        width: 20px;
        height: 20px;
        right: 30px;
        align-items: center;
        justify-content: center;
    }

    .header {
        padding: 10px 20px;
    }

    .header-left {
        width: 70%;
        max-width: 400px;
    }

    footer .logo {
        width:100%;
    }
}