/* ===== Bruchwerk Theater — Main Stylesheet ===== */
/* Extracted from Claude Design prototype, converted for TYPO3 */

@import url('fonts.css');

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --header-h: 78px;
  --bg: #0e0e10;
  --ink: #f4f1ea;
  --paper: #f4f1ea;
  --bone: #d8d3c5;
  /* --mute: WCAG AA on --bg (#0e0e10): 9.3:1. Old #8a867c had 5.4:1, but combined
     with form-input opacity .5 placeholder it dropped below threshold. */
  --mute: #b8b3a9;
  --line: #26262a;
  /* --field-edge: the 1px frame of the grey field box, 3.5:1 on --line (ENT-6233). */
  --field-edge: #6a6a60;
  --line-paper: #1a1a1e;
  --accent: #e31c60;
  --neon: #f4ea3d;
  --hero-offset: 110px;
  /* --display-lh: the dots of Ä, Ö, Ü in Oswald reach 1.042em above the baseline (yMax 1042
     of 1000 units); 1.1 keeps .05em clear of the line above. Uppercase headings read this. */
  --display-lh: 1.1;
  /* --rep-inset: the repertoire track's inset, also its snapport's, so the first card rests at 0. */
  --rep-inset: 32px;
}

/* Page-content category scope: never changes global controls, errors or footer. */
.page-content { --category-accent: var(--accent); --category-accent-ink: #fff; }
.page-content.category-schauspiel,
.page-content.category-extras { --category-accent: var(--accent); --category-accent-ink: #fff; }
.page-content.category-werkstatt,
.page-content.category-workshops { --category-accent: var(--neon); --category-accent-ink: #171300; }

/* Category-owned content accents; global chrome/forms keep --accent. */
.page-content .eyebrow-ink,
.page-content .section-label,
.page-content .persongrid__name,
.page-content .pcs__archive-card:hover .display,
.page-content .catlinks-numrow:hover .display {
  color: var(--category-accent, var(--accent));
}
.page-content .btn-solid {
  background: var(--category-accent, var(--accent));
  border-color: var(--category-accent, var(--accent));
  color: var(--category-accent-ink, #fff);
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--ink);
  outline-offset: 0;
}

/* Global keyboard-focus indicator (no impact on mouse interactions) */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
/* Main landmark must not show outline when programmatically focused via skip-link */
main[tabindex="-1"]:focus { outline: none; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
img.logo-img { max-width: none; width: auto; height: 32px; flex: 0 0 auto; }

/* ===== TYPOGRAPHY ===== */
.display { font-family: 'Oswald', Impact, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: var(--display-lh); text-transform: uppercase; }
.mono { font-family: 'Space Mono', ui-monospace, monospace; font-weight: 400; letter-spacing: .02em; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ===== REPERTOIRE SLIDER ===== */
.rep-track { padding: 0 var(--rep-inset); }
.rep-scroll-wrap { position: relative; }
.rep-scroll-wrap::before,
.rep-scroll-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 200px; z-index: 2; pointer-events: none; transition: opacity .3s; }
.rep-scroll-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.rep-scroll-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.rep-scroll-wrap[data-at-start]::before { opacity: 0; }
.rep-scroll-wrap[data-at-end]::after   { opacity: 0; }
.rep-nav { display: flex; gap: 8px; }
.rep-nav[hidden] { display: none; }
.rep-nav .btn { padding: 8px 12px; }
.rep-nav .btn[disabled] { opacity: .25; pointer-events: none; }

/* ===== RULES ===== */
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-thick { height: 2px; background: var(--ink); width: 100%; }
.rule-paper { height: 1px; background: rgba(14,14,16,.15); width: 100%; }

/* ===== EYEBROW ===== */
.eyebrow { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.eyebrow-ink { color: var(--accent); }

/* Section auto-numbering */
body {}
/* Body scroll-lock when mobile menu is open */
body.menu-open { overflow: hidden; }
.section-label::before { content: ''; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--ink); font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; background: transparent; color: var(--ink); transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: #ff2e75; border-color: #ff2e75; color: #fff; }
.btn-ghost-paper { border-color: var(--bg); color: var(--bg); }
.btn-ghost-paper:hover { background: var(--bg); color: var(--paper); }

/* ===== PLACEHOLDER (striped imagery) ===== */
.ph { position: relative; background: repeating-linear-gradient(135deg, #1a1a1e 0 18px, #141418 18px 36px); overflow: hidden; color: #6a6a72; }
.ph-light { background: repeating-linear-gradient(135deg, #e6e2d6 0 18px, #ddd8c8 18px 36px); color: #8a867c; }
.ph-label { position: absolute; left: 12px; bottom: 10px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.ph-corner { position: absolute; top: 10px; right: 12px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

/* ===== GRAIN OVERLAY ===== */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .06; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px), radial-gradient(rgba(0,0,0,.6) 1px, transparent 1px); background-size: 3px 3px, 5px 5px; background-position: 0 0, 1px 2px; display: var(--grain-display, block); }

/* ===== TICKER ===== */
.ticker { display: flex; gap: 48px; white-space: nowrap; will-change: transform; }
.ticker * { flex: 0 0 auto; }

/* ===== SCROLLBAR HIDE ===== */
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

/* ===== PAPER SECTION ===== */
.paper { background: var(--paper); color: var(--bg); }
.paper .rule { background: rgba(14,14,16,.18); }
.paper .eyebrow { color: #6a6a60; }
.paper .mute { color: #6a6a60; }

/* ===== RTE CONTENT RESET ===== */
/* RTE-generated HTML inside content blocks must not inherit display/mono styles */
section ul, section ol { font-family: 'Inter', system-ui, sans-serif; text-transform: none; font-weight: 400; letter-spacing: normal; line-height: 1.6; list-style: disc; padding-left: 1.5em; margin: 12px 0; }
section ol { list-style: decimal; }
section ul li, section ol li { margin-bottom: 6px; }
section p { font-family: 'Inter', system-ui, sans-serif; text-transform: none; letter-spacing: normal; }
/* hello/feedback's tabs are sections too: its links keep the panel's own decoration (ENT-6309). */
section:not(:where(.hello-feedback__section)) p a:not(.btn):not(.tag),
section:not(:where(.hello-feedback__section)) li a:not(.btn):not(.tag) { text-decoration: underline; text-decoration-color: var(--mute); text-underline-offset: 3px; transition: text-decoration-color .2s; }
section:not(:where(.hello-feedback__section)) p a:not(.btn):not(.tag):hover,
section:not(:where(.hello-feedback__section)) li a:not(.btn):not(.tag):hover { text-decoration-color: var(--accent); }

/* ===== STRETCHED LINK ===== */
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ===== UTILS ===== */
.uc { text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }

/* ===== HERO ANIMATIONS ===== */

/* Calm whole-title transition. Words are never split into animated letters. */
.hero-title-in { opacity: 0; transform: translateY(10px); animation: heroTitleIn .45s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes heroTitleIn { to { opacity: 1; transform: translateY(0); } }

.hero-kicker-in { opacity: 0; transform: translateX(-20px); animation: kickerIn .7s .1s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes kickerIn { to { transform: translateX(0); opacity: 1; } }

.hero-meta-in { opacity: 0; transform: translateY(20px); animation: metaIn .7s .55s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes metaIn { to { transform: translateY(0); opacity: 1; } }

.hero-btn-in { opacity: 0; transform: translateY(14px); animation: btnIn .6s cubic-bezier(.2,.75,.18,1) forwards; }
.hero-btn-in:nth-child(1) { animation-delay: .75s; }
.hero-btn-in:nth-child(2) { animation-delay: .85s; }
@keyframes btnIn { to { transform: translateY(0); opacity: 1; } }

/* Hero slide images */
.hero-slide-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Image crossfade + zoom */
.hero-img-slide { position: absolute; right: 0; bottom: 0; opacity: 0; }
.hero-img-slide.is-active { opacity: 1; position: relative; }
.hero-img-slide > * { animation: imgZoom 8s linear forwards; }
.hero-img-slide:not(.is-active) > * { animation: none; }
@keyframes imgZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* Image entrance */
.hero-img-in { animation: heroImgIn .9s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes heroImgIn {
  0% { opacity: 0; transform: translateY(30px) scale(.95); filter: blur(4px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Image exit */
.hero-img-out { animation: heroImgOut .6s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes heroImgOut {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-20px) scale(.97); filter: blur(3px); }
}

/* Parallax wrapper */
.hero-parallax { transition: transform .45s cubic-bezier(.2,.75,.18,1); will-change: transform; }

/* Autoplay progress — moved to components/hero-slider.css */

/* Accent corners */
.hero-corner { position: absolute; pointer-events: none; z-index: 4; }
.hero-corner-top-right { top: 0; right: 0; width: 120px; height: 120px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translate(100%, -100%); animation: cornerIn .9s .3s cubic-bezier(.2,.75,.18,1) forwards; }
.hero-corner-bottom-left { bottom: 0; left: 0; width: 80px; height: 80px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); transform: translate(-100%, 100%); animation: cornerIn .9s .45s cubic-bezier(.2,.75,.18,1) forwards; }
@keyframes cornerIn { to { transform: translate(0, 0); } }

/* Scroll hint */
.hero-scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); opacity: 0; animation: hintIn 1s 1.2s forwards, hintBob 2.4s 1.2s infinite; }
@keyframes hintIn { to { opacity: .6; } }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== HERO EXIT ANIMATIONS ("Theatrical Blackout") ===== */
@keyframes heroTitleOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes kickerOut { to { opacity: 0; transform: translateX(-30px); } }
@keyframes metaOut { to { opacity: 0; transform: translateY(15px); } }
@keyframes btnOut { to { opacity: 0; transform: translateY(10px); } }

.hero-title-out { animation: heroTitleOut .25s ease forwards; }
.hero-kicker-out { animation: kickerOut .3s .15s cubic-bezier(.2,.75,.18,1) forwards; }
.hero-meta-out { animation: metaOut .3s .1s cubic-bezier(.2,.75,.18,1) forwards; }
.hero-btn-out:nth-child(1) { animation: btnOut .25s .05s cubic-bezier(.2,.75,.18,1) forwards; }
.hero-btn-out:nth-child(2) { animation: btnOut .25s .07s cubic-bezier(.2,.75,.18,1) forwards; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title-in, .hero-title-out, .hero-kicker-anim, .hero-meta-anim, .hero-btn-anim, .hero-corner-top-right, .hero-corner-bottom-left, .hero-scroll-hint { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-img-slide > * { animation: none !important; }
  .hero-img-in, .hero-img-out { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ===== TERMINE ===== */
.termin-row { transition: background .2s, color .2s; }
.termin-row:hover { background: var(--accent); color: #fff; }
.termin-row:hover .row-btn { background: #0e0e10; color: #fff; border-color: #0e0e10; }
.termin-row:hover .row-meta { color: rgba(255,255,255,.85); }
.termin-row:hover .row-divider { border-color: rgba(255,255,255,.3); }

/* ===== NAV DROPDOWNS ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.is-open .nav-dd { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dd,
.nav-item ul[role="menu"] { position: absolute; top: 100%; left: -12px; background: #0e0e10; border: 1px solid var(--line); min-width: 280px; padding: 8px 0; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .18s; z-index: 50; list-style: none; margin: 0; }
/* Since bru#7 point 6 the last two items sit at the right edge of the 1440px wrap: their 280px dropdowns
   open leftwards, a left-aligned one ran 17px (Extras) and 119px (Über uns) past the viewport (job 314868). */
.nav-item:nth-last-child(-n+2) .nav-dd,
.nav-item:nth-last-child(-n+2) ul[role="menu"] { left: auto; right: -12px; }
.nav-dd li { list-style: none; margin: 0; padding: 0; }
.nav-dd a,
.nav-item ul[role="menu"] a { display: block; padding: 10px 18px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .12em; }
.nav-dd a:hover,
.nav-item ul[role="menu"] a:hover { background: var(--accent); color: #fff; }
/* A11y: Toggle visually hidden but keyboard-accessible (hover/focus-within drives the menu visually) */
.nav-dd-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; background: transparent; }
.nav-dd-toggle:focus-visible { position: static; width: auto; height: auto; margin: 0 0 0 2px; padding: 4px 6px; clip: auto; overflow: visible; color: inherit; cursor: pointer; font: inherit; opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== REPERTOIRE CARDS ===== */
.rep-card { display: flex; flex-direction: column; }
/* Media wrapper enforces 4:5 frame regardless of image intrinsic size */
.rep-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 16px;
    background: var(--ink);
}
.rep-card__media > picture,
.rep-card__media > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
/* Image fills the 4:5 frame; !important neutralises HTML width/height attrs that fight object-fit in some browsers */
.rep-card__media img,
.rep-card__media > picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.rep-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mute);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
}
/* Legacy fallback: direct image/picture children (older Repertoire.html partial) */
.rep-card > picture,
.rep-card > img { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.rep-card > picture { height: auto; }
.rep-card > picture img,
.rep-card > img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }

/* ===== TAGS ===== */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid currentColor; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

/* ===== LINKS ===== */
.ulink { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.ulink:hover { color: var(--accent); border-color: var(--accent); }
.ft-link { font-size: 14px; border-bottom: 0; }

/* ===== COMPONENT VARIANTS ===== */
.btn-redblock-cta { border-color: #fff; color: #fff; }
.btn-redblock-cta:hover { background: #fff; color: var(--accent); }
.btn-support-primary { background: #0e0e10; border-color: #0e0e10; color: #fff; }
.btn-support-primary:hover { background: var(--ink); color: #0e0e10; }
.btn-support-secondary { border-color: #fff; color: #fff; }
.btn-support-secondary:hover { background: #fff; color: var(--accent); }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn { display: none; }
@media (max-width: 960px) {
  .mobile-menu-btn { display: inline-flex; }
}

/* ===== ABOUT STATS =====
   :where() auf nth-child reduziert Spezifität auf 0,1,1 — Mobile-Overrides
   können dann mit gleicher Spezifität greifen ohne !important. */
.about-stats { border-top: 1px solid var(--line); }
.about-stats > div { padding: 24px; border-bottom: 1px solid var(--line); }
.about-stats > div:where(:not(:nth-child(3n))) { border-right: 1px solid var(--line); }

/* ===== SUPPORT GRID ===== */
/* Migrated to components/support-section.css (Phase 7C-C, 2026-05-05) */

/* ===== RESPONSIVE — TABLET =====
   Mobile-First-Refactor (Phase 7D): !important nur bei kritischen Layout-Switches
   gegen Inline-Styles im Hero-Slider behalten (semi-legitim laut Plan). */
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .desk-nav { display: none; }
  /* Hero: viewport height -> auto, grid overlap -> flex column.
     Mobile-Block steht nach Desktop-Defaults — Spezifität reicht ohne !important.
     Templates enthalten keine Inline-Styles, JS manipuliert nur transform/animation. */
  .hero-viewport { height: auto; }
  .hero-stack { display: flex; flex-direction: column; overflow: visible; }
  .hero-image-col { position: relative; right: auto; bottom: auto; max-width: 100%; max-height: none; width: 100%; order: 1; aspect-ratio: 16/9; overflow: hidden; }
  .hero-image-col .hero-img-slide { position: absolute; inset: 0; }
  .hero-image-col .hero-slide-img { width: 100%; height: 100%; object-fit: cover; }
  .hero-content-col { order: 2; padding-top: 24px; }
  .hero-h1 { font-size: clamp(56px, 14vw, 120px); mix-blend-mode: normal; line-height: var(--display-lh); }
  .hero-meta-row { max-width: 100%; }
  .hero-corner { display: none; }
  .hero-scroll-hint { display: none; }
  /* Red block — moved to components/red-block.css */
  /* Termine */
  .termine-head { grid-template-columns: 1fr; gap: 24px; }
  .termine-head .side-right { text-align: left; }
  .termine-head .side-right p, .termine-head .side-right .btnrow { margin-left: 0; justify-content: flex-start; }
  /* Legacy ticket partial; the Content Block owns its responsive tracks. */
  .row-ticket { grid-template-columns: minmax(0, 1fr) !important; }
  .row-ticket > * { min-width: 0; }
  .row-ticket .tk-mid { padding: 20px; }
  .row-ticket .tk-right { border-left: 0; border-top: 1px dashed rgba(14,14,16,.35); flex-direction: row; align-items: center; }
  /* Repertoire */
  .rep-title { font-size: 28px; }
  :root { --rep-inset: 20px; }
  /* Workshops */
  .wk-grid { grid-template-columns: 1fr; gap: 40px; }
  .wk-h2 { font-size: 64px; }
  .wk-row { grid-template-columns: 1fr auto; gap: 12px; }
  .wk-row .display { font-size: 24px; }
  /* Press */
  .press-grid { grid-template-columns: 1fr; gap: 28px; }
  .press-grid .display { font-size: 24px; }
  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 20px; }
  .about-grid .sticky { position: static; }
  /* About-Stats: Mobile-Tablet-Layout 2-spaltig.
     Spezifität reicht jetzt — Desktop nutzt :where() (0,1,1 vs. 0,1,1+later wins). */
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stats > div { border-right: 1px solid var(--line); }
  .about-stats > div:nth-child(2n) { border-right: none; }
  /* Support — moved to components/support-section.css */
  /* Footer */
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  /* Ticker */
  .ticker { font-size: 24px; gap: 24px; }
}

/* ===== RESPONSIVE — PHONE =====
   Mobile-First-Refactor (Phase 7D): !important nur noch bei Hero-Image-Col
   (Hero-Slider JS-Inline-Style-Konflikt) und About-Stats-Border. */
@media (max-width: 600px) {
  :root { --hero-offset: 90px; }
  .wrap { padding: 0 16px; }
  .hdr { height: 64px; padding: 0 16px; }
  .hdr .logo-img { height: 24px; }
  /* Hero phone: full-bleed plakat image */
  .hero-image-col { margin: 0 -16px; width: calc(100% + 32px); aspect-ratio: 4/5; }
  .hero-meta-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-h1 { font-size: clamp(48px, 16vw, 92px); }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  /* Red block — moved to components/red-block.css */
  /* Termine */
  .termine-head h2 { font-size: 52px; }
  .meta-strip { display: none; }
  .row-ticket .tk-left { padding: 20px; }
  .row-ticket .tk-mid .display { font-size: 28px; }
  .tk-left .num { font-size: 48px; }
  /* Repertoire */
  .rep-head { flex-direction: column; align-items: flex-start; }
  .rep-h2 { font-size: 64px; }
  :root { --rep-inset: 16px; }
  .rep-nav .btn, .hero-slider__nav .btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .rep-scroll-wrap::before, .rep-scroll-wrap::after { width: 80px; }
  /* Workshops */
  .wk-h2 { font-size: 52px; }
  /* About */
  .about-grid h2 { font-size: 64px; }
  /* About-Stats: einspaltig, keine vertikalen Borders. */
  .about-stats { grid-template-columns: 1fr; }
  .about-stats > div { border-right: none; }
  .about-stats > div:last-child { border-bottom: none; }
  /* Support — moved to components/support-section.css */
  /* Footer */
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Press */
  .press-grid .display { font-size: 22px; line-height: 1.15; }
  /* Ticker */
  .ticker { font-size: 20px; }
  .sec-pad { padding-top: 48px; padding-bottom: 48px; }
}

/* Responsive sweep E: allow long display headlines to break only on phones.
   The 430px+ typography/layout remains untouched. */
@media (max-width: 429px) {
  h1.display,
  h2.display,
  h3.display {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  h1.display > span,
  h2.display > span,
  h3.display > span {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* ===== NEW CONTENT BLOCKS (2026-04) ===== */

/* --- Text Media Section --- */
.text-media-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.text-media-grid .display,
.about-grid .display {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .text-media-grid { grid-template-columns: 1fr; gap: 40px; }
  .text-media-grid .sticky { position: static; container-type: normal; }
}

/* --- Production Hero --- */
.production-hero { position: relative; overflow: hidden; }
.production-hero-wrap { display: grid; grid-template-columns: 1fr 40%; gap: 48px; align-items: end; }
.production-hero-image { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; }
@media (max-width: 960px) {
  .production-hero-wrap { grid-template-columns: 1fr; min-height: auto; }
  .production-hero-image { max-height: 400px; overflow: hidden; order: -1; }
  .production-hero { min-height: auto; }
}
@media (max-width: 600px) {
  .production-hero-wrap { padding: 40px 16px 32px; gap: 24px; }
  .production-hero-image { max-height: 300px; }
}

/* --- Gallery Section --- moved to components/gallery-section.css */

/* --- Person Grid --- */
.persongrid-grid { display: grid; gap: 24px; }
.persongrid-compact { display: grid; gap: 16px; }
@media (max-width: 960px) {
  .persongrid-grid, .persongrid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .persongrid-grid, .persongrid-compact { grid-template-columns: 1fr; }
}

/* --- Person Detail --- */
.persondetail-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.persondetail-layout a.display:hover { color: var(--accent); }
@media (max-width: 960px) {
  .persondetail-layout { grid-template-columns: 1fr; gap: 40px; }
  .persondetail-sticky { position: static; }
}

/* --- Logo Grid --- moved to components/logo-grid.css */

/* --- Credits Section --- */
.credit-row { display: grid; grid-template-columns: 40px 200px 1fr; border-top: 1px solid var(--line); padding: 20px 0; align-items: baseline; }
@media (max-width: 960px) {
  .credit-row { grid-template-columns: 40px 1fr; }
  .credit-row > span:nth-child(2) { grid-column: 2; margin-bottom: 4px; }
  .credit-row > span:nth-child(3) { grid-column: 2; }
}
@media (max-width: 600px) {
  .credit-row > span:nth-child(3) { font-size: 20px; }
}

/* --- Category Links --- */
.catlinks-card:hover .catlinks-card-img { transform: scale(1.03); }
.catlinks-tile { transition: background .25s, color .25s; }
.catlinks-tile:hover { background: var(--ink); color: var(--bg); }
.catlinks-tile:hover p { color: rgba(14, 14, 16, .7); }
.catlinks-numrow:hover { color: var(--accent); }
@media (max-width: 960px) {
  .catlinks-cards, .catlinks-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .catlinks-cards, .catlinks-tiles { grid-template-columns: 1fr; }
}

/* --- Person Grid Hover --- */
.persongrid-grid a img { transition: transform .4s ease; }
.persongrid-grid a:hover img { transform: scale(1.03); }
.persongrid-grid a:hover .display { color: var(--accent); transition: color .2s; }

/* --- Team Layout (page-children-section) --- */
.team-row:hover .display { color: var(--accent); }
@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* --- Pricing Section --- moved to components/pricing-section.css */

/* ===== TX_FORM — GLOBAL STYLING ===== */

/* --- Form Frame: Wrap & Spacing --- */
.frame-type-form_formframework {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
  scroll-margin-top: 120px;
}
/* The membership section and the form after it, each in its FSC frame (ENT-6007). */
.frame-type-bruchwerk_membershipform + .frame-type-form_formframework { padding-top: 0; }

/* --- Form Container --- */
.frame-type-form_formframework form { max-width: 720px; }
.frame-type-form_formframework .form-group { margin-bottom: 28px; }

/* --- Page Title (sr-only when single-page) --- */
.frame-type-form_formframework form > h2 {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* --- Intro + Note text --- */
.frame-type-form_formframework .form-intro-text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bone);
  max-width: 580px;
  margin-bottom: 48px;
}
.frame-type-form_formframework .form-note {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
  font-style: italic;
  margin-top: -8px;
}

/* --- Labels --- */
.frame-type-form_formframework .form-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
  transition: color .25s;
}
.frame-type-form_formframework .form-group:focus-within .form-label { color: var(--ink); }
.frame-type-form_formframework .form-label .required { color: var(--accent); margin-left: 2px; }

/* --- Inputs: each field a light grey box, surface --line, 1px frame --field-edge (Milan's wish 57955f98,
   Picard's decision on plan ENT-5951 point 6, variant A, ENT-6233). Checkboxes and radios keep their own look. --- */
.frame-type-form_formframework .form-control,
.frame-type-form_formframework input[type="text"],
.frame-type-form_formframework input[type="email"],
.frame-type-form_formframework input[type="tel"],
.frame-type-form_formframework input[type="number"],
.frame-type-form_formframework input[type="url"],
.frame-type-form_formframework input[type="date"],
.frame-type-form_formframework textarea,
.frame-type-form_formframework select {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--line);
  border: 1px solid var(--field-edge);
  border-radius: 0;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
/* Focus without a visible focus, as a select after a click: the accent border marks the field. */
.frame-type-form_formframework .form-control:focus:not(:focus-visible),
.frame-type-form_formframework input:focus:not(:focus-visible),
.frame-type-form_formframework textarea:focus:not(:focus-visible),
.frame-type-form_formframework select:focus:not(:focus-visible) {
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 0 var(--accent);
}
/* The field being typed in: one 2px magenta frame, the same in every form of the site, footer newsletter and
   sign-in included; no second accent line inside it (Milan's wish baa81deb, ENT-6232). An invalid field keeps
   its neon frame from the error states below. */
.frame-type-form_formframework .form-control:focus-visible,
.frame-type-form_formframework input:focus-visible,
.frame-type-form_formframework textarea:focus-visible,
.frame-type-form_formframework select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.frame-type-form_formframework .form-control::placeholder,
.frame-type-form_formframework input::placeholder,
.frame-type-form_formframework textarea::placeholder {
  color: var(--mute);
  opacity: .5;
  font-style: italic;
  font-size: 14px;
}
.frame-type-form_formframework textarea { resize: vertical; min-height: 120px; }
.frame-type-form_formframework textarea:focus:not(:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* --- Select custom arrow --- */
.frame-type-form_formframework select {
  padding: 14px 44px 14px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a867c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.frame-type-form_formframework select:focus:not(:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.frame-type-form_formframework select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e31c60' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* --- Number spinner remove --- */
.frame-type-form_formframework input[type="number"]::-webkit-inner-spin-button,
.frame-type-form_formframework input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.frame-type-form_formframework input[type="number"] { -moz-appearance: textfield; }

/* --- Autofill fix --- */
.frame-type-form_formframework .form-control:-webkit-autofill,
.frame-type-form_formframework .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--line) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- Selection color --- */
.frame-type-form_formframework ::selection { background: var(--accent); color: var(--ink); }

/* --- PLZ + Stadt nebeneinander --- */
.frame-type-form_formframework .form-group:has(.form-field-zip) { display: inline-block; width: calc(35% - 8px); margin-right: 16px; vertical-align: top; }
.frame-type-form_formframework .form-group:has(.form-field-city) { display: inline-block; width: calc(65% - 8px); vertical-align: top; }
/* --- Vorname + Nachname nebeneinander --- */
.frame-type-form_formframework .form-group:has(.form-field-firstname) { display: inline-block; width: calc(50% - 8px); margin-right: 16px; vertical-align: top; }
.frame-type-form_formframework .form-group:has(.form-field-lastname) { display: inline-block; width: calc(50% - 8px); vertical-align: top; }

/* --- Checkboxes --- */
.frame-type-form_formframework .form-check { position: relative; margin-bottom: 16px; }
.frame-type-form_formframework .form-check input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.frame-type-form_formframework .form-check-label {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5;
  color: var(--bone); cursor: pointer;
}
.frame-type-form_formframework .form-check-label .required { color: var(--accent); margin-left: 2px; }
.frame-type-form_formframework .form-check-label span { flex: 1; }
/* Custom checkbox via ::before */
.frame-type-form_formframework .form-check-label::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px;
  border: 1px solid var(--line); display: block; margin-top: 1px;
  transition: border-color .2s, background .2s;
}
.frame-type-form_formframework .form-check-label:hover::before { border-color: var(--accent); }
.frame-type-form_formframework .form-check:has(input:checked) .form-check-label::before {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%23fff' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.frame-type-form_formframework .form-check:has(input:focus-visible) .form-check-label::before {
  border-color: var(--accent); box-shadow: 0 0 0 2px rgba(227,28,96,.25);
}

/* --- RadioButtons (default) --- */
.frame-type-form_formframework .inputs-list { margin: 0; padding: 0; }
.frame-type-form_formframework .inputs-list > .form-group { margin-bottom: 0; }
.frame-type-form_formframework .inputs-list .form-check { margin-bottom: 0; }
.frame-type-form_formframework .form-check input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

/* --- Card-Selection: Mitgliedschaft (2 cards side by side) --- */
.form-card-select .inputs-list > .form-group {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 0;
}
.form-card-select .form-check {
  padding: 28px 24px; border: 2px solid var(--line);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.form-card-select .form-check:hover { border-color: var(--bone); }
.form-card-select .form-check:has(input:checked) {
  border-color: var(--accent); background: rgba(227,28,96,.06);
}
.form-card-select .form-check:has(input:focus-visible) {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
/* Custom check indicator */
.form-card-select .form-check-label::before {
  width: 22px; height: 22px; border-width: 2px; margin-bottom: 8px; border-radius: 50%;
}
.form-card-select .form-check:has(input:checked) .form-check-label::before {
  background: var(--accent); border-color: var(--accent);
  background-image: none;
  box-shadow: inset 0 0 0 3px #fff;
}
.form-card-select .form-check-label {
  flex-direction: column; gap: 4px; font-size: 14px;
}
/* Hide radio-group label */
.form-card-select > .form-label,
.input.form-card-select > .form-label,
.form-group:has(> .input.form-card-select) > .form-label { display: none; }

/* --- Payment Options (stacked rows) --- */
.form-payment-options .inputs-list > .form-group { margin-bottom: 0; }
.form-payment-options .form-check {
  padding: 18px 20px 18px 52px; border: 1px solid var(--line);
  margin-bottom: -1px; cursor: pointer; transition: border-color .2s, background .2s;
}
.form-payment-options .form-check:hover { border-color: var(--bone); z-index: 1; }
.form-payment-options .form-check:has(input:checked) {
  border-color: var(--accent); background: rgba(227,28,96,.06); z-index: 2;
}
/* Custom radio circle */
.form-payment-options .form-check-label::before {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border-width: 2px; margin: 0;
}
.form-payment-options .form-check:has(input:checked) .form-check-label::before {
  background: var(--accent); border-color: var(--accent); border-width: 2px;
  background-image: none;
  box-shadow: inset 0 0 0 3px #fff;
}
/* Hide the "Zahlungsmethode" label */
.form-payment-options > .form-label,
.input.form-payment-options > .form-label { display: none; }

/* --- Fieldsets & Legends --- */
.frame-type-form_formframework fieldset.form-group {
  border: none; padding: 0; margin: 0 0 56px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.frame-type-form_formframework fieldset.form-group:first-of-type { border-top: none; padding-top: 0; }
.frame-type-form_formframework legend {
  font-family: 'Oswald', Impact, sans-serif; font-weight: 400;
  font-size: clamp(18px, 2.5vw, 24px); letter-spacing: .04em;
  text-transform: uppercase; line-height: var(--display-lh); color: var(--ink);
  border: none; border-left: 3px solid var(--accent); padding: 0 0 0 12px;
  margin-bottom: 32px; width: 100%;
}
.frame-type-form_formframework .form-section-consent { margin-top: 40px; }
.frame-type-form_formframework .form-section-consent > legend { display: none; }
.frame-type-form_formframework .form-section-consent {
  background: rgba(255,255,255,.02); padding: 28px 24px !important;
  border-left: 2px solid var(--accent) !important;
}

/* --- Error States --- */
.frame-type-form_formframework .has-error .form-control,
.frame-type-form_formframework input[aria-invalid="true"],
.frame-type-form_formframework textarea[aria-invalid="true"],
.frame-type-form_formframework select[aria-invalid="true"] {
  border-bottom-color: var(--neon); box-shadow: 0 2px 0 0 var(--neon);
  outline-color: var(--neon);
}
.frame-type-form_formframework .error.form-text,
.frame-type-form_formframework .form-error {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .06em; color: var(--neon); margin-top: 8px;
}
.frame-type-form_formframework .form-error[role="alert"] { font-weight: 600; }
.frame-type-form_formframework .form-description {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5;
  color: var(--mute); margin-top: 6px;
}

/* --- Submit Button: full-width, theatral --- */
.frame-type-form_formframework .form-navigation {
  margin-top: 48px; border-top: 1px solid var(--line); padding-top: 40px;
}
.frame-type-form_formframework .btn-toolbar,
.frame-type-form_formframework .btn-group { display: block; }
.frame-type-form_formframework .btn-group.next.submit { display: block; }
.frame-type-form_formframework .btn-primary {
  display: block; width: 100%; padding: 20px 32px;
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; text-align: center;
  color: var(--ink); background: var(--accent); border: none; border-radius: 0;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .3s, letter-spacing .3s, transform .15s;
}
.frame-type-form_formframework .btn-primary:hover {
  background: #f02870; letter-spacing: .28em;
}
.frame-type-form_formframework .btn-primary:active {
  transform: translateY(2px); background: #c41650;
}
.frame-type-form_formframework .btn-primary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
/* Scan-line effect */
.frame-type-form_formframework .btn-primary::after {
  content: ''; position: absolute; top: 50%; left: -100%;
  width: 100%; height: 1px; background: var(--ink); opacity: 0;
}
.frame-type-form_formframework .btn-primary:hover::after {
  animation: btn-scan .6s ease-out .1s;
}
@keyframes btn-scan {
  0% { left: -100%; opacity: .4; }
  50% { opacity: .4; }
  100% { left: 100%; opacity: 0; }
}

/* --- Honeypot --- */
.frame-type-form_formframework input[aria-hidden="true"] { position: absolute; left: -9999px; }

/* --- Conditional Fields --- */
.form-conditional { overflow: hidden; transition: max-height .4s cubic-bezier(.2,.75,.18,1), opacity .3s, margin .3s; }
.form-conditional.is-hidden { max-height: 0 !important; opacity: 0; margin: 0; pointer-events: none; }

/* --- File Upload --- */
.frame-type-form_formframework input[type="file"] {
  padding: 12px 16px; border: 1px dashed var(--line); cursor: pointer;
}

/* --- TX_FORM Responsive — Tablet --- */
@media (max-width: 960px) {
  .form-card-select .inputs-list > .form-group { grid-template-columns: 1fr; }
  .frame-type-form_formframework { padding-left: 20px; padding-right: 20px; }
}
/* --- TX_FORM Responsive — Phone --- */
@media (max-width: 600px) {
  .frame-type-form_formframework { padding-left: 16px; padding-right: 16px; }
  .frame-type-form_formframework .form-group:has(.form-field-zip),
  .frame-type-form_formframework .form-group:has(.form-field-city),
  .frame-type-form_formframework .form-group:has(.form-field-firstname),
  .frame-type-form_formframework .form-group:has(.form-field-lastname) {
    display: block; width: 100%; margin-right: 0;
  }
  .frame-type-form_formframework fieldset.form-group { margin-bottom: 40px; padding-top: 24px; }
  .frame-type-form_formframework legend { font-size: 18px; margin-bottom: 24px; }
  .frame-type-form_formframework .btn-primary { padding: 18px 24px; font-size: 12px; letter-spacing: .15em; }
  .frame-type-form_formframework .form-section-consent { padding: 20px 16px !important; }
  .form-card-select .form-check { padding: 20px 16px; }
  .form-payment-options .form-check { padding: 14px 16px 14px 48px; }
}

/* === Accessibility: visually-hidden helper for off-screen but readable text === */
.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;
}
