:root {
    --sb-dunkelblau: #091f88;
    --sb-blau: #086bc8;
    --sb-hellblau: #55b8f4;
    --sb-sehrhell: #edf8ff;
    --sb-text: #091f88;
    --sb-grau: #5d6b7b;
    --sb-linie: #d9eafa;
    --sb-weiss: #ffffff;
    --sb-schatten: 0 18px 52px rgba(7, 59, 134, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--sb-text);
    background: var(--sb-sehrhell);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.sb-seite {
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 34px;
    background: var(--sb-weiss);
    border: 1px solid #d8eaf7;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--sb-schatten);
}

.sb-kopf {
    background: #fff;
    position: relative;
    z-index: 50;
}

.sb-kopfzeile {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 30px 10px;
}

.sb-logo-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.sb-logo {
    display: block;
    width: min(300px, 32vw);
    height: auto;
}

.sb-hauptnav {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
}

.sb-hauptnav > a,
.sb-mehr-knopf {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--sb-dunkelblau);
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sb-hauptnav > a:hover,
.sb-hauptnav > a:focus-visible,
.sb-mehr-knopf:hover,
.sb-mehr-knopf:focus-visible,
.sb-hauptnav > a.aktiv {
    background: #dff1ff;
    outline: none;
}

.sb-mehr-wrap {
    position: relative;
}

.sb-mehr-menue {
    position: absolute;
    z-index: 100;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    width: 300px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--sb-linie);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(7, 59, 134, .18);
}

.sb-mehr-wrap.offen .sb-mehr-menue {
    display: block;
}

.sb-menue-gruppe {
    display: block;
    margin: 8px 6px 4px;
    padding: 10px 4px 7px;
    border-bottom: 1px solid #cfe5f5;
    color: var(--sb-dunkelblau);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .065em;
}

.sb-menue-gruppe:first-child {
    margin-top: 0;
    padding-top: 4px;
}

.sb-mehr-menue a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--sb-dunkelblau);
    font-weight: 600;
    text-decoration: none;
}

.sb-mehr-menue a:hover,
.sb-mehr-menue a:focus-visible {
    background: #edf8ff;
    outline: none;
}

.sb-mobil-knopf {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #e8f5ff;
    color: var(--sb-dunkelblau);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sb-mobil-menue {
    display: none;
    padding: 8px 18px 18px;
    background: #fff;
    border-top: 1px solid var(--sb-linie);
}

.sb-mobil-menue.offen {
    display: block;
}

.sb-mobil-menue a {
    display: block;
    padding: 13px 10px;
    border-bottom: 1px solid #edf4fa;
    color: var(--sb-dunkelblau);
    font-weight: 700;
    text-decoration: none;
}

.sb-mobil-menue a:hover,
.sb-mobil-menue a:focus-visible {
    background: #f2f9ff;
    outline: none;
}

.sb-mobil-gruppe {
    margin-top: 8px;
    padding: 18px 10px 7px;
    border-bottom: 1px solid #cfe5f5;
    color: var(--sb-dunkelblau);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .065em;
}

.sb-inhalt {
    padding: 34px 44px 42px;
}

.sb-inhalt h1 {
    margin: 0 0 24px;
    color: var(--sb-dunkelblau);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.sb-inhalt h2,
.sb-inhalt h3 {
    color: var(--sb-dunkelblau);
}

.sb-inhalt p,
.sb-inhalt li {
    color: var(--sb-dunkelblau);
    font-size: 17px;
    line-height: 1.65;
}

.sb-testkasten {
    padding: 24px;
    border: 1px solid var(--sb-linie);
    border-radius: 18px;
    background: #fbfdff;
    box-shadow: 0 5px 18px rgba(7, 59, 134, .06);
}

.sb-fuss {
    position: relative;
    min-height: 135px;
    padding: 34px 22px 24px;
    text-align: center;
    overflow: hidden;
    background: #f8fcff;
}

.sb-fuss::before,
.sb-fuss::after {
    content: "";
    position: absolute;
    left: -5%;
    width: 110%;
    height: 70px;
    border-radius: 50%;
}

.sb-fuss::before {
    bottom: -50px;
    background: #67c4f6;
    transform: rotate(1deg);
}

.sb-fuss::after {
    bottom: -64px;
    background: #0871c9;
    transform: rotate(-1deg);
}

.sb-spruch {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    color: var(--sb-dunkelblau);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 700;
}

.sb-fusslinks {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.sb-fusslinks a {
    color: var(--sb-dunkelblau);
    font-size: 14px;
    text-decoration: none;
}

.sb-fusslinks a:hover,
.sb-fusslinks a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .sb-seite {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .sb-kopfzeile {
        min-height: 72px;
        padding: 10px 14px 8px;
    }

    .sb-logo {
        width: min(250px, 70vw);
    }

    .sb-hauptnav {
        display: none;
    }

    .sb-mobil-knopf {
        display: inline-grid;
    }

    .sb-inhalt {
        padding: 26px 18px 34px;
    }

    .sb-inhalt p,
    .sb-inhalt li {
        font-size: 16px;
    }
    
}

@media (max-width: 430px) {
    .sb-logo {
        width: min(245px, 69vw);
    }

    .sb-inhalt {
        padding-inline: 15px;
    }
}

/* Fließtext etwas weicher für bessere Lesbarkeit */
.sb-inhalt p,
.sb-inhalt li {
    color: #073b86;
}

/* ==========================================================
   Dynamischer Bereichs-Header
   ========================================================== */

.sb-bereichshero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(85,184,244,.28), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f2faff 52%, #dff2ff 100%);
}

.sb-bereichshero-mit-bild {
    aspect-ratio: 1942 / 809;
    min-height: 390px;
    max-height: 500px;
}

.sb-bereichshero-mit-bild > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.sb-bereichshero-mit-bild::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.34) 0%,
        rgba(255,255,255,.22) 31%,
        rgba(255,255,255,.08) 43%,
        rgba(255,255,255,0) 56%
    );
}

.sb-bereichshero-ohne-bild {
    min-height: 230px;
}

.sb-bereichshero-ohne-bild::before,
.sb-bereichshero-ohne-bild::after {
    content: "";
    position: absolute;
    left: -4%;
    width: 108%;
    height: 70px;
    border-radius: 50%;
    pointer-events: none;
}

.sb-bereichshero-ohne-bild::before {
    right: auto;
    bottom: -47px;
    border-top: 7px solid rgba(85,184,244,.82);
    transform: rotate(-1.2deg);
}

.sb-bereichshero-ohne-bild::after {
    z-index: 1;
    inset: auto auto -55px -4%;
    border-top: 6px solid rgba(8,107,200,.92);
    transform: rotate(.8deg);
}

.sb-bereichshero-text {
    position: absolute;
    z-index: 2;
    left: 8.4%;
    top: 39%;
    transform: translateY(-50%);
    width: min(49%, 610px);
    color: var(--sb-text);
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.sb-bereichshero-ohne-bild .sb-bereichshero-text {
    top: 46%;
    width: min(78%, 760px);
}

@media (min-width: 851px) {
    .sb-bereichshero-mit-bild:not(.sb-bereichshero-babyschwimmen) .sb-bereichshero-text {
        top: 35%;
    }
}

.sb-bereichshero-text h1 {
    margin: 0;
    color: var(--sb-dunkelblau);
    font-size: clamp(38px, 4.1vw, 58px);
    line-height: .99;
    letter-spacing: -1.1px;
}

.sb-bereichshero-text p {
    margin: 12px 0 0;
    max-width: 500px;
    color: var(--sb-text);
    font-size: clamp(18px, 1.75vw, 23px);
    line-height: 1.4;
}

.sb-bereichshero-hinweis {
    margin: 4px 18px 0;
    color: #7a8794 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: right;
}

@media (max-width: 850px) {
    .sb-bereichshero-mit-bild {
        aspect-ratio: auto;
        height: 390px;
        min-height: 0;
        max-height: none;
        background: #fff;
    }

    .sb-bereichshero-mit-bild > img {
        height: 245px;
        object-fit: cover;
        object-position: 67% 50%;
    }

    .sb-bereichshero-mit-bild::after {
        display: none;
    }

    .sb-bereichshero-mit-bild .sb-bereichshero-text {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        min-height: 150px;
        padding: 16px 18px 26px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: linear-gradient(#ffffff, #f7fcff);
    }
.sb-bereichshero-ohne-bild {
        min-height: 190px;
    }

    .sb-bereichshero-ohne-bild .sb-bereichshero-text {
        left: 18px;
        right: 18px;
        top: 50%;
        width: auto;
        text-align: center;
    }

    .sb-bereichshero-text h1 {
        font-size: clamp(31px, 8vw, 43px);
        letter-spacing: -.6px;
    }

    .sb-bereichshero-text p {
        font-size: 16px;
        line-height: 1.3;
    }

    .sb-bereichshero-hinweis {
        margin: 3px 12px 0;
        font-size: 9px !important;
    }
}

@media (max-width: 520px) {
    .sb-bereichshero-mit-bild {
        height: 350px;
    }

    .sb-bereichshero-mit-bild > img {
        height: 210px;
        object-position: 69% 48%;
    }

    .sb-bereichshero-mit-bild .sb-bereichshero-text {
        min-height: 140px;
        padding: 17px 14px 23px;
    }

    .sb-bereichshero-text h1 {
        font-size: 30px;
    }

    .sb-bereichshero-text p {
        font-size: 14px;
    }
}

