/* visito.at - Pre-Launch Landing
   Design Direction: Wiener Steinmetz (color) + Quiet Wordmark (type) + Quiet Quarters (layout)
   No JS, no third-party CDN, no tracking. SIL-OFL self-hosted variable fonts. */

/* --------------------------------------------------------------------------
   Webfonts (self-hosted, SIL OFL 1.1)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-var.woff2") format("woff2-variations"),
       url("/fonts/source-serif-4-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2-variations"),
       url("/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122;
}

/* CLS-prevention metrics overrides */
@font-face {
  font-family: "Inter-fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}
@font-face {
  font-family: "SourceSerif-fallback";
  src: local("Georgia"), local("Times New Roman");
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 103%;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Surface tokens - Wiener Steinmetz palette */
  --background:        #F2EADB;
  --surface-elevated:  #FAF4E6;
  --surface-sunken:    #ECE2CD;

  /* Ink tokens */
  --text-primary:      #241F18;
  --text-secondary:    #4D4135;

  /* Accent tokens (single warm-burgundy family) */
  --accent:            #7A3F35;
  --accent-strong:     #7A3220;

  /* Emergency (CMedO §6 #11 binding - DO NOT brand-tune) */
  --emergency:         #A02828;
  --emergency-on:      #FCF9F2;

  /* Structure */
  --divider-subtle:    #DDD0B6;

  /* Typography */
  --font-serif: "Source Serif 4", "SourceSerif-fallback", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", "Inter-fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Size scale */
  --text-xs:        0.875rem;
  --text-sm:        1rem;
  --text-base:      1.125rem;
  --text-lg:        1.25rem;
  --text-xl:        1.5rem;
  --text-2xl:       2rem;
  --text-3xl:       2.5rem;
  --text-hero:      3rem;
  --text-hero-lg:   4rem;

  /* Spacing - 8pt rhythm */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Container ladder */
  --container-narrow: 38rem;
  --container-base:   48rem;
  --container-wide:   68rem;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 420;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}

p, li {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-underline-offset 150ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-underline-offset: 0.3em;
}

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

strong { font-weight: 600; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--accent-strong);
  color: var(--emergency-on);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  z-index: 100;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-4);
  outline: 3px solid var(--text-primary);
  outline-offset: 2px;
  color: var(--emergency-on);
}

/* --------------------------------------------------------------------------
   Container ladder
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { max-width: var(--container-narrow); }
.container--base   { max-width: var(--container-base); }

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  padding: var(--space-8) 0 var(--space-4);
}

.brand {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 540;
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand:hover { color: var(--accent); }

.brand-word { display: inline-block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-12) 0 var(--space-16);
}

@media (min-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-24); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw + 1rem, var(--text-hero-lg));
  font-weight: 380;
  font-variation-settings: "opsz" 60;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subline {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 420;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.pre-launch-note {
  display: block;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-elevated);
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-size: var(--text-sm);
  line-height: 1.55;
  border-radius: 0 2px 2px 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--divider-subtle);
}

@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw + 1rem, var(--text-2xl));
  font-weight: 460;
  font-variation-settings: "opsz" 32;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: var(--space-12);
}

.section p,
.section li {
  font-size: var(--text-base);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }
}

.step {
  display: grid;
  gap: var(--space-4);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface-sunken);
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 460;
  font-size: var(--text-xl);
  line-height: 1;
  border-radius: 50%;
}

.step-headline {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Lists (audience / privacy)
   -------------------------------------------------------------------------- */

.audience-list,
.privacy-list {
  display: grid;
  gap: var(--space-6);
}

.audience-list li,
.privacy-list li {
  position: relative;
  padding-left: var(--space-6);
  line-height: 1.6;
  color: var(--text-primary);
}

.audience-list li::before,
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 1rem;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Was visito NICHT ist
   -------------------------------------------------------------------------- */

.not-list {
  display: grid;
  gap: var(--space-6);
}

.not-list li {
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  background: var(--surface-elevated);
  border-left: 3px solid var(--accent);
  line-height: 1.6;
  color: var(--text-primary);
  border-radius: 0 2px 2px 0;
}

.not-list strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.emergency-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--emergency);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--surface-sunken);
  border-top: 1px solid var(--divider-subtle);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .site-footer { padding: var(--space-24) 0 var(--space-16); }
}

.site-footer p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.site-footer p:last-child { margin-bottom: 0; }

.contact-line {
  font-size: var(--text-base) !important;
  color: var(--text-primary) !important;
  font-weight: 500;
}

.imprint-line,
.privacy-line {
  font-size: var(--text-xs) !important;
}

/* --------------------------------------------------------------------------
   Motion preferences + print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .skip-link, .pre-launch-note { display: none; }
  .section { border-top: 1px solid #000; }
  .emergency-number { color: #000; font-weight: 700; }
  a { color: #000; text-decoration: underline; }
}
