@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;900&family=Space+Mono:wght@400;700&display=swap");

:root {
  --paper: #efece4;
  --ink: #151411;
  --muted: #716d64;
  --rule: #bcb6aa;
  --accent: #b52f27;
  --black: #11110f;
  --white: #f3f0e8;
  --max: 1080px;
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- MASTHEAD --- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  color: white;
  mix-blend-mode: difference;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.masthead a {
  pointer-events: auto;
}

.masthead-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.masthead-right {
  display: flex;
  gap: 28px;
  pointer-events: auto;
}

/* --- LAYOUT CONTAINERS --- */
.cover,
.chapter,
.history,
.final,
.midnight {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* --- COVER --- */
.cover {
  min-height: 100vh;
  padding: 116px 0 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-meta,
.cover-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cover-meta {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule);
}

.cover-footer {
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.cover-footer span:first-child {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.cover-title {
  max-width: 1000px;
  padding: 60px 0 100px;
}

.kicker,
.label {
  margin: 0 0 18px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h1 {
  font-size: clamp(4.8rem, 13vw, 11.5rem);
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.cover-lead {
  max-width: 620px;
  margin: 42px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--muted);
}

/* --- CHAPTERS --- */
.chapter {
  display: grid;
  grid-template-columns: 70px minmax(290px, 0.85fr) minmax(0, 1.15fr);
  gap: 58px;
  padding: 125px 0;
  border-top: 1px solid var(--rule);
}

.chapter-id {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  padding-top: 5px;
}

.chapter-title h2 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.chapter-title h2 span,
.black-statement span,
.history-head h2 span,
.history-end strong,
.midnight h2 span,
.final-answer span,
.final-manifest span,
.appeal-line {
  color: var(--accent);
}

.text {
  max-width: 760px;
  color: #4e4a43;
  font-size: 1.02rem;
}

.text p {
  margin: 0 0 1.05em;
}

.text .strong,
.strong {
  color: var(--ink);
  font-weight: 700;
}

.massive {
  max-width: 850px;
  margin: 0 0 30px !important;
  color: var(--ink) !important;
  font-size: clamp(2.7rem, 5.8vw, 5.8rem) !important;
  line-height: 0.94 !important;
  font-weight: 900;
  letter-spacing: -0.06em;
}

/* --- BLACK STATEMENTS --- */
.black-statement {
  padding: 125px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--black);
  color: var(--white);
}

.black-statement p {
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 9rem);
  line-height: 0.87;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.black-statement .red {
  color: var(--accent);
}

.black-statement strong {
  display: block;
  margin-top: 34px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.black-statement small {
  display: block;
  margin-top: 30px;
  font-family: "Space Mono", monospace;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* --- QUESTIONS --- */
.questions {
  margin-top: 50px;
  border-top: 1px solid var(--rule);
}

.questions p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 700;
}

.questions p::before {
  content: "→";
  margin-right: 14px;
  color: var(--accent);
}

/* --- HISTORY --- */
.history {
  padding: 135px 0;
}

.history-head {
  max-width: 900px;
  margin: 0 0 85px 125px;
}

.history-head h2 {
  font-size: clamp(4rem, 8vw, 8rem);
}

.history-intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.history-entry {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 55px;
  padding: 58px 0;
  border-top: 1px solid var(--rule);
}

.history-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.history-meta strong {
  font-family: "Space Mono", monospace;
  font-size: 37px;
  line-height: 1;
  color: var(--accent);
}

.history-meta span {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.history-entry h3 {
  margin: 0 0 25px;
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.history-end {
  margin-left: 125px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.history-end p {
  max-width: 790px;
  margin: 0 0 20px;
  font-size: 1.15rem;
}

.history-end strong {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* --- DARK CHAPTER --- */
.dark {
  width: 100%;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--black);
}

.dark .text {
  color: #aaa59b;
}

.dark .strong {
  color: var(--white);
}

/* --- PRINCIPLES --- */
.principles {
  font-size: 0.98rem;
}

.principles p {
  padding: 0 0 22px;
  margin-bottom: 22px !important;
  border-bottom: 1px solid var(--rule);
}

.principles strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* --- APPEAL --- */
.appeal {
  padding-bottom: 145px;
}

.appeal-line {
  font-weight: 700;
  font-size: 1.15rem;
}

.appeal-break {
  margin: 72px 0;
  padding: 60px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.appeal-break .massive {
  margin: 0 !important;
}

/* --- SUPPORT / DONATION with QR --- */
.support .donation-box {
  margin-top: 40px;
  padding: 32px 28px;
  background: var(--black);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.support .donation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.support .donation-col {
  flex: 1 1 0;
  min-width: 200px;
}

.support .donation-col.address-col {
  flex: 2;
}

.support .donation-col.qr-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.support .donation-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  background: #1a1917;
  padding: 14px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.support .donation-address span {
  color: var(--white);
  word-break: break-all;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.support .copy-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--white);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.support .copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.support .donation-hint {
  margin: 18px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}

.support .donation-ps {
  margin-top: 28px !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-style: italic;
}

#qrcode {
  display: inline-block;
  background: var(--paper);
  padding: 8px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

#qrcode img {
  display: block;
  width: 160px;
  height: 160px;
}

.qr-label {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Space Mono", monospace;
}

/* --- MIDNIGHT --- */
.midnight {
  min-height: 850px;
  padding: 130px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.midnight::before,
.midnight::after {
  content: "";
  position: absolute;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  border: 1px solid rgba(181, 47, 39, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.midnight::after {
  width: min(430px, 65vw);
  border-color: rgba(21, 20, 17, 0.08);
}

.midnight h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(4.5rem, 10vw, 10rem);
}

.midnight-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* --- FINAL --- */
.final {
  padding: 150px 0 70px;
  text-align: center;
}

.final h2 {
  font-size: clamp(3.7rem, 7.5vw, 7.5rem);
}

.final-answer {
  margin: 30px 0 0;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  line-height: 0.93;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.final-copy {
  max-width: 780px;
  margin: 70px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.final-copy p {
  margin: 0 0 7px;
}

.final-rule {
  height: 1px;
  width: 100%;
  margin: 85px 0 45px;
  background: var(--rule);
}

.final-manifest {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.register {
  display: inline-block;
  margin-top: 65px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

.register:hover {
  opacity: 0.7;
}

.signature {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 110px;
  padding-top: 25px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.signature strong {
  color: var(--ink);
  font-size: 19px;
}

/* --- RESPONSIVE --- */

/* Tablet / kleine Desktop */
@media (max-width: 900px) {
  .masthead {
    padding: 18px 20px;
  }
  .masthead-right span:first-child {
    display: none;
  }

  .cover,
  .chapter,
  .history,
  .midnight,
  .final {
    width: min(var(--max), calc(100% - 32px));
  }

  .chapter {
    grid-template-columns: 48px 1fr;
    gap: 28px;
  }

  .history-head {
    margin-left: 80px;
  }
  .history-entry {
    grid-template-columns: 90px 1fr;
  }
  .history-end {
    margin-left: 90px;
  }

  .dark {
    padding-left: 16px;
    padding-right: 16px;
  }

  .support .donation-row {
    flex-direction: column;
  }
  .support .donation-col.qr-col {
    order: -1;
  }
  .support .donation-address {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .support .copy-btn {
    align-self: center;
  }
  #qrcode img {
    width: 140px;
    height: 140px;
  }
}

/* Mobile (unter 600px) – hier wird das Layout repariert */
@media (max-width: 600px) {
  /* Masthead */
  .masthead {
    padding: 14px 16px;
    font-size: 8px;
  }
  .masthead-brand {
    font-size: 13px;
  }
  .masthead-right {
    gap: 14px;
  }

  /* Container schmaler */
  .cover,
  .chapter,
  .history,
  .midnight,
  .final {
    width: calc(100% - 16px);
  }

  /* Cover */
  .cover {
    padding-top: 86px;
  }
  .cover-meta span:last-child {
    display: none;
  }
  .cover-title {
    padding: 60px 0 70px;
  }
  h1 {
    font-size: clamp(3.8rem, 20vw, 5.5rem);
  }
  .cover-lead {
    font-size: 1rem;
    margin-top: 30px;
  }
  .cover-footer span:last-child {
    font-size: 8px;
  }

  /* Chapter – eine Spalte, ID ausblenden */
  .chapter {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 80px 0;
  }
  .chapter-id {
    display: none; /* Nummer auf Mobil ausblenden */
  }
  .chapter-title h2 {
    font-size: 3rem;
  }

  /* Black Statements */
  .black-statement {
    padding: 70px 12px;
  }
  .black-statement p {
    font-size: 3.2rem;
  }

  /* History */
  .history {
    padding: 80px 0;
  }
  .history-head {
    margin: 0 0 50px;
  }
  .history-head h2 {
    font-size: 3.6rem;
  }
  .history-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 40px 0;
  }
  .history-entry h3 {
    font-size: 2.2rem;
  }
  .history-end {
    margin-left: 0;
    padding-top: 30px;
  }
  .history-end p {
    font-size: 1rem;
  }

  /* Massive Schrift */
  .massive {
    font-size: 2.4rem !important;
  }

  /* Principles */
  .principles strong {
    font-size: 9px;
  }

  /* Appeal */
  .appeal-break {
    margin: 45px 0;
    padding: 40px 0;
  }

  /* Midnight */
  .midnight {
    min-height: 650px;
    padding: 80px 0;
  }
  .midnight h2 {
    font-size: 3.8rem;
  }
  .midnight-copy {
    font-size: 0.95rem;
    margin-top: 30px;
  }

  /* Final */
  .final {
    padding-top: 80px;
  }
  .final h2 {
    font-size: 2.8rem;
  }
  .final-answer {
    font-size: 2.3rem;
    margin-top: 20px;
  }
  .final-copy {
    font-size: 1rem;
    margin-top: 45px;
  }
  .final-rule {
    margin: 55px 0 30px;
  }
  .final-manifest {
    font-size: 2.2rem;
  }
  .register {
    margin-top: 45px;
    font-size: 10px;
  }

  /* Signature */
  .signature {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 70px;
    gap: 10px;
    font-size: 8px;
  }
  .signature strong {
    font-size: 16px;
  }

  /* Spenden-Sektion */
  .support .donation-box {
    padding: 18px 12px;
  }
  .support .donation-address {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 12px 14px;
    font-size: 0.7rem;
  }
  .support .donation-address span {
    font-size: 0.65rem;
    word-break: break-all;
  }
  .support .copy-btn {
    font-size: 8px;
    padding: 5px 12px;
    align-self: center;
  }
  .support .donation-hint {
    font-size: 0.75rem !important;
    margin-top: 14px !important;
  }
  .support .donation-ps {
    font-size: 0.8rem !important;
    margin-top: 20px !important;
  }
  #qrcode {
    padding: 6px;
  }
  #qrcode img {
    width: 120px;
    height: 120px;
  }
  .qr-label {
    font-size: 0.6rem !important;
    margin-top: 8px !important;
  }

  /* Dark chapter padding anpassen */
  .dark {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Extra kleine Geräte (unter 400px) */
@media (max-width: 400px) {
  .cover-title {
    padding: 40px 0 50px;
  }
  h1 {
    font-size: 3.4rem;
  }
  .cover-lead {
    font-size: 0.9rem;
  }
  .chapter {
    padding: 60px 0;
  }
  .chapter-title h2 {
    font-size: 2.6rem;
  }
  .black-statement p {
    font-size: 2.8rem;
  }
  .history-head h2 {
    font-size: 3rem;
  }
  .midnight h2 {
    font-size: 3.2rem;
  }
  .final h2 {
    font-size: 2.4rem;
  }
  #qrcode img {
    width: 100px;
    height: 100px;
  }
}
