/* NORDtec-events · style.css */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

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

:root {
  --bg:       #0d0f12;
  --bg2:      #13161b;
  --bg3:      #1a1e25;
  --border:   rgba(255,255,255,0.07);
  --gold:     #e8c84a;
  --gold-dim: rgba(232,200,74,0.12);
  --text:     #dde1e8;
  --muted:    #6b7585;
  --radius:   8px;
  --fhead:    'Barlow Condensed', sans-serif;
  --fbody:    'Barlow', sans-serif;
  /* PocketBase URL – wird von JS überschrieben */
  --pb-url:   '';
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fbody);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
.sec  { padding: 5rem 0; }

/* ── TYPE ── */
.tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.h-xl {
  font-family: var(--fhead); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.0; letter-spacing: -0.01em;
}
.h-lg {
  font-family: var(--fhead); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05; letter-spacing: -0.01em;
}
.h-md {
  font-family: var(--fhead); font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.15;
}
.lead  { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.gold  { color: var(--gold); }
.hr    { border: none; border-top: 1px solid var(--border); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--fbody); font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.18s, opacity 0.18s;
}
.btn:hover  { transform: translateY(-2px); opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-gold    { background: var(--gold); color: #0d0f12; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.22); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,15,18,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 5vw;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.nav-logo {
  font-family: var(--fhead); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.02em; text-decoration: none; color: var(--text);
  white-space: nowrap;
}
.nav-logo .gold { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn-gold { color: #0d0f12; padding: 0.5rem 1.25rem; font-size: 0.82rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ── MOBILE DRAWER ── */
.drawer {
  display: none; position: fixed; inset: 0;
  background: rgba(13,15,18,0.97); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.drawer.open { display: flex; }
.drawer a {
  font-family: var(--fhead); font-size: 2rem; font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; color: var(--text); transition: color 0.2s;
}
.drawer a:hover { color: var(--gold); }
.drawer-close {
  position: absolute; top: 1.25rem; right: 5vw;
  background: none; border: none; color: var(--text);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ── PAGE HEADER ── */
.page-hdr {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

/* ── CARD ── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem;
  transition: border-color 0.22s, transform 0.22s;
}
.card:hover { border-color: rgba(232,200,74,0.3); transform: translateY(-3px); }

/* ── SOCIALS ── */
.socials { display: flex; gap: 0.6rem; }
.soc-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.soc-btn svg { width: 16px; height: 16px; }
.soc-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
}
.footer-logo {
  font-family: var(--fhead); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--muted);
}
.footer-tagline { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}

/* ── IMAGE LOADING STATE ── */
.img-wrap {
  position: relative; overflow: hidden; background: var(--bg3);
}
.img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s, transform 0.5s;
}
.img-wrap img.loading { opacity: 0; }
.img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}
.img-wrap img:not(.loading) ~ .img-wrap::before,
.img-wrap:has(img:not(.loading))::before { display: none; }
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

/* ── STATUS BADGES ── */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.badge-new  { background: rgba(232,200,74,0.15); color: var(--gold); border: 1px solid rgba(232,200,74,0.3); }
.badge-open { background: rgba(59,209,99,0.12);  color: #3bd163;    border: 1px solid rgba(59,209,99,0.3); }
.badge-done { background: rgba(107,117,133,0.15); color: var(--muted); border: 1px solid var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}
@media (max-width: 480px) {
  .sec { padding: 3.5rem 0; }
}
