/* ============================================================
   machBar — Self-hosted fonts (Oswald, IBM Plex Sans)
   Files copied once from the last Vite build; no build step needed.
   ============================================================ */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/oswald-400.woff2') format('woff2'), url('/fonts/oswald-400.woff') format('woff'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/oswald-500.woff2') format('woff2'), url('/fonts/oswald-500.woff') format('woff'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-600.woff2') format('woff2'), url('/fonts/oswald-600.woff') format('woff'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-700.woff2') format('woff2'), url('/fonts/oswald-700.woff') format('woff'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2'), url('/fonts/ibm-plex-sans-400.woff') format('woff'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2'), url('/fonts/ibm-plex-sans-500.woff') format('woff'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2'), url('/fonts/ibm-plex-sans-600.woff') format('woff'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-700.woff2') format('woff2'), url('/fonts/ibm-plex-sans-700.woff') format('woff'); }

/* ============================================================
   machBar — Design Tokens (Theme "Atmosphäre")
   Semantic CSS custom properties, consumed by the component
   layer below. [data-theme="kneipe"] remaps the same variables
   onto a dark set so every component restyles automatically.
   ============================================================ */
:root {
    color-scheme: light;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --head-weight: 600;
    --head-spacing: 0em;
    --head-transform: none;

    --bg: #f6f1e7;
    --surface: #ffffff;
    --surface-2: #efe7d6;
    --ink: #2b2a26;
    --muted: #6d6a60;
    --head: #1f3b30;
    --accent: #b34a22;
    --accent-ink: #fbf4e8;
    --accent-2: #e0a23f;
    --line: #ded3bf;
    --sage: #8fa089;

    --nav-bg: #fffdf8;
    --nav-ink: #1f3b30;
    --footer-bg: #161d18;
    --footer-ink: #c8c0ac;

    /* Kneipe-Seite — Abendlicht, kneipig, dunkel */
    --k-bg: #18201a;
    --k-surface: #212b22;
    --k-surface-2: #2b362c;
    --k-ink: #ece1c9;
    --k-muted: #9ba292;
    --k-head: #f0c86a;
    --k-accent: #d98b3c;
    --k-accent-ink: #1a140d;
    --k-accent-2: #e0a23f;
    --k-line: #38442f;

    --radius: 10px;
    --radius-lg: 18px;

    --text-sm: 14px;
    --text-md: 15px;
    --text-lg: 19px;
    --text-xl: 23px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --shadow-sm: 0 2px 8px -3px rgba(20, 24, 16, .28);
    --shadow-md: 0 10px 28px -10px rgba(20, 24, 16, .42);
}

/* The Kneipe page re-maps the same semantic vars onto the dark k-* set,
   so every component restyles automatically without per-page rules. */
[data-theme='kneipe'] {
    --bg: var(--k-bg);
    --surface: var(--k-surface);
    --surface-2: var(--k-surface-2);
    --ink: var(--k-ink);
    --muted: var(--k-muted);
    --head: var(--k-head);
    --accent: var(--k-accent);
    --accent-ink: var(--k-accent-ink);
    --accent-2: var(--k-accent-2);
    --line: var(--k-line);
    background: var(--k-bg);
    color: var(--k-ink);
    color-scheme: dark;
}

/* ============================================================
   Base
   ============================================================ */

/* Padding und Border zaehlen zur angegebenen Breite. Ohne das rechnet
   der Browser sie oben drauf, und Felder mit width:100% plus Padding
   sprengen ihre Spalte — etwa Vor-/Nachname in .name-row. */
*, *::before, *::after { box-sizing: border-box; }

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

/* Sicherheitsnetz: nie horizontal scrollen. clip statt hidden,
   damit position:sticky im Header weiter funktioniert. */
html { overflow-x: clip; }

body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--font-body);
    background: #14140f;
    color: var(--ink);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

#site {
    background: var(--bg);
    color: var(--ink);
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    letter-spacing: var(--head-spacing);
    text-transform: var(--head-transform);
    color: var(--head);
    line-height: 1.04;
    margin: 0 0 .4em;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

.container {
    width: min(1140px, 100% - 48px);
    margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 48px); }

section.block { padding: clamp(40px, 5.5vw, 76px) 0; }
.block + .block { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }

/* ---------- Eyebrows, badges, stamps ---------- */
.eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 18px;
}
.eyebrow--gold { color: var(--accent-2); }
.stamp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 15px;
    font-weight: 700;
    color: var(--head);
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}
.stamp::before {
    content: "";
    width: 9px; height: 9px; flex: none;
    border-radius: 50%;
    background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
    .stamp::before { animation: stampPulse 2.4s ease-in-out infinite; }
}
@keyframes stampPulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
    50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
    letter-spacing: .01em;
    text-transform: var(--head-transform);
    padding: 15px 28px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .12s ease, box-shadow .2s, border-color .2s;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); transform: translateY(-2px); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn--secondary {
    background: transparent;
    color: var(--head);
    border-color: var(--head);
}
.btn--secondary:hover { background: var(--head); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--gold { --accent: var(--accent-2); --accent-ink: #21201a; }
.btn--lg { font-size: 21px; padding: 18px 36px; }

:where(a, button, .btn, input, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 1000;
    background: var(--head); color: var(--bg);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: var(--font-head); font-weight: 600;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   SITE NAV (geteilt)
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--nav-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-nav__inner {
    width: min(1240px, 100% - 48px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    background: none; border: none; cursor: pointer; padding: 0;
    text-align: left;
    color: var(--nav-ink);
    text-decoration: none;
}
.logo-mark { height: 38px; width: auto; display: block; }
.logo-mark .lm-ink { fill: currentColor; }
.logo-mark .lm-accent { fill: var(--accent); }
.logo-mark--footer { height: 34px; color: var(--footer-ink); margin-bottom: 12px; }
.logo-mark--footer .lm-accent { fill: var(--accent-2); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.site-nav__back {
    font-family: var(--font-head); font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--nav-ink); text-decoration: none;
}
.site-nav__back:hover { color: var(--accent); }
.nav-links a {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: var(--head-transform);
    color: var(--nav-ink);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: var(--radius);
    position: relative;
}
.nav-links a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 6px; padding: 12px 18px; font-size: 16px; }
.nav-links .btn--primary {
    color: var(--accent-ink);
    text-transform: uppercase;
    letter-spacing: .05em;
}
/* ---------- Untermenue "Mein Konto" ---------- */
/* Als <details> gebaut: Auf- und Zuklappen, Tastaturbedienung und Fokus
   bringt das Element selbst mit, auch ohne JavaScript. */
.nav-konto { position: relative; }
.nav-konto > summary {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--nav-ink);
    padding: 9px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
/* Das voreingestellte Dreieck weicht je nach Browser ab — eigener Pfeil. */
.nav-konto > summary::-webkit-details-marker { display: none; }
.nav-konto > summary::after {
    content: ""; width: 7px; height: 7px; flex: none;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}
.nav-konto[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-konto > summary:hover { color: var(--accent); }
.nav-konto.is-active > summary { color: var(--accent); }
.nav-konto > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.nav-konto__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: var(--nav-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.nav-links .nav-konto__menu a {
    font-size: 16px;
    padding: 10px 12px;
    white-space: nowrap;
}
.nav-links .nav-konto__menu a::after { display: none; }
.nav-links .nav-konto__menu a:hover { background: var(--surface-2); color: var(--accent); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; flex-direction: column; gap: 5px;
    align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--nav-ink); transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   IMAGES
   ============================================================ */
.imgwrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.imgwrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
    display: flex; align-items: center; justify-content: center; text-align: center;
    width: 100%; height: 100%; min-height: 220px;
    background: color-mix(in srgb, var(--surface-2) 80%, var(--accent) 8%);
    color: var(--muted);
    font-family: var(--font-head); font-size: 14px; letter-spacing: .02em;
    padding: 20px;
}

/* ============================================================
   HERO (Startseite)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(36px, 5vw, 68px) 0 clamp(40px, 6vw, 76px);
}
.hero h1 {
    font-size: clamp(46px, 7vw, 88px);
    margin-bottom: 24px;
}
.hero .lead { font-size: clamp(19px, 2vw, 23px); color: var(--muted); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.hero__media {
    position: relative;
    margin-right: calc(-1 * max(24px, (100vw - 1140px) / 2));
}
.hero__media img { width: 100%; height: clamp(420px, 52vw, 600px); display: block; }
.hero__media .imgwrap {
    box-shadow: 0 30px 60px -30px rgba(20, 30, 20, .5);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.hero__media .imgwrap::after {
    content: "";
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--head) 58%, transparent), transparent 46%),
        linear-gradient(118deg, transparent 58%, color-mix(in srgb, var(--accent) 15%, transparent));
}
.orient-line {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 14px;
    font-family: var(--font-head); letter-spacing: .03em;
}
.mood-tags span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px 5px 9px;
    border-radius: 99px;
    white-space: nowrap;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--muted);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    line-height: 1;
    transition: background .15s, color .15s;
}
.mood-tags span:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--surface));
    color: var(--ink);
}
.mood-tags span svg {
    width: 14px; height: 14px; flex-shrink: 0;
    fill: var(--accent); opacity: .85;
}
.mood-tags span .svg-line {
    fill: none !important;
    stroke: var(--accent); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Die Idee — editorial two-column ---------- */
.idea-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.idea-head .eyebrow { margin-bottom: 12px; white-space: nowrap; }
.idea-head h2 {
    font-size: clamp(52px, 7vw, 96px);
    line-height: .95;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--head);
}
.idea-body p {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 1.1em;
    text-wrap: pretty;
}
.idea-body p:last-child { margin-bottom: 0; }
.idea-block { border-top: 1px solid var(--line); }

@media (max-width: 720px) {
    .idea-grid { grid-template-columns: 1fr; gap: 20px; }
    .idea-head h2 { font-size: clamp(40px, 12vw, 64px); }
}

/* ---------- Nicht nur Gast — Genossenschaft-Sektion ---------- */
.geno-intro { margin-bottom: clamp(32px, 4vw, 52px); }
.geno-cta-row {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(20px, 2.5vw, 32px);
    flex-wrap: wrap;
}
.geno-context {
    flex: 1;
    min-width: 220px;
    max-width: 52ch;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}
.cta-with-figures { position: relative; flex-shrink: 0; padding-top: clamp(105px, calc(8.94vw + 16px), 138px); }
.cta-figures {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-62%);
    width: clamp(140px, 14vw, 190px);
    height: auto; display: block;
    pointer-events: none;
    user-select: none;
}
.geno-claim {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 800;
    font-family: var(--font-head);
}
.gc-line1 { display: block; color: var(--head); }
.gc-line2 { display: block; color: var(--accent); }

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.pillar {
    min-width: 0;
    padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 40px);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pillar:last-child { border-right: none; }
.pillar-icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 18px; }
.pillar-icon svg { width: 100%; height: 100%; stroke-width: 1.95; stroke-linecap: round; stroke-linejoin: round; }
.pillar-label {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(14px, 1.6vw, 19px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--head);
    margin-bottom: 16px;
}
.pillar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pillar li { font-size: clamp(14px, 1.4vw, 17px); color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
    .pillars { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--line); }
    .pillar:last-child { border-bottom: none; }
    .geno-claim { font-size: clamp(48px, 14vw, 80px); }
}

/* ---------- Wo wir stehen — Timeline + AGs ---------- */
.journey-block { border-top: 1px solid var(--line); }
.timeline {
    list-style: none; padding: 0;
    margin: clamp(36px, 5vw, 60px) 0 clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}
.timeline::before {
    content: ""; position: absolute;
    top: 9px; left: 10%; right: 10%; height: 2px;
    background: var(--line);
}
.tl-step {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 6px; padding: 0 8px;
}
.tl-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--line);
    position: relative; z-index: 1;
    margin-bottom: 10px;
}
.tl-done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-now .tl-dot {
    background: var(--accent-2); border-color: var(--accent-2);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-2) 26%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
    .tl-now .tl-dot { animation: tlPulse 2.4s ease-in-out infinite; }
}
@keyframes tlPulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 38%, transparent); }
    50%      { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent-2) 0%, transparent); }
}
.tl-next .tl-dot { background: var(--surface); border-color: var(--accent-2); border-style: dashed; }
.tl-date {
    font-family: var(--font-head); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent);
}
.tl-now .tl-date { color: var(--accent-2); }
.tl-label { font-size: 15px; color: var(--ink); line-height: 1.35; }
.tl-now .tl-label { font-weight: 600; }

.ag-head { max-width: 54ch; margin-bottom: clamp(24px, 3vw, 36px); }
.ag-head h3 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 10px; color: var(--head); letter-spacing: -.01em; }
.ag-head p { font-size: 18px; color: var(--muted); margin: 0; }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-grid > * { min-width: 0; }
.ag-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color .18s, transform .18s;
}
.ag-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.ag-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; }
.ag-icon svg { width: 100%; height: 100%; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ag-card h4 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--head); }
.ag-card p { font-size: 15.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.ag-card--cta {
    display: flex; flex-direction: column;
    background: var(--accent); border-color: var(--accent);
    text-decoration: none;
}
.ag-card--cta .ag-icon { color: var(--accent-ink); }
.ag-card--cta h4 { color: var(--accent-ink); }
.ag-card--cta p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.ag-card--cta:hover { transform: translateY(-3px); border-color: var(--accent); filter: brightness(1.04); }

@media (max-width: 980px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .ag-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .timeline { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
    .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
    .tl-step { flex-direction: row; align-items: center; text-align: left; gap: 12px; }
    .tl-dot { margin-bottom: 0; }
    .ag-grid { grid-template-columns: 1fr; }
}

/* ---------- Image slider (Der Ort) ---------- */
.img-slider { position: relative; height: clamp(340px, 40vw, 480px); }
.img-slider__track { position: relative; width: 100%; height: 100%; }
.img-slider__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
}
.img-slider__slide.is-active { opacity: 1; visibility: visible; }
.img-slider__slide img { width: 100%; height: 100%; display: block; }

.img-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 4;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--head) 60%, transparent);
    color: var(--bg);
    backdrop-filter: blur(4px);
    transition: background .15s, transform .15s;
    opacity: 0;
}
.img-slider:hover .img-slider__arrow { opacity: 1; }
.img-slider__arrow:hover { background: var(--head); }
.img-slider__arrow:active { transform: translateY(-50%) scale(.92); }
.img-slider__arrow svg { width: 22px; height: 22px; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.img-slider__arrow--prev { left: 14px; }
.img-slider__arrow--next { right: 14px; }

.img-slider__dots {
    position: absolute; left: 0; right: 0; bottom: 16px;
    z-index: 4;
    display: flex; gap: 8px; justify-content: center;
}
.img-slider__dots button {
    width: 9px; height: 9px; border-radius: 50%;
    border: none; cursor: pointer; padding: 0;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: background .2s, width .2s;
}
.img-slider__dots button.is-active { background: var(--bg); width: 22px; border-radius: 5px; }

/* ---------- Wortwolke (ATMO-AG Umfrage) ---------- */
.wordcloud {
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 6px 24px;
    max-width: 880px; margin: 4px auto 24px;
    line-height: 1.05; text-align: center;
}
.wordcloud span { font-family: var(--font-head); font-weight: 600; display: inline-block; letter-spacing: -.01em; }
.wc-lead { font-weight: 800; letter-spacing: -.02em; }
.wc-ink { color: var(--ink); }
.wc-muted { color: var(--muted); }
.wc-head { color: var(--head); font-weight: 800; }
.wc-accent { color: var(--accent); }
.wc-accent2 { color: var(--accent-2); }
@media (prefers-reduced-motion: no-preference) {
    .wordcloud span { opacity: 0; animation: wcIn .5s ease forwards; }
    .wordcloud span:nth-child(3n) { animation-delay: .05s; }
    .wordcloud span:nth-child(3n+1) { animation-delay: .12s; }
    .wordcloud span:nth-child(3n+2) { animation-delay: .19s; }
}
@keyframes wcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
    .wordcloud { gap: 4px 16px; }
    .wordcloud span { font-size: calc(1em * 0.82) !important; }
}

/* ---------- Two-path picker on home ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px;
    cursor: pointer;
    transition: transform .18s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column; gap: 12px;
    text-align: left;
    font: inherit; color: inherit;
    text-decoration: none;
}
.path-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(20, 30, 20, .4); border-color: var(--accent); }
.path-card h3 { font-size: 30px; margin: 0; }
.path-card p { color: var(--muted); margin: 0; }
.path-card .go { margin-top: auto; color: var(--accent); font-family: var(--font-head); font-weight: 600; }
.path-card--primary { background: var(--head); border-color: var(--head); }
.path-card--primary h3 { color: var(--bg); }
.path-card--primary p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.path-card--primary .go { color: var(--accent-2); }

/* ============================================================
   GENERIC SECTION HEADERS
   ============================================================ */
.sec-head { max-width: 56ch; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sec-head p { font-size: var(--text-lg); color: var(--muted); }
.sec-head--center { margin-inline: auto; text-align: center; }
.intro { font-size: var(--text-lg); color: var(--muted); }

/* ---------- Promise / quote ---------- */
.promise { position: relative; }
.promise__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.promise__media img { width: 100%; height: clamp(340px, 40vw, 480px); display: block; }
.bigquote {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.08;
    color: var(--head);
    text-wrap: balance;
}
.bigquote .accent { color: var(--accent); }

/* ---------- Team ---------- */
.team-line { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.chip {
    white-space: nowrap;
    background: color-mix(in srgb, var(--sage) 26%, var(--surface));
    border: 1px solid var(--line);
    padding: 9px 16px; border-radius: 999px;
    font-size: 15px; font-family: var(--font-head); font-weight: 600;
    color: var(--head);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps > * { min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.step .step-no {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 700; font-size: 22px;
    margin-bottom: 16px;
}
.step .step-no svg { width: 26px; height: 26px; display: block; stroke-width: 1.95; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 16.5px; }
.step .when { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.4vw, 25px);
    color: var(--head); padding: 24px 44px 24px 0; position: relative;
    display: block;
}
.faq-q .icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; transition: transform .3s; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .icon::before { left: 50%; top: 4px; width: 2.5px; height: 18px; transform: translateX(-50%); }
.faq-q .icon::after  { top: 50%; left: 4px; height: 2.5px; width: 18px; transform: translateY(-50%); }
.faq-item.is-open .faq-q .icon::before { transform: translateX(-50%) scaleY(0); }
.faq-item.is-open .faq-q .icon { transform: translateY(-50%) rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 44px 26px 0; margin: 0; color: var(--muted); font-size: 17px; }
.faq-a p a, .step p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Signup / notify forms ---------- */
.cta-panel { background: var(--head); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); text-align: center; }
.cta-panel h2 { color: var(--bg); font-size: clamp(34px, 5vw, 58px); }
.cta-panel p { color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: var(--text-lg); max-width: 50ch; margin-inline: auto; }
.signup-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 28px auto 0; text-align: left; }
.signup-form input, .signup-form textarea {
    width: 100%;
    font-family: var(--font-body); font-size: 17px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1.5px solid color-mix(in srgb, var(--bg) 30%, transparent);
    background: color-mix(in srgb, var(--bg) 10%, transparent);
    color: var(--bg);
}
.signup-form textarea { resize: vertical; }
.signup-form input::placeholder, .signup-form textarea::placeholder { color: currentColor; opacity: .62; }
.signup-form input:focus, .signup-form textarea:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer-head { display: flex; align-items: center; gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.offer-head .sec-head { flex: 0 1 auto; }
.offer-head__img { aspect-ratio: 1 / 1; min-height: 0; height: auto; width: 170px; flex: 0 0 170px; background: transparent; border-radius: 0; overflow: visible; }
.offer-head__img img { width: 100%; height: 100%; min-height: 0; display: block; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .offer-head__img { width: 130px; flex-basis: 130px; } }
@media (max-width: 560px) { .name-row { grid-template-columns: 1fr; } }
.consent-check {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 13px; line-height: 1.55;
    color: color-mix(in srgb, var(--bg) 65%, transparent);
    cursor: pointer; text-align: left;
    border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
    padding-top: 14px;
    margin-top: 2px;
}
.consent-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent-2); }
.signup-form .btn { width: 100%; justify-content: center; font-size: 18px; padding: 18px 24px; }
.form-note { font-size: var(--text-sm); color: color-mix(in srgb, var(--bg) 65%, transparent); margin: 0; }
.form-error { font-size: var(--text-sm); color: #ffb4a0; margin: 0 0 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
    display: none; align-items: center; gap: 12px; justify-content: center;
    font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--accent-2);
    padding: 18px 0;
}
.form-success.show { display: flex; }
.signup-wrap.done > .eyebrow, .signup-wrap.done > h2, .signup-wrap.done > p,
.signup-wrap.done .signup-form, .signup-wrap.done .form-note { display: none; }
.signup-wrap.done .form-success { display: flex; }

.cta-panel--surface { background: var(--surface-2); }
.cta-panel--surface h2 { color: var(--head); }
.cta-panel--surface p { color: var(--muted); }
.cta-panel--surface .signup-form input, .cta-panel--surface .signup-form textarea {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--ink);
    border-color: var(--line);
}
.cta-panel--surface .consent-check { color: var(--muted); border-top-color: var(--line); }
.cta-panel--surface .form-note { color: var(--muted); }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding-top: clamp(28px, 4vw, 52px); }
.legal-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); text-decoration: none; margin-bottom: clamp(20px, 3vw, 32px);
}
.legal-back:hover { color: var(--head); }
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: .35em; }
.prose h2 { font-size: clamp(21px, 2.6vw, 28px); margin: 1.7em 0 .4em; color: var(--head); }
.prose h3 { font-size: clamp(17px, 2vw, 20px); margin: 1.3em 0 .3em; color: var(--head); }
.prose p, .prose li { font-size: 17px; line-height: 1.72; color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--head); }
.prose .lead { font-size: var(--text-lg); color: var(--muted); margin-bottom: 1.6em; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .muted { color: var(--muted); }
.todo {
    background: color-mix(in srgb, var(--accent-2) 26%, transparent);
    color: var(--head); padding: 0 .3em; border-radius: 3px;
    font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.prose .updated { font-size: var(--text-sm); color: var(--muted); margin-top: 2.5em; }

/* ============================================================
   KNEIPE-specific
   ============================================================ */
.offer-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 28px 24px;
    display: flex; flex-direction: column; gap: 10px; min-height: 180px;
}
.tile .glyph { font-family: var(--font-head); font-weight: 700; color: var(--accent-2); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.tile h3 { font-size: 23px; margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

.locate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.locate__info { display: flex; flex-direction: column; gap: 18px; }
.fact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-row .lbl { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--accent-2); min-width: 130px; }
.fact-row .val { font-size: 18px; }
.map-slot { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; height: clamp(320px, 36vw, 420px); }
.map-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-link {
    position: absolute; left: 14px; bottom: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 99px;
    font-family: var(--font-head); font-weight: 700; font-size: 14px;
    letter-spacing: .02em; text-decoration: none;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 4px 14px -4px rgba(20, 30, 20, .5);
    transition: transform .15s, filter .15s;
}
.map-link:hover { transform: translateY(-2px); filter: brightness(1.05); }

.bridge { text-align: center; border-top: 1px solid var(--line); }
.bridge p { font-family: var(--font-head); font-size: clamp(22px, 3vw, 34px); color: var(--head); max-width: 28ch; margin: 0 auto 22px; }

/* ============================================================
   FOOTER (geteilt)
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 64px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand__name { color: var(--footer-ink); font-size: 30px; }
.footer-brand .brand__name b { color: var(--accent-2); }
.footer-brand p { margin: 10px 0 0; opacity: .72; max-width: 30ch; font-size: 15.5px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { color: var(--footer-ink); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--footer-ink); text-decoration: none; opacity: .85; padding: 5px 0; font-size: 16px; cursor: pointer; }
.footer-col a:hover { opacity: 1; color: var(--accent-2); }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 22%, transparent); font-size: 14px; opacity: .6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
    body { font-size: 17px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { margin-right: 0; }
    .hero__media .imgwrap { border-radius: var(--radius-lg); }
    .hero__media img { height: clamp(280px, 60vw, 420px); }
    .promise__grid, .locate { grid-template-columns: 1fr; }
    .promise__media { order: -1; }
    .paths { grid-template-columns: 1fr; }
    .offer-tiles { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .nav-links {
        position: fixed; inset: 0 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--nav-bg); padding: 92px 24px 24px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-100%); transition: transform .3s ease;
        box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4);
    }
    .nav-links.is-open { transform: translateY(0); }
    .nav-links a { padding: 14px 8px; font-size: 21px; }
    .nav-links a::after { display: none; }
    .nav-links .btn { margin: 8px 0 0; justify-content: center; }
    /* Im aufgeklappten Menue steht das Untermenue im Fluss statt zu schweben —
       ein absolut positioniertes Panel wuerde sonst aus dem Bildschirm ragen. */
    .nav-konto > summary { padding: 14px 8px; font-size: 21px; }
    .nav-konto__menu {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 14px;
        padding: 4px;
        box-shadow: none;
        background: none;
    }
    .nav-links .nav-konto__menu a { font-size: 18px; padding: 11px 10px; }
    .nav-toggle { display: flex; }
    .offer-tiles { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; }
}
@media (max-width: 560px) {
    /* lange Button-Labels duerfen umbrechen statt den Viewport zu sprengen */
    .btn { white-space: normal; max-width: 100%; text-align: center; }
    .btn--lg { font-size: 18px; padding: 16px 22px; }
}
@media (max-width: 480px) {
    .signup-form { flex-direction: column; }
}

/* ============================================================
   ACCOUNT — Aufgaben (/account/actions)
   ============================================================ */
.actions-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* Die Einstiegslinks auf der Kontoseite stehen beieinander. Nicht
   .actions-toolbar: deren space-between schiebt ein Ruecklink-Knopf-Paar
   auseinander — bei drei gleichrangigen Links ueber die volle Breite
   entstuenden daraus riesige Luecken. */
.account-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.action-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.action-form input, .action-form textarea, .action-form select {
    font: inherit; font-size: var(--text-md); padding: 12px 14px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.action-form textarea { resize: vertical; min-height: 90px; }
.action-form input:focus, .action-form textarea:focus, .action-form select:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.action-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.action-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.action-card h3 { font-size: 21px; margin: 0; }
.action-card .desc { color: var(--muted); font-size: 15px; margin: 0; white-space: pre-wrap; }
.action-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.action-card__meta { font-size: 13px; color: var(--muted); }
.action-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.action-card__actions form { display: inline-flex; }
.action-card__actions .btn { padding: 9px 16px; font-size: 14px; }

/* Deutlich anders: eigene Aufgabe (Gold-Akzent) vs. von anderen belegte Aufgabe (gedämpft, Salbei) */
.action-card--mine { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 45%, transparent); }
.action-card--other { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 10%, var(--surface)); opacity: .82; }

.status-badge {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    font-family: var(--font-head); font-weight: 600; font-size: 13px;
    padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--status-color) 18%, transparent);
    color: color-mix(in srgb, var(--status-color) 78%, black);
}
.status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); flex-shrink: 0; }

.claim-flag {
    align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: 12px;
    letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.claim-flag--mine { background: var(--accent-2); color: #21201a; }
.claim-flag--other { background: var(--sage); color: #16210f; }

/* Abgekürzter Name (Vorname N.) — gepunktete Linie zeigt, dass der volle Name per Hover/Tooltip verfügbar ist. */
.user-name { border-bottom: 1px dotted currentColor; cursor: help; }

@media (max-width: 480px) {
    .action-card__actions .btn { flex: 1 1 auto; justify-content: center; }
}

.action-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); color: var(--muted); }

/* ============================================================
   ACCOUNT — T-Shirts (/account/tshirts)
   ============================================================ */
.tshirt-form .tshirt-check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); }
.tshirt-check input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--accent-2); }
.tshirt-success { padding: 12px 14px; border: 1px solid var(--sage); border-radius: var(--radius); background: color-mix(in srgb, var(--sage) 12%, var(--surface)); }
.tshirt-admin { margin-top: 56px; }
.tshirt-admin .sec-head { margin-bottom: 24px; }
.tshirt-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tshirt-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.tshirt-table th, .tshirt-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tshirt-table th { font-family: var(--font-head); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tshirt-table tbody tr:last-child td { border-bottom: 0; }
.tshirt-table td:nth-child(3), .tshirt-table td:nth-child(4) { white-space: nowrap; }

/* ============================================================
   ACCOUNT — Schichtplan (/account/schichtplan)
   ============================================================ */
.shift-list { display: flex; flex-direction: column; gap: 20px; }

.shift-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.shift-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.shift-card__weekday { display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.shift-card__head h3 { margin: 2px 0 0; font-size: 22px; }
.shift-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shift-card__actions form { display: inline-flex; }
.shift-card__actions .btn { padding: 9px 16px; font-size: 14px; }

.shift-roles { display: flex; flex-direction: column; gap: 10px; }
.shift-role {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
}
.shift-role__info { display: flex; flex-direction: column; gap: 2px; }
.shift-role__label { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.shift-role__time { font-size: 13px; color: var(--muted); }
.shift-role__hint { font-size: 12px; color: var(--muted); max-width: 380px; }
.shift-role__status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shift-role__status form { display: inline-flex; }
.shift-role__status .btn { padding: 8px 14px; font-size: 13px; }

/* Deutlich anders: eigene Position (Gold-Akzent) vs. von anderen belegte Position (gedämpft, Salbei) */
.shift-role--mine { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); }
.shift-role--other { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 10%, var(--surface)); opacity: .85; }

@media (max-width: 560px) {
    .shift-role { flex-direction: column; align-items: flex-start; }
    .shift-role__status { width: 100%; justify-content: space-between; }
}

/* ============================================================
   ACCOUNT — Dabei (/account/dabei)
   ============================================================ */
.event-form__datetime { display: flex; gap: 12px; flex-wrap: wrap; }
.event-form__datetime label { flex: 1 1 160px; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.event-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.event-card h3 { font-size: 21px; margin: 2px 0 0; }
.event-card .desc { color: var(--muted); font-size: 15px; margin: 0; white-space: pre-wrap; }
.event-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.event-card__date { display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.event-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.event-card__actions form { display: inline-flex; }
.event-card__actions .btn { padding: 9px 16px; font-size: 14px; }
.event-card__attendees { display: flex; }
.event-card__attendees .claim-flag { white-space: normal; text-transform: none; letter-spacing: 0; }
.event-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.event-card__foot form { display: inline-flex; }
.event-card__foot .btn { padding: 9px 16px; font-size: 14px; }
.event-card__meta { font-size: 13px; color: var(--muted); }

.event-card--mine { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 45%, transparent); }

.event-past { margin-top: 32px; }
.event-past > summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.event-grid--past { opacity: .82; }

@media (max-width: 480px) {
    .event-card__foot { flex-direction: column; align-items: stretch; }
    .event-card__foot .btn { justify-content: center; }
}

/* ---------- Presse ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.presse-liste { list-style: none; padding: 0; margin: 0; max-width: 74ch; }
.presse-item {
    padding: clamp(20px, 3vw, 30px) 0;
    border-top: 1px solid var(--line);
}
.presse-item:first-child { border-top: none; padding-top: 0; }

.presse-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
    margin: 0 0 10px; font-size: var(--text-sm); color: var(--muted);
}
.presse-medium {
    font-family: var(--font-head); font-weight: 600; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.presse-autor::before { content: 'von '; }

.presse-titel { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; margin: 0 0 10px; color: var(--head); }
.presse-titel a { color: inherit; text-decoration: none; }
.presse-titel a:hover, .presse-titel a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.presse-extern { width: .7em; height: .7em; margin-left: .35em; vertical-align: baseline; }

.presse-anriss { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink); }

.presse-badge {
    display: inline-block; margin-top: 12px; padding: 5px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
    font-size: 13px; color: var(--muted);
}

.presse-hinweis { max-width: 74ch; margin: clamp(24px, 3vw, 36px) 0 0; font-size: var(--text-sm); line-height: 1.65; color: var(--muted); }

.presse-kontakt__card {
    max-width: 520px; padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.presse-kontakt__name { margin: 0; font-family: var(--font-head); font-size: 21px; color: var(--head); }
.presse-kontakt__rolle { margin: 2px 0 18px; font-size: var(--text-sm); color: var(--muted); }

/* ============================================================
   ACCOUNT — Wiki (/account/wiki)
   ============================================================ */
.wiki-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

.wiki-nav { position: sticky; top: 20px; padding-right: 8px; border-right: 1px solid var(--line); }
.wiki-nav__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wiki-nav__home { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--head); text-decoration: none; }
.wiki-nav__home:hover, .wiki-nav__home.is-active { color: var(--accent); }
.wiki-nav__empty { font-size: var(--text-sm); color: var(--muted); }

.wiki-tree, .wiki-tree__children { list-style: none; margin: 0; padding: 0; }
.wiki-tree__children { padding-left: 16px; border-left: 1px solid var(--line); margin-top: 4px; }
.wiki-tree__item { margin: 2px 0; }
.wiki-tree__item > a { display: block; padding: 5px 8px; border-radius: var(--radius); font-size: 15px; color: var(--ink); text-decoration: none; }
.wiki-tree__item > a:hover { background: var(--surface-2); color: var(--accent); }
.wiki-tree__item.is-active > a { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.wiki-breadcrumb { font-size: var(--text-sm); color: var(--muted); margin-bottom: 14px; }
.wiki-breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.wiki-breadcrumb a:hover { color: var(--accent); }
.wiki-breadcrumb__sep { margin: 0 6px; }

.wiki-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wiki-toolbar h1 { margin: 0; }
.wiki-toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.wiki-meta { font-size: var(--text-sm); color: var(--muted); margin: 8px 0 28px; }

.wiki-content table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.wiki-content th, .wiki-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; font-size: 16px; }
.wiki-content th { background: var(--surface-2); font-family: var(--font-head); }
.wiki-content ul.task-list { padding-left: 1.4em; }

.wiki-form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.wiki-form input[type="text"] {
    font: inherit; font-size: var(--text-md); padding: 12px 14px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.wiki-form input:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.wiki-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wiki-editor-title { font-family: var(--font-head); font-size: 22px !important; font-weight: 600; }
.wiki-editor-mount { max-width: 100%; }

.wiki-history__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wiki-history__row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.wiki-history__row.is-current { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); }
.wiki-history__version { font-family: var(--font-head); font-weight: 600; }
.wiki-history__meta { font-size: var(--text-sm); color: var(--muted); flex: 1 1 auto; }
.wiki-history__current { font-size: 13px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }
.wiki-history__row form { display: inline-flex; }

@media (max-width: 780px) {
    .wiki-layout { grid-template-columns: 1fr; }
    .wiki-nav { position: static; border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
}
