/* ---------------------------------------------------------------
   Autorenseite Nadi J. Thorne — Grundgestaltung
   Alle Farben und Größen stehen hier oben zentral.
   Wer die Seite später anpassen will, ändert nur diese Werte.
   --------------------------------------------------------------- */

:root {
  --nacht:        #1a0f2e;
  --nacht-tief:   #120a20;
  --violett:      #4a2b78;
  --violett-hell: #7b4fb5;
  --flieder:      #c9a7e8;
  --text:         #ece5f6;
  --text-leise:   #b9abd0;
  --gold:         #e0bd7c;
  --linie:        rgba(201, 167, 232, 0.22);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  /* Seitenrand wächst mit dem Bildschirm und respektiert die
     abgerundeten Ecken und die Kameraaussparung neuerer Handys. */
  --rand: max(1.35rem, env(safe-area-inset-left), env(safe-area-inset-right));

  --breite:   min(100% - 2 * var(--rand), 64rem);
  --breite-s: min(100% - 2 * var(--rand), 42rem);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(201, 167, 232, 0.18);
}

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

a { color: var(--flieder); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--flieder); outline-offset: 3px; }

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.25rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.28rem, 1.15rem + 0.7vw, 1.6rem); }

p { margin: 0 0 1.15em; }

.huelle   { width: var(--breite);   margin-inline: auto; }
.huelle-s { width: var(--breite-s); margin-inline: auto; }

.mitte { text-align: center; }

/* --- Kopfbereich und Navigation ------------------------------- */

.kopf {
  padding: clamp(1.4rem, 4vw, 2rem) 0 0;
  padding-top: calc(clamp(1.4rem, 4vw, 2rem) + env(safe-area-inset-top));
  border-bottom: 1px solid var(--linie);
  position: relative;
  z-index: 20;
}

.kopf-leiste {
  width: var(--breite);
  margin-inline: auto;
}

.marke {
  display: block;
  text-align: center;
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.9rem);
  letter-spacing: 0.3em;
  /* Der Sperrsatz schiebt optisch nach rechts, das gleicht es aus. */
  text-indent: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  margin-bottom: clamp(1rem, 3vw, 1.4rem);
}
.marke:hover { color: var(--text); }

.navi {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 3.5vw, 2.2rem);
  font-size: clamp(0.76rem, 0.7rem + 0.25vw, 0.86rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navi a {
  color: var(--text-leise);
  text-decoration: none;
  white-space: nowrap;
  /* 44 Pixel Mindesthöhe, damit sich das am Handy sicher treffen lässt. */
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.navi a:hover { color: var(--text); }
.navi a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--flieder);
}

/* --- Burgerknopf, nur am Handy sichtbar ------------------------ */

.burger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0.55rem;
  width: 1.65rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 1rem; }
.burger span:nth-child(2) { top: 1.35rem; }
.burger span:nth-child(3) { top: 1.7rem; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }

/* --- Handy: Kopf klebt oben, Menü liegt dahinter ---------------- */

@media (max-width: 46rem) {
  .kopf {
    position: sticky;
    top: 0;
    padding-bottom: clamp(1rem, 3vw, 1.4rem);
    background: rgba(18, 10, 32, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.35s ease;
  }
  /* Beim Runterscrollen fährt der Kopf weg, beim Hochscrollen zurück. */
  .kopf.kopf-weg { transform: translateY(-105%); }

  /* Die Navigation liegt als Kind im Kopf. Damit Name und Schließkreuz
     über dem offenen Vollbildmenü bleiben, kommt die Leiste eine
     Ebene höher als das Menü. */
  .kopf-leiste {
    position: relative;
    z-index: 26;
    display: flex;
    align-items: center;
  }

  .marke {
    margin-bottom: 0;
    text-align: left;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    padding-right: 3.5rem;
  }

  .burger { display: block; }

  .navi {
    position: fixed;
    inset: 0;
    z-index: 25;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    background: rgba(18, 10, 32, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.6rem);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  .navi.offen { opacity: 1; visibility: visible; transform: none; }

  .navi a {
    min-height: 3.4rem;
    justify-content: center;
    border-bottom: 0;
    color: var(--text-leise);
  }
  .navi a[aria-current="page"] { color: var(--flieder); border-bottom: 0; }

  /* Solange das Menü offen ist, scrollt die Seite dahinter nicht mit. */
  body.menue-offen { overflow: hidden; }

  /* Offenes Menü deckt den ganzen Bildschirm ab. Der Kopf rutscht
     darüber, damit Name und Schließkreuz sichtbar bleiben. */
  body.menue-offen .kopf {
    z-index: 30;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
}

/* --- Bühne (Startseite) --------------------------------------- */

.buehne {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-content: center;
  min-height: clamp(26rem, 76svh, 42rem);
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3.5rem, 10vw, 6rem);
  text-align: center;
  background: var(--nacht-tief);
}

.buehne-bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.buehne-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: buehne-zoom 34s ease-in-out infinite alternate;
}

/* Schleier: oben dunkel für die Navigation, unten weicher Übergang
   in die Seitenfarbe, dazu eine leichte Vignette an den Rändern. */
.buehne-schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 30%, rgba(18, 10, 32, 0.55) 100%),
    linear-gradient(
      to bottom,
      rgba(18, 10, 32, 0.72) 0%,
      rgba(18, 10, 32, 0.22) 26%,
      rgba(26, 15, 46, 0.62) 68%,
      var(--nacht) 100%
    );
}

@keyframes buehne-zoom {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.17) translate3d(0, -1.5%, 0); }
}

/* Funken, die langsam nach oben treiben. Reine Deko, deshalb
   aria-hidden im HTML und aus bei reduzierter Bewegung. */
.funken {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.funken i {
  position: absolute;
  bottom: -12%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, rgba(224, 189, 124, 0.35) 45%, transparent 70%);
  opacity: 0;
  animation: funke-steigen 15s linear infinite;
}

.funken i:nth-child(1)  { left:  6%; animation-duration: 17s; animation-delay:  0s;   transform: scale(0.7); }
.funken i:nth-child(2)  { left: 17%; animation-duration: 13s; animation-delay: 2.4s; }
.funken i:nth-child(3)  { left: 27%; animation-duration: 20s; animation-delay: 5.1s; transform: scale(0.5); }
.funken i:nth-child(4)  { left: 36%; animation-duration: 15s; animation-delay: 1.2s; }
.funken i:nth-child(5)  { left: 45%; animation-duration: 18s; animation-delay: 7.6s; transform: scale(0.8); }
.funken i:nth-child(6)  { left: 54%; animation-duration: 12s; animation-delay: 3.8s; transform: scale(0.6); }
.funken i:nth-child(7)  { left: 63%; animation-duration: 19s; animation-delay: 9.3s; }
.funken i:nth-child(8)  { left: 72%; animation-duration: 14s; animation-delay: 6.2s; transform: scale(0.55); }
.funken i:nth-child(9)  { left: 81%; animation-duration: 21s; animation-delay: 4.4s; }
.funken i:nth-child(10) { left: 90%; animation-duration: 16s; animation-delay: 8.7s; transform: scale(0.7); }
.funken i:nth-child(11) { left: 33%; animation-duration: 23s; animation-delay: 11s;  transform: scale(0.45); }
.funken i:nth-child(12) { left: 68%; animation-duration: 22s; animation-delay: 13s;  transform: scale(0.5); }

@keyframes funke-steigen {
  0%   { opacity: 0; translate: 0 0; }
  8%   { opacity: 0.85; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; translate: 1.5rem -115svh; }
}

.buehne-inhalt { position: relative; z-index: 1; }

/* Weicher Schleier direkt hinter dem Text. Das Coverbild ist in der
   Mitte sehr hell, ohne das hier wird die Vorzeile unlesbar. */
.buehne-inhalt::before {
  content: "";
  position: absolute;
  inset: -3.5rem -1.5rem;
  z-index: -1;
  background: radial-gradient(58% 68% at 50% 50%, rgba(18, 10, 32, 0.78) 0%, rgba(18, 10, 32, 0.45) 55%, transparent 78%);
}

.vorzeile {
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.82rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--flieder);
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
  text-shadow: 0 0 1.5rem rgba(18, 10, 32, 0.9);
}

.buehne h1 {
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  text-transform: uppercase;
  text-shadow:
    0 0.15em 1.2rem rgba(18, 10, 32, 0.85),
    0 0 3rem rgba(123, 79, 181, 0.55);
}

.buehne .leitsatz {
  color: var(--text);
  font-style: italic;
  font-size: clamp(1.05rem, 0.98rem + 0.55vw, 1.4rem);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 0;
  text-wrap: balance;
  text-shadow: 0 0.15em 1rem rgba(18, 10, 32, 0.9);
}

/* --- Abschnitte ----------------------------------------------- */

.abschnitt { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }

.abschnitt-titel {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* --- Werke ----------------------------------------------------- */

.werk {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) 1fr;
  gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 3.4rem) 0;
}
.werk + .werk { border-top: 1px solid var(--linie); }

/* Kein festes Seitenverhältnis, die drei Cover sind minimal
   unterschiedlich geschnitten und sollen nicht beschnitten werden. */
.werk-bild {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5);
}

.werk-band {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--flieder);
  margin-bottom: 0.6rem;
}

.werk-text { color: var(--text-leise); }

/* Anrisszeile über einem Fließtext, bei Büchern wie bei Figuren. */
.anriss {
  font-size: 1.1em;
  color: var(--text);
  font-style: italic;
}

.zitat {
  margin: 1.8rem 0 1.6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--flieder);
  font-style: italic;
  color: var(--flieder);
}

/* Breites Foto über einem Abschnitt, zum Beispiel die gedruckten Bände. */
.breitbild {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 1.6rem 3.5rem rgba(0, 0, 0, 0.5);
}

/* Rundes Signet. Das Bild hat schwarze Ecken, der Kreisschnitt nimmt sie weg. */
.logo {
  display: block;
  width: clamp(9rem, 22vw, 12rem);
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 50%;
}

.bildzeile {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-leise);
}

/* --- Charaktere ------------------------------------------------ */

.figur { padding: clamp(1.6rem, 4vw, 2.8rem) 0; }
.figur + .figur { border-top: 1px solid var(--linie); }

/* Figuren mit Bild: Porträt links, Text rechts. Ohne Bild bleibt der
   Block einspaltig, die Seite funktioniert also in beiden Zuständen. */
.figur-mit-bild {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: start;
}
.figur-bild {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.45);
}
.figur h3 { letter-spacing: 0.06em; margin-bottom: 0.4em; }
.figur .rolle {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.figur p { color: var(--text-leise); margin-bottom: 0; }
/* Muss die Regel darüber schlagen, sonst klebt das Zitat am Fließtext. */
.figur .zitat { color: var(--flieder); margin-bottom: 1.3rem; }

/* --- Über mich ------------------------------------------------- */

.portraet {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
/* Kein festes Seitenverhältnis, das Foto behält seinen Zuschnitt. */
.portraet img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5);
}

.unterschrift {
  font-style: italic;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  color: var(--flieder);
  margin-top: 2rem;
}

/* --- Knöpfe und Linklisten ------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 0.6rem;
  padding: 0.7rem 2rem;
  border: 1px solid var(--flieder);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.knopf:hover { background: var(--flieder); color: var(--nacht-tief); }

.linkliste { list-style: none; margin: 0; padding: 0; }
.linkliste li { padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
.linkliste li:first-child { border-top: 1px solid var(--linie); }
.linkliste .hinweis { display: block; color: var(--text-leise); font-size: 0.92rem; }

/* --- Kontakt --------------------------------------------------- */

.kontaktweg {
  font-size: clamp(1.25rem, 1.05rem + 1.4vw, 2rem);
  overflow-wrap: anywhere;
}

/* --- Rechtstexte ----------------------------------------------- */

.rechtstext { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.rechtstext h2 { margin-top: 2.4rem; font-size: 1.3rem; }
.rechtstext p, .rechtstext li { color: var(--text-leise); }

.platzhalter {
  border-left: 2px solid var(--gold);
  background: rgba(224, 189, 124, 0.07);
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.94rem;
}

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

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--nacht-tief);
  padding: clamp(2.4rem, 6vw, 3rem) 0 clamp(2.6rem, 6vw, 3.5rem);
  padding-bottom: calc(clamp(2.6rem, 6vw, 3.5rem) + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-leise);
  font-size: 0.9rem;
}

.fuss-navi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.8rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fuss-navi a {
  color: var(--text-leise);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.fuss-navi a:hover { color: var(--text); }

.fuss-hinweis {
  margin: 1.2rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(185, 171, 208, 0.7);
}
.fuss-hinweis a { color: inherit; text-decoration-color: var(--linie); }
.fuss-hinweis a:hover { color: var(--flieder); }

/* --- Handy und Tablet ------------------------------------------ */

@media (max-width: 46rem) {
  .werk, .portraet { grid-template-columns: 1fr; }

  /* Cover und Porträt mittig und nicht formatfüllend, sonst wirkt
     die Seite am Handy erschlagen. */
  .werk-bild  { max-width: 12.5rem; margin-inline: auto; }
  .portraet img { max-width: 14rem; margin-inline: auto; }

  .figur-mit-bild { grid-template-columns: 1fr; }
  .figur-bild { max-width: 11rem; margin-inline: auto; }

  .zitat { margin: 1.4rem 0 1.2rem; }
  .knopf { width: 100%; max-width: 20rem; }
  .werk .knopf { margin-inline: auto; display: flex; }
}

@media (max-width: 30rem) {
  .marke { letter-spacing: 0.22em; text-indent: 0.22em; }
  .buehne h1 { letter-spacing: 0.06em; text-indent: 0.06em; }
}

/* Auf breiten Bildschirmen darf die Bühne etwas höher stehen. */
@media (min-width: 64rem) {
  .buehne { min-height: clamp(34rem, 82svh, 46rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buehne-bild img { animation: none; transform: scale(1.02); }
  .funken { display: none; }
  * { transition: none !important; }
}
