/* ------------------------------------------------------------ Basis */

:root {
  --color-text: #000;
  --color-bg: #fff;
  /* hellgrauer Seitenhintergrund (auch Menü); die Inhalte liegen als weiße Blätter darauf */
  --color-page: #ebebeb;
  --color-muted: #6b6b6b;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 1rem;
  --passepartout: 1rem;
  --measure: 40rem;
  --border: 0.0625rem solid currentColor;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-page);
}

/* Nur Ausgaben (Ausgabenseite + Artikel) liegen als weißes Blatt mit Abstand zum Rand auf dem Grau */
.tpl-issue main,
.tpl-article main {
  margin: 0 var(--gutter) var(--gutter);
  background: var(--color-bg);
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.prose > * + * {
  margin-top: 1rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* ------------------------------------------------------------ Fotos */

/* so groß wie der Viewport erlaubt, minus Passepartout */
.photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--passepartout);
}

.photo {
  --photo-max-h: calc(100svh - 2 * var(--passepartout));
}

.photo:has(figcaption, .gallery-caption) {
  --photo-max-h: calc(100svh - 2 * var(--passepartout) - 2rem);
}

/* Breite aus Seitenverhältnis: füllt Breite oder Höhe, skaliert auch kleine Bilder hoch */
.photo img {
  width: min(100%, var(--photo-max-h) * var(--ratio, 1));
  height: auto;
  max-width: none;
}

.photo figcaption,
.gallery-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
}

/* Slideshow: horizontal wischen, jedes Bild eine volle Ansicht */
.gallery--slideshow .gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery--slideshow .gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery--slideshow .gallery-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.slideshow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: -0.5rem;
  font-size: 0.875rem;
}

.slideshow-controls button {
  padding: 0.25rem 0.5rem;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ------------------------------------------------------------ Header (schwebend) */

:root {
  --header-height: 2.75rem;
}

body {
  padding-top: calc(var(--header-height) + 1rem);
}

/*
 * Drei Gruppen: CHAOS + Issues links, Bulletin / About / Kontakt rechts.
 * Oben bündig am Viewport, fährt beim Runterscrollen weg und beim Hochscrollen wieder rein.
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
  padding: 0 var(--gutter);
  align-items: center;
  font-size: 1.125rem;
  line-height: 1.2;
  background: var(--color-page);
  transition: transform 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header-left,
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  white-space: nowrap;
}

.site-header a {
  text-decoration: none;
}

/* Menüpunkte komplett klein, nur CHAOS in Versalien */
.nav-issues,
.site-nav {
  text-transform: lowercase;
}

.site-header a[aria-current],
.site-header a[aria-expanded="true"],
.site-header a:hover,
.nav-issues summary:hover,
.nav-issues[open] summary {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.nav-issues {
  position: relative;
}

.nav-issues summary {
  cursor: pointer;
  list-style: none;
}

.nav-issues summary::-webkit-details-marker {
  display: none;
}

.nav-issues ul {
  position: absolute;
  top: calc(100% + (var(--header-height) - 1.35rem) / 2);
  left: -1rem;
  margin: 0;
  padding: 0.25rem 1rem 0.75rem;
  list-style: none;
  white-space: nowrap;
  background: var(--color-page);
}

.nav-issues li + li {
  margin-top: 0.25rem;
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .site-header {
    font-size: 1rem;
  }

  .site-header-left,
  .site-nav {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* ------------------------------------------------------------ Startseite: Ausgaben-Kacheln */

.issue-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem 3rem;
  padding: 1rem var(--gutter) 5rem;
}

/* Cover + Text passen zusammen in den Viewport */
.issue-tile {
  display: block;
  width: min(100%, 28rem, calc((100svh - 16rem) / 1.4142));
  min-width: min(100%, 14rem);
  text-decoration: none;
}

.issue-tile-cover {
  margin-bottom: 1rem;
}

/* Platzhalter im DIN-Format (1 : √2), bis Cover-Fotos da sind */
.issue-tile-placeholder,
.issue-tile-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.4142;
  object-fit: cover;
}

.issue-tile-placeholder {
  background: var(--color-bg);
  box-shadow: 0 0.125rem 1.5rem rgb(0 0 0 / 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.issue-tile:hover .issue-tile-placeholder {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.16);
}

.issue-tile-number {
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.issue-tile-theme {
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

.issue-tile-people {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------ Seitenköpfe */

.issue-head,
.page-head,
.page-default,
.contact,
.about,
.home-intro {
  padding: 2rem var(--gutter) 0;
}

.page-title,
.article-title {
  font-size: 3rem;
  line-height: 1.05;
  font-weight: bold;
  text-transform: uppercase;
}

.issue-label,
.issue-date {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* Thema über die volle Breite, Schriftgröße setzt JS (data-fit-text) */
.issue-theme {
  margin: 0.5rem 0;
  padding: 0 var(--gutter);
  font-size: 18vw;
  line-height: 0.85;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.issue-theme span {
  display: inline-block;
}

.page-head .prose,
.page-default .prose,
.contact .prose {
  max-width: var(--measure);
  margin: 2rem 0 0;
  padding: 0 var(--gutter);
}

.page-head .prose,
.page-default .prose,
.contact .prose {
  padding: 0;
}

.issue-date {
  padding: 0 var(--gutter);
}

/* Infotext über die volle Breite, Print-Button am Desktop rechts daneben */
.issue-info {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 var(--gutter);
}

.issue-print > * + * {
  margin-top: 1rem;
}

@media (min-width: 60rem) {
  .issue-info {
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
  }

  .issue-intro {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .issue-print {
    max-width: 18rem;
  }
}

.page-default h2 {
  margin-top: 2rem;
  font-size: 1rem;
}

/* ------------------------------------------------------------ Artikelübersicht */

/*
 * Fortlaufender Text: Bild · Name (fett) · Titel der Arbeit · nächstes Bild …
 * Alles in derselben Größe; die Bilder sind genau so hoch wie die Versalien
 * (Versalhöhe Helvetica = 0.717em) und stehen auf der Grundlinie.
 */
.index {
  display: block;
  margin: 0;
  padding: 2rem var(--gutter) 4rem;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.index-entry {
  text-decoration: none;
}

.index-entry:hover .index-title {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

.index-img {
  display: inline-block;
  width: auto;
  max-width: none;
  height: 0.717em;
  vertical-align: baseline;
}

.index-name,
.index-heading strong {
  font-weight: 700;
}

/* Kopf der Ausgabe fließt im selben Text: „Issue #1 CHAOS Einleitung …“ */
.index-heading {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
}

.index-heading strong {
  text-transform: uppercase;
}

.index-order {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

@media (min-width: 60rem) {
  .index {
    font-size: 2.5rem;
    line-height: 1.15;
  }
}

/* ------------------------------------------------------------ Fotos vom Heft */

.print-photos {
  border-top: var(--border);
}

.print-photos .section-title {
  padding: 1rem var(--gutter) 0;
}

/* Endlos laufende Bildleiste, Bewegung per JS */
.photo-slider {
  --slide-w: 70vw;
  --slide-h: min(var(--slide-w) * 0.8, 100svh - var(--header-height) - 4rem);
  overflow: hidden;
  padding: 1rem 0 2rem;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.photo-slider:focus-visible {
  outline: var(--border);
  outline-offset: -0.25rem;
}

.photo-slider.is-dragging {
  cursor: grabbing;
}

.photo-slider-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* Bild so breit wie --slide-w, außer die Höhe reicht nicht: dann schmaler,
   damit zwischen den Bildern immer nur der Gap bleibt */
.photo-slide {
  --h: min(var(--slide-w) / var(--ratio), var(--slide-h));
  flex: none;
  align-self: center;
}

.photo-slide img {
  width: calc(var(--h) * var(--ratio));
  height: var(--h);
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

@media (max-width: 40rem) {
  .photo-slider {
    --slide-w: 90vw;
  }
}

/* ------------------------------------------------------------ Artikel */

.article-head,
.article-lead,
.article-body > :not(.photo, .gallery),
.article-foot {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.article-head {
  padding-top: 2rem;
}

.kicker,
.article-overline {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.kicker a {
  text-decoration: none;
}

.article-overline {
  margin-bottom: 0.25rem;
  text-transform: none;
  font-size: 1rem;
}

.article-subtitle {
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.article-artists {
  margin-top: 1rem;
}

.article-lead {
  margin-top: 2rem;
  font-style: italic;
}

.article-lead p + p {
  margin-top: 1rem;
}

.article-body {
  margin-top: 2rem;
}

.article-body p + p {
  margin-top: 1rem;
}

.article-body > :not(.photo, .gallery) {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.quote {
  font-size: 1.25rem;
  line-height: 1.35;
}

.quote footer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.article-foot {
  padding-bottom: 4rem;
}

.article-authors {
  margin-top: 2rem;
}

.bio {
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.875rem;
  border-top: var(--border);
}

.article-bulletin {
  margin-top: 3rem;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 1rem var(--gutter);
  font-size: 0.8125rem;
  text-transform: uppercase;
  border-top: var(--border);
}

.pager a {
  text-decoration: none;
}

.pager-next {
  text-align: right;
}

/* ------------------------------------------------------------ Bulletin (Inhalt) */

.bulletin-head .prose {
  margin-top: 1rem;
}

.bulletin-title {
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.bulletin-group {
  margin-top: 2.5rem;
}

.bulletin-group .section-title {
  margin-bottom: 0.75rem;
}

.bulletin-past summary {
  cursor: pointer;
}

.entry {
  padding: 1rem 0;
  border-top: var(--border);
}

.entry-title {
  font-size: 1.125rem;
  line-height: 1.25;
}

.entry-title a {
  text-decoration: none;
}

.entry-venue,
.entry-dates,
.entry-text,
.entry-articles {
  margin-top: 0.25rem;
}

.entry-articles {
  font-size: 0.875rem;
}

.entry.is-past {
  color: var(--color-muted);
}

/* Fallback-Seite /bulletin */
.bulletin-page {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  padding: 4rem var(--gutter);
}

.bulletin-page .bulletin-title {
  font-size: 3rem;
}

/* ------------------------------------------------------------ Bulletin (Streifen über dem Inhalt) */

/*
 * Der Streifen ist ein eigener Scroll-Container über die volle Höhe.
 * Das Panel startet mit Abstand nach oben (Desktop 15vh, mobil 5rem) und
 * wandert beim Scrollen ganz nach oben – wie ein langer Streifen, der die Seite teilt.
 * Seitliches Padding = Platz für den Schatten (sonst schneidet der Scroll-Container ihn ab).
 */
.bulletin-strip {
  --bulletin-offset: 5rem;
  --bulletin-width: calc(100vw - 4rem);
  --bulletin-shadow-space: 2.5rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 50;
  width: calc(var(--bulletin-width) + 2 * var(--bulletin-shadow-space));
  padding: 0 var(--bulletin-shadow-space);
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: none;
  transform: translate(-50%, 100%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bulletin-strip::-webkit-scrollbar {
  display: none;
}

.bulletin-strip.is-open {
  transform: translate(-50%, 0);
}

.bulletin-panel {
  position: relative;
  min-height: calc(100% - var(--bulletin-offset));
  margin-top: var(--bulletin-offset);
  padding: 1.5rem 1.25rem 3rem;
  font-size: 0.875rem;
  background: var(--color-bg);
  box-shadow: 0 0 1.5rem rgb(0 0 0 / 0.18);
  pointer-events: auto;
  outline: none;
}

.bulletin-panel .bulletin-head {
  padding-right: 1.5rem;
}

.bulletin-panel .entry-title {
  font-size: 1rem;
}

.bulletin-panel .entry-articles {
  font-size: 0.8125rem;
}

.bulletin-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 40rem) {
  .bulletin-strip {
    /* zu Beginn 85vh hoch sichtbar */
    --bulletin-offset: 15vh;
    --bulletin-offset: 15svh;
    --bulletin-width: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bulletin-strip {
    transition: none;
  }
}

/* ------------------------------------------------------------ About */

/* Text läuft bis zum (schmalen, hohen) Bild rechts; das Bild darf höher als der Viewport sein */
.about {
  display: grid;
  gap: 2rem;
  padding-bottom: 4rem;
}

.about-text {
  font-size: 1.5rem;
  line-height: 1.3;
}

.about-editors {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.about-image img {
  width: 100%;
}

@media (min-width: 50rem) {
  .about {
    grid-template-columns: 1fr 25vw;
    align-items: start;
    gap: 3rem;
  }

  .about-text {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .about-editors {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 1.25rem;
  }
}

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

.contact form {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
  margin-top: 2rem;
  padding-bottom: 4rem;
}

.contact fieldset {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact legend {
  margin-bottom: 0.5rem;
}

.contact label {
  display: grid;
  gap: 0.25rem;
}

.contact input[type="radio"] + * {
  display: inline;
}

.contact label:has(input[type="radio"]) {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.contact input:not([type="radio"]),
.contact select,
.contact textarea {
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  border: var(--border);
  border-radius: 0;
  background: var(--color-bg);
}

.contact form:has(input[value="message"]:checked) .order-fields {
  display: none;
}

.contact button,
.button {
  justify-self: start;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font: inherit;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-text);
  border: 0;
  cursor: pointer;
}

.field-error,
.form-error {
  color: #c00;
  font-size: 0.875rem;
}

.form-success {
  max-width: var(--measure);
  margin-top: 2rem;
  padding-bottom: 4rem;
}

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

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.postcard-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden auto;
  overscroll-behavior: contain;
}

.postcard-layer[hidden] {
  display: none;
}

.postcard-backdrop {
  position: fixed;
  inset: 0;
}

/* DIN A6 quer (148 × 105 mm), kommt von rechts und kippt sich zurecht */
.postcard {
  --line: 1.75rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(46rem, 100%);
  aspect-ratio: 148 / 105;
  padding: 1.75rem;
  font-size: 0.875rem;
  background: var(--color-bg);
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.25), 0 0.125rem 0.375rem rgb(0 0 0 / 0.12);
  outline: none;
  transform: translateX(calc(50vw + 100%)) rotate(8deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.postcard-layer.is-open .postcard {
  transform: rotate(-1.5deg);
}

.postcard input,
.postcard textarea {
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
}

/* linke Hälfte: Absender + Nachricht */
.postcard-message {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 1.5rem;
  border-right: var(--border);
}

.postcard-sender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.postcard-sender label {
  display: grid;
  gap: 0.125rem;
}

.postcard-sender span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.postcard-sender input {
  padding-bottom: 0.25rem;
  border-bottom: var(--border);
}

.postcard-text {
  flex: 1;
  display: flex;
  min-height: 0;
  margin-top: 1rem;
}

.postcard textarea {
  flex: 1;
  min-height: calc(4 * var(--line));
  font-style: italic;
  line-height: var(--line);
  resize: none;
  background: repeating-linear-gradient(transparent 0 calc(var(--line) - 0.0625rem), rgb(0 0 0 / 0.18) calc(var(--line) - 0.0625rem) var(--line));
  background-attachment: local;
}

.postcard textarea::placeholder {
  color: var(--color-muted);
}

.postcard [aria-invalid="true"] {
  border-color: #c00;
}

.postcard-status:empty {
  display: none;
}

.postcard-status {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.postcard-status.is-error {
  color: #c00;
}

/* rechte Hälfte: Briefmarke + Anschrift */
.postcard-address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 1.5rem;
}

.postcard-stamp {
  display: grid;
  place-items: center;
  width: 5.5rem;
  aspect-ratio: 4 / 5;
  padding: 0.875rem;
  color: var(--color-bg);
  background: var(--color-text);
  /* Zähnung: volle Fläche innen + Löcher auf dem Rand */
  --perf: 0.625rem;
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--perf)) calc(100% - var(--perf)) no-repeat,
    radial-gradient(circle calc(var(--perf) * 0.35), transparent 98%, #000) calc(var(--perf) / -2) calc(var(--perf) / -2) / var(--perf) var(--perf) round;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - var(--perf)) calc(100% - var(--perf)) no-repeat,
    radial-gradient(circle calc(var(--perf) * 0.35), transparent 98%, #000) calc(var(--perf) / -2) calc(var(--perf) / -2) / var(--perf) var(--perf) round;
  transform: rotate(3deg);
}

.postcard-stamp img {
  filter: invert(1);
}

.postcard-address address {
  align-self: stretch;
  display: grid;
  margin-top: auto;
  font-style: normal;
}

.postcard-address address span {
  padding: 0.5rem 0 0.25rem;
  border-bottom: var(--border);
  overflow-wrap: anywhere;
}

.postcard-address address span:first-child {
  font-weight: bold;
  text-transform: uppercase;
}

.postcard-send {
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  font: inherit;
  color: var(--color-bg);
  background: var(--color-text);
  border: 0;
  cursor: pointer;
}

.postcard-send:disabled {
  opacity: 0.5;
  cursor: wait;
}

.postcard-close {
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

/* abgeschickt: Nachricht weg, Dank statt Formular */
.postcard.is-sent .postcard-sender,
.postcard.is-sent .postcard-text,
.postcard.is-sent .postcard-send {
  display: none;
}

.postcard.is-sent .postcard-status {
  margin: auto 0;
  font-size: 1.125rem;
  font-style: italic;
}

/* mobil: hochkant gestapelt, Anschrift oben */
@media (max-width: 40rem) {
  .postcard-layer {
    place-items: start center;
  }

  .postcard {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    margin: 4rem 0 1rem;
    padding: 1.25rem;
  }

  .postcard-message {
    order: 2;
    padding: 1.25rem 0 0;
    border-right: 0;
  }

  /* Kinder direkt ins Raster, damit der Button unter die Nachricht rutscht */
  .postcard-address {
    display: contents;
  }

  .postcard-stamp {
    justify-self: end;
    width: 4rem;
    margin-right: 2rem;
  }

  .postcard-address address {
    margin-top: 0.5rem;
  }

  .postcard-send {
    order: 3;
    justify-self: end;
  }

  .postcard textarea {
    min-height: calc(6 * var(--line));
  }
}

@media (prefers-reduced-motion: reduce) {
  .postcard {
    transition: none;
  }
}

/* ------------------------------------------------------------ Footer */

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--gutter);
  font-size: 0.8125rem;
}

.footer-meta a {
  text-decoration: none;
}


/* ------------------------------------------------------------ Mobile */

@media (max-width: 40rem) {
  .page-title,
  .article-title {
    font-size: 2.25rem;
  }
}

/* ------------------------------------------------------------ Artikel · Konzept 1 (Text links, Bilder rechts) */

.article--split .article-head {
  max-width: none;
  padding: 1rem var(--gutter) 2rem;
}

.article--split .article-title {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  font-weight: bold;
}

.article--split .article-lead,
.article--split .article-body > *,
.article--split .article-foot {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.split-text {
  padding: 1rem var(--gutter) 3rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.split-text .article-lead {
  margin-top: 0;
}

.split-text .quote {
  font-size: 1.25em;
}

.split-text .bio,
.split-text .article-bulletin {
  font-size: 0.75em;
}

.split-text .article-foot {
  padding-bottom: 0;
}

.split-images {
  position: relative;
}

.split-images .photo {
  min-height: 0;
}

@media (max-width: 59.99rem) {
  /* mobil: einspaltig, erst die Bilder, dann der Text */
  .split-sticky {
    display: flex;
    flex-direction: column;
  }

  .split-images {
    order: -1;
  }
}

@media (min-width: 60rem) {
  .split-sticky {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .split-col {
    will-change: transform;
  }

  .split-text {
    padding: 1rem 3rem 3rem var(--gutter);
    font-size: 1.625rem;
    line-height: 1.35;
  }

  .split-images .photo {
    align-items: flex-start;
    padding: 0 var(--passepartout) var(--passepartout);
  }

  .split-images .photo:first-child {
    padding-top: var(--passepartout);
  }
}

/* ------------------------------------------------------------ Lyrik */

.article-body hr {
  margin: 3rem 0;
  border: 0;
  border-top: var(--border);
}
