/* ==========================================================================
   Medienschmiede / Schülermedientag – Stylesheet der öffentlichen Seiten
   Aufbau: Schriften · Tokens · Basis · Header · Buttons · Hero · Abschnitte ·
           Karten · Detailseiten · Formulare · Footer · Bewegung/Responsive
   Schriften liegen auf dem eigenen Server (DSGVO): assets/fonts/, SIL OFL.
   ========================================================================== */

/* --- Schriften ------------------------------------------------------------ */
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */
:root {
    /* Farben aus dem Layoutsystem */
    --black: #000000;
    --yellow: #fffd54;
    --teal: #49a5b2;
    --grey: #b3b3b3;          /* 30 % Schwarz */
    --red: #ea5160;
    --white: #ffffff;

    --ink: var(--black);
    --ink-muted: #4d4d4d;
    --paper: var(--white);
    --line: rgba(0, 0, 0, 0.18);
    --accent: var(--red);

    --wrap: 1180px;
    --gutter: clamp(1rem, 4.5vw, 3.4rem);
    --gutter-bar: clamp(1rem, 2.2vw, 1.65rem);
    --radius: 14px;
    --radius-lg: 20px;

    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --step-logo: clamp(3rem, 8.4vw, 6.4rem);   /* großer Schriftzug */
    --step-hero: clamp(1.9rem, 4.2vw, 3.1rem); /* 29 pt / 31 pt */
    --step-h1: clamp(2rem, 4vw, 2.6rem);
    --step-h2: clamp(1.75rem, 3.2vw, 2.3rem);  /* 23 pt / 23 pt */
    --step-h3: clamp(1.15rem, 1.6vw, 1.35rem);
    --step-lead: clamp(1.1rem, 1.5vw, 1.25rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    -webkit-text-size-adjust: 100%;
}

body.page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

strong, b { font-weight: 700; }

p { margin: 0 0 1em; }

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

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

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

.eyebrow {
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.35rem;
}

.prose { font-size: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose h2 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose h3 { font-family: var(--font-text); font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }

.empty-note {
    padding: 2.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink-muted);
    text-align: center;
}

/* --- Scroll-Fortschritt --------------------------------------------------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 120;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--teal);
    transition: width 0.1s linear;
}

/* --- Header: gelbe Leiste, bleibt oben stehen ------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: var(--yellow);
    transition: box-shadow 0.3s ease;
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 3.4rem;
    padding: 0.6rem var(--gutter-bar);
}

/* Logo oben links in der Leiste */
.brand { display: inline-block; line-height: 0; }
.brand img { width: auto; height: clamp(2.4rem, 3.6vw, 2.9rem); }

/* Sprunglink für Tastatur und Screenreader: erst sichtbar, wenn er den Fokus hat */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.6rem;
    z-index: 200;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { left: var(--gutter-bar); }

.site-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.35rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
    display: none;
    justify-self: end;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }


/* --- Buttons -------------------------------------------------------------- */
.button {
    --button-bg: var(--black);
    --button-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-fg);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--large { padding: 0.8rem 1.6rem; font-size: 1.1rem; }
.button--small { padding: 0.45rem 1rem; }
.button--block { width: 100%; }
.button--yellow { --button-bg: var(--yellow); --button-fg: var(--black); }
.button--inverse { --button-bg: var(--white); --button-fg: var(--black); }
.button--ghost { --button-bg: transparent; --button-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button--muted { --button-bg: var(--grey); --button-fg: var(--black); cursor: default; }
.button--muted:hover { transform: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.25s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
/* Unterstrichen wird nur der Text, nicht der Pfeil */
.link-arrow { background: linear-gradient(currentColor, currentColor) left bottom / calc(100% - 1.35em) 1px no-repeat; padding-bottom: 2px; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
}
.badge--full { background: var(--red); color: var(--white); }

/* --- Flash-Meldungen ------------------------------------------------------ */
.flash-stack {
    position: fixed;
    top: 4.2rem;
    right: 1.25rem;
    z-index: 130;
    display: grid;
    gap: 0.6rem;
    max-width: min(28rem, calc(100vw - 2.5rem));
}
.flash {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    background: var(--black);
    color: var(--white);
    animation: flash-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.flash--success { background: var(--teal); color: var(--black); }
.flash--error { background: var(--red); color: var(--black); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* --- Animiertes M --------------------------------------------------------- */
.m-visual { display: block; pointer-events: none; }
.m-visual img { width: 100%; height: auto; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; }

.hero__brand { background: var(--yellow); }
.hero__brand-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    padding: 1.2rem 0 1.9rem;
}

.hero__logo {
    display: grid;
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--step-logo);
    line-height: 0.9;
}
.hero__logo span:last-child { color: var(--teal); }

.hero__partners,
.page-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.6rem;
    margin: 0;
}

.hero__visual { width: clamp(150px, 21vw, 255px); }

.hero__main {
    background: var(--black);
    color: var(--white);
    padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.hero__title {
    display: grid;
    gap: 0.1em;
    margin: 0 0 1.6rem;
    font-size: var(--step-hero);
    line-height: 1.07;
    text-wrap: initial;
}
.hero__title-main { font-family: var(--font-mono); font-weight: 700; }
.hero__title-sub { font-family: var(--font-text); font-weight: 500; }

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: 1.25rem clamp(2rem, 6vw, 4.75rem);
    width: fit-content;
    max-width: 100%;
    padding: 1rem 1.25rem 1.3rem;
    border-radius: var(--radius-lg);
    background: var(--teal);
    margin-bottom: clamp(2.5rem, 6vw, 4.25rem);
}
.hero__fact { display: grid; align-content: start; line-height: 1.2; }
.hero__fact-label { color: var(--black); margin-bottom: 0.3rem; }
.hero__fact-value { font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.38rem); }
.hero__fact-note { font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.13rem); }

.hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.countdown {
    display: flex;
    gap: clamp(1rem, 3vw, 2.4rem);
}
.countdown__unit { display: grid; min-width: 3.4rem; }
.countdown__unit strong {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.countdown__unit span { font-weight: 700; font-size: 1rem; }

/* --- Abschnitte ----------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--light { background: var(--white); color: var(--black); }
/* Zwei weiße Abschnitte hintereinander: Abstand nur einmal */
.section--light + .section--light,
.section--dark + .section--dark,
.section--accent + .section--accent { padding-top: 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--accent { background: var(--yellow); color: var(--black); }

.section__narrow { max-width: 38rem; }
.section .wrap.section__narrow { margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); }
.section__title { font-size: var(--step-h2); margin-bottom: 0.9rem; }
.section__lead { font-size: var(--step-lead); max-width: 30ch; line-height: 1.3; }

.section__head { margin-bottom: 2.6rem; }
.section__head .section__title { margin-bottom: 0.4rem; }

/* Kennzahlen: kleine Petrol-Kacheln */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1.2rem;
}
.stats__item {
    width: 9.75rem;
    min-height: 8.75rem;
    padding: 0.85rem 0.6rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--teal);
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.15;
}
.stats__value { font-family: var(--font-mono); font-size: clamp(2.1rem, 3.4vw, 2.5rem); line-height: 1; }
.stats__label { font-weight: 700; font-size: 1.15rem; margin: 0.15rem 0 0.3rem; overflow-wrap: anywhere; }
.stats__note { font-weight: 700; font-size: 0.8rem; color: var(--white); line-height: 1.3; }

/* Text + Bild */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split__media { position: relative; }
.split__media img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.split__placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    background: var(--teal);
    overflow: hidden;
}
.split__placeholder span { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 12%; background: var(--yellow); }
.split__placeholder span:nth-child(1) { left: 12%; top: 18%; }
.split__placeholder span:nth-child(2) { right: 18%; top: 40%; background: var(--red); }
.split__placeholder span:nth-child(3) { left: 40%; bottom: 14%; background: var(--black); }

/* Ablauf */
.section--timeline .timeline { position: relative; list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 3rem; }
.timeline__track {
    position: absolute;
    left: 0.7rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
}
.section--light .timeline__track,
.section--accent .timeline__track { background: var(--line); }
.timeline__track i {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0;
    background: var(--teal);
    transition: height 0.2s linear;
}
.timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding-bottom: 2.2rem;
}
.timeline__step::before {
    content: "";
    position: absolute;
    left: -2.68rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--teal);
}
.timeline__step:nth-child(4n + 3)::before { background: var(--red); }
.timeline__step:nth-child(4n + 5)::before { background: var(--yellow); }
.timeline__time {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.timeline__body h3 { font-family: var(--font-text); font-size: var(--step-h3); margin-bottom: 0.25rem; }
.timeline__body p { margin: 0; }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid currentColor; }
.faq__item { border-bottom: 1px solid currentColor; }
.faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 2.5rem 1.15rem 0;
    font-weight: 700;
    font-size: var(--step-h3);
    position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--red);
    transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding-bottom: 1.4rem; max-width: 62ch; }

/* Galerie */
.gallery {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.gallery__item { margin: 0; }
.gallery__item img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.gallery__item figcaption { font-size: 0.86rem; padding-top: 0.5rem; }

/* Veranstalter: Logos als verlinkte Kacheln, auch auf „Über uns“ */
.partners__intro { max-width: 38rem; font-size: var(--step-lead); line-height: 1.3; }
.partners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
    max-width: 50rem;
}
.partner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.partner__logo {
    /* Feste Höhe statt Seitenverhältnis: Kacheln und Logos sind überall gleich
       hoch, egal ob ein Logo breit oder fast quadratisch ist. */
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(8.5rem, 15vw, 10.5rem);
    padding: 0 clamp(1.1rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--black);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
/* Höhe gibt die Kachel vor, die Breite folgt dem Seitenverhältnis – auch bei
   SVG ohne feste Größe. Nur ein sehr breites Logo wird von der Kachelbreite gebremst. */
.partner__logo img { height: 58%; width: auto; max-width: 100%; object-fit: contain; }
.partner__wordmark {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.15;
    text-align: center;
}
.partner__note { font-size: 0.9rem; line-height: 1.3; }
.partner:hover .partner__logo,
.partner:focus-visible .partner__logo { border-color: currentColor; transform: translateY(-2px); }
.section--dark .partner__logo { border-color: transparent; }
.section--dark .partner:hover .partner__logo,
.section--dark .partner:focus-visible .partner__logo { border-color: var(--yellow); }
.partners__more { margin: 2rem 0 0; }
.page-partners { max-width: 55rem; margin-bottom: 1.6rem; }
.page-partners .partner__logo { border-color: transparent; }
.page-partners .partner:hover .partner__logo,
.page-partners .partner:focus-visible .partner__logo { border-color: var(--black); }

/* Ort */
.location__address { font-size: 1.05rem; }

/* CTA */
.section--cta { text-align: left; }
.section__cta-inner { position: relative; }
.section--cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.6rem; }
.section--cta p { font-size: var(--step-lead); max-width: 40ch; margin-bottom: 2rem; }

/* --- Workshop-Karten ------------------------------------------------------ */
.slot-block { margin-bottom: 3.5rem; }
.slot-block__head {
    margin: 0 0 1.4rem;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}
.slot-block__head strong { font-weight: 700; }

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.6rem;
}

.workshop-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.workshop-card:hover { transform: translateY(-4px); }
.workshop-card--full { opacity: 0.7; }
.workshop-card__link { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-decoration: none; color: inherit; }

.workshop-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--teal);
    border-bottom: 1px solid var(--black);
}
.workshop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.workshop-card:hover .workshop-card__media img { transform: scale(1.04); }
.workshop-card__pattern { position: absolute; inset: 0; background: var(--teal); }

.workshop-card__body { padding: 1.35rem 1.2rem 0.6rem; }
.workshop-card__body h4 {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    text-wrap: initial;
}
.workshop-card__subtitle { font-size: 0.85rem; line-height: 1.25; margin-bottom: 1.1rem; }
.workshop-card__meta { display: grid; gap: 0.55rem; margin: 0; font-size: 0.72rem; line-height: 1.3; }
.workshop-card__meta div { display: flex; gap: 0.4rem; }
.workshop-card__meta dt { min-width: 4.2em; flex: none; }
.workshop-card__meta dd { margin: 0; font-weight: 700; }

.workshop-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem 1.1rem;
}
.workshop-card__more { font-weight: 700; font-size: 0.92rem; color: var(--red); white-space: nowrap; }
.workshop-card__more::after { content: " →"; }

/* --- Seitenköpfe (Programm, Workshop) ------------------------------------- */
/* Oben ein gelber Streifen wie die Kopfleiste; das M ragt aus ihm heraus. */
.page-head {
    --band: clamp(2.5rem, 6vw, 5rem);
    position: relative;
    padding: calc(var(--band) + clamp(2rem, 4vw, 3rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(var(--yellow) 0 var(--band), var(--white) var(--band));
}
.page-head__visual {
    position: absolute;
    right: clamp(1rem, 7vw, 5.6rem);
    top: 0.4rem;
    width: clamp(120px, 21vw, 255px);
    z-index: 2;
}
.page-head .wrap { position: relative; z-index: 3; }
.page-head + .section { padding-top: clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: var(--step-h2); margin-bottom: 0.4rem; max-width: 20ch; }
.page-head__lead { font-size: var(--step-lead); max-width: 30ch; line-height: 1.3; }

.workshop-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem) 0;
}
.workshop-detail__image { border-radius: var(--radius-lg); margin-bottom: 2rem; }
.workshop-detail__side {
    position: sticky;
    top: 5rem;
    align-self: start;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--black);
    background: var(--white);
}
.fact-list { display: grid; gap: 0.9rem; margin: 0 0 1.5rem; }
.fact-list dt { font-size: 0.8rem; }
.fact-list dd { margin: 0.1rem 0 0; font-weight: 700; }
.fact-list small { font-weight: 500; }
.side-note { font-size: 0.82rem; margin: 0.8rem 0 0; }
.session-list + .side-note { margin: -0.6rem 0 1.5rem; }

/* --- Formulare ------------------------------------------------------------ */
.form-page {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5.5rem) 0 5rem;
    background: var(--yellow);
    min-height: 70vh;
}
.form-page__visual {
    position: absolute;
    right: clamp(1rem, 7vw, 5.6rem);
    top: clamp(1rem, 1vw, 0rem);
    width: clamp(120px, 21vw, 255px);
}
.form-page .wrap { position: relative; }
.form-page__head { max-width: 36rem; margin-bottom: 2.2rem; }
.form-page__head h1 { font-size: var(--step-h2); margin-bottom: 0.5rem; max-width: 20ch; }
.form-page__head > .prose,
.form-page__lead { font-size: var(--step-lead); line-height: 1.3; }
.form-page__lead { margin-bottom: 1.3rem; }
.form-page__facts { font-size: var(--step-lead); line-height: 1.3; margin-bottom: 1.3rem; }

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.6rem) clamp(1.25rem, 3vw, 1.6rem) clamp(1.5rem, 4vw, 2.2rem);
    max-width: 55rem;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
.form-grid--single { grid-template-columns: minmax(0, 1fr); }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: 0.4rem; align-content: start; }
.field > label { font-weight: 700; font-size: 0.75rem; }
.field .hint { font-size: 0.78rem; color: var(--ink-muted); }
.field .hint--waitlist { color: var(--black); font-weight: 700; padding: 0.5rem 0.7rem; border-radius: 8px; background: var(--yellow); }
.field .hint--waitlist[hidden] { display: none; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
    width: 100%;
    min-height: 2.6rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #8c8c8c;
    border-radius: 10px;
    background: var(--white);
    font: inherit;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 45%, transparent);
    outline: none;
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field__error { color: #b8202f; font-size: 0.82rem; font-weight: 700; }

.checkbox {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    font-size: 0.92rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.checkbox input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--black); }

.fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.fieldset__legend {
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    padding: 0;
}
.fieldset__note { font-size: 0.85rem; margin-bottom: 1.4rem; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.mode-switch {
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 999px;
    background: var(--grey);
    margin-bottom: 2.4rem;
}
.mode-switch button {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--white);
    transition: background 0.2s ease, color 0.2s ease;
}
.mode-switch button[aria-selected="true"] { background: var(--black); }

.participant-list { display: grid; gap: 1rem; }
.participant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.participant__remove {
    border: 0;
    background: none;
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.4rem;
}
.participant__remove:hover { color: var(--red); }

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--white);
    border-left: 6px solid var(--black);
    margin-bottom: 1.5rem;
}
.alert--error { border-left-color: var(--red); }
.alert--success { border-left-color: var(--teal); }
.alert--info { border-left-color: var(--teal); }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* Workshop-Wahl */
.choice-slot {
    border: 1px solid var(--black);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    background: var(--white);
}
.choice-slot__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.choice-slot__head h2 { margin: 0; font-size: var(--step-h3); }
.choice-options { display: grid; gap: 0.75rem; }
.choice-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.choice-option:hover { border-color: var(--black); }
.choice-option input { margin-top: 0.25rem; accent-color: var(--black); width: 1.15rem; height: 1.15rem; }
.choice-option:has(input:checked) { border-color: var(--black); background: color-mix(in srgb, var(--teal) 22%, white); }
.choice-option--disabled { opacity: 0.55; cursor: not-allowed; }
.choice-option__title { font-weight: 700; }
.choice-option__meta { font-size: 0.85rem; color: var(--ink-muted); }
.choice-option__desc { font-size: 0.9rem; margin-top: 0.35rem; }

.summary-list { display: grid; gap: 0.75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.summary-list strong { font-weight: 700; }

.token-box {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    border: 1px dashed var(--black);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 3.5rem 0 2.5rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.site-footer__title {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--yellow);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.site-footer__meta { line-height: 1.7; }
.site-footer__meta a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__note { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* --- Bewegung ------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {

    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: 0 0 auto 0;
        justify-self: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4.5rem var(--gutter) 2rem;
        background: var(--black);
        color: var(--white);
        transform: translateY(-105%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: -1;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav a { padding: 0.95rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.15rem; }
    .site-nav a.button { margin-top: 1.2rem; border: 0; --button-bg: var(--yellow); --button-fg: var(--black); }
    .nav-toggle[aria-expanded="true"] { color: var(--white); }
}

@media (max-width: 900px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .split__media { order: -1; }
    /* Übereinander gestapelt würde die Parallaxe das Bild über den Text schieben */
    .split [data-parallax] { transform: none !important; }
    .workshop-detail__body { grid-template-columns: minmax(0, 1fr); }
    .workshop-detail__side { position: static; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .hero__facts { grid-template-columns: repeat(2, minmax(0, max-content)); }
    .flash-stack { right: 0.75rem; left: 0.75rem; }
}

@media (max-width: 640px) {
    .hero__brand-inner { grid-template-columns: minmax(0, 1fr) 30%; gap: 1rem; }
    .hero__visual { width: 100%; }
    .hero__partners { gap: 0.1rem 1rem; font-size: 0.9rem; }
    .hero__facts { grid-template-columns: minmax(0, 1fr); }
    .hero__bottom { flex-direction: column; align-items: flex-start; }
    .page-head__visual, .form-page__visual { width: 26%; right: var(--gutter); }
    .page-head h1, .form-page__head h1 { padding-right: 28%; }
    .mode-switch { flex-wrap: nowrap; font-size: 0.82rem; }
    .mode-switch button { padding: 0.5rem 0.75rem; }
    .timeline__step { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
    .section--timeline .timeline { padding-left: 2.4rem; }
    .timeline__step::before { left: -2.08rem; }
    .timeline__track { left: 0.4rem; }
    .stats__item { width: calc(50% - 0.55rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    [data-parallax] { transform: none !important; }
    .partner:hover .partner__logo, .partner:focus-visible .partner__logo { transform: none; }
}

@media print {
    .site-header, .scroll-progress, .flash-stack, .m-visual { display: none !important; }
    body.page { color: #000; background: #fff; }
}

/* --- Dozent*innen ---------------------------------------------------------- */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem 1.5rem;
    margin-top: 2.2rem;
}

.speaker__portrait {
    position: relative;
    width: 128px;
    height: 128px;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--teal);
    flex: none;
}
.speaker__portrait img { width: 100%; height: 100%; object-fit: cover; }
.speaker__initial {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 3rem;
    color: var(--black);
    background: var(--teal);
}

.speaker__name { font-family: var(--font-text); font-size: 1.15rem; margin: 0 0 0.15rem; }
.speaker__role { margin: 0 0 0.6rem; font-size: 0.85rem; }
.speaker__bio { font-size: 0.95rem; }
.speaker__bio p:last-child { margin-bottom: 0; }

/* Profile auf der Workshop-Seite: Bild links, Text rechts */
.speaker-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--black); }
.speaker-block h2 { font-size: var(--step-h3); margin-bottom: 1.5rem; }
.speaker-list { display: grid; gap: 2rem; }
.speaker--row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.speaker--row .speaker__portrait { width: 104px; height: 104px; margin-bottom: 0; }

/* --- Termine eines Workshops ----------------------------------------------- */
.side-title { font-size: 1.15rem; margin-bottom: 1rem; }
.session-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.session-list__item {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
}
.session-list__item strong { font-size: 1rem; }
.session-list__item .badge { justify-self: start; margin-top: 0.35rem; }
.session-list__item.is-full { opacity: 0.7; }

.workshop-card__again {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
}

@media (max-width: 560px) {
    .speaker--row { grid-template-columns: minmax(0, 1fr); }
}

/* Links und Social-Profile einer Dozent*in ---------------------------------- */
.speaker-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    margin: .7rem 0 0;
    padding: 0;
    list-style: none;
}

.speaker-links a {
    display: inline-block;
    padding: .2rem .65rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .8rem;
    text-decoration: none;
    color: inherit;
    transition: background-color .2s ease, color .2s ease;
}

.speaker-links a:hover,
.speaker-links a:focus-visible {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.section--accent .speaker-links a:hover,
.section--accent .speaker-links a:focus-visible {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Freie Liste aus Bezeichnung und Adresse ----------------------------------- */
.link-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 0 0 1.4rem;
}

.link-list legend {
    padding: 0 .4rem;
    font-weight: 700;
}

.link-list__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .6rem;
}

.link-list__table th {
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    padding-bottom: .3rem;
}

.link-list__table td {
    padding: .2rem .3rem .2rem 0;
}

.link-list__table input {
    width: 100%;
}

.form-static {
    margin: 0;
    padding: .6rem 0;
    font-weight: 700;
}

@media (max-width: 540px) {
    .link-list__table,
    .link-list__table tbody,
    .link-list__table tr,
    .link-list__table td {
        display: block;
        width: 100%;
    }

    .link-list__table thead {
        display: none;
    }

    .link-list__table tr {
        margin-bottom: .9rem;
    }
}

/* Leitung auf der Workshop-Karte: Name, darunter die Funktion -------------- */
.workshop-card__hosts dd {
    display: grid;
    gap: .35rem;
}

.workshop-card__hosts .host,
.workshop-card__hosts .host__name {
    display: block;
}

.workshop-card__hosts .host__role {
    display: block;
    font-weight: 500;
}

/* Karte von OpenStreetMap ------------------------------------------------- */
.osm-map {
    margin: 0;
}

.osm-map__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--teal);
}

.osm-map__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.osm-map__caption {
    margin: .6rem 0 0;
    font-size: .78rem;
}

.osm-map__caption a {
    color: inherit;
}

.location__photo {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border-radius: var(--radius-lg);
}
