/* =====================================================================
   Alex' Haarwerkstatt – Stylesheet
   Eine Schrift, Papier-Hintergrund, Tinte-Schwarz, ein Honig-Akzent.
   ===================================================================== */

/* ---------- Schrift: EB Garamond (lokal gehostet, eine einzige Familie, Antiqua + Kursive) ---------- */
@font-face {
    font-family: 'SiteFont';
    src: url('../fonts/site-font.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SiteFont';
    src: url('../fonts/site-font-italic.woff2') format('woff2');
    font-weight: 400 800;
    font-style: italic;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --paper: #f6f3ee;
    --paper-2: #ede9e1;
    --paper-3: #e3ded4;
    --ink: #141414;
    --ink-80: rgba(20, 20, 20, .8);
    --ink-60: rgba(20, 20, 20, .62);
    --ink-40: rgba(20, 20, 20, .42);
    --ink-20: rgba(20, 20, 20, .18);
    --ink-10: rgba(20, 20, 20, .09);
    --ink-5: rgba(20, 20, 20, .05);
    --honey: #f2d35b;
    --honey-deep: #dcb92a;
    --honey-soft: #fbf0bd;
    --paper-on-dark-60: rgba(246, 243, 238, .62);
    --paper-on-dark-45: rgba(246, 243, 238, .45);
    --paper-on-dark-14: rgba(246, 243, 238, .14);
    --paper-on-dark-8: rgba(246, 243, 238, .08);

    --font: 'SiteFont', 'EB Garamond', Garamond, Georgia, serif;
    --w-regular: 500;
    --w-ui: 600;
    --w-medium: 500;
    --w-bold: 700;
    --track-caps: .2em;
    /* Große Schere: Takt. Winkel je Klinge, damit die Schneiden mittig treffen. Alle anderen Scheren stehen still. */
    --snip-cycle: 7s;

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius: 22px;
    --radius-sm: 14px;
    --header-h: 76px;
    --section-pad: clamp(4.5rem, 10vw, 8.5rem);

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);

    color-scheme: light;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    background: var(--paper);
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: var(--w-regular) 1.18rem/1.55 var(--font);
    font-optical-sizing: auto;
    font-variant-numeric: lining-nums; /* Ziffern auf Versalhöhe – die Mediävalziffern der Schrift wirken sonst zu klein */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
html.nav-open, html.modal-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--w-medium); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: var(--w-bold); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--honey); color: var(--ink); }

/* feine Körnung – gibt dem Papier Haptik, ohne aufzufallen */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: .75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}
.container-narrow { --container: 760px; }

/* ---------- Typografie ---------- */
.eyebrow {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    margin: 0 0 1.25rem;
    font-size: .84rem;
    font-weight: var(--w-ui);
    line-height: 1.5;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    color: var(--ink-60);
}
.eyebrow-dot {
    width: 8px;
    height: 8px;
    flex: none;
    align-self: center;
    border-radius: 50%;
    background: var(--honey);
    box-shadow: 0 0 0 4px var(--honey-soft);
}
.section-title {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: var(--w-medium);
    line-height: 1.04;
    letter-spacing: -.005em;
    margin: 0 0 1.5rem;
    text-wrap: balance;
}
/* Akzentwörter: dieselbe Schrift, kursiv */
.accent { font-style: italic; font-weight: var(--w-regular); }
.section-intro {
    font-size: clamp(1.18rem, 1.45vw, 1.35rem);
    color: var(--ink-60);
    max-width: 46ch;
    text-wrap: pretty;
}
.prose p { margin: 0 0 1em; color: var(--ink-80); max-width: 60ch; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    --btn-bd: transparent;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 1.08rem;
    font-weight: var(--w-ui);
    line-height: 1;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: transform .4s var(--ease-out), color .3s, border-color .3s;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--honey);
    border-radius: inherit;
    transform: translateY(102%);
    transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--ink); border-color: transparent; }
.btn:hover::before { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:hover .icon-arrow-up-right { transform: translate(2px, -2px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink-20); }
.btn-light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-sm { padding: .66rem 1.1rem; font-size: .98rem; }

/* ---------- Hinweisleiste (Urlaub) ---------- */
.notice-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    padding: .65rem var(--gutter);
    background: var(--ink);
    color: var(--paper);
    font-size: 1.05rem;
    text-align: center;
}
.notice-bar strong { font-weight: var(--w-ui); color: var(--honey); }
.notice-bar span { text-wrap: balance; }
@media (max-width: 560px) {
    .notice-bar strong { display: block; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
    background: rgba(246, 243, 238, .8);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--ink-10);
}
/* Offenes Handymenü: ohne Weichzeichner, sonst wird das fixierte Menü an die Kopfzeile gebunden */
html.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    z-index: 70;
}
.brand-word { width: 248px; height: auto; } /* Logo-Schriftzug einzeilig, ohne Schere */
.nav-list { display: flex; gap: .15rem; }
.nav-list a {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: var(--w-ui);
    letter-spacing: .01em;
    line-height: 1;
    color: var(--ink-80);
    transition: background-color .25s, color .25s;
}
.nav-list a:hover { background: var(--ink-5); color: var(--ink); }
.nav-extra { display: none; }
.header-cta { margin-left: auto; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
        background: var(--paper);
        opacity: 0;
        visibility: hidden;
        transition: opacity .45s var(--ease-out), visibility .45s;
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; gap: .1rem; }
    .nav-list a {
        display: block;
        padding: .5rem 0;
        border-radius: 0;
        font-size: clamp(2.4rem, 9.5vw, 3.4rem);
        line-height: 1.08;
        letter-spacing: 0;
        color: var(--ink);
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    }
    .nav-list a:hover { background: transparent; }
    .nav.is-open .nav-list a { opacity: 1; transform: none; }
    .nav.is-open .nav-list li:nth-child(1) a { transition-delay: .08s; }
    .nav.is-open .nav-list li:nth-child(2) a { transition-delay: .14s; }
    .nav.is-open .nav-list li:nth-child(3) a { transition-delay: .2s; }
    .nav.is-open .nav-list li:nth-child(4) a { transition-delay: .26s; }
    .nav-extra {
        display: block;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--ink-10);
        opacity: 0;
        transition: opacity .6s .35s;
    }
    .nav.is-open .nav-extra { opacity: 1; }
    .nav-extra-phone {
        font-size: 1.7rem;
        font-weight: var(--w-ui);
        line-height: 1;
        text-decoration: none;
    }
    .nav-extra-address { margin-top: .75rem; color: var(--ink-60); font-size: 1.1rem; }
    .header-cta { margin-left: auto; }
    .nav-toggle {
        position: relative;
        z-index: 70;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 10px;
        border: 1px solid var(--ink-20);
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle-bar {
        display: block;
        height: 1.5px;
        background: var(--ink);
        transition: transform .4s var(--ease-out);
        transform-origin: center;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}
@media (max-width: 480px) {
    .header-cta span { display: none; }
    .header-cta { padding: .7rem; }
    .brand-word { width: 181px; }
}

/* ---------- Schere aus dem Logo (zwei Hälften, drehbar) ---------- */
.scissors {
    display: block;
    width: 24px;
    height: auto;
    color: var(--ink);
    overflow: visible;
}
.scissors .sc-a,
.scissors .sc-b {
    transform-box: view-box;
    transform-origin: 49.36% 51.54%; /* Schraube: 231.5 / 469, 401.5 / 779 */
}
/* Nur die große Schere im Über-mich-Bereich bewegt sich – beide Klingen, alle anderen stehen still */
.media-placeholder .scissors-xl .sc-a,
.media-placeholder .scissors-xl .sc-b { animation: snip var(--snip-cycle) infinite; }
.media-placeholder .scissors-xl .sc-a { --snip-dir: 1; --snip-deg: 12.5deg; }  /* linke Klinge auf die Mitte */
.media-placeholder .scissors-xl .sc-b { --snip-dir: -1; --snip-deg: 12.1deg; } /* rechte Klinge auf die Mitte */
.scissors-xs { width: 11px; }
.scissors-xl { width: 30%; }
/* lange Pause, dann zwei Schnitte: zuklappen ca. 0,22 s, öffnen ca. 0,44 s */
@keyframes snip {
    0%, 70% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
    73.1% { transform: rotate(calc(var(--snip-dir) * var(--snip-deg))); animation-timing-function: cubic-bezier(.33, .1, .25, 1); }
    79.4% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
    82.5% { transform: rotate(calc(var(--snip-dir) * var(--snip-deg))); animation-timing-function: cubic-bezier(.33, .1, .25, 1); }
    88.8%, 100% { transform: rotate(0deg); }
}

/* ---------- Sektionen ---------- */
.section { padding: var(--section-pad) 0; scroll-margin-top: var(--header-h); }
#top { scroll-margin-top: calc(-1 * (var(--header-h) + 1rem)); } /* Anker „Nach oben“ ohne den Header-Versatz */
.section-first { padding-top: clamp(2rem, 3.6vw, 3.4rem); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .eyebrow { color: var(--paper-on-dark-60); }
.section-dark .section-intro { color: var(--paper-on-dark-60); }
.section-dark .prose p { color: var(--paper-on-dark-60); }
.section-dark .scissors { color: var(--paper); }

/* ---------- Über mich ---------- */
.about-media { position: relative; }
.spin-badge {
    position: absolute;
    top: -1.75rem;
    right: -1.75rem;
    display: grid;
    place-items: center;
    width: clamp(100px, 11vw, 136px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--honey);
    box-shadow: 0 14px 34px rgba(20, 20, 20, .14);
}
.spin-badge-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 30s linear infinite;
}
.spin-badge-ring text { font-family: var(--font); font-size: 12.5px; font-weight: var(--w-ui); letter-spacing: .14em; fill: var(--ink); }
.scissors-badge { width: 24%; }
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.media-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--paper-2), var(--paper-3));
}
.media-placeholder .scissors-xl { color: var(--ink); }
.media-placeholder-text {
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem;
    font-size: .88rem;
    font-weight: var(--w-ui);
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    line-height: 1.7;
    color: var(--ink-60);
}
.highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ink-10);
}
.highlight-value {
    display: block;
    margin-bottom: .45rem;
    font-size: clamp(2.3rem, 3.8vw, 3.3rem);
    font-weight: var(--w-medium);
    line-height: 1;
}
.highlight-label { font-size: 1.05rem; color: var(--ink-60); line-height: 1.5; display: block; }
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 420px; }
    .spin-badge { top: -1rem; right: -.75rem; }
}
@media (max-width: 560px) {
    .highlights { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ---------- Leistungen (kompakt) ---------- */
.services { padding-top: 0; }
.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding-top: var(--section-pad);
    border-top: 1px solid var(--ink-10);
}
.service-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.service-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.05rem .6rem .85rem;
    border: 1px solid var(--ink-20);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: var(--w-ui);
    line-height: 1;
    transition: border-color .3s, background-color .3s;
}
.service-tag:hover { border-color: var(--ink); background: var(--paper-2); }
.service-tag .scissors { width: 10px; color: var(--ink-60); }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; padding-bottom: calc(var(--section-pad) * .9); }
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    padding-top: var(--section-pad);
    border-top: 1px solid var(--ink-10);
}
.faq-item { border-bottom: 1px solid var(--ink-10); }
.faq-item:first-child { border-top: 1px solid var(--ink-10); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    list-style: none;
    cursor: pointer;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: var(--w-medium);
    line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--ink-80); }
.faq-icon { position: relative; flex: none; width: 26px; height: 26px; border: 1px solid var(--ink-20); border-radius: 50%; transition: transform .4s var(--ease-out), background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; transition: transform .3s; }
.faq-item[open] .faq-icon { background: var(--honey); border-color: var(--honey); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { padding: 0 3rem 1.25rem 0; }
.faq-a p { color: var(--ink-80); max-width: 60ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Footer ---------- */
.site-footer {
    scroll-margin-top: var(--header-h);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--ink-10);
    font-size: 1.08rem;
    color: var(--ink-60);
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}
.footer-brand a { display: inline-block; }
.footer-logo { width: min(100%, 230px); color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .8fr); gap: 2rem; }
.footer-note { margin-top: .5rem; font-size: .95rem; color: var(--ink-60); }
.footer-link-icon { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-weight: var(--w-ui); color: var(--ink); }
.footer-link-icon .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.footer-link-icon:hover .icon { transform: translate(2px, -2px); }
.footer-col h3 {
    margin: 0 0 .75rem;
    font-size: .82rem;
    font-weight: var(--w-ui);
    line-height: 1;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    color: var(--ink);
}
.footer-col p { line-height: 1.9; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-10);
    font-size: .98rem;
}
.footer-top-link { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: var(--ink-60); }
.footer-top-link .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.footer-top-link:hover .icon { transform: translate(2px, -2px); }
.footer-credit { color: var(--ink-60); text-decoration: none; }
.footer-credit:hover { color: var(--ink); }
@media (max-width: 1000px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Rechtstexte & 404 ---------- */
.legal-main { padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-prose h1 {
    font-size: clamp(2.6rem, 5.2vw, 4rem);
    font-weight: var(--w-medium);
    line-height: 1.06;
    margin: 0 0 2rem;
}
.legal-prose h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.5rem 0 .75rem; }
/* Lange Wörter auf schmalen Bildschirmen umbrechen statt abschneiden (Trennstelle per &shy; im Text, z. B. Datenschutz&shy;erklärung) */
.legal-prose h1, .legal-prose h2 { overflow-wrap: break-word; }
.legal-prose h3 { font-size: 1.35rem; line-height: 1.3; margin: 1.75rem 0 .5rem; }
.legal-prose p { max-width: 70ch; }
.legal-prose ul { list-style: disc; padding-left: 1.25rem; color: var(--ink-80); margin: 0 0 1em; }
.legal-prose li { margin-bottom: .35rem; }
.legal-back { margin-top: 3rem; }
.error-main {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 0;
}
.error-main .container { display: grid; justify-items: center; }
.error-main .section-title { max-width: 22ch; }
.error-scissors { width: 40px; margin-bottom: 1.5rem; }
.error-main .section-intro { margin-bottom: 1.75rem; }

/* ---------- Urlaubs-Hinweis (Modal) ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility .5s;
}
/* Beim Öffnen sofort sichtbar (nur die Deckkraft blendet ein), damit der Schließen-Knopf den Fokus bekommt */
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .5s; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + 4px);
    background: var(--paper);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    transform: translateY(24px) scale(.98);
    transition: transform .6s var(--ease-out);
}
.modal.is-open .modal-card { transform: none; }
.modal-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--paper-2);
    cursor: pointer;
    transition: background-color .25s, color .25s;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-scissors { width: 30px; margin: 0 auto 1.1rem; }
.modal-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: var(--w-medium);
    line-height: 1.12;
}
.modal-card p { margin: .35rem 0; color: var(--ink-80); font-size: 1.12rem; text-wrap: balance; }
.modal-dates { font-weight: var(--w-ui); color: var(--ink); }

/* ---------- Cookie-Hinweis (optional) ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner p { flex: 1 1 240px; font-size: 1.05rem; }
.cookie-actions { display: flex; align-items: center; gap: .9rem; }
.cookie-banner .btn-primary { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.cookie-banner .btn-ghost { --btn-fg: var(--paper); --btn-bd: rgba(246, 243, 238, .35); }
.cookie-banner p a { color: inherit; }
.cookie-link { font-size: 1rem; color: var(--paper-on-dark-60); white-space: nowrap; }

/* ---------- Scroll-Einblendungen ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .scissors .sc-a, .scissors .sc-b { animation: none; }
}
