/* Alles ist anders – Platzhalter-Website
   Farben aus dem Cover von Band 1 (Nachtblau, Sonnenorange), Schriften lokal (OFL). */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --nacht: #021033;
  --tiefsee: #0a1d4a;
  --sonne: #fb7f07;
  --glut: #ffc24d;
  --nebel: #aab7d4;
  --tag: #eef2f7;
  --tinte: #0e1a33;
  --tinte-leise: #4a5671;

  --sans: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --rand: clamp(1.25rem, 6vw, 6rem);
  --spalte: 34rem;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tag);
  background: var(--nacht);
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
}

a { color: inherit; text-decoration-color: var(--sonne); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--sonne); }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- Nacht: Titel ---------- */

.nacht {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3rem) var(--rand) clamp(2.5rem, 7vw, 5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

/* Die Sonne aus Band 1 – jetzt steht sie oben. */
.sonne {
  position: absolute;
  z-index: -1;
  width: clamp(16rem, 46vw, 40rem);
  aspect-ratio: 1;
  right: clamp(-12rem, -9vw, -3rem);
  top: clamp(-6rem, -4vw, -1rem);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff3cf 0%, var(--glut) 22%, #fd9a1c 48%, var(--sonne) 68%, #d65a00 100%);
  box-shadow:
    0 0 4rem 1rem rgba(251, 127, 7, 0.45),
    0 0 12rem 4rem rgba(251, 127, 7, 0.18);
}

.autor-zeile {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--tag);
}

.titelblock {
  align-self: center;
  padding-block: clamp(3rem, 10vh, 7rem) 2rem;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.1rem, 14vw, 9.5rem);
  line-height: 0.95;
  max-width: 5.6em; /* immer zweizeilig: „Alles ist / anders“ */
  letter-spacing: -0.025em;
  color: var(--sonne);
}

/* Das Verb: im Endzustand steht „ist“. */
.verb { display: inline-flex; vertical-align: baseline; }
.verb > span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.verb .alt { position: relative; max-width: 0; opacity: 0; }
.verb .neu { max-width: none; }
.verb .alt::after {
  content: "";
  position: absolute;
  left: -0.04em; right: -0.04em;
  top: 52%;
  height: 0.085em;
  background: var(--tag);
  transform: scaleX(0);
  transform-origin: left center;
}

.leitzeile {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--tag);
}

.termin {
  margin: 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--nebel);
}
.termin strong { display: block; font-weight: 600; font-size: 1.25rem; color: var(--tag); margin-bottom: 0.25rem; }

/* Ablauf beim Laden: „Alles wird anders“, Korrekturstrich, „ist“, dann die Leitzeile. */
@media (prefers-reduced-motion: no-preference) {
  h1 { animation: auftauchen 0.7s ease-out both; }
  .verb .alt { animation: alt-weg 0.55s cubic-bezier(0.6, 0, 0.3, 1) 1.75s both; }
  .verb .alt::after { animation: streichen 0.4s ease-in-out 1.2s both; }
  .verb .neu { animation: neu-da 0.55s cubic-bezier(0.6, 0, 0.3, 1) 1.75s both; }
  .leitzeile { animation: auftauchen 0.8s ease-out 2.45s both; }
  .sonne { animation: aufgehen 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  @keyframes auftauchen { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
  @keyframes streichen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes alt-weg {
    from { max-width: 3em; opacity: 1; }
    to   { max-width: 0;   opacity: 0; }
  }
  @keyframes neu-da {
    from { max-width: 0;   opacity: 0; }
    to   { max-width: 3em; opacity: 1; }
  }
  @keyframes aufgehen { from { transform: translateY(18%); opacity: 0.6; } to { transform: none; opacity: 1; } }
}

/* ---------- Worum es geht ---------- */

.worum {
  background: var(--tiefsee);
  padding: clamp(3.5rem, 9vw, 7rem) var(--rand);
}
.worum h2, .tag h2 {
  margin: 0 0 1.5rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.worum p {
  max-width: var(--spalte);
  margin: 0 0 1.1em;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
.worum .reihe {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--nebel);
}

/* ---------- Tag: Leseprobe ---------- */

.tag {
  background: var(--tag);
  color: var(--tinte);
  padding: clamp(3.5rem, 9vw, 7rem) var(--rand) clamp(3rem, 8vw, 6rem);
}

.leseprobe-kopf { max-width: var(--spalte); margin-bottom: 2.5rem; }
.leseprobe-kopf p { margin: 0; font-size: 1rem; color: var(--tinte-leise); }

.leseprobe {
  max-width: var(--spalte);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  font-optical-sizing: auto;
  hanging-punctuation: first;
}
.leseprobe p { margin: 0 0 1.05em; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 3; }
.leseprobe .schluss {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  margin: 0;
}
.leseprobe p:not(.schluss) + .schluss { margin-top: 2.25rem; }
.leseprobe .schluss + .schluss { margin-top: 0.35em; }

.weiter {
  max-width: var(--spalte);
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--sonne);
  font-size: 1rem;
  color: var(--tinte-leise);
}

.person {
  max-width: var(--spalte);
  margin-top: clamp(4rem, 9vw, 6rem);
}
.person p { margin: 0; line-height: 1.65; }

/* ---------- Fuß ---------- */

.fuss {
  padding: 2rem var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--nebel);
}
.fuss p { margin: 0; margin-right: auto; }
.fuss a { color: var(--tag); }

/* ---------- Rechtliche Seiten ---------- */

.kopf-schmal {
  padding: 1.25rem var(--rand);
  background: var(--nacht);
}
.kopf-schmal a {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--sonne);
  text-decoration: none;
}
.kopf-schmal a:hover { color: var(--glut); }

.recht {
  background: var(--tag);
  color: var(--tinte);
  padding: clamp(2.5rem, 7vw, 5rem) var(--rand);
  min-height: 70svh;
}
.recht > * { max-width: 40rem; }
.recht h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--tinte);
  margin-bottom: 2rem;
  animation: none;
}
.recht h2 { font-size: 1.2rem; font-weight: 700; margin: 2.25rem 0 0.5rem; }
.recht p, .recht li { line-height: 1.65; }
.recht address { font-style: normal; }
.platzhalter { background: #ffe3bd; padding: 0 0.2em; border-radius: 2px; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 40rem) {
  .sonne { width: 15rem; right: -5rem; top: -4rem; }
  .titelblock { padding-top: 6rem; }
}

@media print {
  .sonne { display: none; }
  .nacht { min-height: auto; }
}
