/* ================================
   Modernes Responsive Layout ohne starre Pixel
   ================================ */


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Arial, sans-serif;
}
.main-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100vw;
    background: #fff;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
.spalte-1 {
    background: #fff;
    flex: 0 0 35%;
    max-width: 480px;
    min-width: 280px;
    box-sizing: border-box;
    border-right: 1px solid #eee;
    padding: 0;
}
.spalte-2 {
    background: #fff;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}




/* Mobile: Spalten untereinander */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        height: auto !important;
        min-height: unset !important;
        width: 100vw;
    }
    .spalte-1, .spalte-2 {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 16px 4vw;
        box-sizing: border-box;
    }
    .spalte-2 {
        background: #fff;
        overflow: visible;
        height: auto !important;
    }
}

@media (max-width: 500px) {
    .main-wrapper {
        padding: 0;
        min-width: 0 !important;
    }
    .spalte-1, .spalte-2 {
        padding: 8px 1vw;
        max-width: 100vw !important;
        min-width: 0 !important;
        width: 100vw !important;
        box-sizing: border-box;
        height: auto !important;
    }
}




/* Header und Logo */
.header {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 4px auto;
    padding-top: 32px;
}


.header img {
    width: 100%;
    max-width: 280px;
    min-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
}





/* Sprachen rechts */
#lang_span {
    float: right;
}

.loginmaske {
    width: 100%;
    max-width: 360px;
    margin: 8px auto 0 auto;
    background: #fff;
    /*
    border-radius: 0;        /* Ecken nicht mehr abgerundet */
    box-shadow: none;          /* Kein Schatten */
    box-sizing: border-box;

    /*
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    padding: 24px 16px;
    box-sizing: border-box;
    */

}


.loginmaske h1 {
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: bold;
}

.loginmaske ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.loginmaske li {
    margin-bottom: 18px;
    text-align: left;
}

.loginmaske p {
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 13px;
}

.loginmaske input[type=text],
.loginmaske input[type=password] {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-bottom: 3px;
}

.loginmaske input[type=text]:focus,
.loginmaske input[type=password]:focus {
    box-shadow: 0 0 4px #468cfe;
    border-color: #468cfe;
    outline: none;
}

.loginmaske input[type=submit], #submit_btn {
    width: 100%;
    font-size: 16px;
    background: #468cfe;
    color: #fff;
    padding: 12px 0;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.18s;
}

.loginmaske input[type=submit]:hover, #submit_btn:hover {
    background: #2250aa;
    color: #fff;
}

/* Fehlermeldungen */
#fehlerEingabe, #capslock {
    color: red;
    text-align: center;
    font-size: 15px;
    font-style: italic;
}

/* Newsbereich */
.newsBereich {
    width: 100%;
    max-width: 360px;
    margin: 22px auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: #f44336;
    color: #fff;
    padding: 14px 16px;
    font-size: 1rem;
}

/* Carousel */
#carousel {
    width: 100%;
    min-height: 260px;
    position: relative;
    margin: 0 auto 24px auto;
    overflow: hidden;
    border-radius: 16px;
    max-width: 900px;
    background: #222;    /* dunkler Hintergrund für Carousel */
}

.carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-item-show {
    opacity: 1;
    z-index: 2;
    display: flex;
}

.carousel-item-hide {
    opacity: 0;
    z-index: 1;
    display: none;
}

.carousel-image {
    width: 100%;
    height: 280px;
    max-height: 44vw;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    background: #ddd;
}

.carousel-info {
    padding: 18px 12px;
    background: rgba(0,0,0,0.55);
    border-radius: 0 0 12px 12px;
    color: #fff;
    text-align: center;
}

.carousel-text {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.25);
}

.carousel-link {
    display: inline-block;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 10px;
    margin: 8px 0;
    background: #468cfe;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.carousel-link a {
    color: #fff;
    text-decoration: none;
}

.carousel-link:hover {
    background: #2250aa;
}

/* QR-Block */
.appBereich {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;             /* etwas Abstand */
    max-width: 420px;
    margin: 14px auto 8px auto;
}

#qrBlockLeft, #qrBlockRight {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.badgeBlock img {
    max-width: 100px;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.code {
    width: 85px;
    max-width: 90px;
    height: auto;
    margin-top: 2px;
}




/* Social Media */
.social-links-container {
    margin: 2px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.social-links-container img,
.social-icon-img {
    width: 28px !important;
    height: 28px !important;
    display: block;
    object-fit: contain;
    filter: grayscale(35%) brightness(0.94);
    transition: filter 0.18s, transform 0.16s;
    border-radius: 8px;
}
.social-links-container img:hover,
.social-icon-img:hover {
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 0 6px #468cfe40);
    transform: scale(1.08);
}


/* Mobile Anpassungen */
@media (max-width: 900px) {
    .header, .loginmaske, .newsBereich {
        max-width: 98vw;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 3vw;
    }
    #carousel, .carousel-image {
        max-width: 99vw;
        min-width: 0;
        height: auto;
    }
    .carousel-image {
        height: 40vw;
        max-height: 280px;
    }
}
@media (max-width: 500px) {
    .appBereich {
        flex-direction: column;
        max-width: 98vw;
        gap: 8px;
    }
    #qrBlockLeft, #qrBlockRight {
        min-width: 0;
        width: 100%;
    }
}


@media (max-width: 550px) {
    .spalte-1, .spalte-2, .header, .loginmaske, .newsBereich {
        padding: 8px 1vw;
        font-size: 15px;
    }
    .carousel-image {
        height: 38vw;
        max-height: 180px;
    }
    .carousel-info, .carousel-text {
        font-size: 15px;
        padding: 6px 1vw;
    }
    .carousel-link {
        font-size: 15px;
        padding: 7px 9px;
        width: auto;
    }
    .code {
        width: 90vw;
        max-width: 180px;
    }
    .badgeBlock img {
        max-width: 90vw;
    }
}

/* Extras: Barrierefreiheit & Touch */
input, select, button, a, .carousel-link {
    touch-action: manipulation;
    font-family: inherit;
}

.impressum-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    margin-top: 2px;
    padding-left: 6px;
    padding-right: 8px;

}

.impressum-links {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
}

.impressum {
    color: #666 !important;
    font-size: 12.5px !important;
    padding: 0 2px;
    text-decoration: none;
    background: transparent;
}
.impressum:hover {
    color: #468cfe !important;
    text-decoration: underline;
}

#lang_span {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-size: 12.5px;
    min-width: 54px; /* oder nach Bedarf */
    margin-left: 8px;
    white-space: nowrap;
}


.spalte1-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}



.loginmaske {
    margin-bottom: 0px !important;  /* KEIN Abstand nach unten */
}

.social-links-container {
    margin-top: 4px !important;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 49px;
    justify-content: center;
    align-items: center;
}



::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

.app-hinweis {
    width: 100%;
    max-width: 360px;
    margin: 4px auto 4px auto;
    background: #fff;
    color: #181818;
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    padding: 10px 0 7px 0;
    line-height: 1.1;
}

.app-hinweis span {
    font-size: 1.25em;
    font-weight: normal;
    vertical-align: baseline;
    margin: 0 2px;
    display: inline-block;
    transform: translateY(2%);

}

.app-hinweis strong {
    letter-spacing: -0.01em;
}
.app-hinweis .app-r {
    font-size: 0.5em;
    font-weight: normal;
    vertical-align: super;
    margin: 0 0 0 2px;
    display: inline;
    line-height: 1;
    letter-spacing: 0;
}





.spalte-2 {
    background: #fff;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 0;
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

/* Carousel FULL */
#carousel.carousel-full {
    width: 100%;
    height: 100vh;
    min-height: 0;
    max-width: 100vw;
    border-radius: 0;
    background: #fff;
    position: relative;
}

/* Carousel Image */
.carousel-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 0;
    display: block;
    background: #222;
}



/* --- RESPONSIVE Anpassung --- */
@media (max-width: 1000px) {
    .carousel-container {
        height: auto !important;
        min-height: 220px;
        flex-direction: column;
        align-items: stretch;
    }
    #carousel.carousel-full {
        height: auto !important;
        min-height: 220px;
        max-height: none;
    }
    .carousel-image {
        min-height: 140px;
        max-height: 300px;
        height: auto;
    }

}



.carousel-info, .carousel-text { display: none; }

.carousel-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0; left: 0;
    z-index: 10;
    pointer-events: none;
    background: transparent;
    padding-bottom: 140px; /* Abstand nach unten */
}


.carousel-logo {
    width: 380px;
    max-width: 38vw;  /* auf großen Bildschirmen flexibel */
    height: auto;
    margin-bottom: 20px;
    margin-top: 7vh;
    filter: drop-shadow(0 3px 59px rgba(0,0,0,0.18));
    pointer-events: auto;
    filter: drop-shadow(0 0 12px #181818cc) drop-shadow(0 2px 16px #fff9);
}


.carousel-headline {
    color: #fff;
    font-size: 3.4rem;           /* HIER: Textgröße (beliebig anpassen!) */
    font-weight: 900;
    letter-spacing: 0.03em;      /* HIER: Buchstabenabstand */
    line-height: 1.39;           /* HIER: Zeilenabstand */
    text-align: center;
    text-shadow: 0 3px 22px rgba(0,0,0,0.22), 0 1px 5px rgba(0,0,0,0.08);
    margin-bottom: 44px;
    pointer-events: auto;
    background: transparent;
    max-width: 96vw;
}


.carousel-button {
    pointer-events: auto;
    display: inline-block;
    background: #468cfe;   /* halb-durchsichtig */
    color: #fff;
    border-radius: 999px;
    font-size: 1.35rem;
    font-weight: bold;
    padding: 14px 54px;
    margin-bottom: 90px;      /* Abstand NACH OBEN erhöhen */
    margin-top: 0;
    text-decoration: none;
    letter-spacing: 0.03em;
    outline: none;
    box-shadow: 0 6px 32px 0 rgba(70,140,254,0.09);
    transition: background 0.18s, transform 0.13s, border 0.2s;
    backdrop-filter: blur(0.5px);
}

.carousel-button:hover {
    background: #2250aa;
    color: #fff;
    transform: scale(1.09);
    text-decoration: none;
}


@media (max-width: 900px) {
    .carousel-overlay-content {
        padding-bottom: 16vw;
    }
    .carousel-logo {
        width: 80px;
        margin-bottom: 16px;
    }
    .carousel-headline {
        font-size: 1.1rem;
        margin-bottom: 22px;
    }
    .carousel-button {
        font-size: 1.02rem;
        padding: 9px 22px;
        margin-bottom: 16px;
    }
}

/* --- Release Banner  */
.release-overlay {
    position: absolute;
    top: 36px;
    left: 60%;
    transform: translateX(-60%);
    z-index: 99;
    background: #f44336;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.09);
    max-width: 700px;
    min-width: 320px;
    width: 72vw;
    padding: 18px 36px;
    font-size: 1.17rem;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.release-close {
    position: absolute;
    top: 9px; right: 22px;
    font-size: 1.7rem;
    font-weight: bold;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    line-height: 1;
    transition: opacity 0.2s, color 0.22s;
    z-index: 1000;
    padding: 0 4px;
    pointer-events: auto;
}
.release-close:hover {
    opacity: 1;
    color: #ffe2e2;
}

/* --- RESPONSIVE Anpassung --- */
@media (max-width: 1000px) {
    .carousel-container {
        height: auto !important;
        min-height: 220px;
        flex-direction: column;
        align-items: stretch;
    }
    #carousel.carousel-full {
        height: auto !important;
        min-height: 220px;
        max-height: none;
    }
    .carousel-image {
        min-height: 140px;
        max-height: 300px;
        height: auto;
    }
    .release-overlay {
        position: static !important;
        left: 50% !important;
        top: unset !important;
        transform: none !important;
        margin: 18px auto 0 auto !important;
        width: 92vw !important;
        max-width: 99vw !important;
        min-width: 0 !important;
        border-radius: 12px;
        font-size: 1.02rem;
        padding: 10px 3vw;
        box-shadow: 0 2px 10px rgba(0,0,0,0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .release-close {
        position: absolute;
        right: 14px;
        top: 10px;
        font-size: 1.4rem;
        align-self: flex-end;
    }
}
@media (max-width: 700px) {
    .release-overlay {
        font-size: 0.97rem;
        padding: 6px 2vw;
        border-radius: 8px;
        margin-top: 8px !important;
    }
    .release-close {
        font-size: 1.15rem;
        right: 6px;
    }
}
@media (max-width: 500px) {
    .release-overlay {
        font-size: 0.90rem;
        padding: 4px 1vw;
        width: 97vw !important;
        max-width: 98vw !important;
        min-width: unset !important;
        margin-top: 6px !important;
        box-sizing: border-box;
    }
}
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        height: auto !important;
        min-height: unset !important;
        width: 100vw;
    }
    .spalte-1, .spalte-2 {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 16px 4vw;
        box-sizing: border-box;
    }
    .spalte-2 {
        background: #fff;
        overflow: visible;
        height: auto !important;
    }

    .carousel-container,
    #carousel.carousel-full {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    .carousel-image {
        min-height: unset !important;
        max-height: 300px !important;
        height: auto !important;
    }
}

@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        height: auto !important;
        min-height: unset !important;
        width: 100vw;
    }
    .spalte-1, .spalte-2 {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 16px 4vw;
        box-sizing: border-box;
    }
    .spalte-2 {
        background: #fff;
        overflow: visible;
        height: auto !important;
    }
    /*  Carousel-Styles überschreiben! */
    .carousel-container,
    #carousel.carousel-full,
    #carousel,
    .carousel-item,
    .carousel-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    .carousel-item,
    .carousel-item-show {
        position: static !important;
    }

}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(34, 34, 34, 0.13);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: background 0.16s, color 0.13s, transform 0.13s;
    outline: none;
    opacity: 0.89;
    pointer-events: auto;
    user-select: none;
}
.carousel-arrow-left  { left: 22px;  }
.carousel-arrow-right { right: 22px; }
.carousel-arrow:hover {
    background: rgba(22, 22, 22, 0.36);
    color: #468cfe;
    transform: scale(1.07);
    opacity: 1;
}

@media (max-width: 700px) {
    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.7rem;
        left: 7px !important;
        right: 7px !important;
    }
    .carousel-arrow-left  { left: 7px;  }
    .carousel-arrow-right { right: 7px; }
}

.carousel-overlay-content {
    padding-bottom: 40px !important;
}

.carousel-headline {
    margin-bottom: 22px;
}

.carousel-button {
    margin-bottom: 23px;
}


/* region Login-Vorschläge */
#login-suggestions {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 9999;
    background: #fff;
    border: 1px solid #aaa;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}
#login-suggestions > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    padding: 8px;
    cursor: pointer;
}
#login-suggestions > div:hover {
    background: #f0f0f0;
}

#login-suggestions > div {
}

.login-suggestion-delete {
    color: #f44336;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.18s;
    margin-left: 8px;
}
/* endregion Login-Vorschläge */




