/* 차드 브릿지 – main.css
   Aufbau: 1 Variablen · 2 Grundlagen · 3 Layout · 4 Bausteine · 5 Seiten · 6 Druck
   Farben und Schrift kommen später vom 디자인팀: nur Abschnitt 1 anpassen. */

/* ---------- 1 Variablen ---------- */
:root {
  /* Farben des 디자인팀 (Stand 15.11.2026) */
  --color-navy: #1f2d47;     /* 잉크 네이비: Text, Überschriften, dunkle Flächen, Buttons */
  --color-blue: #24438f;     /* 차드 블루: Links, Schmuck */
  --color-yellow: #f2c230;   /* 차드 옐로: nur Fläche/Schmuck oder Text auf Navy */
  --color-red: #c0272d;      /* 차드 레드: Kapitelüberschriften, Akzente */
  --color-gold: #b58a45;     /* 골드: nur Schmuck (Kontrast zu schwach für Text) */

  --color-bg: #f6f0e4;       /* 종이 */
  --color-bg-soft: #efe7d6;  /* abgesetzte Bereiche, etwas dunkler als Papier */
  --color-panel: #fbf8f1;    /* helle Karten auf Papier */
  --color-ph: #e5dac6;       /* Platzhalterflächen für Fotos */
  --color-text: #1f2d47;
  --color-text-soft: #4a5568;
  --color-line: #e3d8c4;     /* 격자선 */
  --color-focus: #1f2d47;

  /* Pretendard (Vorgabe 디자인팀, 19.11.2026), selbst gehostet in assets/fonts/pretendard/ (OFL-Lizenz).
     Lädt nur die Zeichen-Teildateien, die auf der Seite vorkommen. */
  --font-body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-heading: var(--font-body);

  --radius: 0.5rem;
  --space: 1.25rem;          /* Seitenrand auf dem Handy */
  --width-page: 64rem;
  --width-text: 36em;        /* ca. 36 koreanische Zeichen pro Zeile */
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18 px */
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--color-blue); text-underline-offset: 0.2em; }
a:hover { color: var(--color-red); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 4.5rem; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; color: #fff; }

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

/* ---------- 3 Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Landschaft des 디자인팀 (16:9): steht fest hinter dem Inhalt, der Inhalt scrollt darüber.
   - landscape.svg: Erde, Himmel und Flaggenbalken. Wird nie verändert oder animiert.
   - sprouts.svg:   Sprösslinge in exakt derselben Fläche. Ohne JavaScript als fertiges Bild,
                    mit sprouts.js wachsen sie beim Scrollen (dann .is-animated).
   Beide Ebenen nutzen dieselbe Fläche und dieselbe Skalierung (cover, unten mittig),
   daher liegen sie immer deckungsgleich. */
.landscape {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("../img/theme/sprouts.svg") center bottom / cover no-repeat,
    url("../img/theme/landscape.svg") center bottom / cover no-repeat;
}
.landscape.is-animated {
  background: url("../img/theme/landscape.svg") center bottom / cover no-repeat;
}
.landscape > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Hochformat (Handy): Landschaft in voller Breite unten, damit links und rechts
   möglichst viele Sprösslinge sichtbar bleiben, statt nur die Bildmitte. */
@media (max-aspect-ratio: 1/1) {
  .landscape {
    inset: auto 0 0 0;
    height: max(56.25vw, 42vh);
    /* Nur der Himmel oben läuft weich ins Papier aus, damit keine Kante entsteht.
       Die Erde beginnt erst unterhalb von 35 % und bleibt unverändert. */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%);
    mask-image: linear-gradient(to bottom, transparent, #000 32%);
  }
}

/* Der Inhalt liegt auf einem leicht durchscheinenden Papierbogen, damit der Text
   auf jedem Hügel lesbar bleibt (Deckkraft nicht unter 0.82 senken: Kontrast Rot auf Papier). */
main {
  max-width: 68rem;
  margin: 0.5rem;
  background: rgb(246 240 228 / 0.82);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  overflow: clip;   /* wie hidden, blockiert aber das mitlaufende Inhaltsverzeichnis (sticky) nicht */
}

.section { padding-block: 2.5rem; }
.section--soft { background: rgb(31 45 71 / 0.045); }
.prose { max-width: var(--width-text); }

/* Kopfzeile: Logo + immer sichtbare Links, kein Hamburger-Menü */
.site-header {
  position: sticky;          /* bleibt oben stehen: Navigation ist immer erreichbar */
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 3.5rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
}
.site-logo__img { width: auto; height: 3rem; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.625rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}
/* Lesefortschritt (nur Ausgabenseiten, progress.js): dünne Linie unten an der Kopfzeile.
   Der Farbverlauf steht fest über die ganze Breite und wird nur freigelegt,
   so erscheinen Blau → Gelb → Rot nacheinander wie im Flaggenbalken. */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #153d8a, #536a92 28%, #ffe000 57%, #ff9b00 78%, #d3152e);
  clip-path: inset(0 calc(100% - var(--progress, 0) * 100%) 0 0 round 0 2px 2px 0);
}
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Footer: Aufbau nach Vorbild hanmaum.de (Logo links, daneben Links und kurze Angaben),
   Farben wie die übrige Seite: helle Papierfläche auf der Landschaft (Entscheidung Min, 18.11.2026).
   Flaggenbalken kommt aus landscape.svg. Kein Telefon, keine Social-Media-Links. */
.site-footer {
  position: relative;
  margin-top: 1.5rem;
  padding-block: 1.5rem 2.25rem;
  font-size: 1rem;
}
.site-footer__inner {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  width: auto;
  margin-inline: 0.5rem;     /* gleicher Rand wie der Inhaltsbogen */
  padding-block: 1.25rem;
  background: rgb(251 248 241 / 0.92);
  border-radius: calc(var(--radius) * 2);
}
.site-footer__logo { display: inline-flex; justify-self: start; }
.site-footer__logo img { width: auto; height: 4.5rem; }
.site-footer p { margin: 0 0 0.75rem; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.site-footer__links li + li::before {
  content: "|";
  margin-inline: 0.5rem;
  color: var(--color-text-soft);
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}
.site-footer__small {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.9375rem;
  color: var(--color-text-soft);
}
.site-footer__small:last-child { margin-bottom: 0; }
@media (min-width: 40rem) {
  .site-footer__inner { grid-template-columns: auto 1fr; gap: 2.5rem; margin-inline: 1rem; }
}

/* Popup für Impressum und Datenschutz (legal.js). Ohne JavaScript öffnen die Links die normale Seite. */
.legal-dialog {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: calc(100% - 3rem);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) * 2);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: 0 1rem 3rem rgb(31 45 71 / 0.35);
}
.legal-dialog::backdrop { background: rgb(31 45 71 / 0.6); }
/* Bewegung wie das Popup auf hanmaum.de (Bootstrap „fade"): Fenster gleitet von oben herein
   (0,3 s, ease-out) und blendet ein (0,15 s), der Hintergrund dunkelt ab. Schließen umgekehrt. */
.legal-dialog, .lightbox {
  opacity: 0;
  transform: translateY(-25%);
  transition: opacity 0.15s linear, transform 0.3s ease-out;
}
.legal-dialog.is-open, .lightbox.is-open { opacity: 1; transform: none; }
.legal-dialog::backdrop, .lightbox::backdrop { opacity: 0; transition: opacity 0.15s linear; }
.legal-dialog.is-open::backdrop, .lightbox.is-open::backdrop { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .legal-dialog, .legal-dialog::backdrop, .lightbox, .lightbox::backdrop { transition: none; }
  .legal-dialog, .lightbox { transform: none; }
}
.legal-dialog__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  background: var(--color-panel);
  border-bottom: 1px solid var(--color-line);
}
.legal-dialog__bar h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.375rem; hyphens: auto; overflow-wrap: break-word; }
.legal-dialog__bar .button { flex: none; }  /* „닫기" nie abschneiden, auch bei langem Titel */
.legal-dialog__body { padding: 1.25rem; word-break: normal; hyphens: auto; }
.legal-dialog__body h3 { font-size: 1.125rem; margin-top: 1.25rem; }
.legal-dialog__body > :last-child { margin-bottom: 0; }
body.has-dialog { overflow: hidden; }

/* Fotos, die sich groß öffnen lassen (lightbox.js). Ohne JavaScript öffnet der Link das große Bild. */
.zoom {
  position: relative;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.zoom__hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(31 45 71 / 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
}

/* Großansicht. Laptop: großes Fenster in der Mitte. Handy: ganzer Bildschirm, Bedienung unten (Daumen). */
.lightbox {
  width: min(72rem, calc(100% - 2rem));
  height: min(56rem, calc(100% - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #141c2b;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(15 20 30 / 0.85); }
.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.lightbox__count { margin: 0; font-size: 1rem; font-weight: 700; }
.lightbox__stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  touch-action: none;          /* Zoomen und Ziehen übernimmt lightbox.js */
  overscroll-behavior: contain;
}
.lightbox__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox__stage.is-zoomed .lightbox__canvas {
  width: max-content;
  height: max-content;
  min-width: 100%;
  min-height: 100%;
}
.lightbox__stage picture { display: contents; }
.lightbox__stage img {
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: zoom-in;
}
.lightbox__stage.is-zoomed img { max-width: none; max-height: none; cursor: grab; }
.lightbox__stage.is-dragging img { cursor: grabbing; }
.lightbox__caption { margin: 0; padding: 0.75rem 1rem 0; text-align: center; font-size: 1rem; }
.lightbox__controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem max(1rem, env(safe-area-inset-bottom));
}
.lightbox__btn {
  min-width: 3rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 2px solid rgb(255 255 255 / 0.75);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
}
.lightbox__btn:hover,
.lightbox__btn:active { background: #fff; color: var(--color-navy); }
.lightbox__btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: #fff; }
.lightbox :focus-visible { outline: 3px solid var(--color-yellow); outline-offset: 2px; }
@media (max-width: 40rem) {
  .lightbox {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .lightbox__controls .lightbox__btn { flex: 1; padding: 0 0.5rem; }
}

/* ---------- 4 Bausteine ---------- */

/* Button */
/* Buttons – eine Regel für alle (Wunsch Min, 27.11.2026):
   Auf hellem Grund ist der Button hell (Rahmen) und wird beim Zeigen/Tippen dunkel gefüllt.
   Auf dunklem Grund (Großansicht) ist er dunkel und wird beim Zeigen/Tippen weiß.
   .button--ghost bleibt als gleichbedeutender Name bestehen. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--color-navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  cursor: pointer;
}
.button:hover,
.button:active,
.issue-card:hover .button { background: var(--color-navy); color: #fff; }

/* Sichtbarer Platzhalter für fehlende Inhalte – vor Veröffentlichung muss alles weg sein */
.todo {
  padding: 0.75rem 1rem;
  border: 2px dashed var(--color-red);
  border-radius: var(--radius);
  color: var(--color-red);
  font-size: 1rem;
  background: var(--color-panel);
}

/* Platzhalterbild: neutrale Fläche „사진 준비 중" */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--color-ph);
  color: var(--color-text-soft);
  font-size: 1rem;
  border-radius: var(--radius);
}
.ph--wide { aspect-ratio: 16 / 9; }

/* Bild mit Unterschrift */
.figure { margin: 1.5rem 0; }
.figure img, .figure .ph { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 0.5rem; font-size: 1rem; color: var(--color-text-soft); }

/* Kleine Kennzeile über Titeln, z. B. „창간호 · 제1호 · 2026년 12월" */
.kicker {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-soft);
}

/* Schmuck: Quadrate aus dem Logo als Trenner */
.squares { display: flex; gap: 0.375rem; margin: 0 0 1rem; }
.squares span { width: 0.75rem; height: 0.75rem; border-radius: 2px; background: var(--color-blue); }
.squares span:nth-child(2) { background: var(--color-yellow); }
.squares span:nth-child(3) { background: var(--color-red); }

/* Karte der aktuellen Ausgabe – ganze Karte klickbar, Button bleibt sichtbares Ziel */
.issue-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
}
.issue-card__title { margin-bottom: 0.4em; }
.issue-card .button::after { content: ""; position: absolute; inset: 0; }
.issue-card:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.issue-card .button:focus-visible { outline: none; }

/* Liste aller Ausgaben – wie eine Blog-Übersicht: Vorschaubild, Titel, Datum, Anriss */
.issue-list { margin: 0; padding: 0; list-style: none; }
.issue-list__item {
  position: relative;
  padding-block: 1.25rem;     /* Liste wie eine Blog-Übersicht, ohne Vorschaubild (kein Cover je Ausgabe) */
  border-top: 1px solid var(--color-line);
}
.issue-list__item:last-child { border-bottom: 1px solid var(--color-line); }
.issue-list__title { margin: 0 0 0.25rem; font-size: 1.25rem; }
.issue-list__title a { text-decoration: none; }
.issue-list__title a::after { content: ""; position: absolute; inset: 0; }
.issue-list__item p { margin: 0; font-size: 1rem; color: var(--color-text-soft); }
.issue-list__item .todo { position: relative; margin-top: 0.5rem; color: var(--color-red); }

/* Seitentitel der Unterseiten (갤러리, 소식지 모아보기): gleiche Schrift, Größe und Schmuckquadrate */
.page-title { margin: 0 0 1rem; font-size: 1.75rem; }
@media (min-width: 40rem) { .page-title { font-size: 2rem; } }

/* Startseite: Link unter der aktuellen Ausgabe zur Sammelseite */
.latest-more { margin: 1rem 0 0; text-align: right; }
.latest-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 700;
}

/* Sammelseite aller Ausgaben (sosikji/): Karten, neueste zuerst. Die ganze Karte ist klickbar. */
.issue-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.issue-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-navy);
  border-radius: var(--radius);
}
.issue-tile:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.issue-tile__no {
  /* gleiche Form wie die Kapitelnummern in der Ausgabe */
  margin: 0 0 0.75rem;
  padding: 0.5625rem 0.625rem;
  background: var(--color-navy);
  color: var(--color-yellow);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  border-radius: 0.25rem;
}
.issue-tile__title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.issue-tile__title a { color: inherit; text-decoration: none; }
.issue-tile__title a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.issue-tile__title a:focus-visible { outline: none; }
.issue-tile__teaser { color: var(--color-text-soft); }
.issue-tile .button { margin-top: auto; }
.issue-tile:hover .button { background: var(--color-navy); color: #fff; }
.issue-tile__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.125rem 0.625rem;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
}
@media (min-width: 40rem) { .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .issue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Karussell: CSS scroll-snap, funktioniert ohne JS; carousel.js ergänzt Pfeil-Buttons */
.carousel__track {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem var(--space) 1rem;
  margin-inline: calc(var(--space) * -1);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space);
}
.carousel__track > li { flex: 0 0 78%; scroll-snap-align: start; }
.carousel__track .figure { margin: 0; }
.carousel__controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.75rem; }
.carousel__btn {
  width: 3rem; height: 3rem;
  border: 2px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-panel);
  color: var(--color-navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.carousel__btn:hover,
.carousel__btn:active { background: var(--color-navy); color: #fff; }
.carousel__btn:disabled { opacity: 0.35; cursor: default; background: var(--color-panel); color: var(--color-navy); }

/* Bildraster der Galerieseite */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.photo-grid .figure { margin: 0; }
/* Raster und Karussell: einheitlicher Bildausschnitt, auch bei anderem Seitenverhältnis */
.photo-grid img, .carousel__track img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Faktenleiste (Rubrik 2): Zahl groß, Beschriftung klein, Quelle darunter */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-navy);
  border-radius: var(--radius);
}
.facts__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--color-text-soft); }
.facts__value {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;   /* Ziffern springen beim Hochzählen nicht */
  white-space: nowrap;                   /* „약 1,295달러" bleibt in einer Zeile */
}
.facts__approx { font-size: 0.7em; font-weight: 700; color: var(--color-text-soft); }
@media (max-width: 39.99rem) {
  .facts__value { font-size: clamp(1.125rem, 5.2vw, 1.375rem); }
}
.facts__source { margin-top: auto; font-size: 0.8125rem; line-height: 1.4; color: var(--color-text-soft); }

/* Zitatblock (다짐 한마디, Interview) */
.quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 0.375rem solid var(--color-navy);
  background: var(--color-panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p:last-of-type { margin-bottom: 0.5rem; }
.quote footer { font-size: 1rem; font-weight: 700; color: var(--color-text-soft); }

/* Gebetsliste (Rubrik 5) */
.prayer-list {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.25rem 2.75rem;
  background: var(--color-panel);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
}
.prayer-list li + li { margin-top: 0.75rem; }

/* ---------- 5 Seiten ---------- */

/* Hauptseite: kompakter Einstieg, damit die aktuelle Ausgabe auf dem ersten Bildschirm steht */
.intro { padding-block: 1rem 0; text-align: center; }
.intro + .section { padding-top: 1.25rem; }
.intro__logo { width: 9.5rem; height: auto; margin: 0 auto 0.5rem; }
.intro h1 { margin-bottom: 0.3em; font-size: 1.5rem; }
.intro .todo { text-align: left; }
.intro__en { font-weight: 400; color: var(--color-text-soft); }

/* Ausgabenseite */
.issue-cover { padding-block: 1.5rem 2rem; background: rgb(31 45 71 / 0.045); }
.issue-cover__inner { text-align: center; }
.issue-cover__logo { width: 11rem; height: auto; margin: 0 auto 1rem; }
.issue-cover__inner .todo { text-align: left; }
.toc {
  margin-block: 2rem;
  padding: 1.25rem;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.toc h2 { font-size: 1.25rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; gap: 0.75rem; align-items: baseline; min-height: 2.75rem; padding-block: 0.375rem; }
.toc__no { flex: 0 0 4.5rem; font-size: 0.9375rem; font-weight: 700; color: var(--color-text-soft); }

.chapter { padding-block: 2.5rem; border-top: 1px solid var(--color-line); }
.chapter__no {
  display: block;              /* block statt inline-block, sonst wirkt der negative Abstand oben nicht */
  width: fit-content;
  min-width: 1.875rem;         /* einzelne Ziffern: fast quadratisch */
  margin: -0.75rem 0 0.75rem;  /* ganze Box näher an die Trennlinie, mehr Luft zur Überschrift (Wunsch Min) */
  padding: 0.5625rem 0.625rem;
  background: var(--color-navy);
  color: var(--color-yellow);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  /* Optisch genau mittig: Leerraum über und unter der Schrift abschneiden,
     sodass nur die Höhe von Ziffern und Großbuchstaben zählt (gilt für „4" wie für „Special").
     Ältere Browser ignorieren das und zeigen die Zeile mit line-height 1, also fast mittig. */
  text-box: trim-both cap alphabetic;
  border-radius: 0.25rem;
}
.chapter > h2 { color: var(--color-red); }
/* Autorzeile unter dem Kapiteltitel („글 김소연") */
.chapter__by { margin: -0.25rem 0 1.25rem; font-size: 1rem; font-weight: 600; color: var(--color-text-soft); }
/* Unterzeile in Zwischenüberschriften („– 말씀을 심습니다.") */
.h-sub { font-weight: 500; color: var(--color-text-soft); }
.chapter__body h3 { margin-top: 1.75rem; }
.chapter__body > h3:first-child, .chapter__body > .lead + h3 { margin-top: 0.75rem; }
.lead { font-size: 1.1875rem; font-weight: 700; color: var(--color-navy); }

/* Interview: Frage als kleine Überschrift, Antwort als normaler Text */
.interview {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.interview h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-navy);
}
.interview h4:first-child { margin-top: 0; }
.interview > :last-child { margin-bottom: 0; }
.interview__big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.02em;
}

/* Gebetsanliegen als ruhige, hervorgehobene Karte */
.prayer-card {
  margin: 1rem 0 1.25rem;
  padding: 1.25rem;
  background: var(--color-panel);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
}
.prayer-card > :last-child { margin-bottom: 0; }
/* Nummerierte Anliegen innerhalb der Karte: kein zweiter Rahmen */
.prayer-card .prayer-list {
  margin: 0 0 1rem;
  padding: 0 0 0 1.5rem;
  background: none;
  border: 0;
  border-radius: 0;
}
.prayer-card__amen { font-weight: 700; color: var(--color-navy); }

/* Aufklappbarer Originaltext (z. B. Französisch) */
.original { margin: 0 0 1rem; font-size: 1rem; }
.original summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--color-blue);
  cursor: pointer;
}
.original p { margin-top: 0.5rem; color: var(--color-text-soft); word-break: normal; hyphens: auto; }
.quote footer + .todo { margin-top: 0.5rem; }
/* Text bleibt schmal und gut lesbar; Bilder, Raster und Kacheln nutzen die ganze Breite der Spalte */
.chapter__body > :is(p, h3, h4, ul:not(.facts), ol, details, blockquote, .lead, .interview, .prayer-card) { max-width: var(--width-text); }

/* Lesezeit unter Nummer und Datum */
.reading-time { margin: -0.25rem 0 0.75rem; font-size: 0.9375rem; color: var(--color-text-soft); }

/* Zwei Fotos nebeneinander (ab Tablet), auf dem Handy untereinander */
.figure-row { display: grid; gap: 1rem; margin: 1.5rem 0; }
.figure-row .figure { margin: 0; }
.figure-row img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Foto und Text nebeneinander, abwechselnd links/rechts (ab Tablet) */
.media-row { margin: 1rem 0 1.5rem; }
.media-row .figure { margin: 0 0 1rem; }
.media-row > p { margin: 0; }

/* Team-Zitate als Raster */
.quote-grid { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.quote-grid .quote { margin: 0; }

.issue-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 2rem;
  border-top: 1px solid var(--color-line);
}

/* Rechtsseiten (Deutsch): Wörter dürfen normal umbrechen */
.legal { word-break: normal; hyphens: auto; }

/* ---------- ab Tablet ---------- */
@media (min-width: 40rem) {
  main { margin: 1rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .issue-card { padding: 1.75rem; }
  .carousel__track > li { flex-basis: 38%; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .facts__value { font-size: 1.625rem; }
  .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 1.75rem;
    align-items: center;
  }
  .media-row .figure { margin: 0; }
  .media-row--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .media-row--reverse .figure { order: 2; }
}

/* Laptop: Ausgabe mit mitlaufendem Inhaltsverzeichnis links */
@media (min-width: 64rem) {
  .wrap.issue-layout {
    max-width: 76rem;
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
  .issue-layout > .toc {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    margin-block: 2.5rem;
    padding: 0;
    background: none;
    border: 0;
  }
  .issue-layout > .toc h2 { margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--color-text-soft); }
  .issue-layout > .toc a {
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.375rem 0 0.375rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--color-text-soft);
    text-decoration: none;
    border-left: 2px solid var(--color-line);
  }
  .issue-layout > .toc a:hover { color: var(--color-navy); }
  .issue-layout > .toc a[aria-current] {
    color: var(--color-navy);
    font-weight: 700;
    border-left-color: var(--color-red);
  }
  .issue-layout > .toc .toc__no { flex: 0 0 3.5rem; font-size: 0.8125rem; }
  .facts__value { font-size: 1.75rem; }
}
@media (min-width: 70rem) {
  main { margin-inline: auto; }
  main.main--wide { max-width: 80rem; }
  .site-footer__inner { max-width: 68rem; margin-inline: auto; }
}
@media (min-width: 60rem) {
  .carousel__track > li { flex-basis: 28%; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* ---------- 6 Druck ---------- */
@media print {
  .landscape { display: none; }
  main { margin: 0; max-width: none; background: #fff; }
  .site-header, .site-footer, .skip-link, .carousel__controls, .issue-end, .toc { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  h1, h2, h3 { color: #000; }
  .section--soft, .issue-cover, .facts li, .quote, .prayer-list { background: #fff; }
  .chapter > h2 { color: #000; }
  .chapter__no { background: #fff; color: #000; border: 1px solid #000; }
  .chapter { break-inside: avoid-page; }
  a { color: #000; text-decoration: none; }
}
