/*
Theme Name: MAXiN
Theme URI: https://maxin.ch
Author: MAXINMUSIC
Description: Schlankes Block-Theme für MAXiN – Liveband Schweiz. Ohne Page-Builder, ohne jQuery, Schriften lokal.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: maxin
*/

/* ---------- Fonts (lokal, kein Google-Request) ---------- */
@font-face { font-family: "DM Sans"; src: url(assets/fonts/dmsans.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/dmsans-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "MAXiN Wordmark"; src: url(assets/fonts/maxin-wordmark.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: block; }
@font-face { font-family: "Unbounded"; src: url(assets/fonts/unbounded.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--bg: #151515;          /* Anthrazit wie racerfish.com */
	--bg-rgb: 21, 21, 21;
	--surface: #222222;
	--surface-2: #2a2a2a;
	--line: #333333;
	--text: #fff;
	--muted: #a3a3a3;
	--soft: #d9d9d9;
	--cream: #f4f0ea;
	--wrap: 1080px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hairline: rgba(255,255,255,.14);
	--display: "Unbounded", "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3, h2.mx-h-small, h2.mx-beratung__title { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -0.01em; line-height: 1.25; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* WordPress setzt in Block-Layouts alle Abstände auf 0 – hier gezielt zurück. */
.mx-main p, .mx-main ul, .mx-main figure, .mx-main .wp-block-buttons { margin: 0 0 1em; }
.mx-main h1, .mx-main h2, .mx-main h3 { margin: 0 0 .45em; }
.mx-main * + h2, .mx-main * + h3 { margin-top: 1.5em; }
.mx-main .mx-eyebrow { margin-bottom: 14px; }
.mx-main .mx-eyebrow + :is(h1, h2, h3) { margin-top: 0; }
.mx-main .mx-hero > * { margin-left: 0; margin-right: 0; }
.mx-main .mx-lead { margin-bottom: 0; }
.mx-main :is(.mx-grid, .mx-tiles, .mx-reels, .mx-yt-grid, .mx-chips) { margin-top: 32px; }
.mx-main .mx-card :last-child, .mx-main .wp-block-details > :last-child { margin-bottom: 0; }
.mx-main .wp-block-details p { margin-bottom: 1em; }
.mx-main .mx-grid > .mx-card { margin: 0; }
.mx-main .mx-hero .wp-block-buttons, .mx-main .mx-cta .wp-block-buttons { margin-top: 28px; }
.mx-main .mx-reels + .wp-block-buttons { margin-top: 28px; }

/* ---------- Layout helpers ---------- */
.wrap, .is-layout-constrained > .alignwide { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mx-main > .wp-block-post-content > * { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mx-main > .wp-block-post-content > .alignfull { width: 100%; }
/* Schmale Textseiten (FAQ, Impressum) bündig an derselben linken Kante wie Logo und alle anderen Seiten, nur die Zeilenlänge ist begrenzt */
.mx-main > .wp-block-post-content > .mx-narrow > * { max-width: 680px; }
.mx-section { padding-block: clamp(48px, 7vw, 96px); }
.mx-section--tight { padding-block: clamp(32px, 5vw, 64px); }
.mx-eyebrow { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.mx-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); }
.mx-muted { color: var(--muted); }
.mx-upper { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .mx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); color: #000; border: 1px solid var(--cream); border-radius: 999px; padding: 12px 22px; font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; cursor: pointer; }
.wp-block-button__link:hover, .mx-btn:hover { background: transparent; color: var(--cream); }
.is-style-outline .wp-block-button__link, .mx-btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.4); }
.is-style-outline .wp-block-button__link:hover, .mx-btn--ghost:hover { border-color: var(--text); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.mx-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
.mx-header.is-scrolled, .mx-header:has(.mx-burger[open]) { background: rgba(var(--bg-rgb),.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mx-header:has(.mx-burger[open]) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mx-header__in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.mx-header__left { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.mx-header__left a { text-decoration: none; color: var(--soft); }
.mx-logo { display: inline-flex; color: var(--text); text-decoration: none; }
.mx-logo svg { height: 19px; width: auto; display: block; }
.mx-header__left .mx-logo { margin-right: 10px; }
.mx-social { display: flex; gap: 12px; }
.mx-social a { display: inline-flex; color: var(--text) !important; }
.mx-social svg { width: 18px; height: 18px; }
.mx-nav ul { list-style: none; margin: 0; padding: 0; }
.mx-nav > ul { display: flex; align-items: center; gap: 28px; }
.mx-nav a { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.mx-nav a[aria-current="page"], .mx-nav a:hover { color: var(--muted); }
.mx-nav li { position: relative; }
.mx-nav .mx-has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border: solid currentColor; border-width: 0 1.2px 1.2px 0; transform: translateY(-3px) rotate(45deg); }
.mx-nav .mx-sub { position: absolute; top: 100%; left: -16px; padding: 14px 16px; min-width: 190px; background: rgba(var(--bg-rgb),.97); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.mx-nav .mx-has-sub:hover .mx-sub, .mx-nav .mx-has-sub:focus-within .mx-sub { opacity: 1; visibility: visible; transform: none; }
.mx-nav .mx-has-sub::before { content: ""; position: absolute; inset: 100% -10px auto; height: 14px; }
.mx-header__right { display: flex; align-items: center; gap: 28px; }
.mx-lang { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }
.mx-lang:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 960px) { .mx-header__right { gap: 14px; } }
.mx-burger { display: none; }

@media (max-width: 960px) {
	.mx-header__left .mx-mail { display: none; }
	.mx-logo svg { height: 16px; }
	.mx-nav-desktop { display: none; }
	.mx-burger { display: block; }
	.mx-burger > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
	.mx-burger > summary::-webkit-details-marker { display: none; }
	.mx-burger > summary span, .mx-burger > summary span::before, .mx-burger > summary span::after { display: block; width: 22px; height: 1.5px; background: var(--text); position: relative; transition: .2s; }
	.mx-burger > summary span::before, .mx-burger > summary span::after { content: ""; position: absolute; left: 0; }
	.mx-burger > summary span::before { top: -7px; } .mx-burger > summary span::after { top: 7px; }
	.mx-burger[open] > summary span { background: transparent; }
	.mx-burger[open] > summary span::before { top: 0; transform: rotate(45deg); }
	.mx-burger[open] > summary span::after { top: 0; transform: rotate(-45deg); }
	.mx-mobile { position: fixed; inset: 72px 0 0; background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column; }
	body.admin-bar .mx-mobile { top: 118px; }
}
.mx-mnav { list-style: none; margin: 0; padding: 0; }
.mx-mnav li { border-bottom: 1px solid var(--line); }
.mx-mnav a { display: block; padding: 13px 0; font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.mx-mnav a[aria-current="page"] { color: var(--muted); }
.mx-mnav__cta { margin-top: 24px; align-self: flex-start; }
.mx-mobile__contact { margin: auto 0 0; padding-top: 28px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.mx-mobile__contact a { text-decoration: none; color: var(--soft); }
html:has(.mx-burger[open]) { overflow: hidden; }
body:has(.mx-burger[open]) .mx-wa { display: none; }

body.admin-bar .mx-header { top: 32px; }

/* ---------- Hero (Gruppe mit Hintergrundbild) ---------- */
.wp-block-group.mx-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 clamp(48px, 9vh, 110px); background-color: var(--bg); background-size: cover; background-position: center 30%; isolation: isolate; }
.wp-block-group.mx-hero--page { min-height: 78vh; min-height: 78svh; padding-bottom: 0; }
/* Band-Foto: Köpfe sitzen in der Bildmitte, darum Ausschnitt etwas tiefer als Standard (sonst auf breiten Bildschirmen abgeschnitten) */
.wp-block-group.mx-hero.mx-hero--band { background-position: 50% 42%; }
@media (max-width: 700px) { .wp-block-group.mx-hero.mx-hero--band { background-position: 62% 42%; } }
/* Firmenevent: Bild etwas nach oben, damit das Publikum ganz sichtbar bleibt. */
.page-id-8425 .wp-block-group.mx-hero { background-position: 50% 100%; }
@media (max-width: 700px) { .page-id-8425 .wp-block-group.mx-hero { background-position: 50% 78%; } }
/* Video-Kachel über die ganze Breite statt Titelbild (Unterseiten): Loop läuft von selbst, Klick spielt das ganze Video darin */
.mx-main > .wp-block-post-content > .mx-reels-hero { width: 100%; margin: 0; }
.mx-reels--hero { display: block; margin: 0; }
.mx-main .mx-reels--hero { margin-top: 0; }
.mx-main .mx-reels--hero .mx-reel, .mx-main .mx-reels--hero .mx-reel:nth-child(3n+1) { border-radius: 0; aspect-ratio: 2.4; max-height: 78svh; width: 100%; }
.mx-reels--hero .mx-reel::before { display: none; }
/* Loop läuft von selbst: Titel, Play und Abdunkelung bleiben stehen, bis jemand das ganze Video startet */
.mx-main .mx-reels--hero .mx-reel.is-video:not(.is-active) .mx-reel__txt, .mx-main .mx-reels--hero .mx-reel.is-video:not(.is-active) .mx-play { opacity: 1; }
.mx-main .mx-reels--hero .mx-reel.is-video:not(.is-active)::after { background: rgba(0,0,0,.32); }
.mx-main .mx-reels--hero .mx-reel.is-active::after { opacity: 0; }
.mx-reels--hero .mx-reel__txt { padding-top: 40px; }
@media (max-width: 700px) { .mx-main .mx-reels--hero .mx-reel, .mx-main .mx-reels--hero .mx-reel:nth-child(3n+1) { aspect-ratio: 16 / 9; } .mx-reels--hero .mx-reel__txt { padding-top: 56px; } }
.mx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 45%, rgba(var(--bg-rgb),.72) 80%, var(--bg) 100%); }
.mx-hero--page::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 60%, var(--bg) 100%); }
.wp-block-group.mx-hero { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.mx-hero h1 { max-width: 22em; font-size: clamp(26px, 2.9vw, 36px); line-height: 1.15; text-wrap: balance; }
.mx-hero .mx-lead { max-width: 34em; font-size: 16.5px; color: #c9c9c9; }
.mx-hero .wp-block-buttons { margin-top: 28px; }
@media (max-width: 700px) {
	.wp-block-group.mx-hero { background-position: 62% 30%; }
	.mx-hero:not(.mx-hero--page)::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,.35) 40%, rgba(var(--bg-rgb),.85) 70%, var(--bg) 100%); }
}
.mx-scroll { text-align: center; font-size: 13px; color: var(--muted); margin: 0; padding: 22px 0 0; }

/* ---------- Hero mit Hintergrund-Video ---------- */
.mx-main .mx-hero .mx-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.mx-main .mx-hero .mx-hero__video.is-ready { opacity: 1; }
.mx-main .mx-hero .mx-hero__video--long { z-index: -2; transition: none; } /* nahtloser Wechsel, kein Überblenden nötig */
/* Play-Knopf wie bei racerfish.com: runder Knopf, Text fährt beim Darüberfahren aus */
.mx-main .mx-hero .mx-showreel { margin: 0 0 28px; }
.mx-showreel { display: inline-flex; align-items: center; gap: 0; height: 64px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, border-color .25s; align-self: flex-start; }
.mx-showreel__icon { width: 62px; height: 62px; display: grid; place-items: center; flex: none; }
.mx-showreel__icon::before { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.mx-showreel__label { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; transition: max-width .35s ease, padding .35s ease; }
.mx-showreel:hover, .mx-showreel:focus-visible { background: rgba(0,0,0,.6); border-color: #fff; }
.mx-showreel:hover .mx-showreel__label, .mx-showreel:focus-visible .mx-showreel__label { max-width: 220px; padding-right: 26px; }
@media (hover: none) { .mx-showreel__label { max-width: 220px; padding-right: 24px; } }

/* Video-Player (Vollbild-Ansicht) */
.mx-player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 4vw 40px; background: rgba(var(--bg-rgb),.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity .35s ease; }
.mx-player.is-open { opacity: 1; }
.mx-player__box { width: min(100%, 1400px); transform: scale(.96); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mx-player.is-open .mx-player__box { transform: none; }
.mx-player video { display: block; width: 100%; max-height: 80vh; background: #000; }
.mx-player__frame { position: relative; width: min(100%, calc(80vh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #000; }
.mx-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mx-player__title { margin-top: 14px; font: 500 13px/1.4 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.mx-player__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.mx-player__close:hover { border-color: #fff; }
html:has(.mx-player) { overflow: hidden; }

/* ---------- Cards ---------- */
/* Karten: feine Linien statt Flächen; 1px-Abstand auf Linienfarbe ergibt saubere Haarlinien zwischen den Feldern */
.mx-grid { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: mxcard; }
.mx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.mx-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .mx-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mx-grid--3 { grid-template-columns: 1fr; } }
.mx-card { background: var(--bg); padding: clamp(26px, 3.2vw, 44px); counter-increment: mxcard; }
.mx-grid > .mx-card::before { content: counter(mxcard, decimal-leading-zero); display: block; font: 500 12px/1 var(--font); letter-spacing: .2em; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.mx-card h3 { margin-bottom: .5em; }
.mx-card p:last-child { margin-bottom: 0; }
.mx-card p { color: var(--soft); font-size: 16px; }
.wp-block-group.mx-grid, .wp-block-group.mx-grid--2 { display: grid; }

/* Anlass-Karten mit Bild */
.mx-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mx-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; isolation: isolate; }
.mx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.mx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); z-index: -1; }
.mx-tile:hover img { transform: scale(1.04); }
.mx-tile__txt { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.mx-tile__txt strong { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; font-weight: 600; }
.mx-tile__txt span { font-size: 14.5px; color: var(--soft); }

/* ---------- Video-Kacheln (Startseite / Videos) ---------- */
.mx-reels { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .mx-reels { grid-template-columns: 1fr; } }
.mx-reel { position: relative; aspect-ratio: 1.15; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; isolation: isolate; }
.mx-reel__poster, .mx-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-reel__poster { z-index: 1; transition: opacity .35s ease; }
.mx-reel__video { z-index: 0; display: none; }
.mx-reel::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75)); transition: opacity .35s ease; pointer-events: none; }
.mx-reel__txt { position: absolute; left: 24px; bottom: 22px; z-index: 3; font: 600 18px/1.2 var(--display); letter-spacing: -0.01em; transition: opacity .35s ease; }
.mx-reel__txt small { display: block; font: 400 14px var(--font); color: var(--soft); letter-spacing: 0; }
.mx-reel .mx-play { z-index: 3; transition: opacity .35s ease; }
.mx-reel.is-video .mx-reel__poster, .mx-reel.is-video::after, .mx-reel.is-video .mx-reel__txt, .mx-reel.is-video .mx-play { opacity: 0; }
.mx-reel.is-active .mx-reel__video { cursor: pointer; }
.mx-reel:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.mx-play { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.mx-play::before { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Showcase-Raster (wie racerfish.com): breit · klein klein · breit … eckig, schmale Fugen */
.mx-reels--showcase { grid-template-columns: 1fr 1fr; gap: 8px; }
.mx-reels--showcase .mx-reel { border-radius: 0; aspect-ratio: 1.55; }
.mx-reels--showcase .mx-reel:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 3.1; }
.mx-reels--showcase .mx-play { display: none; }
/* Einzelne Video-Kachel auf Unterseiten: Play-Knopf zeigen, damit man sieht, dass es ein Video ist */
.mx-reels--play .mx-play { display: grid; left: 50%; right: auto; top: auto; bottom: 14%; transform: translateX(-50%); width: 58px; height: 58px; background: rgba(0,0,0,.25); transition: background .2s, opacity .35s ease; }
.mx-reels--play .mx-reel:hover .mx-play { background: rgba(0,0,0,.55); }
.mx-reels--play .mx-reel__txt { padding-bottom: 70px; }
@media (max-width: 760px) { .mx-reels--play .mx-play { width: 48px; height: 48px; bottom: 10%; } .mx-reels--play .mx-reel__txt { padding-bottom: 56px; } }
body .mx-main .mx-section--tight.mx-reels-wrap { padding-top: 0; margin-top: calc(-1 * clamp(24px, 4.5vw, 56px)); }
/* Titel gross & gesperrt in der Mitte, Ort direkt darunter – wie bei racerfish.com */
.mx-reels--showcase .mx-reel__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 20px; font: 500 clamp(15px, 1.6vw, 21px)/1.2 var(--font); letter-spacing: .32em; text-transform: uppercase; text-indent: .32em; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.mx-reels--showcase .mx-reel__txt small { font: 500 13px/1.3 var(--font); letter-spacing: .04em; text-transform: none; text-indent: 0; color: rgba(255,255,255,.85); }
/* Gleichmässige leichte Abdunkelung für bessere Lesbarkeit; beim Abspielen heller */
.mx-reels--showcase .mx-reel::after { background: rgba(0,0,0,.32); transition: background .35s ease, opacity .35s ease; }
.mx-reels--showcase .mx-reel.is-video::after { opacity: 1; background: rgba(0,0,0,.06); }
/* Feine Filmkörnung über Bild und Video (SVG-Rauschen, keine Zusatzdatei) */
.mx-reels--showcase .mx-reel::before { content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	}
@keyframes mx-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(6%, 5%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .mx-reels--showcase .mx-reel::before { animation: none; } }
@media (max-width: 760px) {
	.mx-reels--showcase { grid-template-columns: 1fr; }
	.mx-reels--showcase .mx-reel, .mx-reels--showcase .mx-reel:nth-child(3n+1) { aspect-ratio: 16 / 9; }
}

/* ---------- YouTube (lädt erst beim Klick) ---------- */
.mx-yt-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mx-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--surface) center / cover no-repeat; border-radius: var(--radius); overflow: hidden; cursor: pointer; color: #fff; isolation: isolate; }
.mx-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.7)); z-index: -1; }
.mx-yt .mx-play { right: auto; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(0,0,0,.35); transition: background .2s; }
.mx-yt:hover .mx-play { background: rgba(0,0,0,.6); }
.mx-yt__t { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 14.5px; font-weight: 500; text-align: left; }
.mx-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mx-yt.is-playing::after, .mx-yt.is-playing > :not(iframe) { display: none; }

/* ---------- Video-Dialog ---------- */
.mx-dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); width: 100%; }
.mx-dialog::backdrop { background: rgba(21,21,21,.94); }
.mx-dialog video { width: 100%; max-height: 86vh; background: #000; border-radius: 10px; }
.mx-dialog__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: var(--bg); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Text-Seiten ---------- */
.mx-text { font-size: 18px; line-height: 1.65; color: var(--soft); }
.mx-text h2, .mx-text h3 { color: var(--text); margin-top: 1.6em; }
.mx-headline-upper { text-transform: uppercase; font-size: clamp(28px, 3.4vw, 36px); }
/* Grosse Titel optisch bündig mit Logo und Eyebrow (Unbounded hat links etwas Luft im Buchstaben) */
.mx-main h1 { margin-left: -0.06em; }
.wp-block-image figcaption, .mx-caption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.wp-block-image img { border-radius: var(--radius); }
.alignfull.wp-block-image img { border-radius: 0; }

/* Bild + Text nebeneinander */
.mx-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 800px) { .mx-split { grid-template-columns: 1fr; } }
.wp-block-columns.mx-split { display: grid; }
.wp-block-columns.mx-split > .wp-block-column { width: auto; }

/* FAQ (core/details) */
.wp-block-details { border-top: 1px solid var(--line); padding: 4px 0; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; list-style: none; font: 500 clamp(16px, 1.6vw, 18px)/1.35 var(--display); letter-spacing: -0.01em; padding: 18px 40px 18px 0; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 26px var(--font); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--soft); max-width: 62ch; }

/* Referenzen als Chips */
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.mx-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; color: var(--soft); }

/* Galerie */
.wp-block-gallery.mx-gallery { gap: 10px !important; }
.wp-block-gallery.mx-gallery .wp-block-image img { border-radius: 10px; }
.mx-gallery figure { cursor: zoom-in; }

/* Repertoire */
.mx-rep-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mx-input, .mx-rep-tools input, .mx-rep-tools select { font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 46px; }
.mx-rep-tools input { flex: 1 1 260px; }
.mx-rep-count { font-size: 14px; color: var(--muted); align-self: center; }
.wp-block-table.mx-rep table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.wp-block-table.mx-rep thead { border: 0; }
.wp-block-table.mx-rep th { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table.mx-rep td { padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table.mx-rep td:first-child { color: var(--text); font-weight: 600; }
.wp-block-table.mx-rep td:not(:first-child) { color: var(--muted); }
@media (max-width: 640px) {
	.wp-block-table.mx-rep thead { display: none; }
	.wp-block-table.mx-rep tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.wp-block-table.mx-rep td { border: 0; padding: 0; }
	.wp-block-table.mx-rep td:nth-child(2) { grid-column: 1; font-size: 14px; }
	.wp-block-table.mx-rep td:nth-child(3) { grid-row: 1; grid-column: 2; font-size: 13px; }
	.wp-block-table.mx-rep td:nth-child(4) { grid-column: 2; font-size: 13px; text-align: right; }
}

/* Kontakt */
.mx-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
@media (max-width: 820px) { .mx-contact { grid-template-columns: 1fr; } }
.mx-contact img { border-radius: var(--radius); width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.mx-form { display: grid; gap: 16px; }
.mx-form label { display: grid; gap: 7px; font-size: 13px; color: var(--soft); }
.mx-form select:invalid, .mx-form select option[value=""] { color: var(--muted); }
.mx-form input, .mx-form textarea, .mx-form select { font: inherit; font-size: 15.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.mx-form textarea { min-height: 130px; resize: vertical; }
.mx-form input:focus, .mx-form textarea:focus, .mx-form select:focus { outline: none; border-color: #777; }
.mx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .mx-form__row { grid-template-columns: 1fr; } }
.mx-form .mx-hp { position: absolute; left: -9999px; }
.mx-form button { justify-self: start; }
.mx-notice { border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.mx-notice--ok { background: #12301e; color: #b8f0cb; }
.mx-notice--err { background: #3a1414; color: #ffc9c9; }
.mx-beratung { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.mx-beratung p { margin: 0; font-size: 14px; color: var(--soft); }
.mx-beratung__link { background: none; border: 0; padding: 0; font: inherit; color: var(--text, inherit); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mx-beratung__link:hover { opacity: .75; }
.mx-main .mx-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mx-or::before, .mx-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mx-cal { width: min(1040px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius); background: #fff; overflow: hidden; color: #222; }
.mx-cal[open] { display: flex; flex-direction: column; }
.mx-cal::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.mx-cal__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: var(--bg); color: var(--text); font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.mx-cal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.mx-cal__close:hover { border-color: var(--text); }
.mx-cal__loading { position: absolute; inset: 50% 0 auto; text-align: center; color: #777; font-size: 15px; margin: 0; }
.mx-cal iframe { position: relative; flex: 1; width: 100%; border: 0; background: transparent; }
.mx-cal.is-loaded .mx-cal__loading { display: none; }
.mx-cal.is-loaded iframe { background: #fff; }
@media (max-width: 640px) { .mx-cal { width: 100vw; height: 100dvh; border-radius: 0; } }
.mx-contact__info { margin-top: 22px; font-size: 15px; color: var(--soft); }
.mx-contact__info a { text-decoration: none; color: var(--text); }

/* CTA-Band */
.mx-cta { text-align: center; }
.mx-cta h2 { max-width: 18ch; margin-inline: auto; }
.mx-cta .wp-block-buttons { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.mx-footer { background: var(--surface); color: var(--soft); font-size: 15px; margin-top: 0; }
.mx-footer__in { width: min(100% - 2 * var(--gutter), calc(var(--wrap) + 40px)); margin-inline: auto; padding: 56px 0 32px; }
.mx-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.mx-footer__brand strong { display: block; font: 600 17px var(--display); color: var(--text); letter-spacing: -0.01em; margin-bottom: 10px; }
.mx-footer__brand address { font-style: normal; line-height: 1.45; color: var(--muted); }
.mx-footer__brand address a { color: var(--text); text-decoration: none; }
.mx-footer .mx-social { margin-top: 14px; }
.mx-footer .mx-social svg { width: 17px; height: 17px; }
.mx-footer__cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.mx-footer__cols .mx-footer__h { font: 600 11px var(--font); letter-spacing: .04em; color: var(--text); margin: 4px 0 14px; }
.mx-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-footer__cols a { text-decoration: none; color: var(--soft); }
.mx-footer__cols a:hover, .mx-footer__cols a[aria-current="page"] { color: var(--muted); }
.mx-footer__mid { display: flex; flex-wrap: wrap; gap: 12px 120px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.mx-footer__mid a { text-decoration: none; }
.mx-footer__mid small { font-size: 10.5px; color: var(--text); font-weight: 600; margin-right: 8px; }
.mx-footer__bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 26px; font-size: 14px; color: var(--muted); }
.mx-footer__bottom a { color: var(--text); text-decoration: none; }

/* ---------- Einblend-Animation (nur wenn Bewegung erlaubt) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .mx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.js .mx-reveal.is-in { opacity: 1; transform: none; }
}

/* WordPress-Kleinkram */
.wp-site-blocks { padding: 0; }
.wp-block-post-content > :first-child.mx-pagehead { padding-top: 150px; }
.mx-pagehead { padding-top: 150px; padding-bottom: 24px; }
.mx-pagehead h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -0.03em; }
.mx-pagehead p { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 36em; }
.mx-pagehead p.mx-eyebrow { font-size: 12px; }
.mx-pagehead.mx-narrow p.mx-text { font-size: 17px; }
:where(.wp-block-group.has-background) { padding: 0; }

/* ---------- WhatsApp-Knopf ---------- */
.mx-wa { position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 60; display: flex; align-items: center; gap: 0; height: 54px; min-width: 54px; padding: 0 15px; border-radius: 999px; background: rgba(var(--bg-rgb),.92); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, gap .25s, background .2s; }
.mx-wa svg { width: 24px; height: 24px; flex: none; color: #25d366; }
.mx-wa span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 500; transition: max-width .3s ease; }
.mx-wa:hover, .mx-wa:focus-visible { border-color: #666; gap: 10px; background: var(--surface); }
.mx-wa:hover span, .mx-wa:focus-visible span { max-width: 140px; }
@media print { .mx-wa { display: none; } }

/* Galerie: auf dem Handy 2 Spalten statt 1 */
@media (max-width: 600px) {
	.wp-block-gallery.has-nested-images.mx-gallery figure.wp-block-image:not(#individual-image) { width: calc(50% - 5px); }
}

/* ---------- Ambient Light: Farbschein aus dem Bild/Video, das gerade im Blick ist ----------
   Wird pixelgenau mit Dithering auf ein Canvas gezeichnet (keine sichtbaren Farbstufen). */
.mx-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.mx-ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.mx-ambient canvas.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mx-ambient canvas { transition: none; } }
.mx-main .wp-block-image img { width: 100%; height: auto; } /* Fotos füllen die Inhaltsbreite */

/* ---------- Zweispaltig (editorial): Titel links, Text rechts ---------- */
.wp-block-group.mx-twocol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mx-twocol__title { position: sticky; top: 110px; }
.mx-main .mx-twocol__title h1 { margin: 0 0 .7em; font-size: clamp(26px, 3.1vw, 41px); line-height: 1.1; }
.mx-main .mx-twocol__title .mx-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--soft); max-width: 22em; margin: 0; }
.mx-main .mx-twocol__text { padding-top: .35em; }
.mx-twocol__text { max-width: 38em; }
.mx-main .mx-twocol__text .mx-lead { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.45; color: var(--text); margin-bottom: 1.1em; }
.mx-main .mx-twocol__text .mx-text { font-size: 17px; }
/* Startseite: Abschnitte zweispaltig wie die Unterseiten (Titel links, Text rechts) */
.mx-main .mx-twocol--h2 .mx-twocol__title h2 { margin: 0; }
.mx-main .mx-twocol + * { margin-top: clamp(40px, 5vw, 72px); }
.mx-section.mx-section--flush { padding-top: 0; }
.mx-main .mx-price { margin-top: 1.6em; padding-top: 1.1em; border-top: 1px solid var(--hairline); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.mx-main .mx-twocol__text .wp-block-details + .wp-block-buttons { margin-top: 40px; }
@media (max-width: 820px) {
	.wp-block-group.mx-twocol { grid-template-columns: 1fr; gap: 20px; }
	.mx-twocol__title { position: static; }
}

/* ---------- Wortzeichen MAXiN (Unbounded Black, schmaleres M) ---------- */
.mx-wordmark { font-family: "MAXiN Wordmark", "Unbounded", sans-serif; font-weight: 900; letter-spacing: 0; line-height: 1; white-space: nowrap; color: #fff; }
/* Optisch gleiche Abstände zwischen allen Buchstaben (gemessen, etwas offener als A-X vorher war) */
.mx-wordmark > span { display: inline-block; }
/* M horizontal auf 84 % gestaucht; die Kontur gleicht die dadurch dünneren Balken wieder aus */
.mx-wordmark__m { transform: scale(.84, .9655); transform-origin: left center; margin-right: -.1885em; -webkit-text-stroke: .028em currentColor; paint-order: stroke fill; }
.mx-wordmark__a { margin-right: .058em; }
.mx-wordmark__x { margin-right: .0178em; }
.mx-wordmark__i { margin-right: .0263em; }
.mx-logo .mx-wordmark { font-size: 25px; }
@media (max-width: 960px) { .mx-logo .mx-wordmark { font-size: 21px; } }

/* ---------- Live erleben: Kacheln (wie Instagram / Framer-Entwurf), Filter, einzelner Auftritt ---------- */
.mx-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mx-main .mx-live { margin-top: 0; }
.mx-live__card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); text-decoration: none; color: #fff; isolation: isolate; }
.mx-live__card[hidden] { display: none; }
.mx-live__card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.9) 100%); transition: opacity .5s ease; }
/* Einheitlicher Look: schwarzweiss und abgedunkelt, Farbe erst beim Darüberfahren */
.mx-live__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.72) contrast(1.05); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.mx-live__card:hover .mx-live__img { transform: scale(1.045); filter: grayscale(0) brightness(.85); }
.mx-live__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; padding: clamp(16px, 1.6vw, 22px); }
.mx-live__tag { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.mx-live__title { font: 600 clamp(17px, 1.5vw, 21px)/1.15 var(--display); letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.mx-live__meta { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; color: rgba(255,255,255,.75); margin-top: 10px; }
.mx-live__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); }
.mx-live__filter button { font: 600 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); background: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.mx-live__filter button:hover { color: var(--text); border-color: var(--muted); }
.mx-live__filter button.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.mx-livepost .mx-livehead { min-height: 70vh; min-height: 70svh; }
.mx-livehead__info, .mx-livepost__body, .mx-livepost .mx-section, .mx-livehead__video, .mx-live__credit { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mx-main .mx-livehead__info { padding-bottom: 0; }
.mx-livehead__info .mx-eyebrow a { color: inherit; text-decoration: none; }
.mx-livehead__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: 28px 0 0; }
.mx-livehead__facts > div { padding: 18px 20px 18px 0; }
.mx-livehead__facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mx-livehead__facts dd { margin: 0; font-size: 16px; }
.mx-livehead__video video { width: 100%; display: block; background: #000; }
.mx-main .mx-livepost__body { padding-top: clamp(32px, 4vw, 56px); }
.mx-livepost__body > p { max-width: 38em; font-size: 17px; }
.mx-livepost__body .wp-block-gallery { margin-top: 40px; }
.mx-live__credit { font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .mx-live { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mx-live { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } .mx-live__tag { display: none; } .mx-live__title { font-size: 14.5px; } .mx-live__meta { font-size: 10px; letter-spacing: .12em; } .mx-live__txt { padding: 12px; } }
.mx-livepost .mx-livehead { background-size: cover; background-position: center; }
.mx-livepost .mx-livepost__body > * { margin-left: 0; margin-right: 0; max-width: 100%; }
.mx-livepost .mx-livepost__body > p { max-width: 38em; }
.mx-livepost__body .wp-block-gallery img { border-radius: 0; }

/* ---------- Interne Verlinkung: "Passend dazu" und Auftritte auf Angebotsseiten ---------- */
.mx-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--hairline); }
.mx-main .mx-related-wrap h2 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 22px; }
.mx-related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px 22px 0; border-bottom: 1px solid var(--hairline); margin-right: 28px; font: 600 clamp(15px, 1.3vw, 17px)/1.2 var(--display); letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.mx-related__arrow { font-family: var(--font); color: var(--muted); transition: transform .3s ease, color .3s ease; }
.mx-related a:hover .mx-related__arrow { transform: translateX(4px); color: var(--text); }
.mx-live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.mx-main .mx-live-head h2 { margin: 0; }
.mx-live-head__more { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); text-decoration: none; white-space: nowrap; }
.mx-live-head__more:hover { color: var(--text); }
.mx-teaser:not(:has(.mx-live)) { display: none; }
.mx-section.mx-related-wrap { padding-top: clamp(24px, 3vw, 40px); }
.mx-live__item { position: relative; }
.mx-live__item .mx-live__card { height: 100%; }
.mx-live__edit { position: absolute; top: 10px; right: 10px; z-index: 3; font: 600 12px/1 var(--font); letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; background: #fff; color: #111; text-decoration: none; }

/* Downloads: Zeilen mit Haarlinie wie die FAQ, Knopf rechts */
.mx-dl { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mx-dl:first-child { border-top: 1px solid var(--line); }
.mx-main .mx-dl h3 { margin: 0 0 .3em; }
.mx-dl p { margin: 0; color: var(--soft); font-size: 15px; }
.mx-dl .mx-dl__meta { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mx-dl .mx-btn { flex: none; }
@media (max-width: 560px) { .mx-dl { flex-direction: column; align-items: flex-start; } }
.mx-dl-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.mx-dl-thumbs a { display: block; overflow: hidden; border-radius: 8px; }
.mx-dl-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.mx-dl-thumbs a:hover img { transform: scale(1.04); opacity: .85; }
.mx-main .mx-dl-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .mx-dl-thumbs { grid-template-columns: repeat(2, 1fr); } }

/* Auftritt: Titel und Text links, Video rechts; Galerie als gleichmässiges Raster mit feinen Fugen. */
.mx-livepost .mx-livehead { min-height: 52vh; min-height: 52svh; }
.mx-livesplit { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head video" "text video"; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.mx-livesplit--novideo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text"; }
.mx-livesplit__head { grid-area: head; }
.mx-livesplit__video { grid-area: video; position: sticky; top: 100px; }
.mx-livesplit__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.mx-livesplit__text { grid-area: text; padding-top: 24px; }
.mx-livesplit__text p { font-size: 16px; color: var(--soft); margin: 0 0 1em; max-width: 34em; }
.mx-livesplit .mx-livehead__facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 22px; }
.mx-livepost:has(.mx-livesplit) .mx-livepost__body > p { display: none; }
.mx-main .mx-livepost__body { padding-top: clamp(24px, 3vw, 40px); }
.mx-livepost__body .wp-block-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px !important; margin: 0; }
.mx-livepost__body .wp-block-gallery.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1; overflow: hidden; }
.mx-livepost__body .wp-block-gallery.wp-block-gallery > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mx-livepost__body .wp-block-gallery.wp-block-gallery > figure.wp-block-image:hover img { transform: scale(1.04); }
@media (max-width: 1100px) { .mx-livepost__body .wp-block-gallery.wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.mx-livesplit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "video" "text"; }
	.mx-livesplit__video { position: static; margin-top: 24px; }
	.mx-livepost__body .wp-block-gallery.wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px !important; }
}
@media (max-width: 520px) { .mx-livepost__body .wp-block-gallery.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mx-livesplit__head .mx-eyebrow a { color: inherit; text-decoration: none; }
.mx-main .mx-live-soon { padding-top: clamp(28px, 3vw, 44px); }
.mx-live-soon .mx-lead { max-width: 36em; color: var(--soft); }
.mx-livesplit__insta a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.mx-livepost .mx-livehead::before { background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 70%, var(--bg) 100%); }
.mx-livepost .mx-livehead { position: relative; }
.mx-livepost .mx-livehead::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mx-main .mx-live__credit { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 10px auto 0; }
.mx-livepost__body .wp-block-gallery.wp-block-gallery { width: 100%; max-width: none; }
.mx-livepost .mx-livehead::before { z-index: 0; }
.mx-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 8px; vertical-align: 2px; background: #e5484d; box-shadow: 0 0 6px rgba(229,72,77,.8); animation: mx-dot 1.8s ease-in-out infinite; }
.mx-dot.is-new { background: #3ddc84; box-shadow: 0 0 6px rgba(61,220,132,.9); }
@keyframes mx-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .mx-dot { animation: none; } }
.mx-livepost .mx-livehead { min-height: 74vh; min-height: 74svh; background-position: center 38%; }
/* Instagram-Raster im Footer, mittig in der Lücke: 3 × 2, darunter Logo und Name. */
.mx-insta-strip { align-self: flex-start; margin-top: 4px; }
.mx-insta-strip__grid { display: grid; grid-template-columns: repeat(3, 78px); gap: 3px; }
.mx-insta-strip__grid img { width: 78px; height: 78px; object-fit: cover; display: block; opacity: .75; transition: opacity .3s ease; }
.mx-insta-strip:hover .mx-insta-strip__grid img { opacity: 1; }
.mx-insta-strip__name { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--soft); text-decoration: none; }
.mx-insta-strip__name svg { width: 17px; height: 17px; }
.mx-insta-strip__name:hover { color: var(--text); }
@media (max-width: 860px) { .mx-insta-strip { order: 3; } }
.mx-social__handle { font-size: 13px; color: var(--soft); text-decoration: none; margin-left: -4px; }
.mx-social__handle:hover { color: var(--text); }
