/* Facsimile – Platzhalter „bald verfügbar …“, Rechtsseiten und Support.
   Eine Datei für alle Seiten. Kein Skript, keine Cookies, keine fremden Anfragen.
   Aufbau und Anmutung nach willmia.at (Zeichen, Wortmarke, Haarlinie mit Raute,
   kursive Zeile, ruhiger Fuß), Farben und Schrift aus der App (Marke „Sofortbild“,
   app/lib/core/theme/tokens.dart): Himbeer auf Rosé, dunkel Aubergine.
   Hell und dunkel nach Systemeinstellung. Schrift: Fraunces kursiv (OFL, lokal unter
   assets/fonts/, aus app/assets/fonts/ per tools/schriften.mjs), Fließtext Systemschrift.

   Kontraste (WCAG 2, gegen --bg):
     hell  (#FFF3EF)  ink #2A1630 15.6 · muted #6E5462 6.9 · accent #B0174D 6.4
     dunkel (#140A16) ink #F8EAEF 16.7 · muted #C6AAB8 9.0 · accent #FF86AA 8.4
   Die Schrift-URLs unten stempelt build.mjs (?v=…), nicht von Hand ändern. */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600-italic.woff?v=45892da6') format('woff');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-500-italic.woff?v=bdeed94d') format('woff');
}

:root {
  color-scheme: light dark;

  --bg: #fff3ef;
  --raised: #ffffff;
  --ink: #2a1630;
  --muted: #6e5462;
  --accent: #b0174d;
  --accent-soft: #fbdee6;
  --line: #efd6d9;
  --line-strong: #d9b8c2;
  --warn: #8f4e00;
  --warn-bg: rgba(143, 78, 0, 0.07);

  --serif: 'Fraunces', Georgia, '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: dark) {
  :root {
    --bg: #140a16;
    --raised: #1e1220;
    --ink: #f8eaef;
    --muted: #c6aab8;
    --accent: #ff86aa;
    --accent-soft: #4a2137;
    --line: #3a263d;
    --line-strong: #5a3e5d;
    --warn: #e8b04f;
    --warn-bg: rgba(232, 176, 79, 0.08);
  }
}

*,
*::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(--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-strong);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

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

/* Zeichen „Sofortbild“: Rahmen in Tinte, Bild in Himbeer, Sonne weich. */
.sigil {
  display: block;
  flex: none;
  aspect-ratio: 1;
  height: auto;
}

.sigil .z-rahmen { fill: var(--ink); }
.sigil .z-bild { fill: var(--accent); }
.sigil .z-sonne { fill: var(--accent-soft); }

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

.stage {
  --wordmark-size: clamp(3.6rem, 17vw, 8.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10vh var(--gutter) 8vh;
}

.stage .sigil {
  width: calc(var(--wordmark-size) * 0.72);
  margin-bottom: calc(var(--wordmark-size) * 0.14);
  animation: focus-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Wortzeichen wie in der App: klein, Fraunces kursiv 600. */
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: var(--wordmark-size);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: focus-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Domain-Endung klein und gedämpft, wie „.at“ bei willmia.at. */
.wordmark .tld {
  font-weight: 500;
  font-size: max(0.36em, 1rem);
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Haarlinie mit kleiner Raute. */
.rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(13rem, 52vw);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 2.6vw, 1.4rem);
  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: 500;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--muted);
  animation: fade-in 1.4s 0.95s ease both;
}

.satz {
  max-width: 34rem;
  margin: clamp(1.25rem, 3.5vw, 1.75rem) 0 0;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  color: var(--ink);
  text-wrap: balance;
  animation: fade-in 1.4s 1.1s ease both;
}

.stores {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  animation: fade-in 1.4s 1.25s ease both;
}

.stores h2 {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 10.5rem;
  padding: 0.6rem 1.15rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
}

.store:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.store-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.store-zeile {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Noch kein Store-Eintrag: ausgegraut, kein Link, nicht fokussierbar. Text bleibt in
   muted lesbar (≥ 4.5:1), die gestrichelte Kante sagt „noch nicht“. */
.store.is-bald {
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.kontakt {
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  animation: fade-in 1.4s 1.4s ease both;
}

.kontakt a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.foot p { margin: 0; }

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.foot a {
  color: var(--muted);
}

.foot a:hover,
.foot a[aria-current='page'] {
  color: var(--ink);
}

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

  .foot nav { justify-content: center; }
}

/* ── Rechtsseiten und Support ───────────────────────────────────────── */

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.legal-brand .sigil { width: 1.5em; }

.legal-main {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 3rem;
}

.legal-main h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 7.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

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

.legal-block {
  padding: 1.3rem 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(--muted);
}

.legal-block p { margin: 0 0 0.6rem; }
.legal-block p:last-child { margin-bottom: 0; }

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

/* Gerenderter Markdown-Text aus legal/ */
.prosa h2 {
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.prosa h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.prosa h4,
.prosa h5,
.prosa h6 {
  margin: 1.25rem 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.prosa p,
.prosa ul,
.prosa ol {
  margin: 0 0 0.8rem;
}

.prosa ul,
.prosa ol { padding-left: 1.25rem; }

.prosa li { margin: 0.2rem 0; }
.prosa li > ul,
.prosa li > ol { margin: 0.2rem 0 0; }

.prosa blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--raised);
  border-radius: 0 6px 6px 0;
}

.prosa blockquote p:last-child { margin-bottom: 0; }

.prosa code {
  font-size: 0.875em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--raised);
  overflow-wrap: anywhere;
}

.prosa .tabelle {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.prosa table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prosa th,
.prosa td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

/* Entwurf: nur mit --entwurf-erlauben gebaut; deploy.sh --apply verweigert solche Seiten. */
.entwurf {
  margin: 0 0 1.75rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--warn);
  border-radius: 6px;
  background: var(--warn-bg);
  font-size: 0.9rem;
}

.entwurf p { margin: 0; }

.entwurf-titel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
}

mark.offen {
  padding: 0 0.15em;
  border-radius: 3px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 600;
}

/* ── 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) {
  .stage .sigil,
  .wordmark,
  .rule,
  .soon,
  .satz,
  .stores,
  .kontakt {
    animation: none;
  }

  a { transition: none; }
}
