/* ============================================================
   Weinbruderschaft St. Vincenz — Design Tokens
   Quelle: Workshop 21.04.2026 + Figma-Board
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Outfit:wght@300;400;500;600;700&family=Albert+Sans:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* HINWEIS: In Production werden Fonts lokal eingebunden (DSGVO).
   Hier nur fuer Prototyp-Phase ueber Google Fonts CDN. */

:root {
  /* Workshop-Farben */
  --color-gruen: #4A6500;       /* Weinblatt Gruen — Primaer */
  --color-gruen-dark: #364800;
  --color-gold: #C5A491;        /* Cuvee Gold — Akzent */
  --color-gold-light: #D8BFAF;
  --color-rot: #7C0402;         /* Vinzenz Rot — CTA-Akzent */
  --color-rot-dark: #5C0301;
  --color-sand: #EAE4D3;        /* Kork / Sand — Hintergrund */
  --color-sand-dark: #D9D0B8;
  --color-anthrazit: #1C2C2C;   /* Fliesstext */
  --color-cream: #F5F1E6;       /* helleres Sand fuer Karten */
  --color-bone: #FBF8F0;        /* fast-weiss mit Sand-Touch */

  /* Fonts — Headline gemeinsam, Body je nach Variante */
  --font-headline: 'Fraunces', 'Times New Roman', serif;
  --font-modern-artisan: 'Outfit', system-ui, sans-serif;
  --font-classic-tech: 'Albert Sans', system-ui, sans-serif;
  --font-soft-minimalist: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing — fluid */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2rem, 5vw, 4rem);
  --space-2xl: clamp(3rem, 8vw, 6rem);

  /* Container */
  --container: 1280px;
  --container-narrow: 880px;
}

/* ============================================================
   Reset
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-modern-artisan);
  color: var(--color-anthrazit);
  background: var(--color-sand);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { font: inherit; cursor: pointer; }

a { color: inherit; }

/* ============================================================
   Headlines (gemeinsam — Fraunces)
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

/* Italic-Variante fuer Fraunces (Display-Klasse) */
.headline-italic {
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-gruen);
  color: var(--color-bone);
}
.btn-primary:hover { background: var(--color-gruen-dark); color: #fff; }

.btn-rot {
  background: var(--color-rot);
  color: var(--color-cream);
}
.btn-rot:hover { background: var(--color-rot-dark); }

.btn-ghost {
  background: transparent;
  color: var(--color-anthrazit);
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: var(--color-anthrazit); color: var(--color-sand); }

.btn-ghost-light {
  background: rgba(28, 44, 44, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-cream);
  border: 1px solid rgba(245, 241, 230, 0.55);
}
.btn-ghost-light:hover {
  background: var(--color-cream);
  color: var(--color-anthrazit);
  border-color: var(--color-cream);
}

/* ============================================================
   Navigation (basis — pro Variante anpassen)
   ============================================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.nav-list a:hover { opacity: 0.6; }

.brand {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-family: var(--font-modern-artisan);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.15em;
}

/* ============================================================
   Grain-Overlay
   ============================================================ */

.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ============================================================
   Variant-Banner (Info im Prototyp)
   ============================================================ */

.variant-banner {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-anthrazit);
  color: var(--color-sand);
  padding: 0.6em 1.2em;
  border-radius: 999px;
  font-family: var(--font-modern-artisan);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 100;
  display: flex;
  gap: 1em;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.variant-banner a {
  color: var(--color-gold);
  text-decoration: none;
}
.variant-banner a:hover { text-decoration: underline; }

/* In iframe-Vorschau (Index-Mockups) ausblenden */
html.is-embedded .variant-banner { display: none; }

/* iPhone Safe-Area-Top: wenn in iframe UND Phone-Breakpoint, ein dunkler Status-Bar-Streifen oben.
   Per Variante muss die Top-Komponente (Nav/Header) zusaetzlich Top-Padding bekommen damit nichts hinter der Statusbar verschwindet. */
@media (max-width: 720px) {
  html.is-embedded body {
    position: relative;
  }
  html.is-embedded body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 32px;
    background: var(--color-anthrazit);
    z-index: 1000;
    pointer-events: none;
  }
}

/* Burger-Button — Standard-Komponente fuer Mobile-Nav */
.burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.burger svg { display: block; }
.burger svg line {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
@media (max-width: 720px) {
  .burger { display: inline-flex; }
}

/* ============================================================
   Animations — wiederverwendbar
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(2.5deg); }
  50%      { transform: translateY(-6px) rotate(2.5deg); }
}

/* Stagger-Helper: Kinder eines `.stagger`-Containers nacheinander einblenden */
.stagger > * {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.10s; }
.stagger > *:nth-child(2) { animation-delay: 0.22s; }
.stagger > *:nth-child(3) { animation-delay: 0.34s; }
.stagger > *:nth-child(4) { animation-delay: 0.46s; }
.stagger > *:nth-child(5) { animation-delay: 0.58s; }
.stagger > *:nth-child(6) { animation-delay: 0.70s; }
.stagger > *:nth-child(7) { animation-delay: 0.82s; }

.fade-in       { animation: fade-in 1.2s ease-out 0.1s both; }
.fade-in-late  { animation: fade-in 1.4s ease-out 0.6s both; }
.ken-burns     { animation: ken-burns 16s ease-out forwards; }

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .stagger > * { opacity: 1 !important; }
}
