@import url('fonts.css');

/* ---------- Design-Tokens ---------- */
:root {
  --paper: #f4efe4;
  --paper-alt: #e9e4d5;
  --line: #d9d2c1;
  --ink: #1e2a1f;
  --ink-soft: #4a5449;
  --ink-card: #2b342b;
  --green: #2f5a3a;
  --green-dark: #1e3d27;
  --forest: #1a2a1c;
  --sage: #cfe0c8;
  --cream-soft: #eae6da;

  --serif: 'Gelasio', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --section-y: clamp(56px, 8vw, 112px);
  --eyebrow: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Muss die display-Regeln unten schlagen, sonst bleibt [hidden] wirkungslos. */
[hidden] { display: none !important; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

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

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--paper { background: var(--paper); color: var(--ink); padding: 16px 26px; font-size: 17px; }
.btn--paper:hover { background: #fff; color: var(--ink); }

.btn--ghost {
  color: var(--paper);
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  border-color: rgba(244, 239, 228, .5);
}
.btn--ghost:hover { border-color: var(--paper); color: var(--paper); background: rgba(244, 239, 228, .1); }

.btn--chip {
  color: var(--paper);
  background: none;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  border-color: rgba(244, 239, 228, .5);
}
.btn--chip:hover { border-color: var(--paper); background: rgba(244, 239, 228, .1); color: var(--paper); }

.btn .arrow { font-size: .8em; opacity: .85; }

/* ---------- Abschnitte auf dunklem Grund ---------- */
.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}
.dark-section > picture {
  position: absolute;
  inset: 0;
}
.dark-section__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dark-section .wrap { position: relative; }

/* ---------- Hero ---------- */
.hero .dark-section__bg { opacity: .55; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,42,28,.5) 0%, rgba(26,42,28,.66) 60%, rgba(26,42,28,.92) 100%);
}
.hero .wrap {
  padding-block: clamp(96px, 14vw, 180px) 64px;
  display: grid;
  gap: 28px;
}
.hero .eyebrow { color: var(--sage); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--cream-soft);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 0;
  color: var(--sage);
  font-size: 15px;
}
.facts div { margin: 0; }
.facts dt { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--paper); }
.facts dd { margin: 0; }

/* ---------- Vier Punkte ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 56px;
  align-items: start;
}
.section-intro { display: flex; flex-direction: column; gap: 14px; }
.section-intro h2 {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.section-intro p:not(.eyebrow) { color: var(--ink-soft); }

.points { margin: 0; padding: 0; list-style: none; display: grid; }
.points li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.points__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.points h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.points p { font-size: 16px; color: var(--ink-soft); }

.section { padding-block: var(--section-y); }
.band {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Geschichten ---------- */
.stories { display: flex; flex-direction: column; gap: 48px; }
.stories .section-intro { max-width: 62ch; }
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.story {
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
}
.story picture { display: block; }
.story img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.story__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.story h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.story p { font-size: 16px; line-height: 1.6; color: var(--ink-card); }
.story__more { display: flex; flex-direction: column; gap: 14px; }
.story__toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--green);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story__toggle:hover { color: var(--green-dark); }
.stories__note { font-size: 15px; color: var(--ink-soft); }

/* ---------- Appell ---------- */
.appeal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 64px;
  align-items: center;
}
.appeal__text { display: flex; flex-direction: column; gap: 20px; }
.appeal__text h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.appeal__text p:not(.eyebrow):not(.signature) { color: var(--ink-soft); }
.signature { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-card); }

.letter-card {
  background: var(--green);
  color: var(--paper);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.letter-card .eyebrow { color: var(--sage); font-size: 13px; }
.letter-card__meta { display: flex; flex-direction: column; gap: 6px; }
.letter-card__title { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.letter-card__sub { font-size: 15px; color: var(--sage); }
.share { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(244,239,228,.25); padding-top: 22px; }
.share__label { font-size: 15px; font-weight: 600; }
.share__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Gedicht ---------- */
.poem .dark-section__bg { opacity: .35; }
.poem .wrap {
  max-width: 760px;
  padding-block: clamp(64px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.poem .eyebrow { color: var(--sage); font-size: 13px; }
.poem h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.poem p:not(.eyebrow) { font-family: var(--serif); font-size: 19px; line-height: 1.65; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); margin-top: auto; }
.site-footer .wrap {
  padding-block: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}
.site-footer h2 { font-size: 22px; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col--meta { font-size: 15px; color: var(--ink-soft); }
.footer-mail { font-size: 19px; font-weight: 600; word-break: break-word; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap { animation: rise .7s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  .hero__actions, .share, .story__toggle { display: none !important; }
  .story__more[hidden] { display: flex !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .dark-section { background: #fff; color: #000; }
  .dark-section__bg, .hero__scrim { display: none; }
  .letter-card { background: #fff; color: #000; border: 1px solid #000; }
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal-head { padding-block: clamp(48px, 7vw, 88px) 0; max-width: 74ch; }
.legal-head .eyebrow { display: block; margin-bottom: 14px; }
.legal-head h1 {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.legal-head__meta { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }

.legal {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 8vw, 112px);
  max-width: 74ch;
  margin-inline: 0;
}
.legal section + section { margin-top: 44px; }
.legal h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 26px 0 8px;
}
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; color: var(--ink-soft); display: grid; gap: 8px; }
.legal li::marker { color: var(--green); }

.legal address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.5;
}
.legal address + p, .legal p + address, .legal ul + p, .legal dl + p { margin-top: 12px; }

.legal dl { margin: 12px 0 0; display: grid; gap: 4px; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0 0 10px; color: var(--ink-soft); }

/* ---------- Fußzeile: rechtliche Links ---------- */
.footer-legal {
  border-top: 1px solid var(--line);
}
.footer-legal .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-legal a { font-weight: 600; }
