@charset "utf-8";

:root {
    --page-bg-start: #fbfdff;
    --page-bg-end: #98c1fc;
    --box-bg: rgba(255, 255, 255, 0.52);
    --box-border: rgba(255, 255, 255, 0.72);
    --box-shadow: 0 12px 36px rgba(31, 38, 135, 0.10);

    --brand-blue: #2c5da1;
    --brand-light: #98c1fc;
    --accent:#FF5D00;
    --text: #2c5da1;
    --text-neutral: #1d1d1f;

    --radius-large: 24px;
    --radius-medium: 16px;
    --radius-small: 10px;

    --page-gap: clamp(8px, 2.5vw, 24px);
    --box-padding: clamp(12px, 3vw, 30px);
    --content-gap: clamp(12px, 2.5vw, 20px);
    --max-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding:
        max(var(--page-gap), env(safe-area-inset-top))
        max(var(--page-gap), env(safe-area-inset-right))
        max(var(--page-gap), env(safe-area-inset-bottom))
        max(var(--page-gap), env(safe-area-inset-left));
    overflow-x: hidden;

    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;

    background: linear-gradient(
        180deg,
        var(--page-bg-start) 0%,
        var(--page-bg-end) 100%
    );
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(44, 93, 161, 0.35);
    outline-offset: 3px;
}

.site-box {
    width: min(100%, var(--max-width));
    min-height: calc(100vh - (2 * var(--page-gap)));
    min-height: calc(100dvh - (2 * var(--page-gap)));
    margin-inline: auto;
    padding: var(--box-padding);

    display: flex;
    flex-direction: column;
    gap: var(--content-gap);
    min-width: 0;

    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: var(--radius-large);
    box-shadow: var(--box-shadow);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.main-header,
.main-content,
.main-footer,
.navigation {
    width: 100%;
    min-width: 0;
}

.navigation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-area {
    display: inline-flex;
    flex: 0 1 190px;
    max-width: 190px;
    min-width: 0;
    flex-direction: column;
    text-decoration: none;
}

.logo-line {
    display: block;
    margin: 0;
    color: var(--brand-blue);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.line-one {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.line-two {
    margin-top: 4px;
    font-size: clamp(0.52rem, 1vw, 0.58rem);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--brand-blue);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.35);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 8px;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-blue);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.divider {
    width: 100%;
    height: 2px;
    margin: 0;
    border: 0;
    background: var(--brand-light);
}

.main-content {
    flex: 1 0 auto;
    min-height: 0;
    padding-block: clamp(5px, 2vw, 12px);
    overflow-wrap: anywhere;
}

.main-content img,
.main-content video,
.main-content iframe,
.main-content svg {
    display: block;
    max-width: 100%;
}

.main-content img,
.main-content video {
    height: auto;
}

.main-content iframe {
    width: 100%;
    border: 0;
}

.main-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.main-content pre,
.main-content code {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.main-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: 0.75rem;
}

.main-footer p {
    margin: 0;
}

.footer-link {
    padding: 2px 0;
    cursor: pointer;
    border: 0;
    color: var(--brand-blue);
    background: transparent;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-link:hover {
    color: var(--accent);
}


.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .navigation {
        flex-wrap: wrap;
    }

    .nav-links {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .cookie-bar-content {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-bar-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 150px;
    }
}

@media (max-width: 768px) {
    .site-box {
        border-radius: var(--radius-medium);
    }

    .navigation {
        gap: 10px;
    }

    .logo-area {
        flex-basis: min(170px, calc(100% - 58px));
        max-width: min(170px, calc(100% - 58px));
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex: 1 1 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 8px;

        background: rgba(255, 255, 255, 0.35);
        border: 1px solid var(--box-border);
        border-radius: var(--radius-medium);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 12px;
    }

    .main-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --page-gap: 8px;
        --box-padding: 12px;
        --content-gap: 12px;
    }

    .site-box {
        border-radius: 14px;
    }

    .logo-area {
        flex-basis: min(160px, calc(100% - 58px));
        max-width: min(160px, calc(100% - 58px));
    }

    .line-one {
        font-size: 1.05rem;
    }

    .line-two {
        font-size: 0.52rem;
    }

    .cookie-bar-container {
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        left: max(8px, env(safe-area-inset-left));
        width: auto;
        padding: 12px;
        border-radius: 14px;
    }

    .cookie-bar-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        flex-basis: auto;
    }

    .cookie-option p {
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    :root {
        --page-gap: 6px;
        --box-padding: 10px;
    }

    .logo-area {
        flex-basis: min(150px, calc(100% - 54px));
        max-width: min(150px, calc(100% - 54px));
    }

    .line-one {
        font-size: 0.98rem;
    }

    .line-two {
        font-size: 0.48rem;
    }

    .hamburger {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}



/* Responsiver Bildslider */
.image-slider {
    width: min(100%, 750px);

    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.8vw, 16px);
    margin-inline: auto;
}

.slider-frame {
    width: 100%;

    min-width: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: clamp(14px, 2.5vw, 24px);
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 8px 26px rgba(31, 38, 135, 0.10);
}

.slider-track {
    display: flex;
    width: 100%;
    min-width: 0;
    transition: transform 420ms ease;
    touch-action: pan-y;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-button {
    width: clamp(38px, 4.5vw, 48px);
    height: clamp(38px, 4.5vw, 48px);
    padding: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 5px 16px rgba(31, 38, 135, 0.12);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        color 150ms ease;
}

.slider-button:hover,
.slider-button:focus-visible {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.96);
}

.slider-button:active {
    transform: scale(0.94);
}

@media (max-width: 480px) {
    .image-slider {
        gap: 6px;
    }

    .slider-button {
        width: 36px;
        height: 36px;
        border-width: 1px;
        font-size: 1rem;
    }

    .slider-frame {
        border-width: 1px;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .image-slider {
        gap: 4px;
    }

    .slider-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}


/* =========================================================
   Uns-Seite: Bild-/Text-Slider
   Geometrie und Bedienelemente entsprechen dem Index-Slider.
   Hintergrund und Textbereich bleiben vollständig transparent.
   ========================================================= */

.uns-slider {
    width: min(100%, 800px);
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 1.8vw, 16px);
    margin-inline: auto;
}

.uns-slider-frame {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    transition: height 260ms ease;

    /* identisch zum Index-Slider */
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: clamp(14px, 2.5vw, 24px);
    box-shadow: 0 8px 26px rgba(31, 38, 135, 0.10);

    /* ausdrücklich transparent */
    background: transparent;
}

.uns-slider-track {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    transition: transform 420ms ease;
    touch-action: pan-y;
    will-change: transform;
}

.uns-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;

    /* Höhe richtet sich nach dem Inhalt der jeweils sichtbaren Folie. */
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    align-items: start;
    overflow: hidden;

    color: var(--brand-blue);
    background: transparent;
}

.uns-slide-image,
.uns-slide-text {
    align-self: start;
    min-width: 0;
    background: transparent;
}

.uns-slide-image {
    width: 100%;
    min-width: 0;
    align-self: center;
    overflow: hidden;
}

.uns-slide-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.uns-slide-text {
    padding: clamp(5px, 3vw, 5px);
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Schrift bleibt konstant blau */
    color: var(--brand-blue);
    background: transparent;
    overflow-wrap: anywhere;
}

.uns-slide-text h2,
.uns-slide-text p,
.uns-slide-text strong,
.uns-slide-text em,
.uns-slide-text a {
    color: var(--brand-blue);
}

.uns-slide-text h2 {
    margin: 0 0 0.65em;
    font-size: clamp(1.15rem, 2.4vw, 1.8rem);
    line-height: 1.15;
}

.uns-slide-text p {
    margin: 0;
    font-size: clamp(0.82rem, 1.35vw, 1rem);
    line-height: 1.5;
}

/* identisch zu den Pfeil-Buttons des Index-Sliders */
.uns-slider-button {
    width: clamp(38px, 4.5vw, 48px);
    height: clamp(38px, 4.5vw, 48px);
    padding: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;

    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 5px 16px rgba(31, 38, 135, 0.12);

    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1;

    transition:
        transform 150ms ease,
        background-color 150ms ease;
}

.uns-slider-button:hover,
.uns-slider-button:focus-visible {
    /* Pfeil bleibt ebenfalls blau */
    color: var(--accent);
    background: rgba(255, 255, 255, 0.96);
}





.uns-slider-button:active {
    transform: scale(0.94);
}

/*
   Unter 650 px wird nur die innere Bild/Text-Aufteilung gestapelt.
   Außenbreite, Pfeilpositionen und Grundcharakter entsprechen weiter
   dem Index-Slider und bleiben vollständig responsiv.
*/
@media (max-width: 650px) {
    .uns-slide-image {
        align-self: start;
    }

    .uns-slide {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .uns-slide-image {
        aspect-ratio: 16 / 9;
    }

    .uns-slide-text {
        min-height: 150px;
        padding: clamp(14px, 4vw, 22px);
    }

    .uns-slide-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .uns-slider {
        gap: 6px;
    }

    .uns-slider-button {
        width: 36px;
        height: 36px;
        border-width: 1px;
        font-size: 1rem;
    }

    .uns-slider-frame {
        border-width: 1px;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .uns-slider {
        gap: 4px;
    }

    .uns-slider-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   RECHT.HTML – Bild-only-Slider
   Der äußere Slider-Look, Breite, Rahmen, Buttons und Bedienung
   bleiben identisch. Nur der Inhalt jeder Folie besteht aus
   einem einzelnen PNG. Die Höhe folgt dem Bild.
   ========================================================= */

/*
 * Wichtig:
 * Die ursprüngliche 30/70-Bild-/Text-Aufteilung wird nur auf
 * der Recht-Seite aufgehoben. Jede Folie ist nun ein einzelner
 * responsiver Bildbereich ohne feste Höhe und ohne Seitenverhältnis.
 */
.uns-slide {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: transparent;
}

/*
 * Kleiner Abstand zwischen PNG und Sliderrahmen.
 * Horizontal bleibt das Bild mittig; vertikal bestimmen Bildhöhe
 * plus dieser Innenabstand die tatsächliche Sliderhöhe.
 */
.recht-slide-image {
    width: 100%;
    min-width: 0;
    padding: clamp(10px, 2vw, 18px) clamp(10px, 2.4vw, 22px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
}

/*
 * Keine feste Höhe, kein object-fit: cover, kein Beschnitt.
 * Das PNG bestimmt seine Höhe selbst und skaliert nur nach unten,
 * wenn der Slider schmaler wird.
 */
.recht-slide-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-inline: auto;
    object-fit: contain;
    object-position: center top;
}

/*
 * Die alte mobile 16:9-Vorgabe der .uns-slide-image ist für die
 * Recht-Seite irrelevant, da dort .recht-slide-image verwendet wird.
 * Auch mobil bleibt deshalb die natürliche PNG-Höhe maßgeblich.
 */
@media (max-width: 650px) {
    .uns-slide {
        display: block;
    }

    .recht-slide-image {
        padding: clamp(8px, 2.5vw, 14px) clamp(8px, 3vw, 16px);
    }

    .recht-slide-image img {
        width: auto;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .recht-slide-image {
        padding-block: 8px;
        padding-inline: 8px;
    }
}

