/* ══════════════════════════════════════════
   HOCH² Kaffee – Shared Styles
   ══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a;
  --deep: #111111;
  --card: #161616;
  --card-hover: #1c1c1c;
  --white: #f5f5f5;
  --muted: #999999;
  --red: #d42331;
  --red-glow: rgba(212, 35, 49, 0.25);
  --gold: #c9a96e;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HEADER / NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
header.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10, 10, 10, 0.95);
}
.header-logo {
  height: 38px;
  cursor: pointer;
  transition: var(--transition);
  mix-blend-mode: lighten;
}
.header-logo:hover { opacity: 0.8; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--white); }
nav a:hover::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── SECTION LAYOUT ── */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-left a { color: var(--white); transition: color var(--transition); }
.footer-left a:hover { color: var(--red); }
.footer-right {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── FOCUS-VISIBLE (Accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── INLINE FORM VALIDATION ── */
.form-group.has-error .form-control {
  border-color: var(--red);
}
.error-msg {
  color: var(--red);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ── WEBGL FALLBACK ── */
.webgl-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--black);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 2rem;
}
.webgl-failed iframe { display: none; }
.webgl-failed .webgl-fallback { display: flex; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  nav.open a {
    font-size: 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .menu-toggle { display: block; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  section { padding: 4rem 1.2rem; }
  header { padding: 0.8rem 1.2rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
