/* Bausteine für moderne Inhaltsseiten (Markenfarbe #83c0bc, Schrift Ubuntu) */
:root {
    --sb-brand: #83c0bc;
    --sb-brand-dark: #36716d; /* Text auf Weiß/Hellgrün: Kontrast ≥ 4,5:1 */
    --sb-brand-hover: #6fb1ad; /* Hover auf hellem Türkis, dunkle Schrift bleibt lesbar */
    --sb-on-brand: #1f2d32;   /* Schrift auf Türkis (Kontrast ≥ 6:1) */
    --sb-brand-soft: rgba(131, 192, 188, 0.14);
    --sb-ink: #2f3437;
    --sb-muted: #61696e;
}

.sb-section { padding: 72px 0; font-family: 'Ubuntu', sans-serif; color: var(--sb-ink); }
.sb-section--tint { background: #f4f7f7; }
.sb-section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
@media (max-width: 767px) { .sb-section { padding: 48px 0; } }

.sb-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sb-brand-soft);
    color: var(--sb-brand-dark);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sb-h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--sb-ink);
}
.sb-lead { font-size: 18px; line-height: 1.65; color: var(--sb-muted); margin: 0; }

/* Text + Bild nebeneinander */
.sb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sb-split__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(31, 45, 50, 0.16);
}
@media (max-width: 991px) {
    .sb-split { grid-template-columns: 1fr; gap: 36px; }
}

/* Schaltflächen */
.sb-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sb-btn i { font-size: 13px; transition: transform .15s ease; }
.sb-btn:hover i { transform: translateX(3px); }
.sb-btn--primary { background: var(--sb-brand); color: var(--sb-on-brand) !important; }
.sb-btn--primary:hover { background: var(--sb-brand-hover); }
.sb-btn--ghost { color: var(--sb-ink) !important; box-shadow: inset 0 0 0 1px rgba(47, 52, 55, 0.18); }
.sb-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--sb-brand); color: var(--sb-brand-dark) !important; }
.sb-btn--light { background: #fff; color: var(--sb-brand-dark) !important; flex-shrink: 0; }
.sb-btn--light:hover { background: var(--sb-ink); color: #fff !important; }

/* Vorteile als Karten */
.sb-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .sb-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sb-features { grid-template-columns: 1fr; } }
.sb-feature {
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 8px 26px rgba(31, 45, 50, 0.06);
    border: 1px solid rgba(47, 52, 55, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sb-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31, 45, 50, 0.1); }
.sb-feature__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--sb-brand-soft);
    color: var(--sb-brand-dark);
    font-size: 21px;
}
.sb-feature h3 { font-size: 19px; font-weight: 500; margin: 0 0 8px; color: var(--sb-ink); }
.sb-feature p { font-size: 15.5px; line-height: 1.6; color: var(--sb-muted); margin: 0; }

/* Abschluss-Karte */
.sb-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: 44px 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, #83c0bc 0%, #6fb1ad 100%);
    color: var(--sb-on-brand);
    box-shadow: 0 20px 50px rgba(95, 158, 154, 0.3);
}
.sb-cta h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; color: var(--sb-on-brand); margin: 0 0 8px; }
.sb-cta p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sb-on-brand); max-width: 620px; }
@media (max-width: 767px) {
    .sb-cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}

/* Fließtext */
.sb-prose { font-size: 17px; line-height: 1.75; color: #454b4f; }
.sb-prose p { margin: 0 0 1.1em; }
.sb-prose p:last-child { margin-bottom: 0; }
.sb-prose strong { color: var(--sb-ink); font-weight: 500; }
.sb-prose--center { max-width: 760px; margin: 0 auto; }
.sb-h3 { font-size: 22px; font-weight: 500; margin: 0 0 12px; color: var(--sb-ink); }
.sb-section__head--left { text-align: left; margin-left: 0; }

/* Bild links statt rechts */
.sb-split--reverse .sb-split__media { order: -1; }
@media (max-width: 991px) { .sb-split--reverse .sb-split__media { order: 0; } }
.sb-split--top { align-items: start; }

/* Illustrationen (freigestellt auf weißem Grund) */
.sb-split__media--illustration img {
    aspect-ratio: auto;
    object-fit: contain;
    max-height: 420px;
    box-shadow: none;
    border-radius: 0;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}
.sb-section--tint .sb-split__media--illustration {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(31, 45, 50, 0.06);
}
/* Kleines Bild nicht hochskalieren */
.sb-split__media--small img { max-width: 420px; margin: 0 auto; }

/* Zwei Spalten Text */
.sb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 991px) { .sb-columns { grid-template-columns: 1fr; } }
.sb-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 30px;
    box-shadow: 0 8px 26px rgba(31, 45, 50, 0.06);
    border: 1px solid rgba(47, 52, 55, 0.05);
}
.sb-box .sb-feature__icon { margin-bottom: 16px; }

/* Nummerierte Schritte */
.sb-steplist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 991px) { .sb-steplist { grid-template-columns: 1fr; } }
.sb-stepcard {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(31, 45, 50, 0.06);
    border: 1px solid rgba(47, 52, 55, 0.05);
}
.sb-stepcard img { display: block; height: 150px; width: auto; max-width: 100%; margin: 0 auto 20px; object-fit: contain; }
.sb-stepcard__num {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; margin-bottom: 12px;
    border-radius: 50%;
    background: var(--sb-brand); color: var(--sb-on-brand);
    font-weight: 500; font-size: 15px;
}
.sb-stepcard p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--sb-muted); }

/* Partner / Mitglieder als Chips */
.sb-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sb-chips span {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(47, 52, 55, 0.1);
    font-size: 14.5px;
    color: var(--sb-ink);
}

/* Logo-Wand */
.sb-logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
@media (max-width: 1199px) { .sb-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .sb-logos { grid-template-columns: repeat(2, 1fr); } }
.sb-logos__item {
    display: grid; place-items: center;
    height: 96px; padding: 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(47, 52, 55, 0.06);
}
.sb-logos__item img {
    max-height: 54px; max-width: 100%; width: auto;
    filter: grayscale(1); opacity: .75;
    transition: filter .2s ease, opacity .2s ease;
}
.sb-logos__item:hover img { filter: none; opacity: 1; }

/* Kennzahlen */
.sb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 767px) { .sb-stats { grid-template-columns: 1fr; } }
.sb-stat {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 32px 20px;
    box-shadow: 0 8px 26px rgba(31, 45, 50, 0.06);
    border: 1px solid rgba(47, 52, 55, 0.05);
}
.sb-stat__value { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--sb-brand-dark); line-height: 1.1; }
.sb-stat__label { display: block; margin-top: 8px; font-size: 17px; font-weight: 500; color: var(--sb-ink); }
.sb-stat__text { display: block; margin-top: 4px; font-size: 14.5px; color: var(--sb-muted); }

/* Hinweis-/Info-Box */
.sb-note {
    border-radius: 16px;
    padding: 28px 30px;
    background: var(--sb-brand-soft);
    color: var(--sb-ink);
}
.sb-note h3 { margin-top: 0; }

/* Breites Bild */
.sb-wide-image { display: block; width: 100%; border-radius: 18px; }

@media (prefers-reduced-motion: reduce) {
    .sb-feature, .sb-btn, .sb-btn i { transition: none; }
    .sb-feature:hover { transform: none; }
}

/* Kartenraster für viele Punkte: zwei Spalten, Symbol neben dem Text */
.sb-features--4 { grid-template-columns: repeat(2, 1fr); }
.sb-features--4 .sb-feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; align-items: start; }
.sb-features--4 .sb-feature__icon { grid-row: span 2; margin-bottom: 0; }
@media (max-width: 767px) { .sb-features--4 { grid-template-columns: 1fr; } }

/* Drei Spalten */
.sb-columns--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199px) { .sb-columns--3 { grid-template-columns: 1fr; } }

/* Standort-Karte */
.sb-location { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.sb-location address { margin: 0; font-style: normal; font-size: 17px; line-height: 1.6; }
.sb-location address strong { display: block; font-weight: 500; }

/* Preiskarten (Rackspace) */
.sb-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 991px) { .sb-pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.sb-price {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    padding: 32px 30px;
    box-shadow: 0 12px 34px rgba(31, 45, 50, 0.08);
    border: 1px solid rgba(47, 52, 55, 0.06);
}
.sb-price h3 { font-size: 22px; font-weight: 500; margin: 0 0 10px; color: var(--sb-ink); }
.sb-price__amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(47, 52, 55, 0.08); }
.sb-price__amount strong { font-size: 38px; font-weight: 700; color: var(--sb-ink); line-height: 1; }
.sb-price__amount span { color: var(--sb-muted); font-size: 15px; }
.sb-price__list { flex: 1; font-size: 15px; line-height: 1.75; color: #454b4f; margin-bottom: 26px; }
.sb-price__list b, .sb-price__list strong { font-weight: 500; color: var(--sb-ink); }
.sb-price .sb-btn { justify-content: center; }
.sb-pricing__hint { text-align: center; margin: 32px 0 0; color: var(--sb-muted); font-size: 16px; }
.sb-pricing__hint a { color: var(--sb-brand-dark); font-weight: 500; margin-left: 6px; }

/* Startseite: Einstieg */
.sb-hero {
    position: relative;
    padding: 96px 0 64px;
    font-family: 'Ubuntu', sans-serif;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.35) 62%, rgba(255,255,255,0) 100%),
        url('../img/brandenburger-tor-hero35.jpg') 70% 35% / cover no-repeat;
    border-bottom: 1px solid rgba(47, 52, 55, 0.06);
}
.sb-hero__inner { max-width: 720px; }
.sb-hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--sb-ink);
    margin: 0 0 18px;
}
.sb-hero__lead { font-size: 19px; line-height: 1.6; color: var(--sb-muted); margin: 0; max-width: 620px; }
.sb-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}
.sb-hero__stats div {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(47, 52, 55, 0.07);
    border-radius: 14px;
    padding: 18px 20px;
}
.sb-hero__stats strong { display: block; font-size: 28px; font-weight: 700; color: var(--sb-brand-dark); line-height: 1.1; }
.sb-hero__stats span { display: block; margin-top: 4px; font-size: 14px; color: var(--sb-muted); }
@media (max-width: 991px) {
    .sb-hero { padding: 56px 0 40px; }
    .sb-hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
    /* Auf schmalen Bildschirmen liegt der Text über dem ganzen Bild: gleichmäßiger aufhellen */
    .sb-hero {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0.6) 100%),
            url('../img/brandenburger-tor-hero35.jpg') 60% 30% / cover no-repeat;
    }
}
.sb-btn--on-image { background: rgba(255, 255, 255, 0.8); }

/* Verlinkte Karten */
.sb-feature--link { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; }
.sb-feature--link p { flex: 1; }
.sb-feature__top { display: flex; justify-content: space-between; align-items: flex-start; }
.sb-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sb-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .03em;
}
.sb-feature__more { margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--sb-brand-dark); }
.sb-feature__more i { font-size: 12px; margin-left: 4px; transition: transform .15s ease; }
.sb-feature--link:hover .sb-feature__more i { transform: translateX(3px); }

/* Akkordeon */
.sb-accordion { display: grid; gap: 12px; }
.sb-accordion details {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(47, 52, 55, 0.07);
    box-shadow: 0 6px 20px rgba(31, 45, 50, 0.05);
}
.sb-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 500;
    color: var(--sb-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.sb-accordion summary::-webkit-details-marker { display: none; }
.sb-accordion summary::after {
    content: "+";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sb-brand-soft);
    color: var(--sb-brand-dark);
    font-size: 18px;
    line-height: 1;
}
.sb-accordion details[open] summary::after { content: "–"; }
.sb-accordion ul { margin: 0; padding: 0 22px 20px 22px; list-style: none; }
.sb-accordion li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #454b4f; line-height: 1.6; }
.sb-accordion li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--sb-brand-dark); font-size: 13px; }

/* Rechtstexte (Impressum, Datenschutz) */
.sb-legal {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: #454b4f;
}
.sb-legal h2 { font-size: 24px; font-weight: 500; color: var(--sb-ink); margin: 44px 0 14px; }
.sb-legal h2:first-child { margin-top: 0; }
.sb-legal h3 { font-size: 19px; font-weight: 500; color: var(--sb-ink); margin: 30px 0 10px; }
.sb-legal h4 { font-size: 16px; font-weight: 500; color: var(--sb-ink); margin: 22px 0 8px; }
.sb-legal p { margin: 0 0 1em; }
.sb-legal a { color: var(--sb-brand-dark); text-decoration: underline; word-break: break-word; }
.sb-legal ul { padding-left: 20px; }

/* Akkordeon zweispaltig, Spalten unabhängig (kein Springen beim Aufklappen) */
.sb-accordion--2col { display: block; columns: 2; column-gap: 16px; }
.sb-accordion--2col details { break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 991px) { .sb-accordion--2col { columns: 1; } }

/* Liste mit Haken */
.sb-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sb-checklist li {
    position: relative;
    padding: 16px 18px 16px 52px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(47, 52, 55, 0.06);
    font-size: 16px;
    line-height: 1.65;
    color: #454b4f;
}
.sb-checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 17px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--sb-brand-soft);
    color: var(--sb-brand-dark);
    font-size: 11px;
}
/* Gestapelte Karten */
.sb-stack { display: grid; gap: 24px; }
.sb-pricing__vat { text-align: center; margin: 24px 0 0; font-size: 14px; color: var(--sb-muted); }
.sb-pricing__vat + .sb-pricing__hint { margin-top: 10px; }

/* Startseite: mehr Luft zwischen Einleitung und Schaltflächen */
.sb-hero .sb-hero__lead + .sb-buttons { margin-top: 56px; }
@media (max-width: 991px) { .sb-hero .sb-hero__lead + .sb-buttons { margin-top: 40px; } }

/* Bilder mit width/height-Attributen behalten ihr Seitenverhältnis (Attribute nur als Platzhalter) */
:where(img[width][height]) { height: auto; }

/* 404-Seite */
.sb-notfound { max-width: 640px; margin: 0 auto; text-align: center; }
.sb-notfound__code { display: block; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--sb-brand-dark); letter-spacing: -0.02em; margin-bottom: 16px; }
.sb-notfound .sb-buttons { justify-content: center; margin-top: 28px; }

/* Dezentes Einblenden beim Scrollen (ersetzt AOS); Steuerung in scripts.js */
.js [data-aos] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .6s cubic-bezier(.215, .61, .355, 1), transform .6s cubic-bezier(.215, .61, .355, 1);
}
.js [data-aos].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-aos] { opacity: 1; transform: none; transition: none; }
}

/* Handy: kompaktere Karten, damit lange Seiten nicht endlos scrollen */
@media (max-width: 575px) {
    .sb-feature, .sb-box, .sb-price, .sb-stepcard { padding: 22px 20px; border-radius: 14px; }
    .sb-feature:not(.sb-feature--link) { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
    .sb-feature:not(.sb-feature--link) > .sb-feature__icon { grid-row: span 2; margin-bottom: 0; }
    .sb-feature__icon { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
    .sb-feature h3 { font-size: 17px; margin-bottom: 4px; }
    .sb-feature p { font-size: 15px; line-height: 1.55; }
    .sb-features { gap: 14px; }
    .sb-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sb-stat { padding: 22px 14px; }
    .sb-stat:last-child:nth-child(odd) { grid-column: span 2; }
    .sb-logos__item { height: 80px; padding: 14px; }
    .sb-section__head { margin-bottom: 28px; }
}

/* Hilfsklassen statt style-Attributen (Content-Security-Policy ohne 'unsafe-inline');
   !important, damit sie wie die früheren Inline-Styles alles andere überstimmen */
.sb-u-center { text-align: center !important; }
.sb-u-m-0 { margin: 0 !important; }
.sb-u-mt-36 { margin-top: 36px !important; }
.sb-u-mt-40 { margin-top: 40px !important; }
.sb-u-mb-0 { margin-bottom: 0 !important; }
.sb-u-mb-16 { margin-bottom: 16px !important; }
.sb-u-mb-8 { margin: 0 0 8px !important; }
.sb-u-pt-0 { padding-top: 0 !important; }
.sb-u-pb-40 { padding-bottom: 40px !important; }
.sb-u-justify-center { justify-content: center !important; }
.sb-u-ar-auto { aspect-ratio: auto !important; }
.sb-u-bg-white { background: #fff !important; }
.sb-u-row { display: flex !important; gap: 18px !important; align-items: center !important; }
.sb-u-z1 { z-index: 1 !important; }
.sb-section__head--memberships { margin: 56px auto 24px !important; }
.sb-check { color: #5f9e9a !important; margin-right: 6px !important; }
