/* BUF – Borlänge Ungdomsförening */
:root {
  --ink: #0b0a0d;
  --ink-2: #151318;
  --ink-3: #201d24;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #f4f1ea;
  --muted: #a39fa8;
  --acid: #d7ff3b;
  --pink: #ff3da5;
  --cyan: #3de3ff;
  --violet: #8a5cff;
  --radius: 18px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --wrap: min(1200px, 100% - 2.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ''; width: 1.6em; height: 2px; background: currentColor; }

/* ---------- Knappar ---------- */
.btn {
  --bg: var(--acid);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--bg); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 10, 13, 0.75);
  backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 52px; height: auto; transition: transform 0.6s var(--ease); }
.brand:hover img { animation: wobble 0.8s var(--ease); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; }
@keyframes wobble {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-12deg) scale(1.12); }
  60% { transform: rotate(8deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}

.nav { display: flex; gap: 0.25rem; }
.nav a {
  position: relative;
  padding: 0.55em 1em;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--acid); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform 0.3s, background 0.3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    background: rgba(11, 10, 13, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .menu-open .nav { transform: none; }
  .nav a { font-family: var(--display); font-size: 1.4rem; padding: 0.6em 0.8em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 0 140px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 40%, #1c1626 0%, var(--ink) 65%);
}
#disco-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.beam {
  position: absolute;
  top: -10%;
  width: 60vmax;
  height: 140vmax;
  z-index: -1;
  transform-origin: 50% 0;
  filter: blur(18px);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}
.beam::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--c), transparent 65%); clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); }
.beam--l { --c: var(--pink); left: -10%; animation: sweep-l 9s ease-in-out infinite alternate; }
.beam--r { --c: var(--cyan); right: -10%; animation: sweep-r 11s ease-in-out infinite alternate; }
.beam--c { --c: var(--violet); left: 50%; margin-left: -30vmax; animation: sweep-c 7s ease-in-out infinite alternate; opacity: 0.25; }
.beam--c::before { clip-path: polygon(49% 0, 51% 0, 80% 100%, 20% 100%); }
@keyframes sweep-l { from { transform: rotate(-35deg); } to { transform: rotate(10deg); } }
@keyframes sweep-r { from { transform: rotate(35deg); } to { transform: rotate(-12deg); } }
@keyframes sweep-c { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }

.hero-inner { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }

/* Animerad logga */
.logo-stage {
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  width: min(440px, 78vw);
  aspect-ratio: 574 / 532;
  perspective: 900px;
}
.logo-3d {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--ty)) rotateY(var(--tx));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  animation: intro-drop 1.3s var(--ease) both;
}
@keyframes intro-drop {
  0% { opacity: 0; transform: translateY(-60px) scale(0.6) rotate(-20deg); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
.logo-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-pulse { position: absolute; inset: 0; animation: bass 0.5s cubic-bezier(0.3, 0, 0.2, 1) infinite; animation-delay: 1.3s; }
@keyframes bass {
  0% { transform: scale(1.035); }
  35% { transform: scale(1); }
  100% { transform: scale(1); }
}
.logo-glow {
  inset: -6%;
  width: 112%;
  height: 112%;
  -webkit-mask: url('/img/buf-silhouette.png') center / contain no-repeat;
  mask: url('/img/buf-silhouette.png') center / contain no-repeat;
  background: conic-gradient(from var(--hue, 0deg), var(--pink), var(--violet), var(--cyan), var(--acid), var(--pink));
  filter: blur(26px);
  opacity: 0.9;
  animation: hue-spin 6s linear infinite;
}
@property --hue { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hue-spin { to { --hue: 360deg; } }
.logo-lines-color {
  -webkit-mask: url('/img/buf-mark.png') center / contain no-repeat;
  mask: url('/img/buf-mark.png') center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.95) 48%, var(--acid) 52%, transparent 65%) 0 0 / 300% 100%;
  animation: shine 3.2s var(--ease) infinite;
  animation-delay: 1.6s;
  mix-blend-mode: normal;
}
@keyframes shine { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }

.sparkle {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: radial-gradient(circle, #fff 0 8%, transparent 9%), conic-gradient(from 45deg, transparent 0 20%, #fff 22% 28%, transparent 30% 45%, #fff 47% 53%, transparent 55% 70%, #fff 72% 78%, transparent 80%);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
  mask: radial-gradient(circle, #000 20%, transparent 70%);
  opacity: 0;
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(90deg); }
}

.wordmark { width: min(520px, 82vw); opacity: 0.95; animation: reveal 1s var(--ease) 0.6s both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 0.95; } }

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  max-width: 28ch;
  margin: 0.3rem 0 0;
  animation: fade-up 0.9s var(--ease) 0.9s both;
}
.hero-tagline em { font-style: normal; color: var(--acid); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; animation: fade-up 0.9s var(--ease) 1.1s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.eq { display: flex; gap: 4px; height: 26px; align-items: flex-end; }
.eq i { width: 5px; background: var(--acid); border-radius: 3px; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-duration: 0.7s; background: var(--pink); }
.eq i:nth-child(3n) { animation-duration: 1.1s; background: var(--cyan); }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

.scroll-hint {
  position: absolute;
  bottom: 96px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 0 12px rgba(11, 10, 13, 0.9), 0 0 2px rgba(11, 10, 13, 0.9);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  animation: fade-up 0.9s var(--ease) 1.4s both;
}
.scroll-hint::after { content: ''; width: 2px; height: 38px; border-radius: 2px; background: linear-gradient(var(--acid), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Löpband */
.marquee {
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: center;
  overflow: hidden;
  padding: 0.85rem 0;
  z-index: 2;
}
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.4rem); text-transform: uppercase; padding-right: 1.4em; white-space: nowrap; }
.marquee span::after { content: '✦'; padding-left: 1.4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sektioner ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: 0.6rem; }
.link-more { font-family: var(--display); font-weight: 700; font-size: 0.85rem; text-decoration: none; display: inline-flex; gap: 0.5em; border-bottom: 2px solid var(--acid); padding-bottom: 0.2em; }
.link-more:hover { color: var(--acid); }

/* Utvalda event */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.feat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink-2);
  text-decoration: none;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
@media (max-width: 900px) { .feat-card { aspect-ratio: 4 / 3; } }
.feat-card:first-child { box-shadow: 0 0 0 2px var(--acid); }
.feat-card:hover { box-shadow: 0 30px 60px -25px rgba(215, 255, 59, 0.35); }
.feat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.feat-card:hover img { transform: scale(1.06); }
.feat-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 10, 13, 0.95) 10%, rgba(11, 10, 13, 0.2) 55%, rgba(11, 10, 13, 0.1)); }
.feat-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0.4rem 0 0.3rem; }
.feat-card p { margin: 0; color: #d6d2da; font-size: 0.95rem; }
.date-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  min-width: 64px;
}
.date-badge b { display: block; font-size: 1.6rem; font-weight: 800; }
.date-badge small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(215, 255, 59, 0.15);
  color: var(--acid);
  width: fit-content;
}
.feat-card .next-label { position: absolute; top: 1.1rem; right: 1.1rem; background: var(--acid); color: var(--ink); font-family: var(--display); font-size: 0.7rem; font-weight: 800; padding: 0.45em 0.8em; border-radius: 999px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Kompakt eventlista */
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.25s, padding 0.25s var(--ease);
}
a.ev-row:hover { background: rgba(255, 255, 255, 0.04); padding-left: 1.2rem; }
.ev-row time { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.ev-row time small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ev-row h3 { font-size: 1.1rem; }
.ev-row .meta { color: var(--muted); font-size: 0.9rem; }
.ev-row .go { font-size: 1.4rem; color: var(--acid); transition: transform 0.25s var(--ease); }
a.ev-row:hover .go { transform: translateX(6px); }

/* Instagram */
.ig-section { background: var(--ink-2); overflow: hidden; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.ig-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(to top, rgba(255, 61, 165, 0.85), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-item:hover img { transform: scale(1.08); }
.ig-item:hover::after { opacity: 1; }
.ig-handle { text-decoration: none; overflow-wrap: anywhere; font-family: var(--display); font-weight: 800; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-note { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }

/* CTA-block */
.cta-block {
  position: relative;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--acid);
  color: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cta-block h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-block p { font-size: 1.1rem; max-width: 46ch; }
.cta-block .btn { --bg: var(--ink); --fg: var(--paper); }
.cta-block img { width: 100%; max-width: 260px; justify-self: center; filter: invert(1); animation: rock 3s ease-in-out infinite; opacity: 0.9; }
@keyframes rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.04); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .cta-block { grid-template-columns: 1fr; } .cta-block img { max-width: 140px; justify-self: start; } }

/* ---------- Undersidor ---------- */
.page-hero {
  padding: 160px 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 0.8rem; }
.page-hero p { color: var(--muted); max-width: 56ch; font-size: 1.15rem; margin: 1.2rem 0 0; }
.page-hero .ghost-mark {
  position: absolute;
  right: -60px;
  top: 60px;
  width: min(420px, 60vw);
  opacity: 0.07;
  animation: spin-slow 40s linear infinite;
  pointer-events: none;
}
.page-hero .orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: 0.35; z-index: -1; pointer-events: none; }

/* Eventsida */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--paper);
  font: 600 0.9rem var(--body);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.month-label { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 1rem; }
.month-label:first-child { margin-top: 0; }
.ev-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  scroll-margin-top: 100px;
}
.ev-card:hover { border-color: rgba(215, 255, 59, 0.45); transform: translateY(-3px); }
.ev-card:target { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(215, 255, 59, 0.2); }
.ev-card .media { position: relative; min-height: 220px; }
.ev-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-card .body { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ev-card h3 { font-size: 1.5rem; }
.ev-card .info { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.ev-card .info span { display: inline-flex; align-items: center; gap: 0.4em; }
.ev-card p { margin: 0; color: #d6d2da; }
.ev-card .actions { margin-top: auto; padding-top: 0.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ev-card .btn { padding: 0.75em 1.2em; font-size: 0.78rem; }
.ev-card.past { opacity: 0.6; }
.ev-card.past .media img { filter: grayscale(1); }
@media (max-width: 760px) { .ev-card { grid-template-columns: 1fr; } .ev-card .media { min-height: 200px; } }

.countdown { font-family: var(--display); font-size: 0.78rem; font-weight: 700; color: var(--acid); }
.past-toggle { margin-top: 3rem; }
.past-toggle summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--muted); list-style: none; display: inline-flex; gap: 0.6em; align-items: center; }
.past-toggle summary::before { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform 0.3s; }
.past-toggle[open] summary::before { transform: rotate(45deg); }
.past-toggle .list { margin-top: 1.5rem; }

.empty { padding: 3rem; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Om oss */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid .big { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
.about-grid .big em { font-style: normal; color: var(--acid); }
.about-text p { margin: 0 0 1em; color: #d6d2da; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { border-top: 2px solid var(--acid); padding-top: 1rem; }
.stat b { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.member { position: relative; }
.member .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  margin-bottom: 1rem;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s, transform 0.7s var(--ease); }
.member:hover .photo img { filter: none; transform: scale(1.05); }
.member .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--pink), var(--violet)); mix-blend-mode: multiply; opacity: 0.35; transition: opacity 0.5s; }
.member:hover .photo::after { opacity: 0; }
.member .role { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 1; background: var(--acid); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 0.72rem; padding: 0.45em 0.85em; border-radius: 999px; }
.member h3 { font-size: 1.2rem; }
.member p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.member .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--ink); background: var(--acid); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.c-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.c-card:hover { border-color: var(--acid); transform: translateX(4px); }
.c-card .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-3); color: var(--acid); }
.c-card small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.c-card strong { font-weight: 700; word-break: break-word; }

.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9em 1em;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 4px rgba(215, 255, 59, 0.15); }
.field textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 700; min-height: 1.5em; margin: 0; }
.form-status.ok { color: var(--acid); }
.form-status.err { color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 2rem; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { text-decoration: none; color: var(--paper); }
.footer-grid a:hover { color: var(--acid); }
.footer-brand img { width: 90px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Scroll-animationer */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.skeleton { background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .beam { display: none; }
}
