/* =========================================================================
   yumetriip.de — main.css
   Variables, reset, base, layout helpers, header, footer
   ========================================================================= */

:root {
  /* Paleta */
  --cream:        #F5F0E1;
  --cream-soft:   #FAF6EC;
  --cream-warm:   #EDE5D1;
  --ink:          #1A1A1A;
  --ink-soft:     #4A4540;
  --ink-mute:     #756F66;
  --gold:         #C9A14A;
  --gold-deep:    #8A6A22;
  --sakura:       #E8A2A8;
  --sakura-deep:  #C46E76;
  --drache:       #C8102E;
  --drache-deep:  #8E0A1F;
  --shogun:       #C9A14A;
  --shogun-deep:  #8A6A22;
  --on-color:     #FFFFFF;

  /* Estados */
  --ok-bg:        #E8F5E9;
  --ok-fg:        #1E6B26;
  --warn-bg:      #FFF3E0;
  --warn-fg:      #8A5A12;
  --err-bg:       #FFEBEE;
  --err-fg:       #B0152A;
  --win-bg:       #FFF7DE;
  --win-fg:       #6B4F00;

  /* Tipografía */
  --font-display: 'Shippori Mincho B1', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Espaciado base */
  --container:    1200px;
  --gutter:       clamp(16px, 4vw, 32px);
  --radius:       14px;
  --radius-lg:    22px;

  /* Sombras */
  --shadow-sm:  0 2px 6px -2px rgba(40, 20, 10, 0.18);
  --shadow-md:  0 12px 28px -16px rgba(40, 20, 10, 0.35);
  --shadow-lg:  0 28px 60px -28px rgba(40, 20, 10, 0.45);

  /* Header altura */
  --header-h:   64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
a { color: inherit; text-underline-offset: 3px; }
button { font-family: inherit; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; z-index: 9999;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Eyebrow / sección heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--drache);
  margin: 0 0 14px;
  line-height: 1;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: currentColor; border-radius: 50%;
  flex-shrink: 0;
}
.accent { color: var(--drache); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw + 8px, 52px);
  margin-bottom: 14px;
}
.section-head .section-sub {
  font-size: clamp(15px, 1vw + 12px, 18px);
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
  min-height: 44px;
}
.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--drache) 60%, transparent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--drache);
  color: var(--on-color);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--drache-deep); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-large { font-size: 15px; padding: 16px 32px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
}
.badge-drache  { background: var(--drache); color: var(--on-color); }
.badge-sakura  { background: var(--sakura); color: var(--ink); }
.badge-shogun  { background: var(--shogun); color: var(--ink); }
.badge-num     { background: var(--cream-warm); color: var(--drache); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; padding: 6px 10px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: rgba(26,26,26,0.08);
  background: rgba(250, 246, 236, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  height: 36px;
  width: auto;
}
.brand-dot {
  color: var(--gold);
  font-weight: 700;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible {
  color: var(--ink);
  background: rgba(26,26,26,0.06);
  outline: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--on-color);
  background: var(--drache);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.14s ease, transform 0.14s ease;
}
.nav-cta:hover { background: var(--drache-deep); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-cta { display: none; }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    padding: 12px var(--gutter) 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(26,26,26,0.08);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    height: 48px;
    width: 100%;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  line-height: 1;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.14s ease, color 0.14s ease;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-logo {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}
.footer-school {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  color: rgba(245,240,225,0.85);
}
.footer-legal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(245,240,225,0.15);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,240,225,0.15);
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(245,240,225,0.7);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.footer-legal-text {
  font-style: italic;
  font-size: 11px !important;
  opacity: 0.75;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 40px; }
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 12px,
      rgba(26,26,26,0.025) 12px, rgba(26,26,26,0.025) 24px),
    linear-gradient(135deg, var(--cream-soft), var(--cream-warm));
  border: 1.5px dashed rgba(26,26,26,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.img-placeholder .ph-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  line-height: 1.4;
}
.img-placeholder .ph-label em {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 500;
  font-size: 10px;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0.02em;
}
.ph-hero       { aspect-ratio: 3 / 4; }
.ph-prize      { aspect-ratio: 4 / 3; }
.ph-hauptpreis { aspect-ratio: 16 / 9; }
.ph-story      { aspect-ratio: 4 / 3; }
.ph-scroll     { aspect-ratio: 16 / 9; margin-top: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
