:root {
    /* Grundfarben */
    --page: #ffffff;
    --text: #111111;

    /* Logo */
    --logo-width-desktop: 68%;
    --logo-width-mobile: 76%;
    --logo-max: 920px;

    /* Textblock */
    --copy-width: 470px;

    /* Desktop-Fluchtachse: kleiner = links, größer = rechts */
    --desktop-axis: 41.5%;

    /* Mobile Fluchtachse zum „I“ von Initiative */
    --mobile-axis: 13.2%;

    /* Schirme */
    --umbrella-scale: 0.75;
    --umbrella-opacity: 0.65;
    --umbrella-saturation: 1.00;
}

/* ------------------------------------------------------------
   1. GRUNDLAGEN
------------------------------------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: inherit;
    background: rgba(0, 0, 0, 0.08);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------------------
   2. SEITENLAYOUT
------------------------------------------------------------ */

.stage {
    position: relative;
    min-height: 100vh;
    overflow: clip;
}

.page {
    position: relative;
    z-index: 10;
    width: min(1320px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 7rem;
}

/* ------------------------------------------------------------
   3. LOGO
------------------------------------------------------------ */

.site-header {
    display: flex;
    justify-content: center;
    padding: 38px 20px 0;
}

.logo {
    display: block;
    width: min(var(--logo-width-desktop), var(--logo-max));
    height: auto;
}

/* ------------------------------------------------------------
   4. TEXTBLOCK
------------------------------------------------------------ */

.intro {
    position: relative;
    width: min(1320px, 100%);
    margin: 0 auto;
}

.copy {
    position: relative;
    z-index: 30;
    width: min(var(--copy-width), 92vw);
    margin-top: 2.8rem;
    margin-left: var(--desktop-axis);
}

/* Lesebereich bleibt transparent */
.copy::before {
    content: none;
}

.claim {
    margin-bottom: 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
}

.copy p + p {
    margin-top: 1.2rem;
}

.call {
    font-weight: 600;
}

.termin {
    margin-top: 2.5rem !important;
    font-size: 0.96em;
    line-height: 1.45;
}

.termin strong {
    font-weight: 700;
}

/* ------------------------------------------------------------
   5. LINKS UND BEDIENELEMENTE
------------------------------------------------------------ */

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 0, 0, 0.45);
    text-underline-offset: 4px;
    transition: opacity 180ms ease, text-decoration-color 180ms ease;
}

@media (hover: hover) {
    a:hover {
        opacity: 0.72;
        text-decoration-color: rgba(0, 0, 0, 0.85);
    }
}

#imprint-button {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 1000;
    border: 0;
    border-radius: 5px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease, background-color 180ms ease;
}

@media (hover: hover) {
    #imprint-button:hover {
        opacity: 0.68;
        background: rgba(245, 245, 245, 0.94);
    }
}

#imprint-overlay {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 70px;
    z-index: 1100;
    width: min(330px, calc(100vw - 40px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    border-radius: 6px;
    padding: 24px;
    background: #111111;
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.55;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

#imprint-overlay.is-open {
    display: block;
}

#imprint-overlay h2 {
    margin: 0 36px 1rem 0;
    font-size: 1.1rem;
}

#imprint-overlay p + p {
    margin-top: 1rem;
}

#close-imprint {
    position: absolute;
    top: 7px;
    right: 10px;
    border: 0;
    padding: 4px 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
}

a.impressum {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

#imprint-button:focus-visible,
#close-imprint:focus-visible,
a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ------------------------------------------------------------
   6. SCHIRME
------------------------------------------------------------ */

.umbrella-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.umbrella {
    --x: 50%;
    --y: 50%;
    --rotation: 0deg;
    --arrival-rotation: 8deg;
    --local-scale: 1;

    position: absolute;
    left: var(--x);
    top: var(--y);
    display: block;
    width: clamp(230px, 29vw, 460px);
    height: auto;
    opacity: 0;
    transform:
        translate(-50%, -50%)
        rotate(calc(var(--rotation) + var(--arrival-rotation)))
        scale(calc(0.05 * var(--umbrella-scale) * var(--local-scale)));
    transform-origin: center;
    filter:
        saturate(var(--umbrella-saturation))
        drop-shadow(-15px 20px 24px rgba(0, 0, 0, 0.17));
    will-change: transform, opacity, filter;
}

.umbrella.is-arriving {
    animation: umbrella-arrive var(--duration, 1650ms)
        cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
}

.umbrella.is-present {
    opacity: var(--local-opacity);
    transform:
        translate(-50%, -50%)
        rotate(var(--rotation))
        scale(calc(var(--umbrella-scale) * var(--local-scale)));
}

.umbrella.is-leaving {
    animation: umbrella-leave 1350ms ease-in-out forwards;
}

@keyframes umbrella-arrive {
    0% {
        opacity: 0;
        filter:
            saturate(var(--umbrella-saturation))
            drop-shadow(-6px 8px 10px rgba(0, 0, 0, 0.05));
        transform:
            translate(-50%, -50%)
            rotate(calc(var(--rotation) + var(--arrival-rotation)))
            scale(calc(0.05 * var(--umbrella-scale) * var(--local-scale)));
    }

    68% {
        opacity: var(--local-opacity);
        filter:
            saturate(var(--umbrella-saturation))
            drop-shadow(-19px 25px 28px rgba(0, 0, 0, 0.21));
        transform:
            translate(-50%, -50%)
            rotate(calc(var(--rotation) - 1.5deg))
            scale(calc(1.035 * var(--umbrella-scale) * var(--local-scale)));
    }

    84% {
        opacity: var(--local-opacity);
        transform:
            translate(-50%, -50%)
            rotate(calc(var(--rotation) + 0.7deg))
            scale(calc(0.986 * var(--umbrella-scale) * var(--local-scale)));
    }

    100% {
        opacity: var(--local-opacity);
        filter:
        saturate(var(--umbrella-saturation))
        drop-shadow(-15px 20px 24px rgba(0, 0, 0, 0.17));
        transform:
            translate(-50%, -50%)
            rotate(var(--rotation))
            scale(calc(var(--umbrella-scale) * var(--local-scale)));
    }
}

@keyframes umbrella-leave {
    0% {
        opacity: var(--local-opacity);
        filter:
        saturate(var(--umbrella-saturation))
        drop-shadow(-15px 20px 24px rgba(0, 0, 0, 0.17));
        transform:
            translate(-50%, -50%)
            rotate(var(--rotation))
            scale(calc(var(--umbrella-scale) * var(--local-scale)));
    }

    100% {
        opacity: 0;
        filter:
            saturate(var(--umbrella-saturation))
            drop-shadow(-4px 5px 8px rgba(0, 0, 0, 0.02));
        transform:
            translate(-50%, -50%)
            rotate(calc(var(--rotation) - 2deg))
            scale(calc(1.025 * var(--umbrella-scale) * var(--local-scale)));
    }
}

/* Positionen der fünf großen Schirme */

.u1 {
    --x: 16%;
    --y: 70%;
    --rotation: -8deg;
    --arrival-rotation: -9deg;
    --local-scale: 1.04;
}

.u2 {
    --x: 83%;
    --y: 23%;
    --rotation: 6deg;
    --arrival-rotation: 10deg;
    --local-scale: 0.94;
}

.u3 {
    --x: 19%;
    --y: 27%;
    --rotation: -4deg;
    --arrival-rotation: -7deg;
    --local-scale: 0.98;
}

.u4 {
    --x: 83%;
    --y: 67%;
    --rotation: 5deg;
    --arrival-rotation: 8deg;
    --local-scale: 0.91;
}

.u5 {
    --x: 53%;
    --y: 88%;
    --rotation: -2deg;
    --arrival-rotation: -6deg;
    --local-scale: 0.95;
}

/* Kleiner Schluss-Schirm: 100 % Deckkraft */

.quiet-umbrella {
    position: absolute;
    left: 4.5%;
    bottom: 2.6rem;
    width: 58px;
    height: auto;
    opacity: 0;
    transform: rotate(-7deg);
    filter: drop-shadow(-4px 5px 7px rgba(0, 0, 0, 0.12));
    transition: opacity 1.8s ease;
}

.quiet-umbrella.is-visible {
    opacity: 1;
}

/* ------------------------------------------------------------
   7. MOBILE
------------------------------------------------------------ */

@media (max-width: 820px) {
    body {
        font-size: 17px;
        line-height: 1.62;
    }

    .page {
        padding-bottom: 7.5rem;
    }

    .site-header {
        padding: 26px 0 0;
    }

    .logo {
        width: var(--logo-width-mobile);
    }

    .intro {
        display: block;
        width: 100%;
    }

    /* Mobile Fluchtachse: oben über --mobile-axis einstellen */
    .copy {
        width: auto;
        margin: 2.25rem 7% 4rem var(--mobile-axis);
    }

    .claim {
        margin-bottom: 1.8rem;
        font-size: 1.05rem;
    }

    #imprint-overlay {
        top: 50%;
        right: 20px;
        bottom: auto;
        left: 20px;
        width: auto;
        max-height: calc(100vh - 40px);
        transform: translateY(-50%);
    }

    .umbrella {
        width: min(66vw, 310px);
        filter:
            saturate(var(--umbrella-saturation))
            drop-shadow(-10px 13px 17px rgba(0, 0, 0, 0.14));
    }

    .u1 {
        --x: 9%;
        --y: 78%;
    }

    .u2 {
        --x: 91%;
        --y: 17%;
    }

    .u3 {
        --x: 7%;
        --y: 35%;
    }

    .u4 {
        --x: 93%;
        --y: 67%;
    }

    .u5 {
        --x: 55%;
        --y: 94%;
    }

    .quiet-umbrella {
        left: 4%;
        bottom: 3.5rem;
        width: 48px;
    }
}

/* ------------------------------------------------------------
   8. REDUZIERTE BEWEGUNG
------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .umbrella {
        display: none;
    }

    .quiet-umbrella {
        opacity: 1;
        transition: none;
    }

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