/* Willmia – Platzhalter „coming soon…"
   Eine Datei für alle drei Seiten (Start, Impressum, Datenschutz).
   Kein Skript, keine Cookies, keine fremden Anfragen: die Schrift liegt unter
   assets/fonts/ (Cormorant Garamond, SIL OFL 1.1, Lizenz daneben).

   Farben: Nacht als Vorgabe, Tag unter prefers-color-scheme: light.
   Gemessene Kontraste (WCAG 2, gegen --bg / gegen --glow, auf zwei Stellen
   abgerundet), 2026-10-30:
     Nacht  ink 15.89/14.56 · muted 8.48/7.77 · faint 5.87/5.38
            accent 8.52/7.81 · todo 9.93/9.09
     Tag    ink 15.63/16.88 · muted 6.72/7.26 · faint 5.50/5.95
            accent 4.64/5.02 · todo 5.89/6.36
   Die Wortmarke nutzt ink („will“), accent („mia“) und faint („.at“).
   Wer eine Farbe ändert, misst neu – nichts für Text unter 4.5:1. */

/* Schnitte: 300 und 600 für die Wortmarke („will“ leicht, „mia“ halbfett),
   500 für die Überschriften der Unterseiten, 400 kursiv für „coming soon…“. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}

:root {
  color-scheme: dark light;

  --bg: #110d12;
  --glow: #21151d;
  --ink: #f1e8dd;
  --muted: #b9a8ab;
  --faint: #9a8a8f;
  --accent: #c9a77a;
  --line: rgba(201, 167, 122, 0.32);
  --todo: #e0b36a;
  --todo-bg: rgba(224, 179, 106, 0.08);
  /* Feines Korn als Kachel über der ganzen Seite, damit der Verlauf nicht nach
     Bildschirm aussieht. Ein data:-SVG, also keine Anfrage. Als Hintergrund-
     schicht und nicht als fixiertes ::before: das fixierte deckte in einer
     ganzseitigen Aufnahme nur den ersten Bildschirm und zeigte eine Kante. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1rem, 5vw, 3rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4eee6;
    --glow: #fbf7f1;
    --ink: #1d1418;
    --muted: #5f4e55;
    --faint: #6c5b61;
    --accent: #8c6238;
    --line: rgba(140, 98, 56, 0.3);
    --todo: #8a4b0c;
    --todo-bg: rgba(138, 75, 12, 0.06);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    var(--grain),
    radial-gradient(ellipse 70% 55% at 50% 44%, var(--glow) 0%, transparent 72%),
    var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Startseite ─────────────────────────────────────────────────────── */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* unten mehr Luft als oben: die Mitte sitzt optisch etwas über der Bildmitte */
  padding: 12vh var(--gutter) 16vh;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  /* 300 wie „will“: die Teile setzen ihren Schnitt selbst, und so lädt die
     Startseite für die Zeile selbst keinen Schnitt nach, den sie nicht zeigt. */
  font-weight: 300;
  font-size: clamp(4.5rem, 23vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.012em;
  color: var(--ink);
  animation: focus-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Die Wortmarke „willmia.at“, auf der Startseite (.wordmark) und im Kopf der
   Unterseiten (.legal-brand): „will“ leicht in Tinte, „mia“ halbfett in Gold,
   „.at“ zurückgenommen – klein, leicht, blass, aber nie unter 1rem, sonst
   wäre es im Kopf keine 10 px groß. Gewählt 2026-10-30 (Entwurf B „Gewicht“,
   mit „mia“ in Gold und „.at“). */
.wordmark-will {
  font-weight: 300;
}

.wordmark-mia {
  font-weight: 600;
  color: var(--accent);
}

.wordmark-tld {
  font-weight: 300;
  font-size: max(0.36em, 1rem);
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* Eine Haarlinie mit kleiner Raute, dazwischen Luft. */
.rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(13rem, 52vw);
  margin: clamp(1.75rem, 4.5vw, 2.75rem) 0 clamp(1.1rem, 3vw, 1.6rem);
  animation: draw 1.4s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
}

.rule::before {
  background: linear-gradient(90deg, transparent, var(--accent));
}

.rule::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.rule span {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.soon {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: var(--muted);
  animation: fade-in 1.4s 0.95s ease both;
}

/* ── Fußzeile (alle Seiten) ─────────────────────────────────────────── */

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 559px) {
  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Impressum und Datenschutz ──────────────────────────────────────── */

.legal-head {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.75rem) var(--gutter) 0;
}

.legal-brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.legal-main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 7vw, 4rem) var(--gutter) 3rem;
}

.legal-main h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.legal-intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.legal-block {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-block p,
.legal-block ul {
  margin: 0 0 0.6rem;
}

.legal-block p:last-child,
.legal-block ul:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  padding-left: 1.2rem;
}

.legal-main a {
  overflow-wrap: anywhere;
}

/* TODO-Block: fehlende Angaben des Betreibers. Absichtlich auffällig –
   so darf die Seite nicht hinaus (deploy/LIESMICH.md, Schritt 0). */
.todo-block {
  margin: 0 0 1.5rem;
  padding: 0 1.1rem;
  border: 1px dashed var(--todo);
  border-radius: 4px;
  background: var(--todo-bg);
}

.todo-block > .todo-title {
  margin: 0;
  padding: 0.9rem 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--todo);
}

.todo-block > .todo-note {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.todo-block .legal-block:first-of-type {
  border-top-color: transparent;
}

.todo {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  color: var(--todo);
}

/* ── Bewegung ───────────────────────────────────────────────────────── */

@keyframes focus-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(0.12em);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes draw {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .rule,
  .soon {
    animation: none;
  }

  a {
    transition: none;
  }
}
