
@font-face {
    font-family: 'Lelo';
    src: url('Lelo-Regular.otf') format('opentype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Lelo';
    src: url('Lelo-RegularItalic.otf') format('opentype');
    font-weight: 400; /* Regular */
    font-style: italic;
}

@font-face {
    font-family: 'Lelo';
    src: url('Lelo-Bold.otf') format('opentype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Lelo';
    src: url('Lelo-BoldItalic.otf') format('opentype');
    font-weight: 700; /* Bold */
    font-style: italic;
}

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    font-family: 'Lelo', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    padding-top: 110px;
    padding: 0;
    height: 100%;
    position: relative;
    background-image: url(https://wwwhomes.uni-bielefeld.de/sstrauss1/img/x_aktuell.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100%;
}


#main {
    width: 72%;
    padding: 20px;
    float: left;
    margin-left: 14%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.right-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}
.unilogo {
    max-width: 15vw;
    width: 100%;
    height: auto;
    max-width: 250px;
}

.right-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.biconnlogo {
    max-width: 10vw; /* Prozentual, kleiner als Uni-Logo */
    width: 100%;
    height: auto;
    max-width: 200px; /* Obergrenze für große Bildschirme */
}
.hidden-desktop {
    display: none;
}


@media screen and (max-width: 1060px) {
    .logo-container {
        flex-direction: column; /* Logos untereinander auf kleinen Screens */
        align-items: center; /* Logos zentrieren */
    }
    .right-logos {
        flex-direction: column; /* Logos untereinander auch im right-logos Container auf kleinen Screens */
        gap: 10px; /* Abstand zwischen Logos auf kleinen Screens */
    }
    .unilogo, .biconnlogo, .mebitlogo {
        width: 150px; /* Kleinere Breite auf Mobile */
        margin: 0; /* Keine extra Margins */
    }
}



form {
    padding: 25px;
    background: #FFFFFF;
    border: 2px solid #15F5B4;
    border-radius: 8px;
    box-shadow: none;
}


.datenschutz {
    margin-top: 20px;
    white-space: normal;
    line-height: 1.5;
}

.datenschutz b {
    font-weight: bold;
}


.info-block {
    background: #15F5B4;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.info-block ::selection {
    background-color: #15F5B4;
    color: white;
}


.unterstrich {
    text-decoration: underline;
}


h1#schatten {

    font-family: 'Lelo', Arial, sans-serif;
    color: #333;
    text-decoration: none;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    position: relative;


    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
}

h1#schatten:after {
    content:attr(data-text);
    position: absolute;
    left: 9px;
    top: 8px;
    background-size: 4px 4px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -5;
    display: block;
    text-shadow: none;
}


h4 {
    font-family: 'Lelo', Arial, sans-serif;
    font-size: 12pt;
    border-bottom-width: 3px;
    border-bottom-style: solid;
    border-bottom-color: #4eaf30;
}

h2 {
    font-family: 'Lelo', Arial, sans-serif;
    font-size: 10pt;
}


a.tooltip {
    position: relative;
    text-decoration: underline;
    width: 200px;
}

a.tooltip:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 20%;
    background: #FFFFFF;
    padding: 5px 15px;
    color: black;
    border: 1px solid black;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
    z-index: 10;
}

a.tooltip:hover:after {
    bottom: 100%;
    opacity: 1;
}



a:link {
    color: black;
    text-decoration: underline;
}

a:visited {
    color: black;
    text-decoration: none;
}

a:active {
    color: black;
    text-decoration: none;
}

a:hover {
    color: black;
    text-decoration: underline;
}


.inlineinput {
    display: inline-block;
}


label {
    padding-right: 15px;
    display: block;
    margin-bottom: 0.2em;
    font-size: 1.1em;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}



.submit input[type="submit"] {
    background: #15F5B4;
    color: black;
    border: 2px solid #15F5B4;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Lelo', Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 5px;
    margin-left: 0;
    margin-right: 0;
    min-width: 180px;
}

.submit input[type="submit"]:hover {
    background: #15F5B4;
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.submit input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit input[type="submit"]:focus {
    outline: none;
    border: 2px solid #15F5B4;
    box-shadow: 0 0 8px rgba(21, 245, 180, 0.6);
}


.submit {
    margin-top: 50px;
    text-align: center;
}


input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-top: 0.4em;
    border: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    display: block;

}

input[type="text"]:hover, input[type="email"]:hover, select:hover, textarea:hover {
    border-color: #bbb;
}


input:focus:not(.invalid), select:focus:not(.invalid), textarea:focus:not(.invalid) {
    border-color: #15F5B4;
    border: 2px solid #15F5B4;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    outline: none;
}


input.invalid, select.invalid, textarea.invalid {
    border-color: salmon !important;
    border-left-color: salmon !important;
    box-shadow: 0 0 5px rgba(250, 128, 114, 0.4);
}


input.invalid:focus, select.invalid:focus, textarea.invalid:focus {
    border-color: salmon !important;
    border-left-color: salmon !important;
    box-shadow: 0 0 8px rgba(250, 128, 114, 0.6);
    outline: none;
}


input:required:not(.invalid):not(:focus), select:required:not(.invalid):not(:focus), textarea:required:not(.invalid):not(:focus) {
    border-color: #999;
    border-left-color: #999;
}


.begleitperson-feld, .weitere-feld, .kinder-feld {
    transition: opacity 0.3s ease;
    opacity: 0;
}
.begleitperson-feld[style*="block"], .weitere-feld[style*="block"], .kinder-feld[style*="block"] {
    opacity: 1;
}



.error {
    display: none;
    color: #D32F2F;
    font-size: 0.9em;
    margin-top: 0.2em;
    font-weight: normal;
    padding: 2px 5px;
    background: transparent;
    border-radius: 3px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}




.zusatz {
    font-size: 0.9em;
    font-weight: normal;
    display: block;
    margin-top: 0.2em;
    color: #666;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    line-height: 1.2;
}


textarea {
    width: 100%;
    max-width: 500px;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
    font-size: 1em;
    padding: 10px;
    margin-top: 0.4em;
    border: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
textarea:hover {
    border-color: #bbb;
}
textarea:focus:not(.invalid) {
    border: 2px solid #15F5B4; /* Thicker turquoise border on focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    outline: none;
}



#email-error {
    display: none;
    color: #D32F2F;
    font-size: 0.9em;
    margin-top: 0.2em;
}



.calendar-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.calendar-link:hover {
    color: white;
    text-decoration: underline;
}


::selection {
    background-color: #15F5B4;
    color: black;
}


.footer {
    width: 100%;
    padding: 15px 0;
    background: #515151;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 30px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: white;

}


/* Tablet Landscape */
@media screen and (max-width: 1060px) {
    .linkebox { width: 100%; float: left; }
    .rechtebox { width: 95%; margin-left: 0%; }
    #main { width: 100%; padding: 15px; float: left; margin-left: 0%; background: #fff; }

}

/* ======================================================= */
/* FINALER, KOMBINIERTER BLOCK FÜR DIE MOBILE ANSICHT      */
/* ======================================================= */
@media screen and (max-width: 768px) {

    /* Ihr funktionierender Block für das Hauptlayout */
    #main {
        width: 100% !important;
        margin-left: 0 !important;
        float: none !important;
        padding: 15px;
        box-sizing: border-box;
        border-radius: 0;
    }

    /* --- NEU: ANPASSUNG FÜR LOGOS --- */
    .logo-container {
        flex-direction: row; /* Stellt die Nebeneinander-Anordnung wieder her */
        justify-content: space-between; /* Sorgt für links- und rechtsbündig */
        align-items: center; /* Zentriert die Logos vertikal auf einer Linie */
    }

    /* --- NEU: ANPASSUNG FÜR FOOTER --- */
    .footer {
        border-radius: 0;

        /* Wir berechnen die Breite exakt: 100% des Elternelements plus dessen linker und rechter Innenabstand (2 x 15px) */
        width: calc(100% + 30px);

        /* Die negativen Ränder rücken den Footer dann an die richtige Position */
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: -15px;
    }

    /* Ihre bestehenden, funktionierenden Regeln für den Inhalt */
    .unilogo {
        width: 40vw;
        max-width: 150px;
    }
    .biconnlogo {
        width: 35vw;
        max-width: 130px;
    }
    label {
        font-size: 1em;
    }
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        max-width: 100%;
    }
    #event-description {
        font-size: 1em;
    }
    .submit input[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 1.1em;
    }
    h1#schatten {
        font-size: 24px;
    }
}
/* Neue Regel für versteckte Felder */
.hidden {
    display: none;
}


.visible {
    display: block;
}

/* Neue Regel für türkisfarbene Trennstriche */
.turquoise-divider {
    border: 0;
    border-top: 2px solid #15F5B4;
    margin: 10px 0;
}
/* Definiert den Haupt-Inhaltscontainer */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto; /* Zentriert den Container automatisch */
    padding: 0 10px; /* Fügt einen kleinen seitlichen Puffer hinzu, damit nichts am Rand klebt */
}

#sticky-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* Das "klebt" ihn oben fest */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(-100%); /* Startet außerhalb des Bildschirms (versteckt) */
    transition: transform 0.3s ease-in-out; /* Sorgt für eine weiche Animation */
}

/* Zustand, wenn der Header sichtbar ist */
#sticky-header.is-sticky {
    transform: translateY(0%); /* Schiebt den Header in den Bildschirm */
}

/* Der Inhalts-Container im Header, der zentriert ist */
.sticky-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
    padding: 10px 15px;
    height: 60px; /* Eine feste, schmale Höhe */
}

/* Stile für die Desktop- und Mobile-Ansichten */
.sticky-logo {
    height: 40px; /* Höhe des kleinen Logos */
    width: auto;
}
.sticky-title {
    font-family: 'Lelo', Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Schneidet zu lange Titel mit "..." ab */
}

/* Standardmäßig die Desktop-Ansicht verstecken */
.desktop-view {
    display: none;
    width: 100%;
}
/* --- Media Query für die Ansichten --- */
@media screen and (min-width: 769px) {
    /* Auf dem Desktop: Mobile-Ansicht verstecken, Desktop-Ansicht zeigen */
    .mobile-view { display: none; }
    .desktop-view { display: block; }

    /* Kopierte Logos im Desktop-Sticky-Header kleiner machen */
    .desktop-view .unilogo { max-width: 180px; }
    .desktop-view .biconnlogo { max-width: 150px; }
}