/* =========================================================================
   Losys GmbH – Design-System
   Eine einzige Stylesheet-Datei für die ganze Seite. Kein Framework,
   keine Build-Kette: Datei ändern, speichern, fertig.

   Aufbau
   1. Schriften
   2. Design-Tokens
   3. Grundlagen
   4. Layout-Bausteine
   5. Typografie
   6. Buttons
   7. Kopfbereich und Navigation
   8. Seitenbausteine (Hero, Karten, Zahlen, Galerie, Logos, CTA)
   9. Fussbereich
   10. Hilfsklassen
   ========================================================================= */

/* 1. Schriften ----------------------------------------------------------
   Selbst gehostet unter /assets/fonts/. Bewusst kein Google-Fonts-Aufruf:
   der würde bei jedem Seitenaufruf die IP-Adresse der Besucher an Google
   melden – in der Schweiz ein unnötiges Datenschutzthema.
   font-display: swap zeigt sofort die Ersatzschrift, statt Text zu verstecken. */

/* Oswald ist ein Variable Font: eine Datei deckt alle Schnitte von 200 bis 700
   ab. Getrennte Dateien je Gewicht wären dreimal dasselbe Byte für Byte. */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-variable.woff2') format('woff2-variations');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* 2. Design-Tokens ------------------------------------------------------
   Alle Farben, Abstände und Schriftgrössen an einer Stelle. Wer die
   Markenfarbe ändern will, ändert sie hier einmal. */

:root {
    /* Marke – übernommen aus der bisherigen Seite */
    --c-brand: #0F4B63;
    --c-brand-dark: #0A3648;
    --c-brand-light: #226077;
    --c-ink: #1A1E29;
    --c-ink-soft: #2C3A45;

    /* Akzent für Handlungsaufforderungen */
    --c-accent: #9C2321;
    --c-accent-dark: #851A22;

    /* Warmes Grau, das die Bildwelt zusammenhält */
    --c-sand: #92886F;

    /* Neutrale Töne */
    --c-text: #3A3F45;
    --c-text-muted: #6E747B;
    --c-line: #DFE1DF;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F4F5F3;
    --c-bg-dark: #12222C;

    /* Schrift */
    --f-head: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    --f-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Fliessende Schriftgrössen: skalieren zwischen Handy und Desktop,
       ohne dass es dafür Breakpoints braucht. */
    --fs-h1: clamp(2rem, 1.5rem + 2.1vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
    --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    --fs-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
    --fs-body: 1rem;
    --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
    --fs-small: 0.875rem;

    /* Abstände */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

    /* Maße */
    --container: 1200px;
    --container-text: 720px;
    --radius: 4px;
    --header-h: 88px;

    --shadow-card: 0 1px 2px rgb(18 34 44 / 6%), 0 8px 24px rgb(18 34 44 / 8%);
    --shadow-lift: 0 4px 8px rgb(18 34 44 / 8%), 0 16px 40px rgb(18 34 44 / 14%);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* 3. Grundlagen --------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Verhindert, dass Ankerziele unter dem fixierten Kopf verschwinden */
    scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* <picture> soll keinen eigenen Kasten bilden. Sonst müsste jede Regel, die
   auf ein Bild zielt (etwa object-fit im Hero), zusätzlich den Wrapper
   berücksichtigen. So verhält sich <picture><img></picture> im Layout
   exakt wie ein blankes <img>. */
picture {
    display: contents;
}

a {
    color: var(--c-brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--c-accent);
}

/* Sichtbarer Fokus für Tastaturbedienung – niemals wegoptimieren. */
:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

address {
    font-style: normal;
}

/* Wer Animationen abbestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100%;
    z-index: 999;
    padding: var(--sp-3) var(--sp-5);
    background: var(--c-accent);
    color: #fff;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: var(--sp-4);
    color: #fff;
}


/* 4. Layout-Bausteine --------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-5);
}

.container--text {
    max-width: var(--container-text);
}

.section {
    padding-block: var(--section-y);
}

.section--alt {
    background: var(--c-bg-alt);
}

.section--narrow {
    padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section__head {
    max-width: 62ch;
    margin-bottom: var(--sp-7);
}

.section__head--center {
    max-width: 62ch;
    margin-inline: auto;
    text-align: center;
}

.section__more {
    margin-top: var(--sp-7);
    text-align: center;
}


/* 5. Typografie ---------------------------------------------------------
   Oswald bleibt die prägende Schrift der Marke.

   Grossbuchstaben sind hier bewusst den kurzen Elementen vorbehalten –
   Buttons, Navigation, Rubriken, Kennzahl-Beschriftungen. Dort tragen sie
   den Markenauftritt, ohne das Lesen zu behindern.

   Überschriften laufen in gemischter Schreibweise. Deutsche Komposita wie
   „Referenzbekanntmachung" sind in Versalien praktisch nicht erfassbar: es
   fehlen die Ober- und Unterlängen, an denen das Auge Wortformen erkennt.
   Je länger das Wort und je grösser der Grad, desto stärker der Effekt. */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--sp-4);
    font-family: var(--f-head);
    font-weight: 400;
    line-height: 1.2;
    color: var(--c-ink);
    text-wrap: balance;
}

p {
    margin: 0 0 var(--sp-4);
    text-wrap: pretty;
}

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

.section__title,
h2 {
    font-size: var(--fs-h2);
    letter-spacing: 0.01em;
}

.section__title--center {
    text-align: center;
}

h3,
.h3 {
    font-size: var(--fs-h3);
    letter-spacing: 0.01em;
}

h4,
.h4 {
    font-size: var(--fs-h4);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lead,
.section__lead {
    font-size: var(--fs-lead);
    color: var(--c-text-muted);
    line-height: 1.65;
}

.section__lead {
    margin-bottom: 0;
}

.page-head__eyebrow {
    margin-bottom: var(--sp-3);
    font-family: var(--f-head);
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-sand);
}

.page-head__title {
    font-size: var(--fs-h1);
    letter-spacing: 0.01em;
}

.link-list li + li {
    margin-top: var(--sp-2);
}

.link-list a {
    font-weight: 500;
}


/* 6. Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.85em 1.9em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--f-head);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
                border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--lg {
    padding: 1em 2.4em;
    font-size: 1rem;
}

.btn--accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    color: #fff;
}

.btn--brand {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

.btn--brand:hover {
    background: var(--c-brand-dark);
    border-color: var(--c-brand-dark);
    color: #fff;
}

.btn--outline {
    border-color: var(--c-brand);
    color: var(--c-brand);
    background: transparent;
}

.btn--outline:hover {
    background: var(--c-brand);
    color: #fff;
}

/* Für dunkle Hintergründe, etwa über dem Hero-Bild */
.btn--ghost {
    border-color: rgb(255 255 255 / 65%);
    color: #fff;
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--c-ink);
}


/* 7. Kopfbereich und Navigation ----------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    min-height: var(--header-h);
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    /* Ohne align-items dehnt Flex die Kinder auf die volle Breite. Bei fester
       Höhe zieht das die Bildproportion auseinander – das Logo wird breit. */
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo {
    width: auto;
    height: 50px;
    object-fit: contain;
}

/* Die Wortmarke ist hoch und schmal (1200 zu 625). Damit die Beizeile
   darunter nicht breiter aufträgt als das Logo selbst, ist sie klein
   gesetzt und nur mässig gesperrt. */
.site-header__tagline {
    font-family: var(--f-head);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-sand);
}

/* --- Hauptnavigation, ab Desktop waagerecht --- */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: inline-block;
    padding-block: var(--sp-3);
    font-family: var(--f-head);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-ink);
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current='page'] {
    color: var(--c-accent);
}

.site-nav__link[aria-current='page'] {
    box-shadow: inset 0 -2px 0 var(--c-accent);
}

.site-nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: var(--sp-2);
}

/* Untermenü: auf Desktop per Hover und per Tastaturfokus,
   damit es auch ohne Maus erreichbar bleibt. */
.site-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% 0;
    min-width: 270px;
    padding: var(--sp-3) 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.site-nav__item--has-sub:hover > .site-nav__sub,
.site-nav__item--has-sub:focus-within > .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__sub a {
    display: block;
    padding: var(--sp-2) var(--sp-5);
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--c-text);
}

.site-nav__sub a:hover,
.site-nav__sub a[aria-current='page'] {
    background: var(--c-bg-alt);
    color: var(--c-accent);
}

/* Dritte Ebene: steht eingerueckt im selben Feld statt in einem zweiten
   Flyout. Der senkrechte Strich zeigt die Zugehoerigkeit, ohne dass man
   ein weiteres Menue treffen muesste. */
.site-nav__sub-group {
    margin: 0 0 var(--sp-2) var(--sp-5);
    padding: 0 0 0 var(--sp-3);
    border-left: 1px solid var(--c-line);
    list-style: none;
}

.site-nav__sub-group a {
    padding-block: calc(var(--sp-2) * 0.7);
    padding-inline: var(--sp-3) var(--sp-5);
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.site-nav__sub-group a:hover,
.site-nav__sub-group a[aria-current='page'] {
    color: var(--c-accent);
}

/* --- Aktionen rechts --- */

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-shrink: 0;
}

.site-header__phone {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-decoration: none;
    color: var(--c-ink);
}

.site-header__phone-label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.site-header__phone-number {
    font-family: var(--f-head);
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lang-switch__list {
    display: flex;
    gap: var(--sp-1);
}

.lang-switch__list a {
    display: block;
    padding: 0.2em 0.5em;
    border-radius: var(--radius);
    font-family: var(--f-head);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--c-text-muted);
}

.lang-switch__list a:hover {
    background: var(--c-bg-alt);
    color: var(--c-accent);
}

.lang-switch__list a[aria-current='true'] {
    background: var(--c-brand);
    color: #fff;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
}

.burger__line {
    display: block;
    width: 24px;
    height: 2px;
    margin-inline: auto;
    background: var(--c-ink);
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.burger[aria-expanded='true'] .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded='true'] .burger__line:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded='true'] .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Navigation ---
   Unter 1100px klappt die Navigation in ein Panel unter dem Kopf. */

@media (max-width: 1100px) {
    .burger {
        display: flex;
    }

    .site-header__login,
    .site-header__phone-label {
        display: none;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        margin-left: 0;
        padding: var(--sp-4) var(--sp-5) var(--sp-7);
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-lift);
        /* Geschlossen: weder sichtbar noch per Tab erreichbar */
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__item {
        border-bottom: 1px solid var(--c-line);
    }

    .site-nav__link {
        padding-block: var(--sp-4);
        font-size: 1.0625rem;
    }

    .site-nav__item--has-sub {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .site-nav__toggle {
        display: block;
        padding: var(--sp-4);
        border: 0;
        background: none;
        font-size: 1.1rem;
        color: var(--c-text-muted);
        transition: rotate 0.2s var(--ease);
    }

    .site-nav__toggle[aria-expanded='true'] {
        rotate: 180deg;
    }

    .site-nav__sub {
        grid-column: 1 / -1;
        position: static;
        translate: none;
        min-width: 0;
        margin-bottom: var(--sp-3);
        padding: 0 0 0 var(--sp-4);
        border: 0;
        border-left: 2px solid var(--c-line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .site-nav__sub.is-open {
        display: block;
    }

    /* Hover darf auf Touch-Geräten nichts aufklappen */
    .site-nav__item--has-sub:hover > .site-nav__sub,
    .site-nav__item--has-sub:focus-within > .site-nav__sub {
        display: none;
    }

    .site-nav__item--has-sub:hover > .site-nav__sub.is-open,
    .site-nav__item--has-sub:focus-within > .site-nav__sub.is-open {
        display: block;
    }
}

/* Sprachwahl im Menue: nur auf schmalen Bildschirmen */
.site-nav__lang {
    display: none;
}

@media (max-width: 560px) {
    .site-header__phone-number {
        font-size: 0.9375rem;
    }

    /* Logo, Telefon, vier Sprachen und Menueknopf passen nicht in eine
       Zeile – die Sprachwahl wandert ins Menue */
    .site-header__actions .lang-switch {
        display: none;
    }

    .site-nav__lang {
        display: flex;
        align-items: center;
        gap: var(--sp-4);
        padding-top: var(--sp-5);
    }

    .site-nav__lang-label {
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--c-text-muted);
    }

    .site-nav__lang .lang-switch__list a {
        padding: 0.45em 0.8em;
        font-size: 0.9375rem;
    }
}

/* Sehr schmale Telefone (bis 380 px): Abstände im Kopf enger */
@media (max-width: 380px) {
    .site-header__inner {
        gap: var(--sp-3);
    }

    .site-header__actions {
        gap: var(--sp-2);
    }
}

/* Kleinste Telefone (320 px): Beizeile unter dem Logo weglassen */
@media (max-width: 340px) {
    .site-header__tagline {
        display: none;
    }

    .site-header__logo {
        height: 38px;
    }
}


/* 8. Seitenbausteine ---------------------------------------------------- */

/* --- Hero --- */

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(78vh, 720px);
    color: #fff;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wechselnde Titelbilder: alle liegen uebereinander, sichtbar ist das mit
   .is-active. Ohne JavaScript bleibt genau eines stehen – dieses eine. */
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.hero__slide.is-active {
    opacity: 1;
}

/* picture ist global display: contents, hier muss es aber die Flaeche
   des Bildes ausfuellen */
.hero__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide {
        transition: none;
    }
}

/* Zeitbalken: zeigt, wann das nächste Titelbild kommt (site.js) */
.hero__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 4px;
    background: rgb(255 255 255 / 18%);
    pointer-events: none;
}

.hero__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--c-accent, #9C2321);
    transform: scaleX(0);
    transform-origin: left center;
}

.hero__progress span.is-running {
    animation: hero-progress linear forwards;
}

@keyframes hero-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Farbverlauf statt flächiger Abdunklung.
   Der Verlauf arbeitet nur dort, wo Text steht: unten kräftig genug für
   sicheren Kontrast, ab der Bildmitte rasch abfallend, im oberen Drittel
   praktisch offen. So bleibt die Architekturaufnahme als Bild erkennbar,
   statt zur blossen Hintergrundfläche zu werden. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgb(10 30 40 / 82%) 0%,
        rgb(10 30 40 / 66%) 22%,
        rgb(10 30 40 / 34%) 52%,
        rgb(10 30 40 / 8%) 78%,
        rgb(10 30 40 / 0%) 100%
    );
}

.hero__inner {
    padding-block: clamp(3rem, 2rem + 5vw, 6rem);
    max-width: min(var(--container), 100%);
    /* Als Grid-Element sonst mindestens so breit wie das längste Wort –
       «Referenzaufbereitung.» schob die Seite bei 320 px seitlich hinaus */
    min-width: 0;
    /* Zweite Absicherung neben dem Verlauf: der Schatten wirkt genau dort,
       wo Schrift steht, und trägt auch über einer hellen Bildstelle. */
    text-shadow: 0 1px 14px rgb(8 24 32 / 55%);
}

/* Buttons bringen ihre eigene Fläche mit und brauchen keinen Schatten */
.hero__inner .btn {
    text-shadow: none;
}

.hero__eyebrow {
    margin-bottom: var(--sp-3);
    font-family: var(--f-head);
    font-size: var(--fs-small);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 82%);
}

.hero__title {
    max-width: 24ch;
    margin-bottom: var(--sp-5);
    /* Unter 376 px etwas kleiner, damit «Referenzbekanntmachung.» ganz
       auf eine Zeile passt; break-word nur als letzte Absicherung */
    font-size: min(var(--fs-h1), 8.5vw);
    letter-spacing: 0.005em;
    color: #fff;
    overflow-wrap: break-word;
    /* Auf dem Foto gibt eine feine Abdunklung hinter der Schrift zusätzlich
       Halt, unabhängig davon, wie hell die Bildstelle gerade ist. */
    text-shadow: 0 1px 24px rgb(8 24 32 / 45%);
}

.hero__text {
    max-width: 56ch;
    margin-bottom: var(--sp-6);
    font-size: var(--fs-lead);
    color: rgb(255 255 255 / 90%);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin: 0;
}

/* --- Karten --- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--sp-6);
}

.card {
    position: relative; /* Bezug für die Klickfläche in .card__title a::after */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.card__media img,
.card__media svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.4s var(--ease);
}

.card:hover .card__media img {
    scale: 1.04;
}

/* Diagramme nicht mitzoomen - Linien und Schrift wuerden unruhig */
.card:hover .card__media svg {
    scale: 1;
}

/* --- Hervorgehobene Karte: unser staerkstes Produkt --- */

.card--featured {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-card);
}

.card--featured:hover {
    box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-lift);
}

.card--featured .card__media {
    border-bottom: 1px solid var(--c-line);
}

/* Mehr Luft zwischen Einleitung und Karten. Auf breiten Rastern zieht die
   hervorgehobene Karte nach oben und wuerde den Abstand sonst auffressen. */
.section--services .cards {
    margin-top: var(--sp-6);
}

@media (min-width: 1000px) {
    .section--services .cards {
        margin-top: calc(var(--sp-6) + 1.75rem);
    }
}

/* Auf breiten Rastern sitzt die Karte etwas hoeher als die Nachbarn.
   Schmal gestapelt waere das Versetzen sinnlos - dort entfaellt es. */
@media (min-width: 1000px) {
    .card--featured {
        transform: translateY(-1.75rem);
    }

    .card--featured:hover {
        transform: translateY(calc(-1.75rem - 3px));
    }
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--sp-5);
}

.card__kicker {
    margin-bottom: var(--sp-2);
    font-family: var(--f-head);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-sand);
}

.card__title {
    margin-bottom: var(--sp-3);
    font-size: var(--fs-h3);
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

/* Die ganze Karte klickbar machen, ohne den Linktext zu verstecken */
.card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.card__text {
    flex: 1;
    margin-bottom: var(--sp-4);
    color: var(--c-text-muted);
}

.card__link {
    margin: 0;
    font-family: var(--f-head);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.card__link::after {
    content: ' →';
}

/* --- Zahlen --- */

.section--stats {
    background: var(--c-bg-dark);
    color: #fff;
}

.section--stats .section__title {
    color: #fff;
    margin-bottom: var(--sp-7);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--sp-6);
    margin: 0;
    text-align: center;
}

.stats__item {
    padding-inline: var(--sp-3);
}

.stats__value {
    font-family: var(--f-head);
    font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
    font-weight: 300;
    line-height: 1;
    color: #fff;
}

.stats__label {
    margin: var(--sp-2) 0 0;
    font-size: var(--fs-small);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 72%);
}

/* --- Projektgalerie (ersetzt den früheren Instagram-Feed) --- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: var(--sp-4);
}

.gallery__item figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s var(--ease);
}

.gallery__item:hover img {
    scale: 1.05;
}

.gallery__caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    background: linear-gradient(to top, rgb(10 30 40 / 85%), transparent);
    color: #fff;
}

.gallery__name {
    font-family: var(--f-head);
    font-size: 1.0625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gallery__place {
    font-size: var(--fs-small);
    color: rgb(255 255 255 / 80%);
}

/* --- Kundenlogos --- */

.section--clients {
    background: var(--c-bg-alt);
}

/* Weisse Variante, wenn davor schon ein grauer Abschnitt steht.
   Die Felder haben einen Rahmen und bleiben so auch auf Weiss sichtbar. */
.section--clients-light {
    background: transparent;
}

/* Kundenwand: weisse Felder mit dem Firmennamen als Text. Keine Logos –
   die kamen in zwei Dutzend Farben und Formaten und machten die Wand
   unruhig. Gesetzte Namen stehen ruhig nebeneinander und kosten keine
   einzige Bildanfrage. */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
    gap: var(--sp-4);
}

.logo-wall__item {
    display: grid;
    place-items: center;
    padding: var(--sp-4) var(--sp-3);
    min-height: 88px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    text-align: center;
}

.logo-wall__name {
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: var(--c-ink-soft);
    text-wrap: balance;
}

/* --- Abschluss-Aufforderung --- */

.section--cta {
    background: var(--c-brand);
    color: #fff;
}

.cta {
    max-width: 62ch;
    text-align: center;
}

.cta__title {
    color: #fff;
    font-size: var(--fs-h2);
    letter-spacing: 0.01em;
}

.cta__text {
    margin-bottom: var(--sp-6);
    font-size: var(--fs-lead);
    color: rgb(255 255 255 / 88%);
}

.cta__actions {
    margin: 0 0 var(--sp-5);
}

.cta__phone {
    margin: 0;
    font-size: var(--fs-small);
    color: rgb(255 255 255 / 80%);
}

.cta__phone a {
    color: #fff;
    font-family: var(--f-head);
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    margin-left: var(--sp-2);
}


/* 9. Fussbereich -------------------------------------------------------- */

.site-footer {
    background: var(--c-bg-dark);
    color: rgb(255 255 255 / 78%);
    font-size: var(--fs-small);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: var(--sp-6);
    padding-block: var(--sp-8);
}

.site-footer__col--about {
    grid-column: span 1;
    max-width: 40ch;
}

.site-footer__logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--sp-4);
}

.site-footer__title {
    margin-bottom: var(--sp-4);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__list li + li {
    margin-top: var(--sp-2);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__address {
    margin-bottom: var(--sp-4);
    line-height: 1.8;
}

.site-footer__address strong {
    color: #fff;
    font-weight: 500;
}

.site-footer__bottom {
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-5);
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    font-size: 0.8125rem;
}


/* 10. Bausteine der Unterseiten ----------------------------------------- */

/* --- Titelbereich der Unterseiten --- */

.page-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(46vh, 420px);
    color: #fff;
    isolation: isolate;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgb(10 30 40 / 80%) 0%,
        rgb(10 30 40 / 55%) 40%,
        rgb(10 30 40 / 12%) 80%,
        rgb(10 30 40 / 0%) 100%
    );
}

/* Ohne Bild – etwa Impressum und Datenschutz */
.page-hero--plain {
    min-height: 0;
    background: var(--c-bg-dark);
}

.page-hero--plain::after {
    display: none;
}

.page-hero__inner {
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    text-shadow: 0 1px 14px rgb(8 24 32 / 55%);
}

.page-hero--plain .page-hero__inner {
    text-shadow: none;
}

.page-hero .page-head__title {
    max-width: 22ch;
    color: #fff;
    margin-bottom: 0;
}

.page-hero .page-head__eyebrow {
    color: rgb(255 255 255 / 80%);
}

.page-hero__lead {
    max-width: 58ch;
    margin-top: var(--sp-4);
    margin-bottom: 0;
    font-size: var(--fs-lead);
    color: rgb(255 255 255 / 90%);
}

/* --- Bild-Text-Blöcke --- */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(var(--sp-5), 4vw, var(--sp-8));
    align-items: center;
}

.split__media img,
.split__media svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.split__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--sp-3);
}

/* Bei umgekehrten Blöcken wandert das Bild optisch nach rechts.
   Die Reihenfolge im HTML bleibt gleich, damit Screenreader und
   Tastatur weiterhin Bild-dann-Text vorfinden. */
.split--reverse .split__media {
    order: 2;
}

.split--intro .split__body {
    order: -1;
}

.split-list {
    display: grid;
    gap: var(--sp-8);
}

/* --- Merkmalslisten --- */

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--sp-5) var(--sp-6);
}

.feature-list__item {
    padding-left: var(--sp-6);
    position: relative;
}

/* Haken als reine Dekoration – nicht als Textzeichen, damit
   Screenreader ihn nicht mitlesen. */
.feature-list__item::before,
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 15px;
    height: 9px;
    border-left: 2px solid var(--c-accent);
    border-bottom: 2px solid var(--c-accent);
    rotate: -45deg;
}

.feature-list__title {
    display: block;
    margin-bottom: var(--sp-2);
    font-family: var(--f-head);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--c-ink);
}

.feature-list__text {
    margin: 0;
    color: var(--c-text-muted);
}

.check-list {
    display: grid;
    gap: var(--sp-2);
    margin-block: var(--sp-4);
}

.check-list li {
    position: relative;
    padding-left: var(--sp-6);
}

/* --- Kundenstimmen --- */

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--sp-5);
}

.quote {
    margin: 0;
    padding: var(--sp-5);
    background: #fff;
    border-radius: var(--radius);
    border-left: 3px solid var(--c-sand);
}

.quote__text {
    margin: 0 0 var(--sp-4);
    font-size: 1.0625rem;
}

.quote__text p {
    margin: 0;
}

.quote__text p::before {
    content: '„';
}

.quote__text p::after {
    content: '"';
}

.quote__source {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

.quote__name {
    display: block;
    font-weight: 500;
    color: var(--c-ink);
}

/* --- Preistafel --- */

.prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--sp-5);
    align-items: stretch;
}

.price {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--sp-6) var(--sp-5);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.price--popular {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-card);
}

.price__badge {
    position: absolute;
    top: 0;
    left: var(--sp-5);
    translate: 0 -50%;
    margin: 0;
    padding: 0.25em 0.9em;
    background: var(--c-accent);
    border-radius: 999px;
    font-family: var(--f-head);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.price__title {
    font-size: 1.125rem;
    margin-bottom: var(--sp-4);
}

.price__amount {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-line);
}

.price__value {
    font-family: var(--f-head);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--c-ink);
}

.price__unit {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

.price__subtitle {
    margin-top: calc(var(--sp-3) * -1);
    margin-bottom: var(--sp-4);
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

/* Schiebt den Button nach unten, damit alle Karten gleich abschliessen */
.price__features {
    flex: 1 0 auto;
}

.price__cta {
    margin-top: var(--sp-5);
    margin-bottom: 0;
}

.price__cta .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.prices__note {
    margin-top: var(--sp-6);
    font-size: var(--fs-small);
    color: var(--c-text-muted);
    text-align: center;
}

/* Hinweis unter der Preistafel, mit kleiner Regionen-Karte daneben */
.prices__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    max-width: 920px;
    margin: var(--sp-6) auto 0;
}

.prices__foot .prices__note {
    flex: 1 1 360px;
    margin: 0;
    text-align: left;
}

.region-map {
    position: relative;
    flex: 0 0 220px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    cursor: zoom-in;
}

.region-map img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.region-map:hover img,
.region-map:focus-visible img {
    transform: scale(1.04);
}

.region-map__label {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgb(26 30 41 / 80%);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #fff;
}

/* Grosse Ansicht im Overlay (site.js) */
.lightbox {
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 30px 80px rgb(0 0 0 / 40%);
}

.lightbox::backdrop {
    background: rgb(10 20 28 / 75%);
}

.lightbox img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.35rem 0.8rem;
    background: rgb(26 30 41 / 85%);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
}

/* --- Aussagenband --- */

.claim {
    padding: var(--sp-8) 0;
    background: var(--c-bg-dark);
    color: #fff;
    text-align: center;
}

.claim__title {
    margin: 0;
    font-family: var(--f-head);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.25;
    text-wrap: balance;
}

.claim__text {
    max-width: 44ch;
    margin: var(--sp-4) auto 0;
    color: rgb(255 255 255 / 72%);
    text-wrap: balance;
}

/* --- Vorschau der Standard-Designs --- */

.showcase {
    /* So schmal, dass Fenster und Knoepfe auf einem Laptop zusammen
       sichtbar sind, und so breit, dass die Schrift in den Bildern lesbar
       bleibt */
    max-width: 760px;
    margin: 0 auto;
    --showcase-dauer: 5000ms;
}

/* Das gezeichnete Browserfenster */
.showcase__window {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    box-shadow: 0 24px 60px -24px rgb(18 34 44 / 35%), 0 2px 6px rgb(18 34 44 / 6%);
}

.showcase__bar {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 0.6rem 0.9rem;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-line);
}

.showcase__dots {
    display: inline-flex;
    gap: 6px;
}

.showcase__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9dbd8;
}

.showcase__url {
    flex: 1;
    max-width: 380px;
    padding: 0.2rem 0.8rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase__screen {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #fff;
}

.showcase__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}

.showcase__slide.is-active {
    opacity: 1;
}

.showcase__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.showcase__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Die Namen der Designs */
.showcase__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-5);
}

.showcase__tab {
    position: relative;
    overflow: hidden;
    padding: 0.55rem 1.1rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font: inherit;
    font-family: var(--f-head);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--c-ink-soft);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.showcase__tab:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

.showcase__tab.is-active {
    border-color: var(--c-brand);
    background: var(--c-brand);
    color: #fff;
}

/* Fortschrittsbalken: zeigt, wann das nächste Design kommt */
.showcase__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.showcase.is-running .showcase__tab.is-active .showcase__progress {
    animation: showcase-progress var(--showcase-dauer) linear forwards;
}

.showcase.is-paused .showcase__tab.is-active .showcase__progress {
    animation-play-state: paused;
}

@keyframes showcase-progress {
    to { transform: scaleX(1); }
}

.showcase__caption {
    margin: var(--sp-3) 0 0;
    text-align: center;
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .showcase__slide {
        transition: none;
    }
}

/* Abschnitt ohne eigenen Abstand nach oben, wenn er direkt anschliesst */
.section--flush-top {
    padding-top: 0;
}

/* --- Team: Geschäftsleiter mit Foto, Team als Gruppenbild --- */

.team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: stretch;
}

/* Die beiden Personen mit Foto nebeneinander, das Gruppenbild darunter */
.leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--sp-5);
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

.leader {
    padding: var(--sp-6) var(--sp-5);
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    text-align: center;
}

.leader__photo {
    display: block;
    width: 180px;
    aspect-ratio: 1;
    margin: 0 auto var(--sp-4);
    border-radius: 50%;
    object-fit: cover;
}

.leader__name {
    margin-bottom: var(--sp-1);
    font-size: 1.35rem;
}

.leader__role {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-sand);
}

.leader__text {
    margin: 0;
    font-size: var(--fs-small);
    color: var(--c-text);
}

/* Fachbereiche: nur Symbol, Titel und Aufgabe – keine Personen */
.crew {
    padding: var(--sp-6) var(--sp-5);
    background: var(--c-bg-alt);
    border-radius: var(--radius);
}

.crew__stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.crew__member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crew__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--sp-3);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    color: var(--c-brand);
}

.crew__icon .icon {
    width: 28px;
    height: 28px;
}

.crew__title {
    font-family: var(--f-head);
    font-size: 1.05rem;
    color: var(--c-ink);
}

.crew__text {
    margin-top: var(--sp-1);
    font-size: var(--fs-small);
    line-height: 1.45;
    color: var(--c-text-muted);
}

@media (max-width: 640px) {
    .crew__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--sp-6);
    }
}

/* --- Nummerierte Schritte --- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--sp-6);
    counter-reset: step;
}

.steps__number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--sp-4);
    border-radius: 50%;
    background: var(--c-brand);
    font-family: var(--f-head);
    font-size: 1.125rem;
    color: #fff;
}

.steps__title {
    font-size: 1.125rem;
    margin-bottom: var(--sp-2);
}

.steps__text {
    margin: 0;
    color: var(--c-text-muted);
}

/* --- Formulare --- */

.form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--sp-4) var(--sp-5);
}

.form__field {
    margin: 0;
}

.form__field--wide {
    grid-column: 1 / -1;
}

.form__label {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--c-ink);
}

.form__required {
    margin-left: 0.15em;
    color: var(--c-accent);
}

.form__input {
    width: 100%;
    padding: 0.7em 0.9em;
    font: inherit;
    color: var(--c-text);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form__input:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgb(15 75 99 / 12%);
    outline: none;
}

.form__input.is-invalid {
    border-color: var(--c-accent);
}

.form__error {
    display: block;
    margin-top: var(--sp-2);
    font-size: var(--fs-small);
    color: var(--c-accent);
}

/* Der Honigtopf muss für Bots im Quelltext stehen, für Menschen aber
   unerreichbar sein – display:none würde von manchen Bots erkannt. */
.form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__consent {
    margin-top: var(--sp-5);
}

.form__checkbox {
    display: flex;
    gap: var(--sp-3);
    align-items: start;
    font-size: var(--fs-small);
    cursor: pointer;
}

.form__checkbox input {
    margin-top: 0.25em;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--c-brand);
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.form__hint {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

/* --- Hinweiskästen --- */

.notice {
    padding: var(--sp-4) var(--sp-5);
    margin-block: var(--sp-5);
    border-radius: var(--radius);
    border-left: 3px solid var(--c-brand);
    background: var(--c-bg-alt);
}

.notice--success {
    border-left-color: #2E7D32;
    background: #F1F8F2;
}

.notice--error {
    border-left-color: var(--c-accent);
    background: #FCF2F2;
}

/* --- Kontaktangaben --- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: var(--sp-6);
}

.contact-grid__big {
    font-family: var(--f-head);
    font-size: 1.375rem;
    margin-bottom: var(--sp-2);
}

.contact-grid__big a {
    text-decoration: none;
}

.contact-grid__small {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

/* --- Zwei grosse Auswahlflächen --- */

.choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--sp-4);
}

.choice__item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-5) var(--sp-6);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--c-ink);
    background: #fff;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
                box-shadow 0.2s var(--ease);
}

.choice__item:hover {
    border-color: var(--c-brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--c-ink);
}

/* Nur ein Weg: mittig und nicht ueber die ganze Breite gezogen */
.choice--single {
    grid-template-columns: min(100%, 460px);
    justify-content: center;
    text-align: center;
}

.choice__alt {
    margin-top: var(--sp-4);
    text-align: center;
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

.choice__item--primary {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

.choice__item--primary:hover {
    background: var(--c-brand-dark);
    border-color: var(--c-brand-dark);
    color: #fff;
}

.choice__label {
    font-family: var(--f-head);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.choice__note {
    font-size: var(--fs-small);
    opacity: 0.75;
}

/* --- Varianten bestehender Bausteine --- */

.gallery--wide .gallery__item figure {
    aspect-ratio: 3 / 2;
}

.gallery--wide {
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

/* Karte ohne Bild – etwa in der Ressourcenliste */
.card--text .card__body {
    padding-top: var(--sp-6);
}

/* Fliesstext auf Rechtsseiten etwas luftiger */
.prose h2 {
    margin-top: var(--sp-7);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose address {
    margin-bottom: var(--sp-4);
    line-height: 1.8;
}


/* 11. Hilfsklassen ------------------------------------------------------ */

.center {
    text-align: center;
}

.section--spaced {
    margin-top: var(--sp-6);
}

/* Tooltip am Login-Knopf: erscheint bei Maus und Tastatur unter dem Knopf */
.site-header__login {
    position: relative;
    /* Kleiner als die übrigen Buttons, damit er im Header nicht dominiert */
    padding: 0.6em 1.4em;
    font-size: 0.875rem;
}

.tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: max-content;
    padding: 0.5rem 0.75rem;
    background: var(--c-ink);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
    font-family: var(--f-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: var(--c-ink);
    transform: rotate(45deg);
}

.site-header__login:hover .tooltip,
.site-header__login:focus-visible .tooltip {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Externer Link: kleines ↗ hinter dem Text */
.ext {
    display: inline-block;
    margin-left: 0.2em;
    font-size: 0.85em;
    line-height: 1;
    text-decoration: none;
    opacity: 0.85;
}

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

/* --- Funktionsübersicht: Kernfunktionen mit Bild, Rest als Kacheln --- */

.split__media .showcase__window img {
    border-radius: 0;
}

.shot-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    background: repeating-linear-gradient(-45deg, #f6f6f4 0 12px, #efefec 12px 24px);
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-8);
    padding: 0;
    list-style: none;
}

.tile {
    padding: var(--sp-5);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.tile__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--sp-3);
    border-radius: 50%;
    background: rgb(155 34 38 / 8%);
    color: var(--c-accent);
}

.tile__title {
    margin-bottom: var(--sp-2);
    font-family: var(--f-head);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--c-ink);
}

.tile__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--c-text-muted);
}

/* Aufruf mitten in einer Seite: dunkles Band mit Satz und Knopf */
.inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    margin-top: var(--sp-8);
    padding: var(--sp-6) clamp(var(--sp-5), 4vw, var(--sp-8));
    background: var(--c-bg-dark);
    border-radius: var(--radius);
    color: #fff;
}

/* Als eigener Abschnitt direkt unter einem anderen: kein Zusatzabstand */
.section--flush-top .inline-cta {
    margin-top: 0;
}

.inline-cta__body {
    flex: 1 1 360px;
}

.inline-cta__title {
    margin: 0 0 var(--sp-2);
    font-family: var(--f-head);
    font-size: var(--fs-h3);
    line-height: 1.25;
}

.inline-cta__text {
    margin: 0;
    color: rgb(255 255 255 / 75%);
}

/* --- Animation PDF-Upload: PDF rein, fertige Referenz raus -----------
   Grundzustand ohne JavaScript oder bei «weniger Bewegung»: nur das
   Ergebnis. site.js setzt .is-animated auf alle [data-anim] und hält per .is-paused an,
   solange die Animation nicht sichtbar ist. Alle Teile laufen im selben
   Takt (--pdfanim-dauer), die Prozentangaben bilden das Drehbuch:
     0–24 %  PDF fliegt in die Upload-Zone
    26–48 %  Daten werden ausgelesen
    50–96 %  Referenz baut sich auf und bleibt stehen
*/

.pdfanim {
    --pdfanim-dauer: 11s;
    container-type: inline-size;
}

.pdfanim__stage {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #fff;
    font-size: 2.1cqw;
    color: var(--c-ink);
}

.pdfanim__upload,
.pdfanim__result {
    position: absolute;
    inset: 0;
}

/* Upload-Ansicht */
.pdfanim__upload {
    display: grid;
    place-items: center;
    padding: 8%;
    opacity: 0;
}

.pdfanim__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    width: 100%;
    height: 100%;
    border: 2px dashed #cfd3d1;
    border-radius: 1em;
    color: var(--c-text-muted);
}

.pdfanim__zone .icon {
    width: 3em;
    height: 3em;
}

.pdfanim__working {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9em;
    width: 60%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    opacity: 0;
}

.pdfanim__bar {
    width: 100%;
    height: 0.5em;
    overflow: hidden;
    background: #ecefed;
    border-radius: 999px;
}

.pdfanim__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--c-brand);
    border-radius: inherit;
}

/* Das fliegende Dokument */
.pdfanim__doc {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    width: 22%;
    aspect-ratio: 1 / 1.35;
    padding: 1.2em 1em;
    background: #fff;
    border: 1px solid #dfe2e0;
    border-radius: 0.4em;
    box-shadow: 0 1.2em 2.4em -0.8em rgb(18 34 44 / 35%);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.pdfanim__tag {
    position: absolute;
    top: -0.6em;
    right: -0.6em;
    padding: 0.2em 0.5em;
    background: var(--c-accent);
    border-radius: 0.3em;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
}

.pdfanim__thumb {
    height: 32%;
    background: linear-gradient(135deg, #b9c7cf, #7f98a5);
    border-radius: 0.2em;
}

.pdfanim__doc i {
    height: 0.4em;
    background: #e4e7e5;
    border-radius: 999px;
}

.pdfanim__doc i:nth-of-type(2n) {
    width: 70%;
}

.pdfanim__name {
    position: absolute;
    left: 50%;
    bottom: -2em;
    font-size: 0.8em;
    color: var(--c-text-muted);
    white-space: nowrap;
    transform: translateX(-50%);
}

/* Ergebnis: die fertige Referenz im Editor */
.pdfanim__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 1.4em;
    border-bottom: 1px solid #eceeed;
    font-weight: 600;
}

.pdfanim__done {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.25em 0.7em;
    background: #e6f2ea;
    border-radius: 999px;
    font-size: 0.85em;
    color: #1f6b3a;
}

.pdfanim__done .icon {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.5;
}

.pdfanim__body {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 1.4em;
    padding: 1.4em;
}

.pdfanim__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.4em;
}

.pdfanim__fields {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    min-width: 0;
}

.pdfanim__fields .pdfanim__field:not(.pdfanim__title):not(.pdfanim__text) {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    padding-bottom: 0.55em;
    border-bottom: 1px solid #eceeed;
}

.pdfanim__label {
    font-size: 0.8em;
    color: var(--c-text-muted);
}

.pdfanim__title {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.25;
}

.pdfanim__text {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--c-text);
}

/* Drehbuch, nur wenn site.js die Animation freigibt */
.pdfanim.is-animated .pdfanim__upload  { animation: pdfanim-upload  var(--pdfanim-dauer) infinite both; }
.pdfanim.is-animated .pdfanim__zone    { animation: pdfanim-zone    var(--pdfanim-dauer) infinite both; }
.pdfanim.is-animated .pdfanim__working { animation: pdfanim-working var(--pdfanim-dauer) infinite both; }
.pdfanim.is-animated .pdfanim__bar i   { animation: pdfanim-bar     var(--pdfanim-dauer) infinite both; }
.pdfanim.is-animated .pdfanim__doc     { animation: pdfanim-doc     var(--pdfanim-dauer) infinite both cubic-bezier(.3,.7,.4,1); }
.pdfanim.is-animated .pdfanim__result  { animation: pdfanim-result  var(--pdfanim-dauer) infinite both; }
.pdfanim.is-animated .pdfanim__field   { animation: pdfanim-field   var(--pdfanim-dauer) infinite both; }

/* Die Felder füllen sich nacheinander. Die Verzögerung verschiebt nur
   den Einsatz, der Takt bleibt derselbe. */
.pdfanim.is-animated .pdfanim__fields .pdfanim__field:nth-child(1) { animation-delay: 0.3s; }
.pdfanim.is-animated .pdfanim__fields .pdfanim__field:nth-child(2) { animation-delay: 0.6s; }
.pdfanim.is-animated .pdfanim__fields .pdfanim__field:nth-child(3) { animation-delay: 0.9s; }
.pdfanim.is-animated .pdfanim__fields .pdfanim__field:nth-child(4) { animation-delay: 1.2s; }
.pdfanim.is-animated .pdfanim__fields .pdfanim__field:nth-child(5) { animation-delay: 1.5s; }

.is-paused[data-anim] * {
    animation-play-state: paused !important;
}

@keyframes pdfanim-upload {
    0%, 48%   { opacity: 1; }
    52%, 100% { opacity: 0; }
}

@keyframes pdfanim-zone {
    0%, 14%   { opacity: 1; border-color: #cfd3d1; background: transparent; }
    20%, 24%  { opacity: 1; border-color: var(--c-brand); background: #f1f6f8; }
    28%, 100% { opacity: 0; }
}

@keyframes pdfanim-working {
    0%, 26%   { opacity: 0; }
    30%, 46%  { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pdfanim-bar {
    0%, 30%   { width: 0; }
    46%, 100% { width: 100%; }
}

@keyframes pdfanim-doc {
    0%, 3%  { opacity: 0; transform: translate(-260%, -120%) rotate(-24deg) scale(1.1); }
    7%      { opacity: 1; }
    19%     { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
    22%     { opacity: 1; transform: translate(-50%, -45%) rotate(0) scale(0.95); }
    26%, 100% { opacity: 0; transform: translate(-50%, -40%) scale(0.5); }
}

@keyframes pdfanim-result {
    0%, 48%  { opacity: 0; }
    52%, 95% { opacity: 1; }
    100%     { opacity: 0; }
}

@keyframes pdfanim-field {
    0%, 52%  { opacity: 0; transform: translateY(0.6em); }
    57%, 95% { opacity: 1; transform: none; }
    100%     { opacity: 0; }
}

/* --- Animation Übernahme aus dem Pool --------------------------------
   Gleiches Prinzip wie die PDF-Animation. Alle Masse in cqw (Breite des
   Fensters), damit Mauszeiger und Knöpfe in jeder Grösse übereinander-
   liegen. Drehbuch (12 s): Klick auf Zeile 1 bei 16 %, Zeile 2 bei 30 %,
   Zeile 3 bei 44 %, danach Endzustand bis 94 %, dann Neustart.
*/

.poolanim {
    --poolanim-dauer: 12s;
    container-type: inline-size;
}

.poolanim__stage {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #fff;
    font-size: 1.7cqw;
    color: var(--c-ink);
}

.poolanim__head {
    position: absolute;
    inset: 0 0 auto;
    height: 7cqw;
    display: flex;
    align-items: center;
    padding: 0 3cqw;
    border-bottom: 1px solid #eceeed;
    font-weight: 600;
}

.poolanim__label {
    position: absolute;
    top: 9.5cqw;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--c-text-muted);
}

.poolanim__label--found { left: 3cqw; }
.poolanim__label--mine  { left: 66cqw; }

.poolanim__row,
.poolanim__mine,
.poolanim__empty {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1.6cqw;
    border-radius: 1cqw;
}

.poolanim__row {
    left: 3cqw;
    width: 58cqw;
    height: 15cqw;
    padding: 1.2cqw;
    border: 1px solid #e6e8e7;
}

.poolanim__mine,
.poolanim__empty {
    left: 66cqw;
    width: 31cqw;
    height: 9.5cqw;
    padding: 1cqw;
}

.poolanim__mine {
    background: #f4f8f9;
    border: 1px solid #d6e3e8;
}

.poolanim__empty {
    top: 14cqw;
    justify-content: center;
    border: 1px dashed #cfd3d1;
    font-size: 0.85em;
    color: var(--c-text-muted);
    opacity: 0;
}

.poolanim__thumb {
    flex: none;
    height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.6cqw;
}

.poolanim__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poolanim__info {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    min-width: 0;
    line-height: 1.25;
}

.poolanim__info span {
    font-size: 0.85em;
    color: var(--c-text-muted);
}

.poolanim__mine .poolanim__info {
    font-size: 0.85em;
}

.poolanim__mine .poolanim__info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.poolanim__btn {
    position: relative;
    flex: none;
    width: 14cqw;
    height: 4.6cqw;
    margin-left: auto;
    font-size: 0.85em;
    font-weight: 600;
}

.poolanim__take,
.poolanim__taken {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    border-radius: 0.6cqw;
}

.poolanim__take {
    background: var(--c-brand);
    color: #fff;
    opacity: 0;
}

.poolanim__taken {
    background: #e6f2ea;
    color: #1f6b3a;
}

.poolanim__taken .icon {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.5;
}

/* Doppelte Klasse, weil .split__media svg sonst die Breite auf 100 % setzt */
.poolanim .poolanim__cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.6cqw;
    height: 3.6cqw;
    opacity: 0;
    filter: drop-shadow(0 0.2cqw 0.4cqw rgb(0 0 0 / 25%));
}
.poolanim__row--1 { top: 14cqw; }
.poolanim__row--2 { top: 31cqw; }
.poolanim__row--3 { top: 48cqw; }
.poolanim__mine--1 { top: 14cqw; }
.poolanim__mine--2 { top: 25cqw; }
.poolanim__mine--3 { top: 36cqw; }

.poolanim.is-animated .poolanim__stage  { animation: poolanim-stage var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__empty  { animation: poolanim-empty var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__cursor { animation: poolanim-cursor var(--poolanim-dauer) infinite both ease-in-out; }
.poolanim.is-animated .poolanim__row--1 .poolanim__take  { animation: poolanim-take-1 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__row--1 .poolanim__taken { animation: poolanim-taken-1 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__mine--1 { animation: poolanim-mine-1 var(--poolanim-dauer) infinite both cubic-bezier(.3,.7,.4,1); }
.poolanim.is-animated .poolanim__row--2 .poolanim__take  { animation: poolanim-take-2 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__row--2 .poolanim__taken { animation: poolanim-taken-2 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__mine--2 { animation: poolanim-mine-2 var(--poolanim-dauer) infinite both cubic-bezier(.3,.7,.4,1); }
.poolanim.is-animated .poolanim__row--3 .poolanim__take  { animation: poolanim-take-3 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__row--3 .poolanim__taken { animation: poolanim-taken-3 var(--poolanim-dauer) infinite both; }
.poolanim.is-animated .poolanim__mine--3 { animation: poolanim-mine-3 var(--poolanim-dauer) infinite both cubic-bezier(.3,.7,.4,1); }

@keyframes poolanim-stage {
    0%        { opacity: 0; }
    3%, 94%   { opacity: 1; }
    98%, 100% { opacity: 0; }
}

@keyframes poolanim-empty {
    0%, 16%   { opacity: 1; }
    18%, 100% { opacity: 0; }
}

@keyframes poolanim-take-1 {
    0%, 16%     { opacity: 1; }
    17%, 100% { opacity: 0; }
}

@keyframes poolanim-taken-1 {
    0%, 16%     { opacity: 0; }
    17%, 100% { opacity: 1; }
}

@keyframes poolanim-mine-1 {
    0%, 17%   { opacity: 0; transform: translateX(-24cqw) scale(0.9); }
    24%, 100% { opacity: 1; transform: none; }
}

@keyframes poolanim-take-2 {
    0%, 30%     { opacity: 1; }
    31%, 100% { opacity: 0; }
}

@keyframes poolanim-taken-2 {
    0%, 30%     { opacity: 0; }
    31%, 100% { opacity: 1; }
}

@keyframes poolanim-mine-2 {
    0%, 31%   { opacity: 0; transform: translateX(-24cqw) scale(0.9); }
    38%, 100% { opacity: 1; transform: none; }
}

@keyframes poolanim-take-3 {
    0%, 44%     { opacity: 1; }
    45%, 100% { opacity: 0; }
}

@keyframes poolanim-taken-3 {
    0%, 44%     { opacity: 0; }
    45%, 100% { opacity: 1; }
}

@keyframes poolanim-mine-3 {
    0%, 45%   { opacity: 0; transform: translateX(-24cqw) scale(0.9); }
    52%, 100% { opacity: 1; transform: none; }
}

@keyframes poolanim-cursor {
    0%, 4%  { opacity: 0; transform: translate(80cqw, 62cqw) scale(1); }
    7%      { opacity: 1; transform: translate(76cqw, 58cqw) scale(1); }
    14%     { transform: translate(54cqw, 21.2cqw) scale(1); }
    16%     { transform: translate(54cqw, 21.2cqw) scale(0.82); }
    18%     { transform: translate(54cqw, 21.2cqw) scale(1); }
    28%     { transform: translate(54cqw, 38.2cqw) scale(1); }
    30%     { transform: translate(54cqw, 38.2cqw) scale(0.82); }
    32%     { transform: translate(54cqw, 38.2cqw) scale(1); }
    42%     { transform: translate(54cqw, 55.2cqw) scale(1); }
    44%     { transform: translate(54cqw, 55.2cqw) scale(0.82); }
    46%     { transform: translate(54cqw, 55.2cqw) scale(1); }
    54%     { opacity: 1; transform: translate(84cqw, 62cqw) scale(1); }
    58%, 100% { opacity: 0; transform: translate(88cqw, 66cqw) scale(1); }
}

/* --- Bilder-Slider (Fotografie) ---------------------------------------
   Die Spur scrollt waagrecht und rastet pro Bild ein. Das funktioniert
   auch ohne JavaScript per Wischen; site.js ergänzt Pfeile und Punkte.
*/
.slider {
    position: relative;
}

.slider__track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: var(--radius);
}

.slider__track::-webkit-scrollbar {
    display: none;
}

.slider__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slider__slide a {
    display: block;
    cursor: zoom-in;
}

.slider__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--slider-ratio, 3 / 2);
    object-fit: cover;
}

/* Im Fensterrahmen (Firmenprofile): eckig, Navigation im Rahmen */
.showcase__window .slider__track {
    border-radius: 0;
}

.showcase__window .slider__nav {
    margin: 0;
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--c-line);
}

.slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    margin-top: var(--sp-3);
}

.slider__nav[hidden] {
    display: none;
}

.slider__arrow {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0 0 0.15rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--c-ink);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.slider__arrow:hover,
.slider__arrow:focus-visible {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

.slider__dots {
    display: flex;
    gap: 0.45rem;
}

.slider__dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    background: #cfd3d1;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider__dot.is-active {
    background: var(--c-brand);
    transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
    .slider__track {
        scroll-behavior: auto;
    }
}

/* Bild mit Slider bekommt mehr Platz als der Text */
@media (min-width: 900px) {
    .split--gallery {
        grid-template-columns: 3fr 2fr;
    }

    .split--gallery.split--reverse {
        grid-template-columns: 2fr 3fr;
    }
}

/* Einleitung ohne Bild: angenehme Zeilenlänge statt voller Breite */
.split--text-only {
    display: block;
    max-width: 760px;
}

/* --- Bildlizenzen -------------------------------------------------- */

/* Nur zwei Pakete: nicht über die ganze Breite ziehen */
.prices:has(> .price:nth-child(2):last-child),
.prices:has(> .price:nth-child(2):last-child) + .prices__foot {
    max-width: 820px;
    margin-inline: auto;
}

/* Erlaubt / nicht erlaubt nebeneinander */
.rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--sp-5);
    max-width: 960px;
    margin-inline: auto;
}

.rights__col {
    padding: var(--sp-6) var(--sp-5);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.rights__title {
    margin: 0;
    font-size: var(--fs-h3);
}

.rights__legal {
    margin: var(--sp-6) auto 0;
    text-align: center;
    color: var(--c-text-muted);
}

/* Kreuz statt Haken */
.check-list--no li::before {
    top: 0.3em;
    width: 14px;
    height: 14px;
    border: 0;
    rotate: 0deg;
    background:
        linear-gradient(45deg, transparent 43%, var(--c-text-muted) 43%, var(--c-text-muted) 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, var(--c-text-muted) 43%, var(--c-text-muted) 57%, transparent 57%);
}

/* Häufige Fragen: aufklappbar, ohne JavaScript */
.faq {
    margin-top: var(--sp-5);
    border-top: 1px solid var(--c-line);
}

.faq__item {
    border-bottom: 1px solid var(--c-line);
}

.faq__question {
    position: relative;
    padding: var(--sp-4) var(--sp-6) var(--sp-4) 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

/* Plus, das beim Öffnen zum Minus wird */
.faq__question::before,
.faq__question::after {
    content: '';
    position: absolute;
    right: var(--sp-2);
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--c-brand);
    transition: rotate 0.2s var(--ease);
}

.faq__question::after {
    rotate: 90deg;
}

.faq__item[open] .faq__question::after {
    rotate: 0deg;
}

.faq__question:hover {
    color: var(--c-brand);
}

.faq__answer {
    margin: 0 0 var(--sp-4);
    color: var(--c-text-muted);
}
