/* ============================================================
   Wine in the City – Winter Edition
   base.css · Design-Tokens, Reset, Typografie, Utilities
   ============================================================ */

/* ---------- Design-Tokens ---------- */
:root {
  /* Marken-Skala */
  --navy-950: #070d1f;
  --navy-900: #0b1430;
  --navy-850: #0e1838;
  --navy-800: #101c42;
  --navy-700: #182757;
  --navy-600: #253165;
  --ice-100: #e8f0fb;
  --ice-200: #cfdff5;
  --ice-300: #a9c6ef;
  --ice-400: #7fa8e0;
  --ice-500: #5b86c9;
  --wine-500: #8c2f4e;
  --wine-300: #c86a86;

  /* Typografie */
  --font-display: 'Poiret One', 'Century Gothic', 'Futura', sans-serif;
  --font-body: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  /* Geometrie */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --container: 1180px;
  --header-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .22s;
  --t-med: .45s;
  --t-slow: .9s;
}

/* ---------- Farbwelt (die Website ist bewusst nur hell) ---------- */
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --bg-raised: #eceff6;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .78);
  --border: #e3e8f2;
  --border-strong: #cdd6e6;
  --text: #1c2340;
  --text-soft: #4a5268;
  --text-faint: #7c86a0;
  --primary: #253165;
  --primary-contrast: #ffffff;
  --accent: #5b86c9;
  --accent-soft: #e3edfb;
  --wine: #8c2f4e;
  --wine-soft: #f7e9ee;
  --hero-grad: linear-gradient(180deg, #060b1c 0%, #0b1430 34%, #131f4a 70%, #1b2b60 100%);
  --watermark: rgba(37, 49, 101, .05);
  --shadow-s: 0 2px 10px rgba(21, 32, 74, .06);
  --shadow-m: 0 10px 30px rgba(21, 32, 74, .09);
  --shadow-l: 0 24px 60px rgba(21, 32, 74, .14);
  --header-glass: rgba(255, 255, 255, .82);
  --overlay: rgba(14, 21, 46, .55);
  --success: #2e7d4f;
  --success-soft: #e2f3e9;
  --danger: #b03434;
  --danger-soft: #fbe9e9;
  --logo-main: url("../assets/logo-dark.svg");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }

/* hidden-Attribut muss jede display-Regel schlagen
   (sonst bleiben z. B. Event-Status-Banner immer sichtbar) */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

/* Fokus nur bei Tastaturbedienung hervorheben */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .045em;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-kicker .num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .1em;
}
.section-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.4vw, 2.9rem);
  letter-spacing: .04em;
  margin-top: 12px;
  color: var(--text);
}

.section-lead {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-soft);
  font-weight: 300;
  font-size: clamp(.98rem, 1.6vw, 1.06rem);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 32px);
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 110px);
}

.section-head { margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { text-align: center; }
.section-head.center .section-kicker { justify-content: center; }
.section-head.center .section-kicker::after { display: none; }
.section-head.center .section-lead { margin-inline: auto; }

/* Outline-Wasserzeichen hinter Sektionen */
.watermark {
  position: absolute;
  inset-inline: 0;
  top: 8px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 13rem);
  letter-spacing: .08em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--watermark);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: 8px;
  font-weight: 500;
  transform: translateY(-64px);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.12em;
}
.icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Scroll-Reveals ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in-view { opacity: 1; transform: none; }

html.js .reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal-scale.in-view { opacity: 1; transform: none; }

/* ---------- Seitenübergänge ---------- */
html.js body { animation: page-in .5s var(--ease-out); }
html.js body.page-leave {
  animation: page-out .26s ease forwards;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-8px); }
}

/* View Transitions API (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .28s; }
::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.js .reveal, html.js .reveal-scale { opacity: 1; transform: none; }
}
