/* iLaviR – „Die Abendszene“ (Konzept vom Kunden).
   Randloses FLUX-Bild als Szene, Text unten über dem Wasser, Wortmarke groß
   und leicht. Dahinter beim Scrollen ein durchgehender Verlauf von
   Dämmerviolett zu Nachtindigo mit wenigen feinen, statischen Sternen. Genau
   ein auffälliges Element: die goldene Horizontlinie zwischen Beschreibung und
   Rechtslinks. Heller Modus: Morgendämmerung im Nebel (kein Beige).
   v4: Fließtext in Golos Text (wie das Studio), drei Punkte mit echten
   Bildern der App im Handyrahmen, im hellen Modus ein weicher Übergang vom
   Bild in den Hintergrund statt eines harten Sprungs.
   Unabhängig von den übrigen Stylesheets. Kontraste geprüft (WCAG AA). */

@font-face { font-family: "Cormorant iLaviR"; src: url("fonts/cormorant-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant iLaviR"; src: url("fonts/cormorant-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos iLaviR"; src: url("fonts/golos-text.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark light;
  --top: #3b2a4f;        /* Dämmerviolett */
  --bottom: #141433;     /* Nachtindigo */
  --text: #f3eee6;       /* Mondweiß */
  --soft: #e8c9c1;       /* Nebelrosa */
  --horizon: #d9b25f;    /* goldene Horizontlinie */
  --line: rgba(243, 238, 230, 0.18);
  --panel: rgba(20, 20, 51, 0.35);
  --focus: #d9b25f;
  --serif: "Cormorant iLaviR", "Cormorant Garamond", Georgia, serif;
  --sans: "Golos iLaviR", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light dark;
    --top: #eee7f0;      /* Morgennebel */
    --bottom: #e2d8ea;
    --text: #231c33;     /* Tinte */
    --soft: #4b3f5e;
    --horizon: #8a6420;
    --line: rgba(35, 28, 51, 0.16);
    --panel: rgba(255, 255, 255, 0.45);
    --focus: #5a3b86;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background-color: var(--bottom);
  /* Ein Verlauf über die ganze Seitenhöhe: oben Dämmerung, unten Nacht. */
  background-image: linear-gradient(180deg, var(--top) 0%, var(--bottom) 100%);
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Wenige feine Sterne, statisch, nur nachts. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70rem;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 9%, rgba(243, 238, 230, 0.85), transparent 60%),
    radial-gradient(1px 1px at 23% 31%, rgba(243, 238, 230, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 41% 14%, rgba(243, 238, 230, 0.75), transparent 60%),
    radial-gradient(1px 1px at 62% 41%, rgba(232, 201, 193, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 77% 12%, rgba(243, 238, 230, 0.8), transparent 60%),
    radial-gradient(1px 1px at 88% 34%, rgba(243, 238, 230, 0.55), transparent 60%),
    radial-gradient(1px 1px at 15% 58%, rgba(243, 238, 230, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 54% 66%, rgba(243, 238, 230, 0.6), transparent 60%),
    radial-gradient(1px 1px at 93% 72%, rgba(232, 201, 193, 0.6), transparent 60%);
}
@media (prefers-color-scheme: light) { body::before { display: none; } }

a { color: var(--text); text-decoration-color: var(--soft); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--bottom); color: var(--text); z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }

/* Kopf: schmal und ruhig */
/* Obere Leiste (v6, wie auf der ganzen Webseite): Logo, KI-Creator Starter, iLaviR, Sprache;
   darunter die Links des iLaviR-Bereichs. Ohne Skript, auf dem Handy umbrechend, große Trefferflächen. */
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.5rem; padding-top: 0.6rem; font-size: 0.9375rem; }
.top-row2 { padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.top .studio { font-weight: 600; text-decoration: none; margin-right: auto; padding-block: 0.6rem; color: var(--text); }
.top .studio:hover { text-decoration: underline; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 0.3rem; }
.top nav a { display: inline-block; padding: 0.55rem 0.5rem; text-decoration: none; color: var(--text); }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--horizon); }
.top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--horizon); text-decoration-thickness: 2px; }
.area-nav { margin-left: -0.5rem; }
.languages a { color: var(--soft); }
.languages a[aria-current="true"] { color: var(--text); font-weight: 600; }
@media (max-width: 52rem) { .top .studio { flex-basis: 100%; margin-right: 0; padding-bottom: 0.1rem; } .top .site-nav { margin-left: -0.5rem; } }

/* Die Szene: randlos */
.scene { position: relative; margin: 0; }
.scene img { display: block; width: 100%; height: min(86vh, 52rem); min-height: 26rem; object-fit: cover; object-position: center 40%; }
.scene-text {
  position: absolute; inset: auto 0 0 0;
  padding: 7rem 0 clamp(1.8rem, 4vw, 3rem);
  /* Nur zur Lesbarkeit über dem Wasser, in beiden Modi gleich dunkel. */
  background: linear-gradient(180deg, rgba(20, 20, 51, 0) 0%, rgba(20, 20, 51, 0.82) 62%);
  color: #f3eee6;
}
.wordmark { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(4.5rem, 15vw, 11rem); line-height: 0.9; letter-spacing: 0.01em; }
.scene-text p { margin: 0.8rem 0 0; max-width: 34rem; font-size: 1.125rem; color: #e8c9c1; }

/* Beschreibung, Horizont, Rechtslinks */
.about { padding-block: clamp(3rem, 8vw, 5.5rem) 0; display: grid; gap: 1rem; }
.about p { margin: 0; max-width: 38rem; font-size: 1.1875rem; }
.about .status { font-size: 0.9375rem; color: var(--soft); }
.horizon { border: 0; height: 2px; margin: clamp(2.5rem, 6vw, 4rem) 0; background: var(--horizon); }
.legal-links { padding-bottom: clamp(3rem, 8vw, 6rem); }
.legal-links h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 1rem; }
.legal-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem; font-size: 1.0625rem; }

/* Rechtsseiten: ruhige Leseseiten, Inhalt am Rand */
.reading { display: grid; grid-template-columns: 15rem minmax(0, 65ch); gap: 2rem clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); align-items: start; }
.reading h1 { grid-column: 2; margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
.reading .notice { grid-column: 2; margin: 0; padding: 0.9rem 1.1rem; background: var(--panel); border-left: 2px solid var(--soft); color: var(--soft); font-size: 0.9375rem; }
.toc { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 1.5rem; font-size: 0.875rem; }
.toc h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; margin: 0 0 0.6rem; color: var(--soft); }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.text { grid-column: 2; }
.text section { padding-top: 1.8rem; margin-top: 1.8rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.text section:first-child { margin-top: 0; }
.text h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.2; margin: 0 0 0.6rem; }
.text p { margin: 0; }
.stand { margin-top: 2.4rem; color: var(--soft); font-style: italic; }

/* Fuß */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.6rem 2.6rem; font-size: 0.8125rem; color: var(--soft); }
.foot p { margin: 0; }

/* Was die App kann: drei Punkte, daneben die App im Handyrahmen */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 4rem); }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
.features li { padding-left: 1.2rem; border-left: 2px solid var(--line); }
.features h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.features li p { margin: 0.35rem 0 0; color: var(--soft); max-width: 32rem; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 2vw, 1.2rem); align-items: start; }
.phone { margin: 0; padding: 0.4rem; border-radius: 1.6rem; background: #0c0c22; box-shadow: 0 0 0 1px rgba(243, 238, 230, 0.22); }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
.phone-2 { margin-top: 2.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Heller Modus: das Bild läuft unten weich in den hellen Grund aus; die
   Schrift steht darunter in Tinte statt hell auf dunklem Schleier. */
@media (prefers-color-scheme: light) {
  .scene img { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%); }
  .scene-text { position: relative; margin-top: -5.5rem; padding: 0; background: none; color: var(--text); }
  .scene-text p { color: var(--soft); }
  .phone { background: #231c33; box-shadow: none; }
}
@media (prefers-color-scheme: light) and (max-width: 52rem) {
  .scene-text { margin-top: -1rem; }
}

@media (max-width: 52rem) {
  .features { grid-template-columns: 1fr; }
  .phone { padding: 0.25rem; border-radius: 1rem; }
  .phone img { border-radius: 0.8rem; }
  .phone-2 { margin-top: 1.5rem; }
  .about { grid-template-columns: 1fr; }
  .reading { grid-template-columns: 1fr; }
  .reading h1, .reading .notice, .toc, .text { grid-column: 1; grid-row: auto; }
  .toc { position: static; padding: 1rem 1.1rem; background: var(--panel); }
  .scene img { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { body { background: #fff; color: #000; } body::before, .top nav, .skip { display: none; } }
