/* ==========================================================================
   Wassermann Service - Frontend
   Aufbau: 1) Grundlagen  2) Bausteine  3) Formulare  4) Kopf/Fuss  5) Mobil
   ========================================================================== */

:root {
    /* Blau aus dem Logo als Grundton */
    --wsm-blue-900: #06243d;
    --wsm-blue-800: #083657;
    --wsm-blue-700: #0a4a75;
    --wsm-blue-600: #0d63ab;
    --wsm-blue-500: #1479c9;
    --wsm-blue-400: #3f9ad9;
    --wsm-blue-100: #e3f0fb;
    --wsm-blue-50:  #f2f8fd;

    --wsm-ink:      #16212e;
    --wsm-body:     #4a5a6b;
    --wsm-muted:    #7b8a99;
    --wsm-line:     #e2e9f0;
    --wsm-surface:  #ffffff;
    --wsm-light:    #f5f8fb;

    --wsm-success:  #1a8a5a;
    --wsm-warning:  #c57a09;
    --wsm-danger:   #c0392b;

    --wsm-radius:   14px;
    --wsm-radius-sm: 8px;
    --wsm-shadow:   0 1px 2px rgba(10, 35, 60, .05), 0 8px 24px rgba(10, 35, 60, .07);
    --wsm-shadow-lg: 0 18px 50px rgba(8, 40, 70, .16);

    --wsm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --wsm-section-y: clamp(3.5rem, 7vw, 6.5rem);
}

/* ---------- 1) Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--wsm-font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wsm-body);
    background: var(--wsm-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--wsm-ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--wsm-blue-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--wsm-blue-800); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--wsm-blue-400);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--wsm-blue-700);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--wsm-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Abschnitte */
.section {
    padding-block: var(--wsm-section-y);
    position: relative;
}
.section--white   { background: var(--wsm-surface); }
.section--light   { background: var(--wsm-light); }
.section--primary { background: var(--wsm-blue-700); color: rgba(255, 255, 255, .88); }
.section--primary h1, .section--primary h2, .section--primary h3, .section--primary h4 { color: #fff; }
.section--dark    { background: var(--wsm-blue-900); color: rgba(255, 255, 255, .82); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--wsm-blue-600);
    margin-bottom: .75rem;
}
.kicker::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--wsm-blue-500);
    border-radius: 2px;
}
.section--primary .kicker,
.section--dark .kicker { color: var(--wsm-blue-400); }
.section--primary .kicker::before,
.section--dark .kicker::before { background: var(--wsm-blue-400); }

.lead { font-size: 1.1rem; }

.measure-narrow { max-width: 44rem; }
.measure-normal { max-width: 62rem; }

/* Fliesstext aus dem Editor */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2rem; }
.rich h3 { font-size: 1.3rem; margin-top: 1.75rem; }
.rich h4 { font-size: 1.1rem; margin-top: 1.5rem; }
.rich ul, .rich ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.rich li { margin-bottom: .4rem; }
.rich strong { color: var(--wsm-ink); }
.rich a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: .95rem;
}
.rich table th, .rich table td {
    border: 1px solid var(--wsm-line);
    padding: .6rem .75rem;
    text-align: left;
}
.rich table th { background: var(--wsm-light); color: var(--wsm-ink); }
.rich-scroll { overflow-x: auto; }

/* Datenblatt-Tabellen: die linke Spalte ist eine Beschriftung, keine Überschrift */
.rich table th[scope="row"] {
    width: 34%;
    min-width: 11rem;
    font-weight: 600;
    color: var(--wsm-body);
    background: var(--wsm-light);
}

/* Unterschrift unter einem Text */
.rich .signatur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--wsm-line);
}
.rich .signatur img {
    max-height: 3.2rem;
    width: auto;
}
.rich .signatur span {
    font-size: .92rem;
    color: var(--wsm-muted);
}

/* Buttons */
.btn-wsm {
    --btn-bg: var(--wsm-blue-600);
    --btn-fg: #fff;
    --btn-bd: var(--wsm-blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1.5px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
    text-align: center;
}
.btn-wsm:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 99, 171, .25);
}
.btn-wsm:active { transform: translateY(0); }

.btn-wsm--light {
    --btn-bg: #fff;
    --btn-fg: var(--wsm-blue-700);
    --btn-bd: #fff;
}
.btn-wsm--outline {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    --btn-bd: currentColor;
}
.btn-wsm--outline:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.section--white .btn-wsm--outline,
.section--light .btn-wsm--outline {
    --btn-fg: var(--wsm-blue-700);
    --btn-bd: var(--wsm-blue-200, #bcd9f0);
}
.section--white .btn-wsm--outline:hover,
.section--light .btn-wsm--outline:hover { background: var(--wsm-blue-50); }
/* Blaue/dunkle Aufruf-Box in einem hellen Abschnitt: Button wieder weiss,
   sonst steht dunkelblaue Schrift auf blauem Grund. */
.cta--primary .btn-wsm--outline,
.cta--dark .btn-wsm--outline {
    --btn-fg: #fff;
    --btn-bd: rgba(255, 255, 255, .7);
}
.cta--primary .btn-wsm--outline:hover,
.cta--dark .btn-wsm--outline:hover { background: rgba(255, 255, 255, .12); }

.btn-wsm--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-group-wsm { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 2) Bausteine ---------- */

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--wsm-blue-800);
    overflow: hidden;
}
.hero--medium { min-height: 26rem; }
.hero--large  { min-height: 36rem; }
.hero--full   { min-height: calc(100vh - 7rem); }

.hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.hero__overlay { position: absolute; inset: 0; }
.hero__overlay--light {
    background: linear-gradient(100deg, rgba(6, 36, 61, .62) 0%, rgba(6, 36, 61, .25) 70%);
}
.hero__overlay--dark {
    background: linear-gradient(100deg, rgba(6, 36, 61, .88) 0%, rgba(6, 36, 61, .55) 60%, rgba(6, 36, 61, .35) 100%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(4rem, 9vw, 7rem);
    width: 100%;
}
.hero__content { max-width: 40rem; }
.hero--center .hero__content { max-width: 48rem; margin-inline: auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__text {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 1.9rem;
}
.hero .kicker { color: #9fd0f2; }
.hero .kicker::before { background: #9fd0f2; }

/* Seitenkopf */
.pagehead {
    position: relative;
    padding-block: clamp(3rem, 6vw, 4.75rem);
    background: var(--wsm-blue-800);
    color: #fff;
    overflow: hidden;
}
.pagehead__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.pagehead__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 36, 61, .9), rgba(6, 36, 61, .6));
}
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; margin-bottom: .35rem; }
.pagehead__sub { color: rgba(255, 255, 255, .8); margin: 0; max-width: 44rem; }

.breadcrumb-wsm {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    list-style: none;
    padding: 0;
    margin: .9rem 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .7);
}
.breadcrumb-wsm li + li::before {
    content: "/";
    margin-right: .6rem;
    color: rgba(255, 255, 255, .45);
}
.breadcrumb-wsm a { color: rgba(255, 255, 255, .9); }
.breadcrumb-wsm a:hover { color: #fff; text-decoration: underline; }

/* Karten */
.card-wsm {
    height: 100%;
    background: var(--wsm-surface);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-wsm:hover {
    transform: translateY(-4px);
    box-shadow: var(--wsm-shadow);
    border-color: #cfe0ef;
}
.card-wsm__media {
    aspect-ratio: 16 / 10;
    background: var(--wsm-blue-50);
    overflow: hidden;
}
.card-wsm__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.card-wsm:hover .card-wsm__media img { transform: scale(1.04); }
.card-wsm__body { padding: 1.5rem; }
.card-wsm__body h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.card-wsm__body p { font-size: .97rem; margin-bottom: 0; }
.card-wsm__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: .95rem;
}
.card-wsm__more i { transition: transform .2s ease; }
.card-wsm:hover .card-wsm__more i { transform: translateX(3px); }

/* Merkmale */
.feature {
    height: 100%;
    padding: 1.9rem 1.6rem;
    background: var(--wsm-surface);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--wsm-shadow); }
.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background: var(--wsm-blue-100);
    color: var(--wsm-blue-600);
    font-size: 1.6rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { font-size: .96rem; margin-bottom: 0; }

/* Text mit Bild */
.media-figure {
    position: relative;
    border-radius: var(--wsm-radius);
    overflow: hidden;
    box-shadow: var(--wsm-shadow);
}
.media-figure img { display: block; width: 100%; }
.media-badge {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--wsm-radius-sm);
    background: var(--wsm-blue-600);
    color: #fff;
    text-align: center;
    box-shadow: var(--wsm-shadow-lg);
}
.media-badge strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.media-badge span { font-size: .8rem; opacity: .9; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .7rem;
    color: var(--wsm-ink);
    font-weight: 500;
}
.check-list li::before {
    /* Zeichencode der mitgelieferten Remix-Icon-Fassung 2.5 - in neueren
       Fassungen liegt ri-check-line an einer anderen Stelle. */
    content: "\eb7b"; /* ri-check-line */
    font-family: "remixicon";
    position: absolute;
    left: 0;
    top: -.05rem;
    width: 1.4rem;
    height: 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wsm-blue-100);
    color: var(--wsm-blue-600);
    font-size: .85rem;
}
.section--primary .check-list li,
.section--dark .check-list li { color: #fff; }

/* Zahlen */
.stat { text-align: center; padding: 1rem .5rem; }
.stat__icon { font-size: 1.9rem; opacity: .75; margin-bottom: .5rem; display: block; }
.stat__value {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: inherit;
}
.section--white .stat__value, .section--light .stat__value { color: var(--wsm-blue-600); }
.stat__label { font-size: .95rem; margin: .5rem 0 0; opacity: .85; }

/* Galerie */
.gallery-item {
    position: relative;
    display: block;
    border-radius: var(--wsm-radius);
    overflow: hidden;
    background: var(--wsm-blue-50);
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(6, 36, 61, .92), rgba(6, 36, 61, 0));
    color: #fff;
}
.gallery-item__caption strong { display: block; font-size: 1.02rem; }
.gallery-item__caption span { font-size: .86rem; opacity: .85; }
.gallery-item__zoom {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--wsm-blue-700);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: translateY(0); }

.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.gallery-filter button {
    padding: .5rem 1.1rem;
    border: 1.5px solid var(--wsm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--wsm-body);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
}
.gallery-filter button:hover { border-color: var(--wsm-blue-400); color: var(--wsm-blue-700); }
.gallery-filter button[aria-pressed="true"] {
    background: var(--wsm-blue-600);
    border-color: var(--wsm-blue-600);
    color: #fff;
}

/* Vorher / Nachher */
.ba-card {
    background: var(--wsm-surface);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    overflow: hidden;
    height: 100%;
}
.ba {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
}
.ba img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(6, 36, 61, .25);
    transform: translateX(-50%);
    pointer-events: none;
}
.ba__knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--wsm-blue-700);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(6, 36, 61, .3);
    transform: translate(-50%, -50%);
}
.ba__tag {
    position: absolute;
    top: .8rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(6, 36, 61, .78);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    pointer-events: none;
}
.ba__tag--before { left: .8rem; }
.ba__tag--after  { right: .8rem; }
.ba-card__body { padding: 1.25rem 1.4rem 1.4rem; }
.ba-card__body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.ba-card__body p { font-size: .95rem; margin-bottom: 0; }

/* FAQ */
.faq-list { max-width: 50rem; margin-inline: auto; }
.faq-item {
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    background: #fff;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border: 0;
    background: transparent;
    color: var(--wsm-ink);
    font-size: 1.04rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-item__q i { flex: 0 0 auto; color: var(--wsm-blue-600); transition: transform .2s ease; }
.faq-item__q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-item__a {
    padding: 0 1.3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
}
.faq-item__a[data-open="1"] { padding-bottom: 1.25rem; }

/* Kundenstimmen */
.quote-card {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 2.5rem 1.6rem 1.6rem;
    background: var(--wsm-surface);
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.quote-card__mark {
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    color: var(--wsm-blue-100);
}
.quote-card blockquote { margin: 0; flex: 1 1 auto; }
.quote-card blockquote p { margin: 0; font-size: 1rem; }
.quote-card figcaption {
    padding-top: .9rem;
    border-top: 1px solid var(--wsm-line);
    font-size: .92rem;
}
.quote-card figcaption strong { display: block; color: var(--wsm-ink); }
.quote-card figcaption span { color: var(--wsm-muted); font-size: .86rem; }

.stars { display: inline-flex; gap: .1rem; color: #e8a33d; font-size: 1.05rem; }
.stars--sm { font-size: .95rem; }

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .6rem;
    margin: 1rem 0 0;
    font-size: .98rem;
}
.rating-summary strong { color: var(--wsm-ink); }

/* Kundenstimmen als Slider */
.quote-slider { padding-bottom: .5rem; }
.quote-slider .swiper-slide {
    height: auto;          /* alle Karten gleich hoch, unabhängig vom Text */
    display: flex;
}
.quote-slider .swiper-slide .quote-card { width: 100%; }

.quote-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}
.quote-slider__btn {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--wsm-line);
    border-radius: 50%;
    background: var(--wsm-surface);
    color: var(--wsm-blue-700);
    font-size: 1.35rem;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.quote-slider__btn:hover {
    border-color: var(--wsm-blue-400);
    background: var(--wsm-blue-50);
    transform: translateY(-2px);
}
.quote-slider__btn:disabled { opacity: .4; cursor: default; transform: none; }

.quote-slider .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: auto;
}
.quote-slider .swiper-pagination-bullet {
    width: .55rem;
    height: .55rem;
    margin: 0;
    background: var(--wsm-line-strong, #c3d4e2);
    opacity: 1;
    transition: width .2s ease, background .2s ease;
}
.quote-slider .swiper-pagination-bullet-active {
    width: 1.6rem;
    border-radius: 999px;
    background: var(--wsm-blue-600);
}

.rating-note {
    max-width: 48rem;
    margin: 2.25rem auto 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    background: var(--wsm-surface);
    font-size: .86rem;
    color: var(--wsm-muted);
    line-height: 1.6;
}
.rating-note i { color: var(--wsm-blue-500); margin-right: .3rem; }

/* Sternebewertung im Formular - Reihenfolge im HTML ist 5…1 */
.rating-input { border: 0; padding: 0; margin: 0 0 1.1rem; }
.rating-input legend { float: none; width: auto; }
.rating-input__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .15rem;
}
.rating-input__stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.rating-input__stars label {
    cursor: pointer;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--wsm-line);
    padding: .15rem;
    transition: color .12s ease, transform .12s ease;
}
.rating-input__stars label:hover,
.rating-input__stars label:hover ~ label,
.rating-input__stars input:checked ~ label { color: #e8a33d; }
.rating-input__stars label:hover { transform: scale(1.08); }
.rating-input__stars input:focus-visible + label {
    outline: 3px solid var(--wsm-blue-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Auswahl, wie der Name erscheint */
.name-choice { border: 0; padding: 0; margin: 0 0 1.1rem; }
.name-choice legend { float: none; width: auto; }
.name-choice__item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .7rem .85rem;
    border: 1.5px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    margin-bottom: .5rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.name-choice__item:hover { border-color: var(--wsm-blue-400); background: var(--wsm-blue-50); }
.name-choice__item input { margin-top: .25rem; accent-color: var(--wsm-blue-600); flex: 0 0 auto; }
.name-choice__item:has(input:checked) {
    border-color: var(--wsm-blue-500);
    background: var(--wsm-blue-50);
}
.name-choice__item strong { display: block; color: var(--wsm-ink); font-size: .95rem; font-weight: 600; }
.name-choice__item small { color: var(--wsm-muted); font-size: .84rem; }

.visually-hidden-wsm {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Partner */
.partner-strip { overflow: hidden; position: relative; }
.partner-strip::before,
.partner-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5rem;
    z-index: 2;
    pointer-events: none;
}
.partner-strip::before { left: 0; background: linear-gradient(90deg, var(--strip-bg, #fff), transparent); }
.partner-strip::after  { right: 0; background: linear-gradient(270deg, var(--strip-bg, #fff), transparent); }
.partner-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: wsm-marquee 38s linear infinite;
}
.partner-strip:hover .partner-track { animation-play-state: paused; }
@keyframes wsm-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.partner-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    height: 4.5rem;
    padding: 0 .5rem;
}
.partner-logo img {
    /* Feste Hoehe: SVGs ohne width/height-Angabe haben sonst 0 px Breite. */
    height: 3rem;
    width: auto;
    max-height: 100%;
    max-width: 11rem;
    object-fit: contain;
}
.partner-logo--grayscale img {
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s ease, opacity .25s ease;
}
.partner-logo--grayscale:hover img { filter: grayscale(0); opacity: 1; }

.partner-grid-item {
    display: grid;
    place-items: center;
    height: 6rem;
    padding: 1rem;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    background: #fff;
}
.partner-grid-item a { display: grid; place-items: center; width: 100%; height: 100%; }
.partner-grid-item img { width: 100%; height: 100%; max-height: 3.5rem; object-fit: contain; }

/* Aufruf zum Handeln */
.cta {
    position: relative;
    border-radius: var(--wsm-radius);
    padding: clamp(2.25rem, 4.5vw, 3.5rem);
    overflow: hidden;
    color: #fff;
}
.cta--primary { background: linear-gradient(120deg, var(--wsm-blue-700), var(--wsm-blue-500)); }
.cta--dark    { background: var(--wsm-blue-900); }
.cta--light   { background: var(--wsm-blue-50); color: var(--wsm-body); }
.cta--light h2 { color: var(--wsm-ink); }
.cta__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { color: inherit; margin-bottom: .6rem; }
.cta--light h2 { color: var(--wsm-ink); }
.cta p { margin-bottom: 0; opacity: .92; }

/* Bildstreifen */
.image-banner {
    position: relative;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.image-banner--small  { min-height: 14rem; }
.image-banner--medium { min-height: 20rem; }
.image-banner--large  { min-height: 28rem; }
.image-banner::after { content: ""; position: absolute; inset: 0; background: rgba(6, 36, 61, .45); }
.image-banner h2 { position: relative; z-index: 2; color: #fff; margin: 0; padding: 1rem; }

/* Video */
.video-frame {
    position: relative;
    border-radius: var(--wsm-radius);
    overflow: hidden;
    background: var(--wsm-blue-900);
    box-shadow: var(--wsm-shadow);
}
.video-frame video { display: block; width: 100%; height: auto; }

/* Karte */
.map-wrap {
    border-radius: var(--wsm-radius);
    overflow: hidden;
    border: 1px solid var(--wsm-line);
    background: var(--wsm-light);
}
.map-wrap iframe { display: block; width: 100%; border: 0; }
.map--small  iframe { height: 18rem; }
.map--medium iframe { height: 25rem; }
.map--large  iframe { height: 34rem; }

/* Der Platzhalter darf wachsen - mit fester Höhe wurde der untere Button
   am Telefon abgeschnitten. */
.map--small  .map-placeholder { min-height: 18rem; }
.map--medium .map-placeholder { min-height: 22rem; }
.map--large  .map-placeholder { min-height: 28rem; }

.map-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
}
.map-placeholder .btn-group-wsm,
.map-placeholder .btn-wsm + .btn-wsm { margin-top: .6rem; }
.map-placeholder i { font-size: 2.5rem; color: var(--wsm-blue-400); margin-bottom: .75rem; display: block; }
.map-placeholder p { max-width: 28rem; margin-inline: auto; font-size: .95rem; }

/* Slider */
.wsm-slider { position: relative; background: var(--wsm-blue-900); }
.wsm-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.wsm-slider--medium .swiper-slide { min-height: 26rem; }
.wsm-slider--large  .swiper-slide { min-height: 36rem; }
.wsm-slider--full   .swiper-slide { min-height: calc(100vh - 7rem); }
.wsm-slide__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wsm-slide__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(6, 36, 61, .86) 0%, rgba(6, 36, 61, .5) 60%, rgba(6, 36, 61, .3) 100%);
}
.wsm-slide__inner { position: relative; z-index: 2; width: 100%; padding-block: 4rem; }
.wsm-slide__content { max-width: 38rem; color: #fff; }
/* Kleinzeile auf dunklem Bild - die Grundfarbe wäre hier zu dunkel */
.wsm-slide__content .kicker { color: #9fd0f2; }
.wsm-slide__content .kicker::before { background: #9fd0f2; }
.wsm-slide__content h1,
.wsm-slide__content h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.wsm-slide__content p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin-bottom: 1.75rem; }
.wsm-slide__content .btn-group-wsm { row-gap: .6rem; }
.wsm-slider .swiper-button-next,
.wsm-slider .swiper-button-prev {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
    color: #fff;
    transition: background .2s ease;
}
.wsm-slider .swiper-button-next:hover,
.wsm-slider .swiper-button-prev:hover { background: rgba(255, 255, 255, .3); }
.wsm-slider .swiper-button-next::after,
.wsm-slider .swiper-button-prev::after { font-size: 1.1rem; font-weight: 700; }
.wsm-slider .swiper-pagination-bullet { background: #fff; opacity: .45; width: .6rem; height: .6rem; }
.wsm-slider .swiper-pagination-bullet-active { opacity: 1; width: 1.6rem; border-radius: 999px; }

/* ---------- 3) Formulare ---------- */

.form-card {
    background: #fff;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--wsm-shadow);
}
.form-label-wsm {
    display: block;
    margin-bottom: .4rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--wsm-ink);
}
.form-label-wsm .req { color: var(--wsm-danger); }
.form-control-wsm {
    width: 100%;
    padding: .8rem 1rem;
    font: inherit;
    font-size: .98rem;
    color: var(--wsm-ink);
    background: #fff;
    border: 1.5px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-control-wsm:focus {
    outline: 0;
    border-color: var(--wsm-blue-400);
    box-shadow: 0 0 0 4px var(--wsm-blue-50);
}
.form-control-wsm::placeholder { color: var(--wsm-muted); }
textarea.form-control-wsm { min-height: 8.5rem; resize: vertical; }
.form-hint { font-size: .85rem; color: var(--wsm-muted); margin: .35rem 0 0; }
.form-group-wsm { margin-bottom: 1.1rem; }

.form-check-wsm { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.form-check-wsm input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--wsm-blue-600); }

.file-drop {
    border: 1.5px dashed #c3d6e6;
    border-radius: var(--wsm-radius-sm);
    background: var(--wsm-blue-50);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--wsm-blue-400); background: var(--wsm-blue-100); }
.file-drop i { font-size: 2rem; color: var(--wsm-blue-500); display: block; margin-bottom: .5rem; }
.file-drop input[type="file"] { display: none; }
.file-drop__name { font-weight: 600; color: var(--wsm-ink); margin-top: .5rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kontaktbox neben dem Formular */
.contact-aside {
    background: var(--wsm-blue-700);
    color: rgba(255, 255, 255, .88);
    border-radius: var(--wsm-radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    height: 100%;
}
.contact-aside h3 { color: #fff; }
.contact-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-aside li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .7rem 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}
.contact-aside li:first-child { border-top: 0; padding-top: 0; }
.contact-aside li i { color: #9fd0f2; font-size: 1.15rem; margin-top: .15rem; }
.contact-aside a { color: #fff; }
.contact-aside a:hover { color: #9fd0f2; text-decoration: underline; }
.contact-aside__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.contact-aside__social a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.1rem;
    transition: background .18s ease, transform .18s ease;
}
.contact-aside__social a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }

/* Stellenliste */
.job-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.3rem 1.5rem;
    background: #fff;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    margin-bottom: .75rem;
}
.job-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.job-item__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.job-tag {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: var(--wsm-blue-100);
    color: var(--wsm-blue-700);
    font-size: .8rem;
    font-weight: 600;
}

/* Hinweise */
.notice {
    display: flex;
    gap: .85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--wsm-radius-sm);
    border: 1px solid;
    margin-bottom: 1rem;
    font-size: .95rem;
}
.notice i { font-size: 1.2rem; flex: 0 0 auto; margin-top: .1rem; }
.notice--success { background: #eefaf4; border-color: #bfe7d4; color: #166b48; }
.notice--danger  { background: #fdeeec; border-color: #f4c7c1; color: #96271a; }
.notice--info    { background: var(--wsm-blue-50); border-color: #c8e2f6; color: var(--wsm-blue-700); }
.notice--warning { background: #fdf6e7; border-color: #f0dcae; color: #8a5c05; }

/* ---------- 4) Kopf und Fuss ---------- */

.topbar {
    background: var(--wsm-blue-900);
    color: rgba(255, 255, 255, .8);
    font-size: .875rem;
}
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .55rem;
}
.topbar ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.topbar li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--wsm-blue-400); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--wsm-line);
    transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(10, 35, 60, .08); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}
.site-logo { display: inline-flex; align-items: center; gap: .75rem; }
.site-logo img { max-height: 3.4rem; width: auto; }
.site-logo__text { font-size: 1.1rem; font-weight: 800; color: var(--wsm-ink); line-height: 1.2; }
.site-logo__text small { display: block; font-size: .78rem; font-weight: 500; color: var(--wsm-muted); }

.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav__item { position: relative; }
.main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .65rem .9rem;
    border-radius: var(--wsm-radius-sm);
    color: var(--wsm-ink);
    font-size: .98rem;
    font-weight: 600;
    white-space: nowrap;
}
.main-nav__link:hover { background: var(--wsm-blue-50); color: var(--wsm-blue-700); }
.main-nav__item.is-active > .main-nav__link { color: var(--wsm-blue-600); }
.main-nav__item.is-active > .main-nav__link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .1rem;
    height: 2px;
    background: var(--wsm-blue-500);
    border-radius: 2px;
}
.main-nav__sub {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    min-width: 13rem;
    padding: .5rem;
    list-style: none;
    margin: 0;
    background: #fff;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    box-shadow: var(--wsm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s ease;
}
.main-nav__item:hover > .main-nav__sub,
.main-nav__item:focus-within > .main-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav__sub a {
    display: block;
    padding: .55rem .75rem;
    border-radius: 6px;
    color: var(--wsm-body);
    font-size: .95rem;
    font-weight: 500;
}
.main-nav__sub a:hover { background: var(--wsm-blue-50); color: var(--wsm-blue-700); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1.5px solid var(--wsm-line);
    border-radius: var(--wsm-radius-sm);
    background: #fff;
    color: var(--wsm-ink);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Anrufen in der Kopfzeile - nur am Telefon, dort ersetzt es den breiten Button */
.header-call {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: var(--wsm-radius-sm);
    background: var(--wsm-blue-600);
    color: #fff;
    font-size: 1.3rem;
}
.header-call:hover { background: var(--wsm-blue-700); color: #fff; }

.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(21rem, 86vw);
    z-index: 1060;
    background: #fff;
    box-shadow: -8px 0 40px rgba(6, 36, 61, .22);
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wsm-line);
}
.mobile-nav__close {
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border: 0; background: var(--wsm-light); border-radius: 8px;
    font-size: 1.3rem; color: var(--wsm-ink); cursor: pointer;
}
.mobile-nav ul { list-style: none; margin: 0; padding: .75rem; }
.mobile-nav a {
    display: block;
    padding: .8rem 1rem;
    border-radius: var(--wsm-radius-sm);
    color: var(--wsm-ink);
    font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav li.is-active > a { background: var(--wsm-blue-50); color: var(--wsm-blue-700); }
.mobile-nav__sub { padding: 0 0 .25rem 1rem !important; }
.mobile-nav__sub a { font-weight: 500; font-size: .95rem; color: var(--wsm-body); }
.mobile-nav__foot { margin-top: auto; padding: 1.25rem; border-top: 1px solid var(--wsm-line); }
.mobile-nav__mail { display: flex; align-items: center; gap: .5rem; }
.mobile-nav__mail a { display: inline; padding: 0; font-weight: 500; overflow-wrap: anywhere; }

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(6, 36, 61, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.site-footer {
    background: var(--wsm-blue-900);
    color: rgba(255, 255, 255, .7);
    padding-top: clamp(3rem, 5vw, 4.5rem);
}
.site-footer h4 {
    color: #fff;
    font-size: 1.02rem;
    letter-spacing: .02em;
    margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }

/* Helle Fläche hinter dem Logo: die Marke ist dunkel gezeichnet und würde
   auf dem dunklen Grund sonst untergehen. */
.footer-logo {
    display: inline-flex;
    align-items: center;
    padding: .55rem .8rem;
    margin-bottom: 1.1rem;
    background: #fff;
    border-radius: 10px;
}
.footer-logo img { max-height: 3.1rem; width: auto; display: block; margin: 0; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list--contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-list--contact i { color: var(--wsm-blue-400); margin-top: .2rem; }
.footer-list--links a { display: inline-flex; align-items: center; gap: .4rem; }
.footer-list--links i { color: var(--wsm-blue-400); font-size: .9rem; }
.footer-hours { white-space: pre-line; margin: 0; font-size: .95rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
    display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}
.footer-social a:hover { background: var(--wsm-blue-600); transform: translateY(-2px); }
.footer-bottom {
    margin-top: 3rem;
    padding-block: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
}
.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

.call-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    background: var(--wsm-blue-600);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(13, 99, 171, .4);
}
.call-fab:hover { color: #fff; background: var(--wsm-blue-700); }
.call-fab i { font-size: 1.15rem; }

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 5.25rem;
    z-index: 1035;
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--wsm-blue-700);
    font-size: 1.3rem;
    box-shadow: var(--wsm-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

/* Cookie-Banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1200;
    width: min(60rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--wsm-line);
    border-radius: var(--wsm-radius);
    box-shadow: var(--wsm-shadow-lg);
    padding: clamp(1.25rem, 2.5vw, 1.9rem);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.cookie-banner p { font-size: .94rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-details { border-top: 1px solid var(--wsm-line); margin-top: 1.25rem; padding-top: 1.25rem; }
.cookie-cat {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px dashed var(--wsm-line);
}
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat strong { display: block; color: var(--wsm-ink); font-size: .96rem; }
.cookie-cat p { font-size: .88rem; margin: .2rem 0 0; }
.cookie-switch { flex: 0 0 auto; padding-top: .15rem; }
.cookie-switch input { width: 2.6rem; height: 1.4rem; accent-color: var(--wsm-blue-600); cursor: pointer; }
.cookie-switch input:disabled { cursor: not-allowed; opacity: .55; }

.preview-bar {
    background: var(--wsm-warning);
    color: #fff;
    text-align: center;
    padding: .5rem 1rem;
    font-size: .9rem;
    font-weight: 600;
}

/* ---------- 5) Mobil ---------- */

@media (max-width: 991.98px) {
    .main-nav, .header-actions .btn-wsm { display: none; }
    .nav-toggle, .header-call { display: grid; }
    .hero--full, .wsm-slider--full .swiper-slide { min-height: 32rem; }
    .wsm-slider--large .swiper-slide { min-height: 30rem; }
    .wsm-slider--medium .swiper-slide { min-height: 24rem; }
}

@media (max-width: 767.98px) {
    body { font-size: .98rem; }
    :root { --wsm-section-y: 3rem; }
    .topbar__inner { justify-content: center; }
    .topbar ul { justify-content: center; gap: .3rem 1rem; }
    .btn-group-wsm .btn-wsm { flex: 1 1 100%; }
    .cta { padding: 1.75rem 1.4rem; }
    .call-fab span { display: none; }
    .call-fab { padding: .9rem; }
    .footer-bottom__inner { justify-content: center; text-align: center; }
    .job-item { flex-direction: column; }

    /* Hero und Slider am Telefon: niedriger, Verlauf von unten,
       damit weisser Text nie auf einem hellen Bildbereich steht. */
    .hero--medium, .hero--large, .hero--full { min-height: 0; }
    .hero__inner { padding-block: 3rem; }
    .hero__media, .wsm-slide__media { background-position: center 32%; }
    .hero__overlay--dark, .hero__overlay--light {
        background: linear-gradient(to top, rgba(6, 36, 61, .96) 0%, rgba(6, 36, 61, .88) 55%, rgba(6, 36, 61, .62) 100%);
    }
    .hero__text { font-size: 1rem; margin-bottom: 1.5rem; }

    .wsm-slider--medium .swiper-slide,
    .wsm-slider--large .swiper-slide,
    .wsm-slider--full .swiper-slide { min-height: 27rem; }
    .wsm-slide__inner { padding-block: 2.5rem 4.5rem; }
    .wsm-slide__media::after {
        background: linear-gradient(to top, rgba(6, 36, 61, .96) 0%, rgba(6, 36, 61, .88) 55%, rgba(6, 36, 61, .62) 100%);
    }
    .wsm-slide__content h1,
    .wsm-slide__content h2 { font-size: clamp(1.5rem, 7.2vw, 2.1rem); margin-bottom: .5rem; }
    .wsm-slide__content p {
        font-size: .97rem;
        margin-bottom: 1.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Buttons im Slider nebeneinander statt zwei Vollbreite-Balken.
       Höhe bleibt bei rund 44 Pixeln, damit sie mit dem Daumen gut zu treffen sind. */
    .wsm-slide__content .btn-group-wsm .btn-wsm {
        flex: 0 1 auto;
        padding: .72rem 1.15rem;
        font-size: .92rem;
    }
    /* Wischen genügt - die Pfeile lagen über dem Text */
    .wsm-slider .swiper-button-next,
    .wsm-slider .swiper-button-prev { display: none; }
    .wsm-slider .swiper-pagination { bottom: 1.1rem; }

    /* Seitenkopf: Verlauf ebenfalls von unten */
    .pagehead__media::after {
        background: linear-gradient(to top, rgba(6, 36, 61, .93), rgba(6, 36, 61, .6));
    }
    .pagehead { padding-block: 2.5rem; }
    .breadcrumb-wsm { font-size: .82rem; }
}

/* Sehr schmale Telefone */
@media (max-width: 380px) {
    .wsm-slider--medium .swiper-slide,
    .wsm-slider--large .swiper-slide,
    .wsm-slider--full .swiper-slide { min-height: 25rem; }
    .wsm-slide__content .btn-group-wsm .btn-wsm { flex: 1 1 100%; }
}

/* Liegendes Telefon: nie höher als der Bildschirm */
@media (max-height: 520px) and (orientation: landscape) {
    .wsm-slider--medium .swiper-slide,
    .wsm-slider--large .swiper-slide,
    .wsm-slider--full .swiper-slide { min-height: 22rem; }
    .hero--medium, .hero--large, .hero--full { min-height: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar, .site-header, .site-footer, .cookie-banner, .call-fab, .to-top, .nav-toggle { display: none !important; }
    body { color: #000; }
    .section { padding-block: 1rem; }
}
