/* neuro.io arena: Stylesheet. Werte in tokens.css */

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--color-text); background: var(--color-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.6em; font-family: var(--font); color: var(--color-heading); text-transform: uppercase; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
h4 { margin-top: 1.8em; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--color-muted); }
p, ul, ol, dl, table { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
ul { padding: 0; }
main li { margin: 0 0 0.35em 1.1em; list-style-type: square; }
main li::marker { color: var(--color-muted); }
a { color: var(--color-link); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--color-link); outline-offset: 3px; }
strong { font-weight: 700; color: var(--color-heading); }
address { font-style: normal; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--color-white); color: var(--color-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { display: inline-block; flex: none; width: 1em; height: 1em; fill: currentColor; }

/* Raster */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.grid { display: grid; gap: 40px 48px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack > * + * { margin-top: 24px; }
@media (max-width: 800px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 500; height: var(--header-h); background: var(--color-black); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.brand { display: block; }
.brand img { width: auto; height: 26px; }
.nav-toggle { display: none; align-items: center; gap: 8px; padding: 8px 0 8px 12px; border: 0; background: none; color: var(--color-white); font: 700 13px/1 var(--font); letter-spacing: var(--tracking-caps); text-transform: uppercase; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav__list { display: flex; gap: 4px; height: var(--header-h); margin: 0; padding: 0; list-style: none; }
.nav__list > li { position: relative; display: flex; margin: 0; }
.nav__link { display: flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--color-on-dark); font-size: 15px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__list > li:hover > .nav__link { color: var(--color-white); text-decoration: none; }
.nav__link .icon { width: 14px; height: 14px; color: var(--color-white); }
.nav__list > li:last-child .nav__link { padding-right: 0; }
.nav__sub { position: absolute; top: var(--header-h); left: -8px; min-width: 250px; margin: 0; padding: 0; list-style: none; background: var(--color-black); box-shadow: 0 18px 40px rgb(0 0 0 / 0.4); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s; }
.nav__list > li:last-child .nav__sub { left: auto; right: -24px; }
.nav__list > li:last-child .nav__sub a { text-align: left; }
.nav__sub.is-open, .nav__list > li:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub li { margin: 0; list-style: none; }
.nav__sub li + li { border-top: 1px solid rgb(255 255 255 / 0.1); }
.nav__sub a { display: block; padding: 7px 24px; color: rgb(255 255 255 / 0.68); font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; transition: color 0.15s, background-color 0.15s; }
.nav__sub a:hover { color: var(--color-white); background: rgb(255 255 255 / 0.07); text-decoration: none; }
.nav__sub a[aria-current="page"] { color: var(--color-white); font-weight: 600; }

@media (max-width: 800px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 40px; background: var(--color-black); display: none; }
  .nav.is-open { display: block; }
  .nav__list { display: block; height: auto; }
  .nav__list > li { display: block; border-top: 1px solid rgb(255 255 255 / 0.1); }
  .nav__link { height: 56px; padding: 0 var(--gutter); font-size: 15px; color: var(--color-white); }
  .nav__list > li:last-child .nav__link { padding-right: var(--gutter); }
  .nav__link .icon--down { display: none; }
  .nav__sub { position: static; min-width: 0; padding: 0 0 14px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { padding: 9px var(--gutter); font-size: 16px; }
}

/* Bildflächen */
.hero, .page-head { position: relative; isolation: isolate; background: var(--color-ink); }
.hero__media, .page-head__media { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* Unterseiten: Bildstreifen, darunter Titelbalken */
.page-head { padding-top: 200px; }
.page-head--tall { padding-top: clamp(260px, 36vw, 500px); }
.page-head__media { bottom: auto; height: 200px; }
.page-head--tall .page-head__media { height: clamp(260px, 36vw, 500px); }
.page-head .container { width: 100%; max-width: none; padding: 30px var(--gutter) 28px; background: var(--color-ink); }
.page-head h1 { margin: 0; color: var(--color-white); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: 0.02em; text-align: center; }

/* Bereichsseiten: großes Bild mit Intro, Kacheln und Boxen */
.hero { padding: 56px 0 64px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(21 18 17 / 0.45) 0%, rgb(21 18 17 / 0) 38%, rgb(21 18 17 / 0) 62%, rgb(21 18 17 / 0.4) 100%); pointer-events: none; }
.hero--home { display: flex; align-items: flex-end; min-height: min(86vh, 820px); padding-bottom: 72px; }
.hero--home::after { background: linear-gradient(180deg, rgb(21 18 17 / 0) 45%, rgb(21 18 17 / 0.55) 100%); }
.hero--home > .container { width: min(100% - 2 * var(--gutter), var(--container)); }
.hero__slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide--center { object-position: center; }
.hero__slide--top { object-position: 50% 15%; }
.hero__slide--gala { object-position: 58% 50%; }
.hero__slide--upper { object-position: 50% 0; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 6px; }
.hero__dots button { position: relative; width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgb(255 255 255 / 0.35); transition: background-color 0.3s; }
.hero__dots button.is-active::before, .hero__dots button:hover::before { background: var(--color-white); }
.hero__intro { max-width: var(--tiles); margin: 0 auto 36px; text-align: center; }
.hero__intro h1 { margin: 0 0 10px; color: var(--color-white); font-size: clamp(34px, 5vw, 58px); letter-spacing: 0.01em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); }
.hero__intro p { margin: 0; color: var(--color-white); font-size: clamp(18px, 2vw, 24px); line-height: 1.4; text-shadow: 0 1px 20px rgb(0 0 0 / 0.45); }

.teasers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; max-width: var(--tiles); margin: 0 auto; }
.teaserbox { margin: 0; padding: 26px 28px 28px; background: rgb(0 0 0 / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--color-on-dark); font-size: 16px; line-height: 1.55; }
.teaserbox h2, .teaserbox h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--color-white); font-size: 13px; letter-spacing: 0.12em; }
.teaserbox h2 .icon, .teaserbox h3 .icon { width: 20px; height: 20px; color: var(--color-link-dark); }
.teaserbox p, .teaserbox li { margin: 0 0 10px; color: var(--color-on-dark); }
.teaserbox strong { color: var(--color-white); }
.teaserbox a { color: var(--color-link-dark); }
.teaserbox__big { margin-bottom: 6px !important; color: var(--color-white) !important; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2 !important; }
.teaserbox__links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 0 !important; }
.teaserbox__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-white); font-size: 13px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.teaserbox__links a .icon { width: 15px; height: 15px; color: var(--color-link-dark); transition: transform 0.18s var(--ease); }
.teaserbox__links a:hover { text-decoration: none; color: var(--color-link-dark); }
.teaserbox__links a:hover .icon { transform: translateX(3px); }
.teaserbox--blue li { margin: 0 0 8px 1.1em; color: var(--color-on-dark); }
.teaserbox--blue li::marker { color: var(--color-link-dark); }

@media (max-width: 800px) {
  .hero { padding: 40px 0 44px; }
  .hero--home { min-height: 0; padding-top: 42vw; padding-bottom: 44px; }
  .hero__dots { bottom: 10px; }
  .teasers { grid-auto-flow: row; gap: 8px; }
}

/* Startseite: drei kurze Hinweise unter den Kacheln */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: var(--tiles); margin: 12px auto 0; padding: 0; list-style: none; }
.quick--solo { margin-top: 0; }
.quick li { margin: 0; list-style: none; }
.quick a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 18px 14px 20px; background: rgb(0 0 0 / 0.6); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); color: var(--color-white); transition: background-color 0.18s var(--ease); }
.quick a:hover { background: rgb(0 0 0 / 0.86); text-decoration: none; }
.quick .icon { width: 22px; height: 22px; color: var(--color-on-dark); }
.quick__text { flex: 1; min-width: 0; }
.quick__label { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-on-dark-muted); }
.quick__value { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--color-white); }
.quick .icon--go { width: 16px; height: 16px; color: var(--color-on-dark-muted); transition: transform 0.18s var(--ease), color 0.18s; }
.quick a:hover .icon--go { transform: translateX(3px); color: var(--color-white); }
@media (max-width: 800px) { .quick { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; } }

/* Inhaltsbereiche */
.section { padding: 56px 0 64px; }
.section:not(.section--mist):not(.section--dark) + .section:not(.section--mist) { padding-top: 0; }
.section--mist { background: var(--color-paper); }
.section--mist + .section { padding-top: 56px; }
.section--dark { position: relative; padding: 30px var(--gutter) 28px; background: var(--color-ink); }
.section--dark h2 { margin: 0; color: var(--color-white); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: 0.02em; text-align: center; }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 19px; color: var(--color-text); }
.muted { font-size: 14px; color: var(--color-muted); }
.card { margin: 0; padding: 32px 32px 24px; background: var(--color-paper); }
.card > h3:first-child { font-size: 22px; }
.section--mist .card, .section--mist .grid > .table-wrap { background: var(--color-white); }
.grid > .table-wrap { margin: 0; padding: 28px 32px 24px; background: var(--color-paper); }
.grid > .table-wrap .data caption { margin-bottom: 16px; color: var(--color-heading); font-size: 22px; letter-spacing: 0.02em; }
.card .data tbody tr:nth-child(even), .grid > .table-wrap .data tbody tr:nth-child(even) { background: rgb(255 255 255 / 0.6); }
.section--mist .card .data tbody tr:nth-child(even), .section--mist .grid > .table-wrap .data tbody tr:nth-child(even) { background: var(--color-paper); }
.card .data th, .card .data td, .grid > .table-wrap .data th, .grid > .table-wrap .data td { border-color: rgb(0 0 0 / 0.08); }
.grid:has(> .card), .grid:has(> .table-wrap) { gap: 24px; }
.grid > .table-wrap .data td:nth-child(n+2) { width: 1%; white-space: nowrap; }
@media (max-width: 800px) { .card, .grid > .table-wrap { padding: 24px 20px 16px; } }
.card__link { margin-top: 0; }
.prose { max-width: 760px; }
.note { padding: 14px 18px; background: var(--color-paper); }
.card .note, .course .note { background: var(--color-white); }
.note > :last-child { margin-bottom: 0; }
.facts dt { font-weight: 700; color: var(--color-heading); }
.facts dd { margin: 0 0 14px; }
.center { text-align: center; }

/* Einstieg mit großem Foto */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.intro__text > :last-child { margin-bottom: 0; }
.intro__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-paper); cursor: zoom-in; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.6s var(--ease); }
.intro__media:hover img { transform: scale(1.03); }
.intro__contact { font-size: 15px; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; padding: 0; }
.chips li { margin: 0; padding: 7px 14px; list-style: none; background: var(--color-paper); color: var(--color-heading); font-size: 14px; font-weight: 600; }

/* Ansprechperson als schwarze Fläche */
.contact-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px 40px; background: var(--color-black); color: var(--color-white); }
.contact-cta p { margin: 0; }
.contact-cta__label { margin-bottom: 6px !important; color: var(--color-on-dark-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-cta__name { color: var(--color-white); font-size: 28px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.contact-cta__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.contact-cta__links li { margin: 0; list-style: none; }
.contact-cta__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 16px 30px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); color: var(--color-white); font-size: 16px; font-weight: 600; transition: background-color 0.15s, color 0.15s; }
.contact-cta__links a:hover { background: var(--color-white); color: var(--color-black); text-decoration: none; }
.contact-cta__links .icon { width: 20px; height: 20px; }
@media (max-width: 800px) {
  .contact-cta { padding: 28px 22px; }
  .contact-cta__links, .contact-cta__links li, .contact-cta__links a { width: 100%; }
}

/* Anfahrt: Inhalte links, Plan rechts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card > h2:first-child { font-size: 22px; }
.stack > .card + .card { margin-top: 16px; }
.plan { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; padding: 24px; background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-line); }
.plan a { display: block; cursor: zoom-in; }
.plan img { width: 100%; }
.plan figcaption { margin-top: 12px; color: var(--color-muted); font-size: 14px; text-align: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .plan { position: static; padding: 12px; } }

/* Rechtliches: Inhaltsverzeichnis links, Text rechts */
.legal { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 24px; background: var(--color-paper); font-size: 14px; line-height: 1.4; }
.legal__toc-title { margin: 0 0 12px; color: var(--color-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.legal__toc ul { margin: 0; padding: 0; }
.legal__toc li { margin: 0; list-style: none; }
.legal__toc a { display: block; padding: 5px 0; color: var(--color-text); }
.legal__toc a:hover { color: var(--color-link); text-decoration: none; }
.legal__body h2 { margin-top: 44px; font-size: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body > :first-child { margin-top: 0; }
.legal-cards { margin: 32px 0 56px; }
.legal-cards .card > h2:first-child { font-size: 18px; }
.legal-cards .card p:last-child { margin-bottom: 0; }
.legal-note h2 { font-size: 22px; }
.legal-list { max-width: 760px; }
.legal-list .table-wrap { margin: 0; }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; gap: 0; } .legal__toc { display: none; } }

/* Kurse nebeneinander */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.course .data--slots, .course .data--slots tbody { display: block; }
.course .data--slots tbody { display: grid; gap: 6px; }
.course .data--slots tr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--color-white) !important; }
.course .data--slots th, .course .data--slots td { flex: none; width: auto !important; padding: 0; border: 0 !important; white-space: nowrap; }
.course .data--slots th { color: var(--color-heading); font-size: 15px; font-weight: 700; }
.course .data--slots td { color: var(--color-heading); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dates { margin: 0 0 14px; }
.dates__day { margin: 0 0 8px !important; color: var(--color-heading); font-size: 15px; font-weight: 700; }
.dates__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; }
.dates__list li { margin: 0; padding: 9px 4px; list-style: none; background: var(--color-white); color: var(--color-heading); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.course__meta { margin: -6px 0 18px; color: var(--color-muted); font-size: 16px; }
@media (max-width: 1100px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.course { padding: 32px 30px 24px; background: var(--color-paper); }
.course h3 { margin-bottom: 14px; font-size: 24px; }
.course h4:first-of-type { margin-top: 28px; }
.course .data tbody tr:nth-child(even) { background: rgb(255 255 255 / 0.6); }
.course .data th, .course .data td { border-color: rgb(0 0 0 / 0.08); }
.data--slots th, .data--slots td:nth-child(2) { width: 1%; white-space: nowrap; }
.course__sub { margin-top: 28px; padding: 24px 24px 8px; background: var(--color-white); }
.course__sub h4 { margin-top: 0 !important; color: var(--color-heading); font-size: 18px; letter-spacing: 0.04em; }
.course .course__sub .data tbody tr:nth-child(even) { background: var(--color-paper); }
.price { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; }
.price__value { color: var(--color-heading); font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price__note { color: var(--color-muted); font-size: 15px; }

/* Bildmosaik */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; aspect-ratio: 2.4; margin: 0; padding: 0; }
.mosaic li { margin: 0; list-style: none; }
.mosaic li:first-child { grid-row: 1 / span 2; }
.mosaic li:nth-child(4) { grid-column: 2 / span 2; }
.mosaic a { display: block; height: 100%; overflow: hidden; background: var(--color-paper); cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.6s var(--ease); }
.mosaic a:hover img { transform: scale(1.03); }

@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .courses { grid-template-columns: 1fr; }
  .course { padding: 26px 22px 18px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; gap: 6px; }
  .mosaic li:first-child, .mosaic li:nth-child(4) { grid-row: auto; grid-column: 1 / -1; }
  .mosaic a { aspect-ratio: 3 / 2; }
}

/* Bild über die volle Breite zwischen Abschnitten */
.band { height: clamp(240px, 36vw, 520px); background: var(--color-ink); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 30px; background: var(--color-ink); color: var(--color-white); font-size: 15px; font-weight: 700; letter-spacing: var(--tracking-caps); line-height: 1; text-transform: uppercase; border: 0; cursor: pointer; transition: background-color 0.18s var(--ease); }
.btn:hover { background: var(--color-link); color: var(--color-white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 8px; }
.btn-row--start { justify-content: flex-start; margin-top: 24px; }
.btn--accent { background: var(--color-link); }
.btn--accent:hover { background: var(--color-ink); }
.btn .icon { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Tabellen */
.table-wrap { margin-bottom: 28px; overflow-x: auto; }
.data { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data caption { margin: 0 0 10px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-heading); }
.data th, .data td { padding: 11px 14px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; font-weight: 400; line-height: 1.45; }
.data tbody tr:first-child th, .data tbody tr:first-child td { border-top: 1px solid var(--color-line); }
.data th[scope="row"] { font-weight: 700; color: var(--color-heading); }
.data thead th { padding-top: 0; border-bottom-color: var(--color-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.data tbody tr:nth-child(even) { background: var(--color-paper); }
.data td.num, .data th.num { width: 1%; white-space: nowrap; text-align: right; font-weight: 700; color: var(--color-heading); }

/* Galerien */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 40px 0 8px; padding: 0; }
.grid > .gallery, .grid > div > .gallery:first-child { margin-top: 0; }
.gallery--small { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin: 0; }
.gallery li { margin: 0; list-style: none; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--color-paper); cursor: zoom-in; }
.gallery--small a { aspect-ratio: 1; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery img.is-center { object-position: 50% 50%; }
/* Galerien als Mosaik: erstes Bild groß, ab fünf Bildern */
.gallery:not(.gallery--small) { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-flow: dense; }
.gallery:not(.gallery--small):has(> li:nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery:not(.gallery--small):has(> li:nth-child(5)) > li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery:not(.gallery--small):has(> li:nth-child(5)) > li:first-child a { height: 100%; aspect-ratio: auto; }
.grid .gallery:not(.gallery--small) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid .gallery:not(.gallery--small) > li:first-child { grid-column: 1 / -1; grid-row: auto !important; }
.grid .gallery:not(.gallery--small) > li:first-child a { height: auto; aspect-ratio: 3 / 2 !important; }
@media (max-width: 800px) {
  .gallery:not(.gallery--small), .gallery:not(.gallery--small):has(> li:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gallery:not(.gallery--small) > li:first-child { grid-column: 1 / -1; grid-row: auto !important; }
  .gallery:not(.gallery--small) > li:first-child a { height: auto; aspect-ratio: 3 / 2 !important; }
}
.lightbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; background: rgb(10 9 8 / 0.92); cursor: zoom-out; animation: fade-in 0.2s var(--ease); }
.lightbox img { max-width: 100%; max-height: 88vh; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: var(--color-white); font-size: 34px; line-height: 1; cursor: pointer; opacity: 0.8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__close .icon { width: 26px; height: 26px; margin: auto; }
.lightbox { padding: 64px 88px; }
.lightbox img.is-more { cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: var(--color-white); cursor: pointer; transition: background-color 0.15s; }
.lightbox__nav:hover { background: rgb(255 255 255 / 0.22); }
.lightbox__nav .icon { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { right: 20px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; color: var(--color-on-dark-muted); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; text-align: center; pointer-events: none; }
@media (max-width: 800px) {
  .lightbox { padding: 56px 12px 84px; }
  .lightbox__nav { top: auto; bottom: 14px; margin-top: 0; width: 48px; height: 48px; }
  .lightbox__count { bottom: 30px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Referenzen */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; margin: 8px 0 24px; }
.ref { margin: 0; }
.ref__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; padding: 0; }
.ref__photos li { margin: 0; list-style: none; }
.ref__photos li:first-child { grid-column: 1 / -1; }
.ref__photos a { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--color-paper); cursor: zoom-in; }
.ref__photos li:first-child a { aspect-ratio: auto; }
.ref__photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.6s var(--ease); }
.ref__photos li:first-child img { height: auto; }
.ref__photos a:hover img { transform: scale(1.03); }
.ref h3 { margin: 0 0 6px; }
.ref p { margin: 0 0 4px; }
.refs-more li { margin-bottom: 8px; }
@media (max-width: 800px) { .refs { grid-template-columns: 1fr; gap: 44px; } }

/* Video erst nach Klick */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0; background: var(--color-ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video__start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; border: 0; background: var(--color-ink); color: var(--color-white); font: 700 13px/1.4 var(--font); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-align: center; cursor: pointer; }
.video__play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--color-white); transition: transform 0.2s var(--ease); }
.video__start:hover .video__play { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--color-ink); }
.video__hint { max-width: 420px; color: var(--color-on-dark-muted); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Kontakt */
.contact h3 { margin-bottom: 6px; font-size: 13px; letter-spacing: 0.12em; color: var(--color-muted); }
.contact .name { margin-bottom: 2px; font-size: 19px; font-weight: 700; color: var(--color-heading); }

/* Footer */
.site-footer { padding: 64px 0 0; background: var(--color-black); color: var(--color-on-dark-muted); font-size: 15px; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.site-footer__brand img { width: auto; height: 26px; margin-bottom: 18px; }
.site-footer__brand p { margin: 0 0 4px; color: var(--color-on-dark-muted); }
.site-footer h2 { margin: 0 0 14px; color: var(--color-white); font-size: 12px; letter-spacing: 0.14em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 7px; list-style: none; }
.site-footer a { color: var(--color-on-dark-muted); }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--color-white); text-decoration: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; width: min(100% - 2 * var(--gutter), var(--container)); margin: 56px auto 0; padding: 22px 0 28px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 13px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__legal li { margin: 0; }
@media (max-width: 800px) {
  .site-footer { padding-top: 48px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Fehlerseite */
.not-found { text-align: center; }

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