/* StoffweXel 23 – gemeinsames Stylesheet für Startseite (DE/EN), Impressum und Datenschutz */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f2efe9;
  --paper-2: #e8e3da;
  --ink: #161412;
  --ink-2: #3a3631;
  --muted: #69635b;
  --line: rgba(22, 20, 18, 0.16);
  --accent: #d2401b;
  --night: #161412;
  --night-text: #f2efe9;
  --night-muted: #a8a197;
  --night-line: rgba(242, 239, 233, 0.18);

  --sans: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --head-h: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
  font-family: var(--sans); font-size: 0.9rem;
}
.skip:focus { top: 8px; }

/* ---------- Typografie-Bausteine ---------- */

.display {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}

.label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
  line-height: 1.4;
  max-width: 34ch;
}

.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

.more {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.more::after { content: ' →'; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 12px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 650;
  text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.night .btn { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.night .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Kopfzeile ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--head-h);
}
.brand {
  font-family: var(--sans); font-stretch: 75%; font-weight: 800;
  font-size: 1.125rem; letter-spacing: 0.01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.nav a, .lang {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 550;
  text-decoration: none; white-space: nowrap;
}
.nav a:hover, .lang:hover { text-decoration: underline; }
/* Auf Touch-Geräten bleibt :hover nach dem Antippen hängen, dort nur die echte Markierung zeigen */
@media (hover: none) {
  .nav a:hover { color: inherit; text-decoration: none; }
}
.nav a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lang {
  color: var(--muted);
  padding-left: clamp(14px, 1.6vw, 26px);
  border-left: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .brand { order: 1; }
  .lang { order: 2; margin-left: auto; border: 0; padding: 0; }
  .nav {
    order: 3; flex-basis: calc(100% + 2 * var(--pad));
    margin: 6px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 10px;
  }
  .nav ul { gap: 11px; }
  .nav a { font-stretch: 75%; }
  /* Weicher Rand, solange in diese Richtung noch Menüpunkte folgen (Klassen setzt site.js) */
  .nav.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  .nav.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
  .nav.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
  html { scroll-padding-top: 100px; }
}

/* ---------- Abschnitte ---------- */

.sec { padding-block: clamp(56px, 8vw, 120px); border-top: 2px solid var(--ink); }
.sec-head { display: grid; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-title { font-size: clamp(3rem, 10vw, 8.5rem); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .sec-head .lede { justify-self: start; }
}

.night { background: var(--night); color: var(--night-text); border-top-color: var(--night); }
.night .label { color: var(--night-muted); }
.night a:hover { color: #ff7a55; }
.night ::selection { background: var(--night-text); color: var(--night); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 7vw, 96px); }
.hero-name {
  font-size: min(16.2vw, 15.5rem);
  white-space: nowrap;
  margin-left: -0.03em;
}
.hero-sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: clamp(14px, 2vw, 24px);
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.hero-new {
  display: grid; gap: 28px;
  margin-top: clamp(36px, 6vw, 80px);
}
.hero-new-title { font-size: clamp(2.75rem, 7vw, 6rem); margin: 10px 0 18px; }
.hero-new .prose { margin-bottom: 26px; }
@media (min-width: 900px) {
  .hero-new { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 56px; }
}

/* Video-Kachel mit Play-Knopf */
.play {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--ink); cursor: pointer;
  text-decoration: none; color: var(--paper);
}
.play img { width: 100%; transition: opacity 0.2s; }
.play:hover img { opacity: 0.88; }
.play-badge {
  position: absolute; left: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 650; font-size: 0.9375rem;
}
.play-badge::before {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.play:hover .play-badge { background: var(--accent); color: #fff; }

/* ---------- Musik ---------- */

.listen { display: grid; gap: 32px; margin-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) {
  .listen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
}
.platforms { border-top: 1px solid var(--ink); }
.platforms li { border-bottom: 1px solid var(--line); }
.platforms a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0;
  font-family: var(--sans); font-size: clamp(1.25rem, 1.4vw + 0.8rem, 1.75rem);
  font-weight: 650; font-stretch: 85%;
  text-decoration: none;
}
.platforms a::after { content: '↗'; font-weight: 400; color: var(--muted); }
.platforms a:hover::after { color: var(--accent); }

.embed-slot {
  min-height: 352px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  padding: 28px;
  background: var(--paper-2);
}
.embed-slot p { font-size: 0.9375rem; color: var(--muted); max-width: 46ch; }
.embed-slot iframe { width: 100%; height: 352px; border: 0; display: block; }
.embed-slot.is-loaded { padding: 0; background: transparent; }

.disco-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.disco-head h3 { font-size: clamp(2rem, 4vw, 3.25rem); }

.year { border-top: 1px solid var(--ink); }
.year:last-child { border-bottom: 1px solid var(--ink); }
.year summary {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  cursor: pointer; list-style: none;
  font-family: var(--sans);
}
.year summary::-webkit-details-marker { display: none; }
.year summary::after {
  content: '+'; margin-left: auto;
  font-size: 1.75rem; line-height: 1; font-weight: 300;
}
.year[open] summary::after { content: '−'; }
.year summary:hover .year-num { color: var(--accent); }
.year-num { font-stretch: 62%; font-weight: 850; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; }
.year-count { font-size: 0.9375rem; color: var(--muted); }

.covers {
  display: grid; gap: 22px 14px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  padding: 6px 0 36px;
}
@media (min-width: 1100px) { .covers { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.covers a { display: block; text-decoration: none; }
.covers img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.covers a:hover img { outline: 3px solid var(--accent); outline-offset: -3px; }
.cover-title {
  display: block; margin-top: 8px;
  font-family: var(--sans); font-weight: 650; font-size: 0.9375rem; line-height: 1.25;
}
.cover-meta { display: block; margin-top: 2px; font-family: var(--sans); font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }

.early { padding: 4px 0 28px; columns: 2 320px; column-gap: 48px; }
.early li {
  display: grid; grid-template-columns: 3.5em 1fr; gap: 0 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  break-inside: avoid; font-family: var(--sans); font-size: 0.9375rem;
}
.early-year { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.early-title { font-weight: 650; }
.early-meta { color: var(--muted); font-size: 0.8125rem; }

/* ---------- Videos ---------- */

.videos { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .videos { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto; gap: 28px 40px; }
  .videos .video:first-child { grid-row: span 2; }
}
.video figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--sans); }
.video-title { font-weight: 650; font-size: 1.125rem; }
.video-year { color: var(--night-muted); font-variant-numeric: tabular-nums; }
.videos-foot { margin-top: clamp(32px, 5vw, 56px); gap: 12px 32px; }

.tiktok { margin-top: clamp(48px, 7vw, 88px); padding-top: 18px; border-top: 1px solid var(--night-line); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 820px; }
.clips a { display: block; text-decoration: none; }
.clips img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.clips a:hover img { outline: 3px solid var(--accent); outline-offset: -3px; }
.clip-title { display: block; margin-top: 10px; font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.25; }
.clip-meta { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--night-muted); }

/* ---------- Über ---------- */

.about { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}
.photos { position: relative; padding-bottom: 18%; max-width: 560px; }
.photos .photo-main { width: 82%; }
.photos .photo-small {
  position: absolute; right: 0; bottom: 0; width: 44%;
  border: 8px solid var(--paper);
}
.photos figcaption { margin-top: 10px; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); width: 50%; }
.quote {
  margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--ink);
  font-style: italic; font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem); line-height: 1.3; max-width: 26ch;
}
.quote cite { display: block; margin-top: 12px; font-style: normal; }

/* ---------- Kunst ---------- */

.art { display: grid; gap: 56px; }
@media (min-width: 900px) { .art { grid-template-columns: 1fr 1fr; gap: 48px; } }
.art-frame { position: relative; padding-bottom: 14%; }
.art-frame > a { display: block; width: 88%; }
.art-frame > .art-detail {
  position: absolute; right: 0; bottom: 0; width: 38%;
  border: 8px solid var(--paper);
}
.art figcaption { margin-top: 16px; display: grid; gap: 4px; max-width: 46ch; }
.art-title { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; }
.art figcaption p { font-size: 1rem; color: var(--ink-2); }
.zoom { cursor: zoom-in; }

/* ---------- Buch & MyMindSeed ---------- */

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-flip > :first-child { order: 2; }
}
.book-cover { max-width: 360px; box-shadow: 0 1px 0 var(--line), 18px 18px 0 var(--paper-2); }
.work-title { font-family: var(--sans); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.work-sub { font-style: italic; font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); margin-top: 8px; }
.work-meta { margin: 18px 0 24px; }
.split .btns { margin-top: 28px; }
.aside-note { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.mms-shot { display: block; border: 1px solid var(--line); }

/* ---------- Kontakt ---------- */

.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.mail-line { margin-top: 14px; }
.mail {
  font-family: var(--sans); font-stretch: 70%; font-weight: 800;
  font-size: clamp(1.75rem, 4.4vw, 3.75rem); line-height: 1.05;
  word-break: break-word; text-decoration: none;
  border-bottom: 3px solid var(--accent);
}

/* ---------- Fuß ---------- */

.site-foot { border-top: 2px solid var(--ink); padding-block: 28px 40px; font-family: var(--sans); font-size: 0.9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Betrachter (Video und Bild) ---------- */

.viewer {
  width: min(1200px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible;
}
.viewer::backdrop { background: rgba(10, 9, 8, 0.92); }
.viewer-body { position: relative; }
.viewer-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.viewer-body img { margin: 0 auto; max-height: calc(100vh - 96px); width: auto; }
.viewer-close {
  position: absolute; right: 0; top: -44px;
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: var(--paper);
}
.viewer-close:hover { color: #ff7a55; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); }
.legal h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin-bottom: clamp(28px, 4vw, 48px); }
.legal h2 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; margin: 2.2em 0 0.5em; }
.legal h3 { font-family: var(--sans); font-weight: 650; font-size: 1.0625rem; margin: 1.6em 0 0.4em; }
.legal p, .legal li { max-width: 68ch; }
.legal p + p { margin-top: 0.8em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 0.6em 0; }
.legal-switch { margin-bottom: 24px; font-family: var(--sans); font-size: 0.9375rem; }
.lang-de .en, .lang-en .de { display: none !important; }
