/* SilentSoul:AI – Release-Website, Farben nach Brand Bible 1.0 */
:root {
  --paper: #f1f2ee;    /* Nebelweiß: Grundfläche, Bildmitte */
  --sage: #d9dad0;     /* Salbeigrau: Mitteltöne des Verlaufs */
  --rim: #b8b9a6;      /* Randgrau: Vignette an den Rändern */
  --ink: #000000;
  --graphite: #5c5c5c;
  --signal: #8c2014;   /* Signalrot: Mittelton der Fingernägel */
  --void: #000000;
  --void-text: #e6e6e6;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
}

/* Weiche Vignette, fest am Bildschirm: Nebelweiß → Salbeigrau → Randgrau */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse farthest-corner at 50% 45%,
    var(--paper) 0%, var(--paper) 30%, var(--sage) 72%, var(--rim) 100%);
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

/* ---------- Titel im Stil des Covers ---------- */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 1.5rem 10vh;
}

.title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.9rem, 6.4vw, 4.2rem);
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* optischer Ausgleich der Laufweite */
  line-height: 1.1;
}

.author {
  margin: 1.1rem 0 0;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  color: var(--ink);
}

.hand-trigger {
  position: relative;
  display: block;
  width: min(48vw, 282px);
  margin: clamp(3rem, 9vh, 6rem) auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hand { width: 100%; }

.hand-trigger.is-glitching .hand { opacity: 0; }

.glitch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.hand-trigger.is-glitching .glitch-canvas { opacity: 1; }

.part {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.subtitle {
  margin: 0.8rem 0 0;
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

/* ---------- Teaser & Buch ---------- */
.book {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 9rem;
  text-align: center;
}

.teaser {
  margin: 0 0 3.5rem;
  font-size: 1.15rem;
  line-height: 1.75;
}

.teaser p { margin: 0 0 1.2em; }

.buy {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--signal);
  transition: color 0.2s ease;
}

.buy:hover { color: var(--signal); }

.note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ---------- Übergang ins Schwarze ---------- */
.void {
  /* weicher Übergang vom hellen Grund zu Schwarz, danach tiefes Schwarz */
  background: linear-gradient(to bottom, transparent 0, var(--void) 28vh, var(--void) 100%);
  color: var(--void-text);
  min-height: 80svh;
  padding: calc(28vh + 2.5rem) clamp(1.5rem, 5vw, 4rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6rem;
}

.terminal {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.8;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.terminal a {
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 230, 230, 0.35);
}

.terminal a:hover { border-bottom-color: var(--void-text); }

/* ---------- Fußnavigation auf allen Seiten (REQ-WEB-007) ---------- */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.site-nav li { display: inline-flex; align-items: baseline; }

/* Mittelpunkt als Trennzeichen, nur optisch (nicht für Screenreader); hinter dem Eintrag,
   damit eine umgebrochene Zeile nicht mit dem Punkt beginnt */
.site-nav li:not(:last-child)::after { content: "\00B7"; padding: 0 0.7em; }

.site-nav a {
  display: inline-block;
  padding: 0.6em 0; /* Fingerfreundliche Höhe auf dem Smartphone */
  text-decoration: none;
}

/* Startseite: in der schwarzen Fußzeile */
.legal {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.legal a:hover { color: var(--void-text); }

/* Textseiten: unterhalb des Textes, wie die Stand-Zeile */
.doc .site-nav {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.doc .site-nav li { color: var(--graphite); } /* vor der Textfarbe der Listen */

.doc .site-nav a:hover { color: var(--ink); }

/* ---------- Rechtsseiten ---------- */
.doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.doc .back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-decoration: none;
}

.doc h1 {
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-weight: 400;
  font-size: 1.05rem;
  margin: 2.5rem 0 0.6rem;
}

.doc p, .doc li { color: #1a1a1a; }
.doc ul { padding-left: 1.2rem; }
.doc .stand { color: var(--graphite); font-size: 0.85rem; margin-top: 3rem; }

/* ---------- Newsletter-Anmeldung (REQ-WEB-008) ---------- */
.signup { margin: 2.5rem 0 0; max-width: 28rem; }

.signup label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--graphite);
}

/* Eingabefeld als Linie, keine Box: passt zur Unterstreichung des Kindle-Links */
.signup input[type="email"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.signup button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--signal);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.signup button:hover { color: var(--signal); }

.doc .signup .hint { margin: 1.75rem 0 0; font-size: 0.85rem; color: var(--graphite); }

/* Unsichtbares Feld gegen Bots (von CleverReach vorgesehen); Menschen sehen es nicht */
.nope { display: none !important; }

/* ---------- Konsole ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Schwebendes Fenster über der abgedunkelten Startseite */
.console {
  width: min(100vw - 2rem, 44rem);
  max-height: min(100svh - 2rem, 34rem);
  margin: auto;
  padding: 0;
  border: 1px solid #f2f2f2; /* feine Linie im Weiß der Konsolenschrift, kein Schatten, kein Glühen */
  border-radius: 4px;
  box-shadow: none;
  background: var(--void);
  color: #f2f2f2;
  overflow: hidden;
  display: none;
}

.console[open] { display: flex; flex-direction: column; }

.console::backdrop { background: rgba(0, 0, 0, 0.72); }

.console[open] { animation: power-on 0.28s steps(4, end); }

.console-body {
  flex: 1 1 auto;
  min-height: 14rem;
  overflow-y: auto;
  padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* Eingabezeile im Stil der Ausgabe */
.console-form {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
}

.console-form[hidden] { display: none; }

.console-prompt { white-space: pre; }

.console-input {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  caret-color: transparent;
  outline: none;
}

.console-measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  letter-spacing: inherit;
}

.console-form .caret {
  display: inline-block;
  width: 0.6em;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes power-on {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0.15; }
  100% { opacity: 1; }
}

.console-output {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.console-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--void); /* deckt gescrollten Text unter dem × ab */
  color: #8c8c8c;
  font: 300 1.8rem/1 var(--sans);
  cursor: pointer;
}

.console-close:hover { color: #f2f2f2; }

@media (prefers-reduced-motion: reduce) {
  .console[open], .console-form .caret { animation: none; }
  .cursor { animation: none; }
  .buy { transition: none; }
}
