/*
 * PublishPilot Landingpage, Design "Buch und Papier" wie in der App
 * (Farben aus src/app/globals.css, Buchschrift Literata, sonst Geist).
 * Schriften liegen in ./schriften, die Seite lädt nichts von fremden Servern.
 */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("schriften/literata-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("schriften/literata-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("schriften/geist-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("schriften/geist-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #faf3e6;
  --tinte: #3a2410;
  --blatt: #fffdf8;
  --linie: #e9d3a8;
  --gruen: #3b6d11;
  --gelb: #b8860b;
  --rot: #a8321e;
  --leise: color-mix(in srgb, var(--tinte) 74%, var(--papier));
  --schatten:
    0 1px 2px rgb(58 36 16 / 0.08), 0 22px 48px -24px rgb(58 36 16 / 0.42);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans:
    "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --breite: 72rem;
  /* Radien: Bedienelemente 8px, Flächen 14px */
  --r-klein: 8px;
  --r-flaeche: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1e1710;
    --tinte: #f3e4c8;
    --blatt: #2a2017;
    --linie: #5a4326;
    --gruen: #97c459;
    --gelb: #e0b54a;
    --rot: #e0806b;
    --schatten: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 48px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--tinte);
  scrollbar-color: var(--linie) var(--papier);
}

::selection {
  background: var(--linie);
  color: var(--tinte);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.huelle {
  width: min(100% - 2rem, var(--breite));
  margin-inline: auto;
}

.leise {
  color: var(--leise);
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}
.marke {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.kopf nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.kopf nav a:not(.knopf) {
  text-decoration: none;
  color: var(--leise);
}
@media (hover: hover) and (pointer: fine) {
  .kopf nav a:not(.knopf):hover {
    color: var(--tinte);
  }
}
@media (max-width: 860px) {
  .kopf nav a:not(.knopf) {
    display: none;
  }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font: 550 0.98rem/1 var(--sans);
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-klein);
  text-decoration: none;
  background: var(--tinte);
  color: var(--papier);
  border: 1px solid var(--tinte);
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease;
}
.knopf:active {
  transform: scale(0.97);
}
.knopf.klein {
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
}
.knopf.rand {
  background: transparent;
  color: var(--tinte);
  border-color: color-mix(in srgb, var(--tinte) 30%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .knopf:hover {
    background: color-mix(in srgb, var(--tinte) 86%, var(--papier));
  }
  .knopf.rand:hover {
    background: color-mix(in srgb, var(--tinte) 7%, transparent);
  }
}

/* ---------- Abschnitte ---------- */
section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.einleitung {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--leise);
}

/* Bild aus der App, ohne Rahmen, nur mit Schatten */
.bild {
  border-radius: var(--r-flaeche);
  overflow: hidden;
  box-shadow: var(--schatten);
  background: var(--blatt);
}
.bild img {
  width: 100%;
}
.bildunterschrift {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--leise);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero .huelle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .huelle {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}
.hero p.unter {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  max-width: 32rem;
  color: var(--leise);
}
.hero .knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero .bild {
  transform: rotate(0.6deg);
}

/* Der eine gestaltete Moment: das Blatt legt sich beim Laden hin */
@media (prefers-reduced-motion: no-preference) {
  .hero .text {
    animation: auftauchen 600ms var(--ease-out) both;
  }
  .hero .bild {
    animation: hinlegen 900ms var(--ease-out) 120ms both;
  }
}
/* Die Überschrift bleibt immer lesbar, sie rückt nur leicht nach. */
@keyframes auftauchen {
  from {
    transform: translateY(10px);
  }
}
@keyframes hinlegen {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(28px) rotate(2.4deg);
  }
}

/* ---------- Vorher / nachher ---------- */
.vergleich {
  margin-top: 3rem;
  border-radius: var(--r-flaeche);
  background: var(--blatt);
  box-shadow: var(--schatten);
  overflow: hidden;
}
.vergleich .zeile {
  display: grid;
  grid-template-columns: 11rem 1fr 1fr;
  gap: 2rem;
  padding: 1.6rem 2rem;
}
.vergleich .zeile + .zeile {
  border-top: 1px solid color-mix(in srgb, var(--linie) 65%, transparent);
}
.vergleich .kopfzeile {
  padding-block: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--leise);
  background: color-mix(in srgb, var(--linie) 28%, var(--blatt));
}
.vergleich .regel {
  font-family: var(--serif);
  font-weight: 600;
}
.vergleich .schlecht {
  color: var(--leise);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--rot) 70%, transparent);
  text-decoration-thickness: 1.5px;
}
.vergleich .gut {
  font-family: var(--serif);
  font-size: 1.08rem;
}
.vergleich .nur-klein {
  display: none;
}
@media (max-width: 760px) {
  .vergleich .zeile {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.4rem 1.25rem;
  }
  .vergleich .kopfzeile {
    display: none;
  }
  .vergleich .nur-klein {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--leise);
    margin-top: 0.5rem;
  }
}
.fussnote {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--leise);
  max-width: 44rem;
}

/* ---------- Ablauf ---------- */
.ablauf .huelle {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .ablauf .huelle {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
  .ablauf .links {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}
.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.schritte li {
  position: relative;
  padding: 0 0 2.4rem 2.4rem;
}
.schritte li::before {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.7rem;
  bottom: -0.3rem;
  width: 1px;
  background: var(--linie);
}
.schritte li:last-child::before {
  display: none;
}
.schritte li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--papier);
  border: 2px solid var(--gruen);
}
.schritte li:last-child {
  padding-bottom: 0;
}
.schritte h3 {
  font-size: 1.35rem;
}
.schritte p {
  margin-top: 0.4rem;
  color: var(--leise);
  max-width: 34rem;
}

/* ---------- Geteilte Abschnitte (Text und Bild) ---------- */
.geteilt .huelle {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .geteilt .huelle {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
  .geteilt.bild-links .bild-spalte {
    order: -1;
  }
}
.geteilt .text > p + p {
  margin-top: 1rem;
}

.ampel {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.ampel li {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
}
.ampel .punkt {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  transform: translateY(0.05rem);
}
.ampel b {
  font-weight: 600;
}
.punkt.gruen {
  background: var(--gruen);
}
.punkt.gelb {
  background: var(--gelb);
}
.punkt.rot {
  background: var(--rot);
}
.hinweis {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-klein);
  background: color-mix(in srgb, var(--linie) 32%, transparent);
  font-size: 0.97rem;
}

/* Drei Quellen-Stufen als Leiste, keine Karten */
.geteilt .huelle.stufen {
  display: block;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
.stufen h3 {
  font-size: 1.5rem;
}
.stufen-reihe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
.stufen-reihe > div {
  padding: 1.25rem 1.5rem 0 0;
}
.stufen-reihe > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--linie);
}
.stufen-reihe b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
}
.stufen-reihe span {
  display: block;
  margin-top: 0.3rem;
  color: var(--leise);
  font-size: 0.97rem;
}
@media (max-width: 760px) {
  .stufen-reihe {
    grid-template-columns: 1fr;
  }
  .stufen-reihe > div,
  .stufen-reihe > div + div {
    padding: 1rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--linie);
  }
}

/* ---------- Fünf Regeln (Bento) ---------- */
.raster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.kachel {
  border-radius: var(--r-flaeche);
  padding: 1.75rem;
  background: var(--blatt);
  box-shadow: 0 1px 2px rgb(58 36 16 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.kachel.breit {
  grid-column: span 3;
}
.kachel.schmal {
  grid-column: span 2;
}
.kachel.getoent {
  background: color-mix(in srgb, var(--linie) 45%, var(--blatt));
}
.kachel.dunkel {
  background: var(--tinte);
  color: var(--papier);
}
.kachel.dunkel .sperre {
  color: color-mix(in srgb, var(--papier) 82%, var(--tinte));
  border-top-color: color-mix(in srgb, var(--papier) 22%, transparent);
}
.kachel h3 {
  font-size: 1.35rem;
}
.kachel p {
  max-width: 34rem;
}
.kachel .sperre {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--tinte) 14%, transparent);
  font-size: 0.93rem;
  color: var(--leise);
}
.kachel .sperre b {
  font-weight: 600;
}
.kachel.breit h3 {
  font-size: 1.6rem;
}
@media (max-width: 900px) {
  .raster {
    grid-template-columns: 1fr 1fr;
  }
  .kachel.breit,
  .kachel.schmal {
    grid-column: span 1;
  }
  .kachel.breit:first-child {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .raster {
    grid-template-columns: 1fr;
  }
  .kachel.breit:first-child {
    grid-column: span 1;
  }
}

/* ---------- Bewertung ---------- */
.mittig {
  text-align: center;
}
.mittig .einleitung {
  margin-inline: auto;
}
.bewertung .bild {
  max-width: 54rem;
  margin: 3rem auto 0;
}
.fakten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 60rem;
  margin: 3rem auto 0;
  text-align: left;
}
.fakten p {
  padding-top: 1rem;
  border-top: 2px solid var(--tinte);
}
.fakten b {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
@media (max-width: 760px) {
  .fakten {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Liste mit Haken ---------- */
.haken {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.haken li {
  position: relative;
  padding-left: 1.75rem;
}
.haken li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5rem;
  width: 0.65rem;
  height: 0.38rem;
  border-left: 2px solid var(--gruen);
  border-bottom: 2px solid var(--gruen);
  transform: rotate(-45deg);
}

/* ---------- Marge ---------- */
.marge-tabelle {
  margin-top: 2.5rem;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: var(--blatt);
  border-radius: var(--r-flaeche);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.marge-tabelle caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--leise);
}
.marge-tabelle th,
.marge-tabelle td {
  padding: 1rem 1.4rem;
  text-align: left;
}
.marge-tabelle thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--leise);
  background: color-mix(in srgb, var(--linie) 28%, var(--blatt));
}
.marge-tabelle tbody tr + tr td,
.marge-tabelle tbody tr + tr th {
  border-top: 1px solid color-mix(in srgb, var(--linie) 65%, transparent);
}
.marge-tabelle tbody th {
  font-family: var(--serif);
  font-weight: 600;
}
.marge-tabelle .zahl {
  text-align: right;
}
.marge-tabelle .gross {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.dateien {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.dateien span {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--linie) 38%, transparent);
  font-size: 0.92rem;
}

/* ---------- Fragen ---------- */
.fragen {
  max-width: 48rem;
}
.fragen h2 {
  margin-bottom: 2rem;
}
.fragen details {
  border-top: 1px solid var(--linie);
}
.fragen details:last-of-type {
  border-bottom: 1px solid var(--linie);
}
.fragen summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
.fragen summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.fragen details[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}
.fragen details p {
  padding: 0 2rem 1.4rem 0;
  color: var(--leise);
}

/* ---------- Schluss ---------- */
.schluss {
  padding-block: clamp(4rem, 8vw, 6rem);
}
.schluss .flaeche {
  border-radius: var(--r-flaeche);
  background: var(--tinte);
  color: var(--papier);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .schluss .flaeche {
    grid-template-columns: 1.4fr auto;
  }
}
.schluss p {
  margin-top: 0.9rem;
  color: color-mix(in srgb, var(--papier) 80%, var(--tinte));
  max-width: 34rem;
}
.schluss .knopf {
  background: var(--papier);
  color: var(--tinte);
  border-color: var(--papier);
}
@media (hover: hover) and (pointer: fine) {
  .schluss .knopf:hover {
    background: color-mix(in srgb, var(--papier) 88%, var(--tinte));
  }
}

/* ---------- Fuß ---------- */
.fuss {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--linie);
  font-size: 0.92rem;
  color: var(--leise);
}
.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.fuss nav {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Rechtstexte ---------- */
.recht {
  max-width: 46rem;
  padding-block: 3.5rem 5rem;
}
.recht h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.recht h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}
.recht h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.recht p,
.recht ul,
.recht ol {
  margin: 0 0 0.9rem;
}
.recht ul,
.recht ol {
  padding-left: 1.3rem;
}
.recht li + li {
  margin-top: 0.35rem;
}
.entwurf {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-klein);
  background: color-mix(in srgb, var(--gelb) 18%, transparent);
  font-size: 0.95rem;
}
.zurueck {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--leise);
}
