/* =========================================================
   ruben gläser/ – Stylesheet
   Farben & Schrift laut Styleguide „kreativbergwerk Master 2026"
   ========================================================= */

/* ---------- Schriften (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face {
  font-family: "Gemunu Libre";
  src: url("../fonts/gemunu-libre-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben */
  --brand-indigo: #312783;   /* C100 M100 Y0 K0 */
  --brand-magenta: #e6007e;  /* C0 M100 Y0 K0 */
  --brand-sky: #acddf9;      /* C36 M0 Y0 K0 */
  --brand-ink: #17153f;

  /* Typo-Skala */
  --text-xs: clamp(0.8125rem, 0.79rem + 0.15vw, 0.875rem);
  --text-sm: clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);
  --text-base: clamp(1.0625rem, 1.03rem + 0.2vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  --text-2xl: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --text-hero: clamp(3.25rem, 1.6rem + 7vw, 8.5rem);

  /* Abstände */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;
  --section: clamp(var(--space-16), 9vw, var(--space-32));

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Gemunu Libre", "Arial Narrow", sans-serif;
  --font-body: "Gemunu Libre", "Arial Narrow", system-ui, sans-serif;

  /* Hell (Standard) */
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-2: #eeedf6;
  --border: #dddbeb;
  --text: #17153f;
  --text-muted: #57557a;
  --text-faint: #8a88a6;
  --accent: var(--brand-magenta);
  --accent-ink: #ffffff;
  --heading: var(--brand-indigo);
  --shadow: 0 1px 2px rgb(23 21 63 / 0.06), 0 8px 24px rgb(23 21 63 / 0.06);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #110f2b;
  --surface: #1a1840;
  --surface-2: #232050;
  --border: #322f66;
  --text: #ecebf8;
  --text-muted: #b3b1d3;
  --text-faint: #7f7cab;
  --accent: #ff2b93;
  --accent-ink: #ffffff;
  --heading: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--brand-magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--brand-indigo); color: #fff; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(var(--space-5), 4vw, var(--space-12)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo (Originalvektoren aus dem Styleguide) ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--heading); }
.logo-svg { height: 52px; width: auto; }
.logo-svg .m { fill: var(--brand-magenta); }
.logo-svg .i { fill: var(--logo-ink, var(--brand-indigo)); }
[data-theme="dark"] .logo-svg { --logo-ink: #ffffff; }
.site-footer .logo-svg { height: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 72px; }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-list { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { color: var(--text); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--heading); }
.nav-list a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--brand-magenta); transform: skewX(-24deg);
}

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--space-4) clamp(var(--space-5), 4vw, var(--space-12)) var(--space-8);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-list.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list a { font-size: var(--text-lg); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-list a:hover { background: none; }
  .nav-list a[aria-current="page"]::after { width: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-light { background: #fff; color: var(--brand-indigo); }
.btn-light:hover { background: var(--brand-sky); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 90% at 62% 55%, rgb(230 0 126 / .95) 0%, rgb(230 0 126 / .55) 30%, transparent 62%),
    radial-gradient(40% 60% at 95% 10%, rgb(172 221 249 / .25), transparent 60%),
    var(--brand-indigo);
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  padding-block: var(--space-32) var(--space-16);
}
.hero::after { /* feines Korn für Druckanmutung */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-slashes {
  position: absolute; right: -4%; top: 50%; height: 125%; width: auto;
  transform: translateY(-50%); opacity: .95;
}
.hero-slashes path { fill: rgb(255 255 255 / .1); }
.hero-slashes path:nth-child(2) { fill: rgb(255 255 255 / .16); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--brand-magenta); transform: skewX(-30deg); }
.hero .eyebrow { color: rgb(255 255 255 / .8); }
.hero .eyebrow::before { background: #fff; }
.hero h1 {
  color: #fff; font-size: var(--text-hero); line-height: 0.86; margin-top: var(--space-6);
  max-width: 12ch;
}
.hero h1 .slash { color: var(--brand-sky); }
.hero-lead { margin-top: var(--space-8); max-width: 46ch; font-size: var(--text-lg); line-height: 1.5; color: rgb(255 255 255 / .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding-block: var(--space-20) var(--space-12); position: relative; }
.page-head h1 { font-size: var(--text-2xl); margin-top: var(--space-5); }
.page-head h1 em { font-style: normal; color: var(--brand-magenta); }
.page-head p { margin-top: var(--space-5); max-width: 60ch; color: var(--text-muted); font-size: var(--text-lg); line-height: 1.5; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-8); flex-wrap: wrap; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-xl); margin-top: var(--space-4); }
.section-head p { max-width: 44ch; color: var(--text-muted); }

/* Bereiche (Startseite) */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.area {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px; padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.area:hover { transform: translateY(-4px); border-color: var(--brand-magenta); box-shadow: var(--shadow); }
.area-num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--brand-magenta); letter-spacing: .08em; }
.area h3 { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); margin-top: auto; }
.area p { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); max-width: 32ch; }
.area-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); font-size: var(--text-sm); font-weight: 600; color: var(--heading); }
.area-link svg { width: 16px; transition: transform .3s var(--ease); }
.area:hover .area-link svg { transform: translateX(4px); }
.area-deco { position: absolute; right: -20px; top: -10px; height: 180px; width: auto; opacity: .9; transition: transform .5s var(--ease); }
.area:hover .area-deco { transform: translate(6px, -4px); }
.area-deco path { fill: var(--surface-2); }
.area-deco path:nth-child(2) { fill: var(--brand-sky); opacity: .55; }
.area:nth-child(2) .area-deco path:nth-child(2) { fill: var(--brand-magenta); opacity: .25; }
.area:nth-child(3) .area-deco path:nth-child(2) { fill: var(--brand-indigo); opacity: .25; }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr; } .area { min-height: 260px; } }

/* Über mich */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: start; }
.about h2 { font-size: var(--text-xl); margin-top: var(--space-4); }
.about-text p + p { margin-top: var(--space-4); }
.about-text p { color: var(--text-muted); }
.about-text p:first-child { color: var(--text); font-size: var(--text-lg); line-height: 1.5; }
.about-label { margin-top: var(--space-8); font-size: var(--text-xs) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint) !important; }
.skills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.skills.skills--branchen li { background: var(--brand-indigo); color: #fff; }
[data-theme="dark"] .skills.skills--branchen li { background: #fff; color: var(--brand-indigo); }
.skills li { font-size: var(--text-xs); font-weight: 500; padding: .45em .9em; border-radius: 999px; background: var(--surface-2); color: var(--text); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Kontakt-Band */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  background: radial-gradient(70% 120% at 85% 50%, rgb(230 0 126 / .9), transparent 65%), var(--brand-indigo);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-8);
}
.cta-band h2 { color: #fff; font-size: var(--text-2xl); max-width: 14ch; }
.cta-band p { margin-top: var(--space-4); color: rgb(255 255 255 / .82); max-width: 42ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); position: relative; z-index: 1; }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-10); }
.chip {
  padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  font-size: var(--text-sm); font-weight: 500; color: var(--text-muted);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip[aria-pressed="true"] { background: var(--brand-indigo); border-color: var(--brand-indigo); color: #fff; }
[data-theme="dark"] .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--brand-indigo); }

/* ---------- Werk-Raster (Grafik) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-8) var(--space-6); }
.work-card { text-align: left; background: none; border: 0; padding: 0; display: block; width: 100%; }
.work-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-media img, .work-card:hover .ph { transform: scale(1.035); }
.work-meta { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.work-meta h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); line-height: 1.3; color: var(--text); }
.work-meta span { font-size: var(--text-xs); color: var(--text-faint); white-space: nowrap; padding-top: 2px; }
.work-cat { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--brand-magenta); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* Platzhalter im Markenstil – wird automatisch gezeigt, solange kein Bild hinterlegt ist */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: transform .6s var(--ease);
  background: var(--ph-bg, var(--brand-indigo));
  color: rgb(255 255 255 / .9);
}
.ph svg { height: 52%; width: auto; }
.ph svg path { fill: currentColor; }
.ph-label {
  position: absolute; left: var(--space-4); bottom: var(--space-3);
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .75;
}
.ph--1 { --ph-bg: radial-gradient(80% 100% at 70% 60%, #e6007e, transparent 70%), #312783; }
.ph--2 { --ph-bg: #e6007e; }
.ph--3 { --ph-bg: #acddf9; color: #312783; }
.ph--4 { --ph-bg: #312783; }
.ph--5 { --ph-bg: radial-gradient(90% 100% at 20% 30%, #acddf9, transparent 70%), #312783; }
.ph--6 { --ph-bg: var(--surface-2); color: var(--brand-magenta); }

/* ---------- Galerie (Fotografie) ---------- */
.gallery { columns: 3 280px; column-gap: var(--space-5); }
.gallery-item { break-inside: avoid; margin: 0 0 var(--space-5); display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.gallery-media { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); }
.gallery-media img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery-item:hover .gallery-media img { transform: scale(1.03); }
.gallery-item .ph-wrap { position: relative; }
.gallery-caption { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / .35);
}
.lightbox::backdrop { background: rgb(17 15 43 / .82); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-columns: 1.6fr 1fr; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.lb-media { position: relative; background: #0d0b24; min-height: 320px; display: grid; place-items: center; }
.lb-media img { max-height: 92vh; width: 100%; object-fit: contain; }
.lb-media .ph { position: relative; aspect-ratio: 4/3; width: 100%; }
.lb-body { padding: var(--space-10) var(--space-8); overflow: auto; max-height: 92vh; }
.lb-body h2 { font-size: var(--text-xl); margin-top: var(--space-3); }
.lb-body p { margin-top: var(--space-5); color: var(--text-muted); }
.lb-facts { margin: var(--space-8) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.lb-facts dt { color: var(--text-faint); }
.lb-facts dd { margin: 0; }
.lb-close { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; background: var(--surface); }
.lb-nav { position: absolute; inset: auto var(--space-4) var(--space-4) auto; display: flex; gap: var(--space-2); z-index: 2; }
.lb-nav .icon-btn { background: rgb(255 255 255 / .9); color: var(--brand-indigo); border: 0; }
@media (max-width: 820px) {
  .lightbox[open] { grid-template-columns: 1fr; overflow: auto; }
  .lb-body { max-height: none; padding: var(--space-6); }
}

/* ---------- Web-Apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-6); }
.app-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-magenta) 50%, var(--border)); }
.app-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-thumb .ph svg { height: 40%; }
.app-thumb-initials { position: absolute; left: var(--space-5); bottom: var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: #fff; }
.app-status {
  position: absolute; top: var(--space-3); left: var(--space-3);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgb(255 255 255 / .92); color: var(--brand-indigo); padding: .35em .7em; border-radius: 999px;
}
.app-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.app-body h3 { font-size: 1.85rem; }
.app-body p { color: var(--text-muted); font-size: var(--text-sm); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); padding: .3em .65em; border-radius: var(--radius-sm); }
.app-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); }

.howto { margin-top: var(--space-20); padding: var(--space-8); border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.howto h2 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); color: var(--text); line-height: 1.3; }
.howto ol { margin: var(--space-4) 0 0; padding-left: 1.2em; color: var(--text-muted); font-size: var(--text-sm); }
.howto li + li { margin-top: var(--space-2); }
.howto code { font-size: .92em; background: var(--surface-2); padding: .1em .4em; border-radius: 4px; color: var(--text); }

/* ---------- App-Player ---------- */
.player-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.player-page .site-header { position: relative; }
.player-page main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-3) clamp(var(--space-5), 3vw, var(--space-8)); border-bottom: 1px solid var(--border); background: var(--surface);
}
.player-title { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.player-title h1 { font-size: 1.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title p { font-size: var(--text-xs); color: var(--text-faint); }
.player-tools { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.seg button { border: 0; background: none; padding: .4em .85em; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); }
.seg button[aria-pressed="true"] { background: var(--brand-indigo); color: #fff; }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: #fff; color: var(--brand-indigo); }
.player-stage {
  flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: var(--space-5);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    repeating-linear-gradient(-60deg, transparent 0 14px, color-mix(in srgb, var(--border) 60%, transparent) 14px 15px);
}
.player-frame-wrap {
  width: 100%; height: 100%; max-width: var(--frame-w, 100%);
  border-radius: var(--radius-md); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  transition: max-width .45s var(--ease);
}
.focus-exit { display: none; }
body.is-focus .player-frame-wrap { position: fixed; inset: 0; z-index: 200; max-width: none; border-radius: 0; }
body.is-focus .focus-exit { display: inline-flex; position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 201; box-shadow: var(--shadow); }
.player-frame-wrap iframe { width: 100%; height: 100%; border: 0; }
.player-empty { text-align: center; max-width: 44ch; align-self: center; }
.player-empty h2 { font-size: var(--text-xl); }
.player-empty p { margin: var(--space-4) 0 var(--space-6); color: var(--text-muted); }
@media (max-width: 700px) { .seg { display: none; } .player-title p { display: none; } .player-stage { padding: var(--space-2); } }

/* ---------- Leere Zustände ---------- */
.empty { padding: var(--space-16) var(--space-8); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 70ch; padding-bottom: var(--section); }
.prose h2 { font-size: 1.9rem; margin: var(--space-12) 0 var(--space-4); }
.prose h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); color: var(--text); margin: var(--space-8) 0 var(--space-2); line-height: 1.3; }
.prose p, .prose ul { color: var(--text-muted); margin: 0 0 var(--space-4); }
.prose .note { padding: var(--space-4) var(--space-5); border-left: 3px solid var(--brand-magenta); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); }
mark.fill { background: color-mix(in srgb, var(--brand-sky) 55%, transparent); color: var(--text); padding: 0 .25em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-12); margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
