/* =========================================================================
   BIAS Institut – Stylesheet
   Aufbau: Tokens · Reset · Basis · Kopf & Navigation · Seite · Inhalt ·
           Akkordeon · Seitenspezifisch · Fuß · Responsive · Bewegung
   ========================================================================= */

@layer reset, base, components, pages, responsive;

/* ---------- Tokens ---------- */
:root {
    --color-bg: #b1b3b2;          /* Seitenhintergrund */
    --color-surface: #fff;        /* Kopf und Untermenü */
    --color-text: #444546;
    --color-ink: #1c323f;         /* Überschriften, Links, Inhalt */
    --color-ink-hover: #1d424e;
    --color-muted: #767676;       /* Menütexte auf Weiß (4.5:1) */
    --color-muted-text: #696969;
    --color-hover: #ccc;
    --color-label: #909ca2;       /* Namensleisten Berater */
    --color-footer: #747675;      /* weißer Text 4.6:1 */

    --font-body: Verdana, Geneva, sans-serif;

    /* Typografie im Inhaltsbereich (auf Handy/Tablet größer, siehe Responsive) */
    --text-size: 14px;
    --text-leading: 1.65;
    --text-space: 1.1em;          /* Abstand zwischen Absätzen */
    --h1-size: 19px;
    --h2-size: 14.5px;            /* Abschnittsüberschriften */
    --h3-size: 14.5px;
    --heading-track: 0.03em;      /* Laufweite der Versal-Überschriften */
    --container: 1024px;
    --header-height: 95px;
    --footer-height: 31px;
    --gutter: 10px;
    --content-top: 40px;          /* Abstand Kopf → erste Überschrift */

    color-scheme: light;
}

/* Handy/Tablet: größere Schrift, mehr Rand */
@media (max-width: 1060px) {
    :root {
        --text-size: 15px;
        --text-leading: 1.6;
        --h1-size: 20px;
        --h2-size: 15px;
        --h3-size: 15px;
        --gutter: 16px;
        --content-top: 32px;
    }
}

/* ---------- Reset ---------- */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    img, picture, svg { display: block; max-width: 100%; height: auto; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    address { font-style: normal; }
    [hidden] { display: none !important; }
}

/* ---------- Basis ---------- */
@layer base {
    body {
        min-height: 100vh;
        overflow-x: clip;             /* Gebäudezeichnung darf bis an den Bildschirmrand laufen */
        background: var(--color-bg);
        color: var(--color-text);
        font: 12px/16px var(--font-body);
        padding-bottom: var(--footer-height);
    }

    a { color: var(--color-ink); text-decoration: none; }
    a:hover { text-decoration: underline; }

    :focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
    :focus:not(:focus-visible) { outline: none; }

    .skip-link {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10000;
        padding: 8px 12px;
        background: var(--color-ink);
        color: #fff;
        transform: translateY(-100%);
    }
    .skip-link:focus { transform: none; }
}

/* ---------- Kopf & Navigation ---------- */
@layer components {
    .site-header { background: var(--color-surface); }

    .site-header__inner {
        display: flex;
        justify-content: space-between;
        width: var(--container);
        height: var(--header-height);
        margin-inline: auto;
    }

    .logo { flex: none; align-self: flex-end; }

    .main-nav__list {
        display: flex;
        margin-top: 65px;
        list-style: none;
        font-size: 14px;
        color: var(--color-muted);
    }

    .main-nav__item {
        display: block;
        height: 30px;
        margin: 0 5px;
        padding: 5px;
        color: inherit;
        line-height: 20px;
        text-transform: uppercase;
    }
    .main-nav__item:hover { color: var(--color-ink-hover); background: var(--color-hover); text-decoration: none; }
    .main-nav__item.is-current { color: var(--color-ink-hover); }
    .main-nav__item[aria-expanded="true"],
    .main-nav__item[aria-expanded="true"]:hover { color: var(--color-ink-hover); background: var(--color-bg); }

    /* Aufklappbares Untermenü */
    .subnav-panel {
        position: absolute;
        z-index: 100;
        width: 100%;
        min-width: var(--container);
        background: var(--color-surface);
        overflow: hidden;
    }

    .subnav-panel__inner {
        width: var(--container);
        min-height: 200px;
        margin-inline: auto;
    }

    .subnav-panel__claim {
        margin-top: 20px;
        padding-bottom: 10px;
        font-size: 18px;
        color: var(--color-muted);
    }

    .subnav { display: flex; gap: 40px; min-height: 165px; padding-top: 20px; }
    .subnav__list { flex: none; margin-bottom: 20px; list-style: none; }
    .subnav__link {
        display: block;
        height: 24px;
        padding: 2px 10px 2px 5px;
        font-size: 14px;
        line-height: 20px;
        text-transform: uppercase;
        color: var(--color-ink);
    }
    .subnav__link:hover { background: var(--color-bg); text-decoration: none; }
    .subnav__link.is-current { background: var(--color-bg); }

    .subnav__intro { width: 550px; margin-bottom: 20px; color: var(--color-muted-text); }
    .subnav__intro p + p { margin-top: 16px; }

    /* Untermenüs stehen unter ihrem jeweiligen Menüpunkt */
    .subnav--institut           { margin-left: 232px; }
    .subnav--forschungsfelder   { margin-left: 322px; }
    .subnav--oeffentlichkeit    { margin-left: 498px; }
    .subnav--forschungsangebote { margin-left: 641px; }
    .subnav--beratung           { justify-content: flex-end; margin-right: 83px; }

    /* Burger-Button und Menü für Handy/Tablet (auf dem Desktop ausgeblendet) */
    .menu-toggle,
    .mobile-nav { display: none; }

    .menu-toggle {
        position: relative;
        width: 44px;
        height: 44px;
        align-self: center;
        flex: none;
    }
    .menu-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .menu-toggle__bars,
    .menu-toggle__bars::before,
    .menu-toggle__bars::after {
        position: absolute;
        left: 11px;
        width: 22px;
        height: 2px;
        background: var(--color-ink);
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .menu-toggle__bars { top: 21px; }
    .menu-toggle__bars::before,
    .menu-toggle__bars::after { content: ""; left: 0; }
    .menu-toggle__bars::before { transform: translateY(-7px); }
    .menu-toggle__bars::after { transform: translateY(7px); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); background: var(--color-ink); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); background: var(--color-ink); }

    .mobile-nav {
        overflow: hidden;
        border-top: 1px solid var(--color-hover);
        background: var(--color-surface);
    }
    .mobile-nav__list,
    .mobile-nav__sub { list-style: none; }
    .mobile-nav__list { max-width: 720px; margin-inline: auto; padding: 0 var(--gutter) 10px; }
    .mobile-nav__list > li { border-bottom: 1px solid #e6e6e6; }

    .mobile-nav__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 48px;
        padding: 0 5px;
        font-size: 15px;
        text-transform: uppercase;
        color: var(--color-muted);
        cursor: pointer;
        list-style: none;
    }
    .mobile-nav__item::-webkit-details-marker { display: none; }
    .mobile-nav__item:hover { text-decoration: none; color: var(--color-ink-hover); }
    .mobile-nav__item.is-current { color: var(--color-ink-hover); }

    summary.mobile-nav__item::after {
        content: ">";
        font-size: 16px;
        transition: transform 0.25s ease;
    }
    .mobile-nav__section[open] > summary::after { transform: rotate(90deg); }

    .mobile-nav__sub { padding: 0 0 10px 15px; }
    .mobile-nav__link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 10px;
        font-size: 14px;
        text-transform: uppercase;
        color: var(--color-ink);
    }
    .mobile-nav__link:hover { background: var(--color-hover); text-decoration: none; }
    .mobile-nav__link.is-current { background: var(--color-bg); }
}

/* ---------- Seite & Inhalt ---------- */
@layer components {
    .page {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: var(--container);
        margin-inline: auto;
        padding-bottom: 50px;
        color: var(--color-ink);
    }

    .page__claim {
        flex: none;
        width: 325px;
        margin: var(--content-top) 0 0 2px;
        font-size: 20px;
        line-height: 30px;
        font-weight: normal;
        text-transform: uppercase;
    }

    .page__main { flex: none; width: 670px; margin: var(--content-top) 10px 0 0; }
    .page__main:focus { outline: none; }

    /* Fließtext */
    .page__main {
        font-size: var(--text-size);
        line-height: var(--text-leading);
        overflow-wrap: break-word;
    }

    .page__main :is(p, ul, ol, address) { margin-bottom: var(--text-space); }
    .page__main p { hyphens: auto; text-wrap: pretty; }

    /* Überschriften: Versalien mit etwas Laufweite, Abstand nach oben trennt Abschnitte */
    .page__main :is(h1, h2, h3, h4) {
        font-weight: normal;
        text-transform: uppercase;
        letter-spacing: var(--heading-track);
        text-wrap: balance;
    }
    .page__main h1 { margin-bottom: 1.1em; font-size: var(--h1-size); line-height: 1.3; }
    .page__main h2,
    .page__main h3 { margin: 2em 0 0.7em; font-size: var(--h2-size); line-height: 1.4; }
    /* Unterüberschrift innerhalb eines Abschnitts: ohne Versalien */
    .page__main h4 { margin: 1.4em 0 0.5em; font-size: var(--text-size); line-height: 1.4; text-transform: none; letter-spacing: 0; font-style: italic; }
    .page__main :is(h1, h2, h3, h4):first-child,
    .page__main h1 + :is(h2, h3, h4) { margin-top: 0; }

    /* Listen: kompakt, hängender Einzug */
    .page__main :is(ul, ol) { padding-left: 1.4em; }
    .page__main ol { list-style-type: decimal; }
    .page__main li { margin-bottom: 0.55em; padding-left: 0.2em; }
    .page__main li::marker { color: var(--color-muted); }
    .page__main li :is(ul, ol) { margin: 0.4em 0 0; }
    .page__main li li { margin-bottom: 0.25em; }

    /* Links im Fließtext erkennbar machen */
    .page__main :is(p, li, address, figcaption) a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }
}

/* ---------- Akkordeon (<details>) ---------- */
@layer components {
    /* Aufklappbare Abschnitte als klar erkennbare Zeilen mit Trennlinie */
    .accordion { border-bottom: 1px solid rgb(28 50 63 / 0.25); }
    .accordion:not(.accordion + .accordion) { border-top: 1px solid rgb(28 50 63 / 0.25); margin-top: var(--text-space); }
    .accordion + :not(.accordion) { margin-top: calc(var(--text-space) * 1.5); }

    .accordion > summary {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 9px 2px;
        list-style: none;
        cursor: pointer;
    }
    .accordion > summary::-webkit-details-marker { display: none; }
    .accordion > summary:hover { background: rgb(255 255 255 / 0.15); }

    .page__main .accordion > summary > :is(h2, h3) {
        flex: 1;
        margin: 0;
        font-size: var(--text-size);
        line-height: 1.5;
        letter-spacing: 0;
        text-transform: none;
    }
    .page__main .accordion--big > summary > h2 {
        font-size: var(--h3-size);
        letter-spacing: var(--heading-track);
        text-transform: uppercase;
    }

    /* Pfeil, dreht sich beim Öffnen */
    .accordion > summary::after {
        content: ">";
        flex: none;
        width: 1em;
        font-size: 15px;
        line-height: 1.3;
        text-align: center;
        transition: transform 0.3s ease-in-out;
    }
    .accordion--big > summary::after { font-weight: bold; }
    .accordion[open] > summary::after { transform: rotate(90deg); }

    .accordion__body { padding: 4px 2px 6px; }
    .accordion__body > :last-child { margin-bottom: var(--text-space); }

    /* Verschachtelte Abschnitte im großen Akkordeon eingerückt */
    .accordion__body .accordion { margin-left: 14px; }
}

/* ---------- Seitenspezifisch ---------- */
@layer pages {
    /*
     * Startseite: Namenszug und Zitat links oben, Gebäudeszene rechts auf der Footer-Linie.
     * Die Fotomitte liegt in der Zeichnung bei 51,6 %; --scene-shift verschiebt sie nach
     * rechts (20 % → 71,6 %). Der rechte Flügel darf dabei am Rand abgeschnitten werden.
     */
    .page--home {
        --scene-shift: 20%;
        position: relative;
        min-height: calc(100svh - var(--header-height) - var(--footer-height));
        padding-bottom: 400px;        /* Platz für die Szene (ca. 375 px hoch) */
    }
    /* Zitat links unter dem Namenszug: größer, ruhig, mit feiner weißer Linie wie die Zeichnung */
    .page__main .home__quote {
        position: absolute;
        top: 200px;                   /* Namenszug endet bei ca. 160 px */
        left: 2px;                    /* bündig mit dem Namenszug */
        width: 300px;
        margin: 0;
        font-size: 17px;
        line-height: 1.65;
        letter-spacing: 0;
        text-transform: none;
        text-align: left;
    }
    .page__main .home__quote p { margin-bottom: 0.5em; hyphens: manual; }
    .home__quote footer { font-size: 13px; letter-spacing: 0.03em; opacity: 0.8; }
    .home__quote::before {
        content: "";
        display: block;
        width: 48px;
        height: 1px;
        margin-bottom: 18px;
        background: #fff;
    }

    /* Szene bildschirmbreit und dort abgeschnitten; die Zeichnung selbst bleibt auf Inhaltsbreite */
    .house-scene {
        position: absolute;
        bottom: 0;
        left: calc(50% - 50vw);
        width: 100vw;
        overflow-x: clip;
        pointer-events: none;
    }
    .house-scene__svg {
        display: block;
        width: var(--container);
        max-width: none;
        height: auto;
        margin-left: calc(50vw - var(--container) / 2);
        overflow: visible;            /* Flügel laufen über die Inhaltsbreite hinaus */
        transform: translateX(var(--scene-shift));
    }
    .house-scene__lines path {
        fill: none;
        stroke: #fff;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
    }
    .house-scene__detail { stroke-width: 0.8; stroke-opacity: 0.6; }
    .house-scene__structure { stroke-width: 1; stroke-opacity: 0.9; }
    .house-scene__hatch { stroke-width: 0.6; stroke-opacity: 0.35; }

    /* Beim Laden erscheint das Foto, dann wachsen die Linien vom Foto aus zu den Fluchtpunkten */
    @media (prefers-reduced-motion: no-preference) {
        .house-scene__photo { animation: house-photo 0.9s ease-out both; }
        .house-scene__lines { animation: house-draw 2.2s 0.4s ease-out both; }
    }
    @keyframes house-draw {
        from { opacity: 0; clip-path: inset(0 48% 0 48%); }
        to   { opacity: 1; clip-path: inset(0 0 0 0); }
    }
    @keyframes house-photo {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: none; }
    }

    /* Berater */
    /* Zwei Porträts immer nebeneinander, jeweils mit weißem Rahmen */
    .advisors__choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 220px));
        gap: 110px;
        margin: 10px 0 20px;
    }

    .advisor {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
        border: 5px solid var(--color-surface);
        background: var(--color-surface);
        box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
        transition: border-color 0.2s ease;
    }
    .advisor img { width: 100%; height: 100%; object-fit: cover; }
    .advisor__name {
        position: absolute;
        inset: auto 0 8px;
        padding: 2px 4px;
        background: var(--color-label);
        opacity: 0.9;
        color: var(--color-ink);
        font-size: 14px;
        line-height: 16px;
        text-align: center;
        text-transform: uppercase;
    }
    .advisor:hover { border-color: #e6e6e6; }
    .advisor[aria-expanded="true"] { border-color: var(--color-ink); }

    .advisors__hint { margin-top: 30px; }
    .page__main .cv > h2 { font-size: 16px; }
    .cv { margin-top: 20px; }
    .cv + .cv { margin-top: 40px; }
    [data-advisors-ready] .cv + .cv { margin-top: 20px; }

    @starting-style {
        .cv { opacity: 0; translate: 0 10px; }
    }
    .cv { transition: opacity 0.4s ease, translate 0.4s ease; }

    /* Kontakt */
    .contact { display: flex; justify-content: space-between; align-items: flex-start; }
    .contact__address { width: 200px; margin-top: 20px; font-size: 14px; line-height: 25px; }
    .contact__address address,
    .page__main .contact__address p { margin-bottom: 25px; text-align: left; }
    .contact__map { width: 375px; margin-top: 20px; }
    .contact__map figcaption { margin-top: 5px; font-size: 11px; line-height: 14px; }
}

/* ---------- Fuß ---------- */
@layer components {
    .site-footer {
        position: fixed;
        inset: auto 0 0;
        z-index: 99;
        height: var(--footer-height);
        padding-top: 5px;
        border-top: 1px solid #fff;
        background: var(--color-footer);
        color: #fff;
        text-align: center;
        text-transform: uppercase;
    }
    .site-footer a { color: #fff; }
}

/* ---------- Responsive ---------- */
@layer responsive {
    @media (max-width: 1060px) {
        /* Kopf: Logo links, Burger rechts; Desktop-Navigation aus */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .site-header__inner {
            align-items: stretch;
            width: auto;
            max-width: 740px;
            height: 60px;
            padding: 0 var(--gutter);
        }
        /* Das „B“ beginnt in der Logo-Datei erst bei 2,9 von 145 Einheiten (hier 2,3 px):
           nach links ausgleichen, damit es optisch bündig mit Namenszug und Zitat steht
           (deren Buchstaben haben selbst knapp 1 px Vorbreite) */
        .logo img { width: 116px; height: 40px; margin-left: -1.5px; }
        .main-nav,
        .subnav-panel { display: none; }
        .menu-toggle { display: block; margin-right: -10px; }
        .mobile-nav { display: block; max-height: calc(100vh - 60px); overflow-y: auto; }

        /* Inhalt einspaltig, auf dem Tablet mit begrenzter Zeilenlänge */
        .page {
            flex-direction: column;
            align-items: stretch;
            width: auto;
            max-width: 740px;
            padding: 0 var(--gutter) 50px;
        }
        .page__claim { width: auto; margin-left: 0; font-size: 16px; line-height: 24px; }
        .page:not(.page--home) .page__claim { display: none; }
        .page__main { width: auto; margin-right: 0; }

        .accordion > summary { padding: 12px 2px; }
        .accordion__body .accordion { margin-left: 8px; }

        /* Fußzeile am Seitenende statt fest am Bildschirmrand */
        body {
            display: flex;
            flex-direction: column;
            padding-bottom: 0;
        }
        .page { flex: 1 0 auto; width: 100%; padding-bottom: 30px; }
        .site-footer {
            position: static;
            height: auto;
            padding: 10px var(--gutter);
            line-height: 1.6;
        }

        /* Startseite: Szene randlos am Seitenende, direkt auf dem Footer */
        .page--home { min-height: 0; padding-bottom: 0; }
        .page--home .page__main { display: flex; flex: 1; flex-direction: column; }
        .page__main .home__quote { position: static; }
        .house-scene {
            position: static;
            width: auto;
            margin: 0 calc(50% - 50vw);        /* volle Bildschirmbreite */
        }
        .house-scene__svg { width: 100%; margin-left: 0; }

        .advisors__choice { gap: 20px; }

        .contact { gap: 30px; }
        .contact__map { flex: 0 1 375px; }
    }

    /* Tablet und Handy: Zitat im Fluss unter dem Namenszug, Szene am Seitenende */
    @media (max-width: 1060px) {
        .page__main .home__quote { width: auto; max-width: 340px; margin: 28px 0 36px; }
        .house-scene { margin-top: auto; }
    }

    /* Handy: Szene fast mittig (leicht nach rechts) */
    @media (max-width: 640px) {
        .house-scene__svg {
            /* 12 % breiter als der Bildschirm: der Ausschnitt rückt um 6 % nach rechts, der Überstand wird abgeschnitten */
            width: 112%;
            max-width: none;
            height: clamp(230px, 64vw, 380px);
            overflow: hidden;
            transform: none;
        }
    }

    @media (max-width: 640px) {
        .contact { flex-direction: column; gap: 0; }
        .contact__address,
        .contact__map { width: auto; max-width: 375px; flex: none; }
    }

    @media (max-width: 480px) {
        .site-footer { font-size: 10px; }
        .advisors__choice { gap: 14px; }
        .advisor__name { font-size: 11px; line-height: 14px; }
    }
}

/* ---------- Feinschliff: dezente, moderne Akzente ---------- */
@layer pages {
    html { scroll-behavior: smooth; }
    ::selection { background: var(--color-ink); color: #fff; }

    /* Hintergrund: sehr sanfter Verlauf statt flacher Fläche */
    body { background: linear-gradient(180deg, #b6b8b7 0%, var(--color-bg) 45%, #a9abaa 100%) fixed; }

    /* Kopf: feiner Schatten löst ihn vom Hintergrund */
    .site-header { box-shadow: 0 1px 0 rgb(0 0 0 / 0.05), 0 6px 20px -8px rgb(28 50 63 / 0.28); }

    /* Navigation: weiche Übergänge, abgerundete Hover-Fläche, feine Linie beim aktuellen Punkt */
    .main-nav__item,
    .subnav__link,
    .mobile-nav__link { border-radius: 3px; transition: background-color 0.2s ease, color 0.2s ease; }
    .main-nav__item[aria-expanded="true"] { border-radius: 3px 3px 0 0; }

    /* Untermenü: Schatten und sanftes Einblenden */
    .subnav-panel { box-shadow: 0 14px 28px -12px rgb(28 50 63 / 0.35); }
    @media (prefers-reduced-motion: no-preference) {
        .subnav-panel:not([hidden]) { animation: panel-in 0.25s ease-out both; }
        .page__main, .page__claim { animation: fade-up 0.5s ease-out both; }
        .page__main { animation-delay: 0.05s; }
    }
    @keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }
    /* nur Opacity: ein transform würde die absolut positionierte Startseiten-Szene verschieben */
    @keyframes fade-up  { from { opacity: 0; } }

    /* Links: Unterstreichung wird weich eingeblendet */
    a { transition: color 0.2s ease, text-decoration-color 0.2s ease; }
    .page__main :is(p, li, address, figcaption) a { text-decoration-color: rgb(28 50 63 / 0.4); }
    .page__main :is(p, li, address, figcaption) a:hover { text-decoration-color: currentColor; }

    /* Überschriften h1–h4 im Inhalt: weiß */
    .page__main :is(h1, h2, h3, h4) { color: #fff; }

    /* Überschrift: kleiner weißer Akzentstrich, passend zur Linie über dem Zitat */
    .page__main h1::after {
        content: "";
        display: block;
        width: 40px;
        height: 1px;
        margin-top: 14px;
        background: #fff;
    }

    /* Akkordeon: weichere Linien, sanfter Hover */
    .accordion { border-color: rgb(28 50 63 / 0.18); transition: background-color 0.25s ease; }
    .accordion > summary { border-radius: 4px; transition: background-color 0.2s ease; }
    .accordion > summary:hover { background: rgb(255 255 255 / 0.22); }
    .accordion[open] { background: rgb(255 255 255 / 0.08); }
    .accordion > summary::after { opacity: 0.7; transition: transform 0.3s ease-in-out, opacity 0.2s ease; }
    .accordion > summary:hover::after { opacity: 1; }

    /* Berater-Karten und Bilder: leichte Rundung, Schatten, Hover-Lift */
    .advisor {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
        transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .advisor:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgb(0 0 0 / 0.25); }
    .contact__map img { border-radius: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.18); }

    /* Fuß: weicher Schatten nach oben, etwas Laufweite */
    .site-footer { box-shadow: 0 -4px 16px rgb(0 0 0 / 0.08); letter-spacing: 0.04em; }
}

/* ---------- Bewegung ---------- */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }

    .accordion::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.5s ease, content-visibility 0.5s allow-discrete;
    }
    .accordion[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
