/* ==========================================================
   chris-mock.de – Stylesheet
   Farben und Abstände zentral hier oben ändern.
   ========================================================== */

:root {
  --bg: #0f0f0f;
  --surface: #191919;
  --fg: #f1efea;
  --muted: #a4a19b;
  --line: #2b2b2b;
  --gap: clamp(14px, 2vw, 26px);
  --max: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- Sprachumschaltung ----------
   Jeder Text steht zweimal im HTML: lang="de" und lang="en".
   Die jeweils andere Sprache wird hier ausgeblendet. */
html[data-lang="de"] body [lang="en"],
html[data-lang="en"] body [lang="de"] { display: none !important; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 15, 15, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700; letter-spacing: -.01em; text-decoration: none;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .9375rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

.lang-toggle {
  font: inherit; font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--muted); }
html[data-lang="de"] .lang-toggle [data-l="de"],
html[data-lang="en"] .lang-toggle [data-l="en"] { color: var(--fg); }

/* ---------- Intro ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(40px, 8vw, 110px);
  padding-bottom: clamp(56px, 9vw, 120px);
}
.hero h1 {
  margin: 0 0 .35em;
  font-size: clamp(3.6rem, 11.5vw, 10rem);
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero .lead {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  max-width: 34ch;
}
.hero .sub { margin: 0; color: var(--muted); }
.hero-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 620px);
  object-fit: cover;
  object-position: 30% 50%;
  background: var(--surface);
}

/* ---------- Abschnitte ---------- */
.section { padding-bottom: clamp(64px, 10vw, 140px); }
.section-title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Kachel-Mosaik ----------
   3 Spalten am Desktop, 2 am Tablet, 1 am Handy.
   .tile--wide = Doppelkachel (für Querformat-Fotos). */
.mosaic {
  container-type: inline-size;
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: calc(var(--gap) * 1.9) var(--gap);
  --tile-h: calc((100cqw - 2 * var(--gap)) / 3);
}
.tile--wide { grid-column: span 2; }

.tile-media {
  position: relative; display: block; overflow: hidden;
  height: var(--tile-h);
  background: var(--surface);
  color: #fff; text-decoration: none;
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tile-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%);
  opacity: 0; transition: opacity .35s ease;
}
.tile-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  margin: 0; padding: clamp(14px, 2vw, 22px);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.025em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.tile-title .arrow { font-weight: 400; margin-left: .15em; }

.tile-media:hover img,
.tile-media:focus-visible img { filter: none; transform: scale(1.035); }
.tile-media:hover::after,
.tile-media:focus-visible::after,
.tile-media:hover .tile-title,
.tile-media:focus-visible .tile-title { opacity: 1; transform: none; }

/* Handy/Tablet ohne Maus: Titel und Farbe immer sichtbar */
@media (hover: none) {
  .tile-media img { filter: none; }
  .tile-media::after, .tile-title { opacity: 1; transform: none; }
}

.tile-text { margin: .95rem 0 0; color: var(--muted); font-size: .96rem; max-width: 62ch; }
.tile-text strong { color: var(--fg); font-weight: 700; }
.tile-text + .tile-text { margin-top: .5rem; }

/* Text-Kacheln ohne Foto (Newsletter, FAZ) */
.tile-media--type {
  background: var(--fg); color: var(--bg);
  display: flex; align-items: flex-end;
}
.tile-media--type::after { display: none; }
.tile-media--type .tile-title { position: static; opacity: 1; transform: none; font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
.tile-media--type .tile-kicker {
  position: absolute; top: clamp(14px, 2vw, 22px); left: clamp(14px, 2vw, 22px);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tile-media--type:hover { background: #fff; }

/* Presse: etwas flachere Kacheln */
.mosaic--press { --tile-h: calc(((100cqw - 2 * var(--gap)) / 3) * .75); }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); --tile-h: calc((100cqw - var(--gap)) / 2); }
  .mosaic--press { --tile-h: calc(((100cqw - var(--gap)) / 2) * .75); }
}
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 64px; }
  .hero-portrait { aspect-ratio: 1; }
  .nav .nav-anchor { display: none; }
  .mosaic, .mosaic--press { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile-media { height: auto; aspect-ratio: 1; }
  .tile--wide .tile-media, .mosaic--press .tile-media { aspect-ratio: 4 / 3; }
}

/* ---------- Unterseiten ---------- */
.page { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.page h1 {
  margin: 0 0 .5em;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95; letter-spacing: -.045em;
}
.page h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.2em 0 .5em; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: #d6d3cd; }
.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; line-height: 1.45; }

.note {
  border: 1px dashed #6b5d2a; background: #1d1a10; color: #e9d58f;
  padding: 14px 16px; font-size: .95rem; margin: 0 0 2rem;
}

/* ---------- Credits ---------- */
.credits-list {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  columns: 3 240px; column-gap: calc(var(--gap) * 2);
}
.credits-list li {
  break-inside: avoid;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
}

/* ---------- Newsletter ---------- */
.nl-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.nl-form {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 16px;
}
.nl-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nl-form label { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.nl-form input {
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 0; width: 100%;
}
.nl-form input:focus { outline: none; border-color: var(--fg); }
.nl-form button {
  font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--fg); color: var(--bg); border: 0;
  padding: 14px 18px; cursor: pointer;
}
.nl-form button:hover { background: #fff; }
.nl-form button:disabled { opacity: .6; cursor: wait; }
.nl-form .fine { margin: 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.nl-status:empty { display: none; }
.nl-status { margin: 0; padding: 12px 14px; background: #13261a; color: #b9e6c6; font-size: .95rem; }
.nl-status.is-error { background: #2a1414; color: #f1b9b9; }
.nl-form.is-done label, .nl-form.is-done .row, .nl-form.is-done button { display: none; }

.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive li { border-bottom: 1px solid var(--line); }
.archive a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; text-decoration: none;
}
.archive a:hover { color: #fff; padding-left: 6px; transition: padding .2s; }
.archive a span:last-child { color: var(--muted); }

@media (max-width: 760px) {
  .nl-layout { grid-template-columns: 1fr; }
  .nl-form .row { grid-template-columns: 1fr; }
}

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: .875rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

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