/* constantinmelchers.de — Design-System
   Swiss Grotesk: Weiß, Schwarz, ein Grau und eine Haarlinie. Eine Schrift.
   Zwölf Spalten, Teilung 3 zu 9: links klein die Einordnung, rechts groß die Aussage.
   Startabschnitte und Artikelköpfe erhalten wieder eine eigene Bildschirmbühne.
   Nach dem Artikelkopf bleibt der Lesetext zusammenhängend. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.4c98b9d4.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #ffffff;
  --ink: #000000;
  --grey: #737373;
  --line: #000000;
  --hairline: #d9d9d9;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --margin: clamp(20px, 3.5vw, 56px);
  --gutter: clamp(12px, 1.6vw, 28px);
  --stage-pad: clamp(96px, 14vh, 168px);
  --stage-top: clamp(150px, 20vh, 220px);
  --space-section: clamp(64px, 6vw, 96px);
  --rule-gap: 18px;

  --text: 1.125rem;
  --text-small: 0.9375rem;
  --text-prose: clamp(1.125rem, 1.02rem + 0.32vw, 1.3125rem);
  --text-list: clamp(1.25rem, 0.95rem + 0.95vw, 1.875rem);
  --text-title: clamp(1.625rem, 1.05rem + 1.9vw, 3rem);
  --text-lead: clamp(1.625rem, 1.05rem + 1.8vw, 2.75rem);
  --text-quote: clamp(2.25rem, 0.8rem + 4.2vw, 4.875rem);
  --text-display: clamp(2.625rem, 0.9rem + 5.1vw, 6rem);
  --text-article-title: clamp(2.625rem, 1.1rem + 3.9vw, 5rem);

  --stretch-display: 88%;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-quick: 180ms;
}

/* Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
  scrollbar-width: thin;
}

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  font-weight: 400;
  line-height: 1.5;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

p,
li {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 12px;
  left: var(--margin);
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip:focus-visible {
  transform: none;
}

/* Raster */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

/* Links */

.link-strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-thickness var(--dur-quick) var(--ease-out);
}

.link-strong:hover {
  text-decoration-thickness: 2px;
}

.link-quiet {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--dur-quick) var(--ease-out);
}

.link-quiet:hover {
  text-decoration-color: currentColor;
}

.icon-arrow {
  flex: none;
  width: 0.72em;
  height: 0.72em;
  align-self: center;
  transition: transform 320ms var(--ease-out);
}

a:hover > .icon-arrow {
  transform: translateX(3px);
}

a[href^="http"]:hover > .icon-arrow {
  transform: translate(2px, -2px);
}

.meta {
  color: var(--grey);
  font-size: var(--text-small);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Kopf: liegt über der ersten Bühne und scrollt mit */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  align-items: center;
  padding-block: clamp(18px, 2.2vw, 30px);
  line-height: 1.3;
}

.brand {
  grid-column: 1 / span 3;
  font-size: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  background: var(--paper);
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-nav {
  grid-column: 8 / -1;
  justify-self: end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

/* Bühnen */

.buehne {
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  padding-block: var(--stage-pad);
}

.buehne-erste {
  align-content: end;
  padding-top: var(--stage-top);
  padding-bottom: clamp(40px, 8vh, 96px);
}

.buehne-liste {
  align-items: start;
}

.texte-uebersicht {
  padding-top: var(--stage-top);
}

/* Die Startabschnitte übernehmen die volle Höhe und den Weißraum von .buehne. */

.display,
.artikel-titel {
  font-size: var(--text-display);
  font-weight: 500;
  font-stretch: var(--stretch-display);
  line-height: 0.98;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.artikel-titel {
  font-size: var(--text-article-title);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.aussage,
.display.aussage {
  grid-column: 4 / -1;
}

.display {
  max-width: 21ch;
}

/* Der persönliche Gruß eröffnet den Hero groß und fett. */
.hero-gruss {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  font-stretch: var(--stretch-display);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-einordnung {
  max-width: 43ch;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: var(--text-prose);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Jeder Satz beginnt eine neue Zeile und wird für sich ausbalanciert. */
.display .zeile {
  display: block;
}

.zeilen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: clamp(24px, 2.6vw, 40px);
}

/* Artikelkopf: Titel und Metadaten gehören eng zusammen. */

.artikel-titel {
  grid-column: 4 / -1;
  grid-row: 1;
  max-width: 21ch;
}

.artikel-meta {
  grid-column: 4 / -1;
  grid-row: 2;
}

.weiter-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}

/* Abschnitte mit Liste: links die Überschrift der Liste, rechts die Liste */

.abschnitt {
  align-items: start;
  padding-top: var(--space-section);
}

.abschnitt-kopf {
  grid-column: 1 / span 3;
}

.abschnitt-inhalt {
  grid-column: 4 / -1;
}

.abschnitt-kopf,
.abschnitt-inhalt {
  border-top: 1px solid var(--line);
  padding-top: var(--rule-gap);
}

.abschnitt-kopf h1,
.abschnitt-kopf h2,
.abschnitt-kopf h3 {
  font-size: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.abschnitt-kopf .meta {
  max-width: 24ch;
  margin-top: 6px;
}

/* Register der Texte */

.register > li {
  border-bottom: 1px solid var(--hairline);
}

.register a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--gutter);
  padding-top: 18px;
  padding-bottom: 18px;
}

.register > li:first-child > a {
  padding-top: 0;
}

.register-titel {
  max-width: 34ch;
  font-size: var(--text-list);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.register-meta {
  white-space: nowrap;
}

.register a:hover .register-titel,
.register a:focus-visible .register-titel {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--text-small);
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pagination-zurueck {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.pagination-stand {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.pagination-weiter {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

/* Die Startseite gibt jedem Beitrag Titel, Teaser und eigenen Weißraum. */
.register--teaser a {
  row-gap: 14px;
  padding-block: clamp(32px, 3.5vw, 52px);
}

.register--teaser .register-titel {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--text-title);
  font-stretch: var(--stretch-display);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.register-teaser {
  grid-column: 1;
  grid-row: 2;
  max-width: 58ch;
  font-size: var(--text-prose);
  line-height: 1.5;
}

.register--teaser .register-meta {
  grid-column: 2;
  grid-row: 1;
}

/* Über: Porträt und Erzählung teilen eine großzügige Bühne. */

.start-ueber {
  align-items: start;
}

.ueber-portrait {
  grid-column: 1 / span 5;
}

.ueber-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 48% center;
  filter: grayscale(1);
}

.ueber-erzaehlung {
  grid-column: 7 / -1;
}

.ueber-erzaehlung h2 {
  margin-bottom: clamp(28px, 3vw, 40px);
  font-size: var(--text-title);
  font-weight: 500;
  font-stretch: var(--stretch-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ueber-text {
  max-width: 46ch;
  font-size: var(--text-prose);
  line-height: 1.58;
}

.ueber-text p + p {
  margin-top: 1.2em;
}

/* Kontakt */

.kontakt-mail {
  margin-top: clamp(28px, 3vw, 48px);
  font-size: var(--text-lead);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.kontakt-mail .link-strong {
  font-weight: 400;
}

/* Artikel: Der Titel erhält eine eigene Bühne, danach fließt der Text zusammen. */

.artikel-kopf {
  row-gap: clamp(28px, 3.2vw, 48px);
}

.artikel-herkunft {
  padding-top: var(--space-section);
}

.herkunft-inhalt {
  grid-column: 4 / -1;
  max-width: 54ch;
}

.artikel-herkunft a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.artikel-herkunft em,
.lead em,
.quellen em {
  font-style: normal;
}

.herkunft-inhalt p + p {
  margin-top: 10px;
}

.artikel-einstieg .lead {
  grid-column: 4 / -1;
}

.artikel-text,
.artikel-zitat {
  padding-top: var(--space-section);
}

.lead {
  max-width: 30ch;
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

.artikel-text .prose {
  grid-column: 4 / -1;
}

.prose {
  max-width: 34em;
  font-size: var(--text-prose);
  line-height: 1.58;
  hyphens: manual;
}

.prose > * + * {
  margin-top: 0.6em;
}

.prose h2 {
  max-width: 20ch;
  margin-top: var(--space-section);
  font-size: var(--text-title);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h2 + * {
  margin-top: 0.55em;
}

.prose h3 {
  margin-top: 1.2em;
  font-size: 1em;
  font-weight: 600;
}

.prose a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong,
.prose em {
  font-style: normal;
  font-weight: 600;
}

.prose blockquote {
  padding-left: 1.1em;
  border-left: 1px solid var(--ink);
}

.prose hr {
  width: 48px;
  margin: var(--space-section) 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.prose hr + h2 {
  margin-top: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.1em;
}

.prose ul li + li {
  margin-top: 0.35em;
}

.prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.zitat {
  grid-column: 4 / -1;
}

.zitat p {
  max-width: 21ch;
  font-size: var(--text-quote);
  font-weight: 500;
  font-stretch: var(--stretch-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.quellen {
  max-width: 48em;
  color: var(--grey);
  font-size: var(--text-small);
  line-height: 1.5;
}

.quellen li + li {
  margin-top: 8px;
}

.quellen a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.weiterlesen {
  padding-block: calc(var(--space-section) * 2) var(--space-section);
}

.weiter-link {
  grid-column: 4 / -1;
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.weiter-titel {
  max-width: 28ch;
  font-size: var(--text-title);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.weiter-link:hover .weiter-titel,
.weiter-link:focus-visible .weiter-titel {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.weiter-link:hover .icon-arrow {
  transform: translateX(3px);
}

/* Fuß */

/* Rechtstexte: direkter Einstieg, daneben eine schlichte Abschnittsnavigation. */

.recht-kopf {
  padding-top: var(--stage-top);
}

.recht-inhalt {
  align-items: start;
  padding-block: clamp(40px, 5vw, 72px) var(--space-section);
}

.recht-nav {
  grid-column: 1 / span 3;
  position: sticky;
  top: 32px;
  max-height: calc(100svh - 64px);
  overflow-y: auto;
  max-width: 24ch;
  padding-right: var(--gutter);
  color: var(--grey);
  font-size: var(--text-small);
  line-height: 1.45;
}

.recht-nav a {
  display: inline-block;
  padding-block: 6px;
}

.recht-text {
  grid-column: 4 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recht-text h2,
.recht-text h3 {
  scroll-margin-top: 32px;
}

.site-footer {
  align-items: baseline;
  padding-block: clamp(40px, 6vw, 72px) clamp(20px, 2.4vw, 32px);
}

.site-footer > .meta {
  grid-column: 1 / span 3;
}

.footer-links {
  grid-column: 4 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--grey);
  font-size: var(--text-small);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Mittlere Breiten */

@media (max-width: 1080px) {
  .brand {
    grid-column: 1 / span 4;
  }

  .site-nav {
    grid-column: 9 / -1;
  }
}

/* Schmal: eine Spalte, dieselbe Reihenfolge */

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-header {
    align-items: start;
  }

  .brand {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 4 / -1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: auto;
    gap: 0;
  }

  .site-nav a {
    display: block;
    line-height: 1.7;
    min-height: 36px;
  }

  .buehne-erste,
  .recht-kopf,
  .texte-uebersicht {
    padding-top: 170px;
  }

  .artikel-titel,
  .weiter-link,
  .artikel-meta,
  .herkunft-inhalt,
  .aussage,
  .display.aussage,
  .abschnitt-kopf,
  .abschnitt-inhalt,
  .artikel-einstieg .lead,
  .artikel-text .prose,
  .recht-nav,
  .recht-text,
  .zitat,
  .site-footer > .meta,
  .footer-links {
    grid-column: 1 / -1;
  }

  .hero-gruss {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .artikel-kopf {
    row-gap: 18px;
  }

  .display,
  .artikel-titel,
  .register-titel,
  .weiter-titel,
  .zitat p,
  .prose h2 {
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
    overflow-wrap: break-word;
  }

  .prose {
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }

  .abschnitt-inhalt {
    border-top: 0;
    padding-top: 24px;
  }

  .start-ueber {
    row-gap: clamp(36px, 6vw, 48px);
  }

  .ueber-portrait,
  .ueber-erzaehlung {
    grid-column: 1 / -1;
  }

  .register a {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .register--teaser a {
    row-gap: 14px;
  }

  .register--teaser .register-meta {
    grid-column: 1;
    grid-row: 3;
    margin-top: 2px;
  }

  .footer-links {
    margin-top: 10px;
  }

  .recht-nav {
    position: static;
    max-height: none;
    overflow-y: visible;
    max-width: none;
    padding: 0 0 36px;
  }

  .recht-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .icon-arrow,
  .link-strong,
  .link-quiet {
    transition: none;
  }
}
