/* roman-reed.com, Theme editorial_dunkel der Marke Roman Reed (TIK-0900).
   Farben ausschließlich aus design-tokens.json color.dark, Schriften aus der Marke (Cormorant Garamond, EB Garamond,
   IBM Plex Mono, SIL OFL). Die Marke schlägt den Detektor (Rule 708). Rot #E23B36 trägt Schrift nur auf dem Grund. */

@font-face { font-family: "Cormorant Garamond"; src: url("schriften/CormorantGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("schriften/CormorantGaramond-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("schriften/EBGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("schriften/EBGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --grund: #120D10;
  --flaeche: #1A1417;
  --flaeche-hoch: #27181C;
  --titel: #F4EFE7;
  --text: #E6DCCB;
  --leise: #B3A898;
  --marker: #8C8275;
  --linie: #4A3B40;
  --rot: #E23B36;
  --ochsenblut: #5A2A30;
  --ochsenblut-hoch: #6A323A;   /* Hover der Kaufknöpfe, eine Stufe heller als Ochsenblut */
  --ziel: 2.75rem;              /* Mindesthöhe für Tipp-Ziele (44 px) */

  --f-titel: "Cormorant Garamond", Cormorant, Georgia, serif;
  --f-text: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-daten: "IBM Plex Mono", ui-monospace, monospace;

  --mass: 38rem;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --weich: cubic-bezier(.16, 1, .3, 1);

  /* Baustein Altersabfrage */
  --aa-grund: rgba(18, 13, 16, .9);
  --aa-karte: var(--flaeche);
  --aa-text: var(--text);
  --aa-titel: var(--titel);
  --aa-leise: var(--leise);
  --aa-akzent: var(--rot);
  --aa-akzent-text: var(--grund);
  --aa-knopf: var(--ochsenblut);
  --aa-knopf-text: var(--titel);
  --aa-knopf-rand: var(--rot);
  --aa-linie: var(--linie);
  --aa-titel-schrift: var(--f-titel);
  --aa-text-schrift: var(--f-text);

  color-scheme: dark;
  accent-color: var(--rot);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); scrollbar-color: var(--linie) var(--grund); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--f-text);
  font-size: clamp(1.06rem, .98rem + .3vw, 1.2rem);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--rot);
}
::selection { background: var(--ochsenblut); color: var(--titel); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--titel); text-decoration-color: var(--linie); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--rot); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
#inhalt:focus { outline: none; }  /* nur Sprungziel nach der Altersabfrage, kein Bedienelement */
h1, h2, h3 { font-family: var(--f-titel); font-weight: 600; color: var(--titel); line-height: 1.1; margin: 0; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: var(--rand); top: -4rem; background: var(--flaeche-hoch); color: var(--titel); padding: .6rem 1rem; z-index: 10; }
.sprung:focus { top: .75rem; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: 1rem var(--rand);
  border-bottom: 1px solid var(--linie);
}
.kopf__marke { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--titel); }
.kopf__marke img { width: 2.4rem; height: 2.4rem; }
.kopf__name { font-family: var(--f-titel); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; }
.kopf__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.9rem, 3vw, 2rem); font-family: var(--f-daten); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.kopf__nav a { color: var(--leise); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--ziel); }
.kopf__sprache > * { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ziel); min-width: var(--ziel); }
.kopf__nav a:hover { color: var(--titel); }
.kopf__sprache { display: inline-flex; gap: 0; }
.kopf__sprache [aria-current] { color: var(--titel); }
.kopf__sprache .aus { color: var(--marker); }
@media (max-width: 34rem) { .kopf__nav .kopf__werke { display: none; } .kopf__name { font-size: 1.15rem; } }

/* ---------------------------------------------------------------- Auftakt */
.auftakt { padding: clamp(2rem, 5vw, 3.5rem) var(--rand) clamp(1.5rem, 4vw, 2.5rem); display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.auftakt h1 { margin: 0; }
.auftakt__logo { width: min(20rem, 62vw); }
.auftakt__zeile { color: var(--leise); max-width: 34rem; text-wrap: balance; }
.auftakt__zeile a { color: var(--titel); text-decoration-color: var(--rot); }

/* ---------------------------------------------------------------- Jahreswand */
.wand { padding: 0 var(--rand) clamp(3rem, 8vw, 6rem); max-width: 78rem; margin: 0 auto; }
.jahr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--linie);
  scroll-margin-top: 1rem;
}
.jahr__zahl {
  font-family: var(--f-titel);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  font-size: clamp(4.5rem, 3rem + 9vw, 10rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: var(--rot);
}
.jahr__werke { display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }

@media (min-width: 60rem) {
  .jahr { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.4fr); }
  .jahr__zahl { position: sticky; top: 1.5rem; align-self: start; }
}

/* Die Lücke zwischen zwei belegten Jahren ist Raum, kein Text. Ihre Höhe wächst mit den Jahren, gedeckelt. */
.luecke {
  --hoehe: min(62vh, calc(var(--jahre, 1) * .9vh + 2rem));
  height: var(--hoehe);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.luecke__linie { width: 1px; height: 100%; background: linear-gradient(transparent, var(--rot) 22%, var(--rot) 78%, transparent); opacity: .55; margin-left: clamp(2.2rem, 7vw, 5rem); transform-origin: top; }
@media (min-width: 60rem) { .luecke { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.4fr); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .luecke__linie { animation: linie-ziehen linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
    @keyframes linie-ziehen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}

/* Ein Werk an der Wand */
.werk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
@media (min-width: 40rem) { .werk { grid-template-columns: clamp(10rem, 22vw, 15rem) minmax(0, 1fr); } }
.werk__cover { display: block; aspect-ratio: 2 / 3; background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden; box-shadow: 0 1.2rem 2.6rem -1rem rgba(0, 0, 0, .7); max-width: 15rem; }
.werk__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--weich); }
.werk__cover:hover img { transform: scale(1.025); }
.werk__koerper { display: grid; gap: .85rem; max-width: var(--mass); }
.werk__meta { font-family: var(--f-daten); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); font-variant-numeric: lining-nums tabular-nums; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.werk__titel { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 600; }
.werk__titel a { text-decoration: none; color: inherit; }
.werk__titel a:hover { text-decoration: underline; text-decoration-color: var(--rot); }
.werk__kurz { color: var(--text); }
.werk__hinweis { font-family: var(--f-daten); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--marker); }

/* Kaufwege: ein Weg vorn (Tolino), der Rest aufklappbar. Kein Knopf-Geschrei: Ochsenblut-Fläche, Haarlinie in Rot. */
.wege { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: .35rem; }
.weg-haupt {
  display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .7rem 1.15rem;
  background: var(--ochsenblut);
  border: 1px solid var(--rot);
  color: var(--titel);
  font-family: var(--f-text); font-weight: 600; font-size: 1.02rem;
  text-decoration: none;
  transition: background .25s var(--weich);
}
.weg-haupt:hover { background: var(--ochsenblut-hoch); }
.weg-haupt span { font-weight: 400; color: var(--text); }
.weg-lesen { color: var(--titel); display: inline-flex; align-items: center; min-height: var(--ziel); }
.weitere { position: relative; }
.weitere summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: var(--ziel); font-family: var(--f-daten); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.weitere summary::-webkit-details-marker { display: none; }
.weitere summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .5em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.2em) rotate(45deg); transition: transform .2s var(--weich); }
.weitere[open] summary::after { transform: translateY(.05em) rotate(-135deg); }
.weitere summary:hover { color: var(--titel); }
.weitere ul { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.weitere a { font-size: .98rem; display: inline-flex; align-items: center; min-height: var(--ziel); }

/* ---------------------------------------------------------------- Im Handel */
.handel { border-top: 1px solid var(--linie); background: var(--flaeche); padding: clamp(3rem, 8vw, 5.5rem) var(--rand); scroll-margin-top: 0; }
.handel__innen { max-width: 78rem; margin: 0 auto; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 60rem) { .handel__innen { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.4fr); } }
.handel h2 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.handel__zeile { color: var(--leise); margin-top: .6rem; max-width: 22rem; }
.handel__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--linie); }
.handel__liste li { border-bottom: 1px solid var(--linie); }
.handel__liste a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem .25rem; text-decoration: none; color: var(--text); transition: color .2s ease, transform .3s var(--weich); }
.handel__liste a::after { content: ""; width: .5em; height: .5em; border-top: 1px solid var(--marker); border-right: 1px solid var(--marker); transform: rotate(45deg); flex: none; }
.handel__liste a:hover { color: var(--titel); transform: translateX(.35rem); }
.handel__liste .zuerst a { font-family: var(--f-titel); font-weight: 600; font-size: 1.45rem; color: var(--titel); }
.handel__liste .zuerst { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Werkseite */
.werkseite { max-width: 78rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--rand) clamp(3rem, 8vw, 6rem); }
.zurueck { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--ziel); font-family: var(--f-daten); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); text-decoration: none; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.zurueck svg { width: 1rem; height: 1rem; }
.zurueck:hover { color: var(--titel); }
.werkseite__raster { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 52rem) { .werkseite__raster { grid-template-columns: minmax(14rem, 24rem) minmax(0, 1fr); } }
.werkseite__cover { aspect-ratio: 2 / 3; border: 1px solid var(--linie); background: var(--flaeche); box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, .8); overflow: hidden; max-width: 24rem; }
@media (max-width: 52rem) { .werkseite__cover { max-width: min(14rem, 58vw); } }
.werkseite__cover img { width: 100%; height: 100%; object-fit: cover; }
.werkseite__koerper { display: grid; gap: 1rem; max-width: var(--mass); }
.werkseite__jahr { font-family: var(--f-titel); font-weight: 500; font-variant-numeric: lining-nums; color: var(--rot); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: .85; letter-spacing: -.02em; }
.werkseite h1 { font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.8rem); }
.werkseite__kurz { font-size: 1.15em; color: var(--text); }
.werkseite__daten { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-family: var(--f-daten); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.werkseite__daten div { display: grid; gap: .15rem; }
.werkseite__daten dt { color: var(--marker); }
.werkseite__daten dd { margin: 0; color: var(--text); }
.szene { margin: clamp(3rem, 7vw, 5rem) 0 0; }
.szene img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border: 1px solid var(--linie); filter: saturate(.85); }
.szene figcaption { margin-top: .6rem; font-family: var(--f-daten); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--marker); }

/* ---------------------------------------------------------------- Recht und 404 */
.recht { max-width: var(--mass); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--rand) clamp(3rem, 8vw, 6rem); }
.recht h1 { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); margin-bottom: 1.5rem; }
.recht h2 { font-size: 1.6rem; margin: 2.5rem 0 .6rem; }
.recht p, .recht ul { margin: 0 0 1rem; }
.recht__stand { font-family: var(--f-daten); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--marker); margin-top: 2.5rem; }
.leer { max-width: var(--mass); margin: 0 auto; padding: clamp(4rem, 12vw, 8rem) var(--rand); display: grid; gap: 1.2rem; }
.leer__zweit { color: var(--leise); }
.leer__zahl { font-family: var(--f-titel); color: var(--rot); font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: .8; font-variant-numeric: lining-nums; }

/* ---------------------------------------------------------------- Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 2.5rem var(--rand) 3rem; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.fuss__emblem { width: 3rem; height: 3rem; opacity: .9; }
.fuss__claim { font-family: var(--f-titel); font-size: 1.25rem; color: var(--titel); }
.fuss__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4rem; font-family: var(--f-daten); font-size: .78rem; letter-spacing: .06em; }
.fuss__links a { color: var(--leise); text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--ziel); }
.fuss__links a:hover { color: var(--titel); }
.fuss__stand { font-family: var(--f-daten); font-size: .7rem; letter-spacing: .06em; color: var(--marker); }

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