/* ===== 4DZIKI — SHARED STYLES ===== */

:root {
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-warm: #F2F0ED;
  --accent: #FF006E;
  --accent-dark: #D4005B;
  --ink: #111111;
  --text: #222222;
  --muted: #8E8E93;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; transition: color 0.1s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--accent);
  z-index: 10001; width: 0%;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 24px;
  list-style: none; align-items: center;
}

.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 0.05em; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent); transition: width 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-separator {
  width: 1px; height: 16px;
  background: rgba(0,0,0,0.15);
  margin: 0 4px;
  list-style: none;
  align-self: center;
}

/* Nav accent link (Kontakt) */
.nav-accent {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.nav-accent::after { background: var(--accent) !important; }

/* Nav dropdowns */
.nav-drop { position: relative; list-style: none; }
.nav-drop-btn {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  padding: 0; border: none; background: transparent;
  transition: color 0.15s;
}
.nav-drop-btn:hover { color: var(--ink); }
.nav-drop-arrow { font-size: 0.6rem; margin-left: 2px; }
.nav-drop-menu {
  display: none; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 10px;
  list-style: none; min-width: 160px; z-index: 10003;
}
.nav-drop-menu li:first-child a {
  border-top-left-radius: 0; border-top-right-radius: 0;
}
/* Visual background on the menu items area */
.nav-drop-menu::after {
  content: ''; position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: -1;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 8px 20px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.05em;
  text-decoration: none; transition: all 0.1s;
  white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--bg-warm); color: var(--accent); }
.nav-drop-menu a::after { display: none !important; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
  z-index: 10002;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--ink); transition: all 0.2s; }

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.1em;
  cursor: pointer; padding: 4px 8px;
  border: 1px solid var(--muted);
  background: transparent;
  transition: all 0.1s;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-arrow { font-size: 0.65rem; margin-left: 2px; }
.lang-menu {
  display: none; position: absolute;
  top: 100%; right: 0; padding-top: 10px;
  list-style: none; min-width: 60px; z-index: 10003;
}
.lang-menu::after {
  content: ''; position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--white); border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: -1;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-dropdown:hover .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: 6px 16px;
  font-size: 0.75rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.1em;
  text-decoration: none; transition: background 0.1s;
}
.lang-menu a:hover { background: var(--bg-warm); color: var(--accent); }
.lang-menu a::after { display: none !important; }
.lang-menu .lang-active { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 32px;
  cursor: pointer; border: none; transition: all 0.1s;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 60px; }
.section-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.section-line { width: 60px; height: 3px; background: var(--accent); margin-top: 16px; }

/* ===== FOOTER ===== */
.footer { padding: 48px 24px; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-transform: uppercase; }
.footer-logo span { color: var(--accent); }
.footer-social { display: flex; gap: 24px; list-style: none; }
.footer-social a { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.1s; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom { font-size: 0.75rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* Dark footer variant (for subpages) */
.footer--dark { background: var(--bg-warm); border-top: none; }
.footer--dark .footer-logo { color: var(--ink); }
.footer--dark .footer-social a { color: var(--muted); }
.footer--dark .footer-social a:hover { color: var(--accent); }
.footer--dark .footer-bottom { color: var(--muted); }
.footer--dark .footer-bottom a { color: var(--muted); }
.footer--dark .footer-bottom a:hover { color: var(--accent); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav.menu-open {
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    overflow-y: auto;
  }
  .nav.menu-open .nav-inner {
    display: block;
    height: auto;
    position: relative;
  }
  .nav.menu-open .nav-logo {
    display: inline-block;
    line-height: 64px;
  }
  .nav.menu-open .nav-hamburger {
    position: absolute; top: 20px; right: 24px;
  }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 0; list-style: none;
    width: 100%;
    padding: 8px 0 32px;
  }
  .nav.menu-open .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav.menu-open .nav-links > li:last-child { border-bottom: none; }
  .nav.menu-open .nav-links a {
    display: block; padding: 14px 0;
    font-size: 0.95rem; color: var(--ink);
  }
  .nav.menu-open .nav-links a::after { display: none; }
  .nav.menu-open .nav-drop-btn {
    display: block; width: 100%; text-align: left;
    padding: 14px 0; font-size: 0.95rem; color: var(--ink);
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .nav.menu-open .nav-drop-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    background: transparent;
    padding: 0 0 8px 16px; min-width: 0;
    display: none;
  }
  .nav.menu-open .nav-drop-menu::after { display: none; }
  .nav.menu-open .nav-drop-menu a {
    font-size: 0.85rem; color: var(--muted); padding: 8px 0;
  }
  .nav.menu-open .nav-drop.open .nav-drop-menu { display: block; }
  .nav.menu-open .nav-separator { display: none; }
  .nav.menu-open .lang-dropdown { padding: 14px 0; }
  .nav.menu-open .lang-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    background: transparent;
    padding: 8px 0 0 0; min-width: 0;
  }
  .nav.menu-open .lang-menu::after { display: none; }
  .nav.menu-open .lang-menu a { padding: 6px 0; }
}

@media (max-width: 600px) {
  .section { padding: 64px 16px; }
  .footer { padding: 28px 16px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-social { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer-social a { font-size: 0.7rem; }
  .footer-bottom { text-align: center; font-size: 0.65rem; }
}
