/* ==========================================================================
   Klarheit – Stylesheet für Klebezettel & Kollegen
   Grundlage: styleguide-klarheit.html
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Flächen & Text */
    --bg: #fafbf7;
    --surface: #ffffff;
    --surface-2: #f1f3ec;
    --surface-3: #e7eadf;
    --ink: #1c1e19;
    --ink-2: #5b6056;
    --ink-3: #6f7469;
    --line: rgba(28, 30, 25, 0.10);
    --line-strong: rgba(28, 30, 25, 0.18);

    /* Akzent (StratApp überschreibt diese Gruppe in stratapp.css) */
    --accent: #82b440;          /* Markengrün: Flächen, nie Text auf Weiß */
    --accent-ink: #4b7619;      /* Text-Grün: Links, Primär-Button */
    --accent-deep: #2e4a0f;     /* Hover, große Flächen */
    --accent-wash: rgba(130, 180, 64, 0.12);
    --on-accent: #ffffff;

    /* Der eine Zettel – bleibt auch im Dunkelmodus hell */
    --note: #e3f2c9;
    --note-2: #d3eaae;
    --note-ink: #1c1e19;
    --note-label: #56613f;
    --ghost-filter: opacity(0.6);

    /* Dunkles Band (CTA, Footer-Akzente) */
    --band-bg: #1c1e19;
    --band-ink: #f2f4ee;
    --band-ink-2: #a7ad9f;

    --danger-bg: #fdf0ef;
    --danger-ink: #9b1c1c;
    --danger-line: #f4c7c3;

    --glass: rgba(250, 251, 247, 0.72);
    --shadow-1: 0 1px 2px rgba(20, 24, 14, 0.06), 0 4px 12px rgba(20, 24, 14, 0.05);
    --shadow-2: 0 2px 6px rgba(20, 24, 14, 0.06), 0 24px 48px -16px rgba(20, 24, 14, 0.18);
    --shadow-note: 0 1px 1px rgba(20, 24, 14, 0.08), 0 18px 30px -14px rgba(20, 24, 14, 0.35);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 20.4%,
              1.041 24.3%, 1.036 28.2%, 1.004 39.2%, 0.997 48.2%, 1);

    --r-note: 3px;
    --r-field: 12px;
    --r-card: 18px;
    --r-stage: 28px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
    --hand: "Caveat", "Noteworthy", "Bradley Hand", "Segoe Print", var(--font);

    --wrap: 1080px;
    --gutter: 22px;
    --header-h: 56px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0b0c0a;
        --surface: #151713;
        --surface-2: #1c1f19;
        --surface-3: #262a22;
        --ink: #f2f4ee;
        --ink-2: #a7ad9f;
        --ink-3: #8d9384;
        --line: rgba(242, 244, 238, 0.10);
        --line-strong: rgba(242, 244, 238, 0.18);
        --accent-ink: #a8d060;
        --accent-deep: #cfe8a8;
        --accent-wash: rgba(130, 180, 64, 0.16);
        --on-accent: #0b0c0a;
        --band-bg: #151713;
        --danger-bg: #2a1413;
        --danger-ink: #ffb4ab;
        --danger-line: #5c2622;
        --glass: rgba(11, 12, 10, 0.68);
        --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
        --shadow-note: 0 1px 1px rgba(0, 0, 0, 0.3), 0 18px 30px -14px rgba(0, 0, 0, 0.8);
        --ghost-filter: brightness(0.62) saturate(0.9);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

p { margin: 0; }

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

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

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

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

.eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.lead {
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--ink-2);
    max-width: 36ch;
}

.grad {
    background: linear-gradient(100deg, var(--accent-ink) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted { color: var(--ink-2); }

/* ---------- Kopfzeile ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.logo:hover { text-decoration: none; }

.logo-mark {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: var(--accent);
    transform: rotate(-6deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s var(--spring);
}

.logo:hover .logo-mark { transform: rotate(0deg) scale(1.1); }

.logo span { color: var(--ink-2); font-weight: 600; }

#main-nav { margin-left: auto; }

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav a {
    font-size: 14px;
    color: var(--ink-2);
    transition: color 0.2s;
}

#main-nav a:hover,
#main-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: none;
}

.nav-app-link::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #2563eb;
    vertical-align: 1px;
}

#main-nav a.nav-cta {
    color: var(--on-accent);
    font-size: 13px;
    padding: 7px 15px;
}

#main-nav a.nav-cta:hover { color: var(--on-accent); }

/* Burger-Button (Verhalten in scripts/main.js) */
.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle-bar {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform 0.45s var(--spring), opacity 0.2s;
}

.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 21.5px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 820px) {
    /* Ohne JavaScript bricht die Navigation um */
    #main-nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; padding-block: 10px; }

    .site-header.nav-ready .nav-toggle { display: block; }

    .site-header.nav-ready #main-nav {
        position: absolute;
        top: 100%;
        left: calc(var(--gutter) * -1);
        right: calc(var(--gutter) * -1);
        margin: 0;
        background: var(--glass);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.45s var(--ease), visibility 0s 0.45s;
    }

    .site-header.nav-ready #main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.25s, transform 0.45s var(--ease), visibility 0s;
    }

    .site-header.nav-ready #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 28px;
    }

    .site-header.nav-ready #main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--ink);
    }

    .site-header.nav-ready #main-nav a.nav-cta {
        display: inline-flex;
        margin-top: 14px;
        font-size: 17px;
        padding: 12px 22px;
        color: var(--on-accent);
    }
}

/* ---------- Buttons ---------- */
.btn {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.45s var(--spring), background-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary {
    background: var(--accent-ink);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--accent-deep);
    color: var(--on-accent);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-secondary:hover { background: var(--surface-3); }

.btn-link {
    background: none;
    color: var(--accent-ink);
    padding-inline: 6px;
}

.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn .arr { transition: transform 0.45s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

/* ---------- Sektionen ---------- */
.section {
    padding-block: clamp(80px, 12vw, 150px);
}

.section--tint { background: var(--surface-2); }

.sec-head {
    display: grid;
    gap: 14px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.sec-head h2 {
    font-size: clamp(40px, 6.6vw, 76px);
    letter-spacing: -0.04em;
}

.sec-head--center {
    text-align: center;
    justify-items: center;
}

/* ---------- Hero (Startseite) ---------- */
.hero {
    padding-block: clamp(64px, 10vw, 128px) clamp(40px, 6vw, 72px);
    text-align: center;
    overflow: hidden;
}

.hero .eyebrow { margin-bottom: 20px; }

.hero h1 {
    font-size: clamp(54px, 11.5vw, 136px);
    letter-spacing: -0.048em;
    line-height: 0.95;
}

.hero .lead {
    margin: 28px auto 0;
    max-width: 40ch;
}

.hero .btn-row {
    justify-content: center;
    margin-top: 36px;
}

.hero-stage {
    position: relative;
    height: clamp(260px, 36vw, 380px);
    margin: clamp(40px, 6vw, 64px) auto 0;
    max-width: 820px;
    display: grid;
    place-items: center;
    perspective: 1200px;
}

.hero-note {
    --rx: 8deg;
    --ry: -12deg;
    position: relative;
    z-index: 2;
    width: clamp(200px, 26vw, 272px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: var(--r-note);
    background: var(--note);
    color: var(--note-ink);
    box-shadow: var(--shadow-note);
    font-family: var(--hand);
    font-size: clamp(36px, 4.6vw, 50px);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-3deg);
    transition: transform 0.9s var(--ease);
    animation: note-land 1.1s var(--spring) 0.15s both;
}

.hero-note::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.06));
    pointer-events: none;
}

.hero-note small {
    display: block;
    margin-top: 14px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--note-label);
}

.hero-note .fa-check {
    display: block;
    margin: 0 auto 10px;
    font-size: 0.55em;
    color: var(--note-label);
}

.ghost-note {
    position: absolute;
    width: clamp(118px, 15vw, 164px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: var(--r-note);
    background: var(--note-2);
    color: var(--note-ink);
    box-shadow: var(--shadow-1);
    font-family: var(--hand);
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.05;
    text-align: center;
    filter: var(--ghost-filter);
    animation: note-land 1s var(--spring) both;
}

.ghost-note--question { left: 6%; top: 10%; transform: rotate(-11deg); }
.ghost-note--proto { right: 7%; top: 34%; transform: rotate(9deg); animation-delay: 0.08s; }

@keyframes note-land {
    from {
        opacity: 0;
        transform: translateY(-40px) rotateX(30deg) rotateZ(-10deg) scale(1.08);
    }
}

@media (max-width: 560px) {
    .ghost-note--question { left: -6%; top: 4%; }
    .ghost-note--proto { right: -6%; top: 52%; }
}

/* ---------- Leistungen (Bento) ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 28px;
    min-height: 230px;
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    transition: transform 0.6s var(--spring), box-shadow 0.4s;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-2);
}

.service-card h3 {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-top: auto;
}

.service-card p {
    font-size: 15px;
    color: var(--ink-2);
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-wash);
    color: var(--accent-ink);
    font-size: 19px;
}

.service-card--feature {
    grid-column: span 2;
    min-height: 300px;
    overflow: hidden;
    background: var(--accent-deep);
    color: var(--bg);
}

.service-card--feature h3 {
    font-size: clamp(28px, 3.2vw, 36px);
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.service-card--feature p {
    color: var(--bg);
    opacity: 0.78;
    font-size: 16px;
    max-width: 30ch;
}

.service-card--feature .service-icon {
    background: rgba(255, 255, 255, 0.14);
    color: var(--bg);
}

@media (prefers-color-scheme: dark) {
    .service-card--feature .service-icon { background: rgba(0, 0, 0, 0.12); }
}

.mini-notes {
    position: absolute;
    right: -14px;
    top: 26px;
    display: grid;
    gap: 10px;
    transform: rotate(7deg);
    transition: transform 0.8s var(--spring);
    pointer-events: none;
}

.mini-notes i {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 2px;
    background: var(--note);
    box-shadow: var(--shadow-note);
}

.mini-notes i:nth-child(2) {
    margin-left: -46px;
    background: var(--accent);
}

.service-card--feature:hover .mini-notes { transform: rotate(0deg) translateY(-6px); }

.service-card--wide {
    grid-column: span 2;
    background: var(--accent-wash);
    box-shadow: none;
}

.service-card--wide .service-icon { background: var(--surface); }

@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .service-card--feature,
    .service-card--wide { grid-column: auto; }
    .service-card { min-height: 0; }
}

/* ---------- Ansatz: Challenge rein. Klarheit raus. ---------- */
.approach-claims {
    display: grid;
    gap: 6px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.approach-claims p {
    font-size: clamp(26px, 3.8vw, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--ink-3);
}

.approach-claims p:last-child { color: var(--ink); }

.clarity {
    border-radius: var(--r-stage);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

/* Ohne JavaScript: Zettel stehen sortiert in drei Spalten */
.board {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
    padding: 24px;
    background:
        radial-gradient(var(--line) 1px, transparent 1.2px) 0 0 / 22px 22px,
        var(--surface-2);
}

.board-note {
    width: clamp(92px, 13vw, 128px);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 2px;
    background: var(--note);
    color: var(--note-ink);
    box-shadow: var(--shadow-note);
    font-family: var(--hand);
    font-size: clamp(16px, 2.1vw, 23px);
    line-height: 1.02;
    text-align: center;
    overflow-wrap: anywhere;
}

.board-note--alt { background: var(--note-2); }

.board-note--key {
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.board-label {
    justify-self: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

/* Mit JavaScript: frei positionierte Zettel */
.board.is-live {
    display: block;
    position: relative;
    height: clamp(420px, 50vw, 540px);
    padding: 0;
}

.board.is-live .board-note,
.board.is-live .board-label {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.board.is-live .board-label { top: 22px; }

.clarity-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

.clarity-bar[hidden] { display: none; }

.clarity-bar input {
    flex: 1;
    min-width: 140px;
    accent-color: var(--accent);
}

.clarity-bar .lbl {
    font-size: 14px;
    font-weight: 600;
}

.clarity-bar .lbl--end { color: var(--accent-ink); }

.clarity-bar .btn {
    font-size: 15px;
    padding: 10px 18px;
}

.methods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 18px;
    list-style: none;
    padding: 0;
}

.method {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 22px;
    border-radius: var(--r-card);
    background: var(--surface);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    -webkit-hyphens: auto;
    hyphens: auto;
    transition: transform 0.6s var(--spring), background-color 0.3s, color 0.3s;
}

.method i {
    font-size: 20px;
    color: var(--accent-ink);
    transition: color 0.3s;
}

.method:hover {
    transform: translateY(-4px);
    background: var(--accent-ink);
    color: var(--on-accent);
}

.method:hover i { color: var(--on-accent); }

@media (max-width: 900px) {
    .methods { grid-template-columns: repeat(2, 1fr); }
    .method:last-child { grid-column: span 2; }
}

/* ---------- Warum wir ---------- */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.why-text {
    display: grid;
    gap: 20px;
    font-size: 19px;
    color: var(--ink-2);
    max-width: 46ch;
}

.why-text strong { color: var(--ink); }

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
}

.team-member {
    margin: 0;
    display: grid;
    gap: 14px;
}

.team-member:nth-child(2) { margin-top: 48px; }

.team-member img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-stage);
    box-shadow: var(--shadow-2);
    transition: transform 0.8s var(--spring);
}

.team-member:hover img { transform: scale(1.02) rotate(-0.5deg); }

.team-member--mirko img { object-position: 42% 30%; }
.team-member--olivier img { object-position: 55% 20%; }

.team-member figcaption {
    display: grid;
    gap: 2px;
    padding-inline: 6px;
}

.team-member figcaption b {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.team-member figcaption span {
    font-size: 14px;
    color: var(--ink-2);
}

@media (max-width: 820px) {
    .why-layout { grid-template-columns: 1fr; }
}

/* ---------- Abschluss-Band ---------- */
.cta-band {
    padding-block: clamp(80px, 11vw, 140px);
    background: var(--band-bg);
    color: var(--band-ink);
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(40px, 7vw, 84px);
    letter-spacing: -0.045em;
}

.cta-band p {
    margin: 20px auto 0;
    max-width: 44ch;
    font-size: clamp(18px, 2vw, 21px);
    color: var(--band-ink-2);
}

.cta-band .btn-row {
    justify-content: center;
    margin-top: 36px;
}

.cta-band .btn-primary {
    background: var(--accent);
    color: #0b0c0a;
}

.cta-band .btn-primary:hover { background: #a8d060; }

.cta-band .btn-link { color: var(--band-ink); }

/* ---------- Footer ---------- */
.site-footer {
    padding-block: 56px 40px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
}

.footer-claim {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--ink-2);
}

.footer-links a:hover { color: var(--ink); }

.copyright {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-3);
}

/* ---------- Easter Egg ---------- */
.easter-egg {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    width: min(300px, calc(100% - 32px));
    padding: 22px 22px 20px;
    border-radius: var(--r-note);
    background: var(--note);
    color: var(--note-ink);
    box-shadow: var(--shadow-note);
    font-family: var(--hand);
    font-size: 24px;
    line-height: 1.1;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 40px) rotate(-8deg) scale(0.9);
    transition: transform 0.9s var(--spring), opacity 0.3s, visibility 0s 0.9s;
}

.easter-egg.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) rotate(-2deg);
    transition: transform 0.9s var(--spring), opacity 0.3s, visibility 0s;
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

.page-hero {
    padding-block: clamp(64px, 10vw, 120px) clamp(24px, 4vw, 40px);
}

.page-hero h1 {
    font-size: clamp(46px, 9vw, 104px);
    letter-spacing: -0.047em;
    line-height: 0.97;
    margin-top: 18px;
}

.page-hero .lead { margin-top: 24px; }

/* ---------- Kontakt ---------- */
.contact-section { padding-block: clamp(32px, 5vw, 56px) clamp(80px, 12vw, 140px); }

.contact-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 24px;
}

.contact-info h2 {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.contact-intro {
    font-size: 19px;
    color: var(--ink-2);
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.contact-detail-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-wash);
    color: var(--accent-ink);
    font-size: 18px;
}

.contact-detail > div:last-child { min-width: 0; }

.contact-detail-label {
    font-size: 13px;
    color: var(--ink-3);
}

.contact-detail-value {
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-promise {
    justify-self: start;
    max-width: 300px;
    margin-top: 12px;
    padding: 28px 24px 24px;
    border-radius: var(--r-note);
    background: var(--note);
    color: var(--note-ink);
    box-shadow: var(--shadow-note);
    transform: rotate(-2deg);
    transition: transform 0.6s var(--spring);
    display: grid;
    gap: 10px;
}

.contact-promise:hover { transform: rotate(0deg) translateY(-6px); }

.contact-promise span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--note-label);
}

.contact-promise b {
    font-family: var(--hand);
    font-size: 30px;
    line-height: 1.02;
}

.contact-promise p {
    font-size: 15px;
    color: var(--note-label);
}

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--r-stage);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.required { color: var(--accent-ink); }

.optional {
    font-weight: 400;
    color: var(--ink-3);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: var(--r-field);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-3); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-wash);
}

.form-submit { width: 100%; margin-top: 4px; }

.form-error {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--r-field);
    border: 1px solid var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-ink);
    font-size: 15px;
}

.form-error[hidden] { display: none; }

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-3);
    text-align: center;
}

/* Honeypot: außerhalb des sichtbaren Bereichs */
.contact-fax-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.h-captcha { min-height: 78px; }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Danke ---------- */
.thanks {
    min-height: calc(100vh - var(--header-h) - 260px);
    display: grid;
    place-items: center;
    padding-block: clamp(64px, 10vw, 120px);
    text-align: center;
}

.thanks-inner {
    display: grid;
    gap: 22px;
    justify-items: center;
}

.thanks-note {
    width: 150px;
    aspect-ratio: 1;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: var(--r-note);
    background: var(--note);
    color: var(--note-ink);
    box-shadow: var(--shadow-note);
    font-family: var(--hand);
    font-size: 30px;
    font-weight: 700;
    transform: rotate(-4deg);
    animation: note-land 1.1s var(--spring) 0.1s both;
}

.thanks h1 {
    font-size: clamp(44px, 8vw, 92px);
    letter-spacing: -0.047em;
    line-height: 0.98;
}

.thanks .lead { text-align: center; }

.thanks .btn { margin-top: 12px; }

/* ---------- Rechtstexte ---------- */
.legal-section { padding-block: clamp(24px, 4vw, 40px) clamp(80px, 12vw, 140px); }

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-toc a {
    display: block;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink-2);
}

.legal-toc a:hover {
    background: var(--surface-2);
    color: var(--ink);
    text-decoration: none;
}

.legal-content {
    max-width: 720px;
    display: grid;
}

.legal-block {
    display: grid;
    gap: 14px;
    padding-block: 32px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
}

.legal-block:first-child { padding-top: 0; }
.legal-block:last-child { border-bottom: 0; }

.legal-block h2 {
    font-size: 24px;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.legal-block strong { color: var(--ink); }

.legal-address {
    padding: 20px 22px;
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    line-height: 1.6;
}

.legal-block dl {
    margin: 0;
    display: grid;
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.legal-fact {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.legal-fact:last-child { border-bottom: 0; }

.legal-fact dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.legal-fact dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-pending {
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
}

.legal-pending::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9a21b;
    transform: translateY(-1px);
}

.legal-updated {
    font-size: 14px;
    color: var(--ink-3);
}

@media (max-width: 860px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { display: none; }
}

@media (max-width: 560px) {
    .legal-fact { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html { scroll-behavior: auto; }
}
