/* Feedboard — Startseite
   Eine Titelseite im Großformat: Masthead, Doppellinie, Rubriken, Spalten.
   Farben und Schrift wie in der App (Theme.swift) und wie in style.css.
   Dieselbe Regel wie dort: keine fremden Quellen, kein CDN, keine Skripte. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --ink: #1C1914;
  --muted: #625B4E;
  --faint: #7A7263;
  --line: #E4DDCE;
  --line-strong: #CFC5B0;
  --accent: #B3341E;
  --bezel: #1C1914;
  --shadow: rgba(70, 48, 24, 0.28);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0D0B08;
    --ink: #EDE7DA;
    --muted: #9B917F;
    --faint: #847C6C;
    --line: #302A21;
    --line-strong: #453D30;
    --accent: #E25638;
    --bezel: #2A251E;
    --shadow: rgba(0, 0, 0, 0.6);
  }
}

/* Fraunces hat kein Kyrillisch — wie in der App fällt Russisch auf eine
   Systemserife zurück. Der Name im Masthead bleibt lateinisch und in Fraunces. */
:lang(ru) { --serif: "Iowan Old Style", Georgia, "Times New Roman", serif; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font: 600 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
}

.field-row code { background: none; border: 0; padding: 0; }

.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 700px) { :root { --gutter: 32px; } }

/* ── Kopf ───────────────────────────────────────────────────────────── */

.dateline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.dateline .issue { margin-right: auto; }
.dateline a { color: var(--muted); text-decoration: none; }
.dateline a:hover { color: var(--ink); }

.langs { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.langs a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }

.masthead { text-align: center; padding: 30px 0 0; }

.masthead h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(3.7rem, 16.5vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.masthead h1 .f { color: var(--accent); }

/* Die Doppellinie aus dem App-Icon: kräftig oben, fein darunter */
.double {
  height: 7px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ears {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.86rem;
  color: var(--muted);
}

.ears strong { color: var(--ink); font-weight: 600; }

/* ── Aufmacher ──────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 48px 0 80px;
}

/* Text oben ausrichten, nicht mittig zum hohen Telefon — sonst rutscht der
   Knopf auf einem Laptop unter die erste Bildschirmhöhe */
.hero > div:first-child { padding-top: clamp(0px, 4.5vw, 64px); }

.kicker {
  display: block;
  font: 700 0.76rem/1.2 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.27rem);
  line-height: 1.6;
  max-width: 33em;
  margin: 0 0 34px;
}

/* Initiale wie im Artikel der App */
.lede::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.55em;
  line-height: 0.82;
  margin: 0.07em 0.09em 0 0;
  color: var(--accent);
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -14px var(--shadow);
}

.store:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px var(--shadow); }
.store:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.store img { width: 44px; height: 44px; border-radius: 10px; }

.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 0.74rem; opacity: 0.75; }
.store b { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }

.cta-note { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ── Bildschirmfotos ────────────────────────────────────────────────── */

.shot { margin: 0; display: flex; flex-direction: column; align-items: center; }

.phone {
  width: min(310px, 74vw);
  padding: 9px;
  border-radius: 50px;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 70px -36px var(--shadow);
}

.phone img { border-radius: 41px; width: 100%; }

.tablet {
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 70px -36px var(--shadow);
}

.tablet img { border-radius: 21px; width: 100%; }

.shot figcaption {
  max-width: 310px;
  width: 100%;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Zwei Telefone, leicht versetzt */
.duo { display: flex; justify-content: center; align-items: flex-start; }
.duo .shot + .shot { margin-left: -56px; margin-top: 72px; }
.duo .phone { width: min(270px, 46vw); }
.duo figcaption { max-width: 230px; }
.duo .shot:first-child { position: relative; z-index: 1; }

/* ── Rubriken ───────────────────────────────────────────────────────── */

.section { padding: 0 0 88px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 3px solid var(--ink);
  padding-top: 9px;
  margin-bottom: 48px;
  font: 700 0.78rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head .folio { color: var(--faint); font-weight: 600; letter-spacing: 0.08em; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.feature.flip > :first-child { order: 2; }

.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.copy p { max-width: 32em; margin: 0 0 16px; }
.copy em { font-style: normal; font-weight: 600; }

/* Das Eingabefeld der App, nachgestellt */
.field {
  max-width: 28rem;
  margin: 28px 0 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
}

.field-label {
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.field-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  font-size: 1rem;
}

.field-row + .field-row { border-top: 1px solid var(--line); }
.field-row code { font: 600 1.02rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.field-row .arrow { color: var(--faint); }
.field-row .result { margin-left: auto; color: var(--muted); font-size: 0.9rem; text-align: right; }

/* Ehrlich gesagt — der Kasten für die Grenze */
.note {
  max-width: 32em;
  margin: 26px 0 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  font-size: 0.95rem;
}

.note p { margin: 0 0 8px; }
.note p:last-child { margin: 0; }
.note .kicker { margin-bottom: 8px; }

/* ── Privatsphäre ───────────────────────────────────────────────────── */

.pull {
  margin: 0 0 56px;
  text-align: center;
}

.pull blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.7rem, 9vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pull figcaption {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}

.trio > div { border-top: 1px solid var(--ink); padding-top: 14px; }

.trio h4, .classifieds h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.trio p { margin: 0; color: var(--muted); }

/* ── Auch im Blatt ──────────────────────────────────────────────────── */

.more {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.classifieds {
  columns: 2;
  column-gap: 40px;
  column-rule: 1px solid var(--line);
}

.classifieds p {
  break-inside: avoid;
  margin: 0 0 18px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.classifieds b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
}

.more .shot figcaption { max-width: none; }

/* ── Kleingedrucktes und In eigener Sache ───────────────────────────── */

.fine {
  columns: 2;
  column-gap: 40px;
  font-size: 0.93rem;
  color: var(--muted);
}

.fine p { break-inside: avoid; margin: 0 0 14px; }
.fine strong { color: var(--ink); font-weight: 600; }

.letter { max-width: 38rem; margin: 0 auto; text-align: center; }

.letter .title { margin-bottom: 18px; }
.letter p { margin: 0 0 16px; }

.signature {
  margin: 26px 0 40px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.signature small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
}

.letter .cta { justify-content: center; flex-direction: column; }

/* ── Fuß ────────────────────────────────────────────────────────────── */

.foot {
  padding: 18px 0 64px;
  font-size: 0.86rem;
  color: var(--faint);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px 0 12px;
}

.foot a { color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 46em; }

/* ── Schmal ─────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero, .feature, .more { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero > div:first-child { padding-top: 0; }
  .hero { padding: 40px 0 72px; }
  .feature.flip > :first-child { order: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .more .shot { max-width: 420px; margin: 0 auto; }
  .section { padding-bottom: 72px; }
  .section-head { margin-bottom: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .dateline .optional { display: none; }
  .classifieds, .fine { columns: 1; }
  .duo .shot + .shot { margin-left: -40px; margin-top: 56px; }
  .duo figcaption { display: none; }
  .field-row { flex-wrap: wrap; }
  .field-row .result { margin-left: 0; width: 100%; text-align: left; }
  .field-row .arrow { display: none; }
}
