/* ============================================================
   MAIN.CSS — Variablen, Reset, Cursor, Nav, Footer, Animationen
   Wird auf allen Seiten eingebunden
   ============================================================ */

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

:root {
  --black: #080808;
  --white: #f5f2ec;
  --cream: #ede8df;
  --accent: #c8b89a;
  --muted: #555;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Syne', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(245,242,236,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .12s ease-out;
  mix-blend-mode: difference;
}
body:has(a:hover) .cursor { width: 24px; height: 24px; }
body:has(a:hover) .cursor-ring { width: 60px; height: 60px; opacity: 0.3; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.25);
}
.marquee-item::after {
  content: '✦';
  color: var(--accent);
  font-size: 8px;
}

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(245,242,236,0.2);
}
.footer-socials {
  display: flex;
  gap: 28px;
}
.footer-socials a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.25);
  text-decoration: none;
  transition: color .3s;
}
.footer-socials a:hover { color: var(--white); }

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderOut 0.6s 1.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.loader-text {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(245,242,236,0.4);
  letter-spacing: 0.1em;
  animation: loaderPulse 1.2s ease-in-out infinite alternate;
}

/* ── SECTION BASE ── */
.section {
  padding: 120px 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 80px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}
.section-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  font-style: italic;
}
.section-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .3s;
}
.section-link:hover { color: var(--white); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes loaderPulse { from { opacity: 0.3; } to { opacity: 0.8; } }
@keyframes loaderOut   { to { transform: translateY(-100%); } }

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ── NAV ── */
  nav {
    padding: 20px 24px;
  }
  .nav-links {
    gap: 20px;
  }

  /* ── FOOTER ── */
  footer {
    padding: 32px 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* ── SECTION BASE ── */
  .section {
    padding: 80px 24px;
  }
  .section-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
  }
  .section-title {
    font-size: clamp(36px, 8vw, 56px);
    width: 100%;
  }
}
