/* ============================================================
   RETRO GAMING LAND — styles.css
   Modern layout, retro soul: neon, scanlines, pixel type.
   ============================================================ */

:root {
  --bg: #0a0a14;
  --bg-2: #11111f;
  --panel: #16162a;
  --panel-2: #1d1d35;
  --text: #eceaff;
  --muted: #9a98c0;
  --magenta: #ff2e88;
  --cyan: #2ee6ff;
  --purple: #9b5cff;
  --yellow: #ffd23f;
  --green: #38ffb3;
  --border: rgba(155, 92, 255, 0.25);
  --shadow-neon: 0 0 18px rgba(255, 46, 136, 0.55);
  --font-pixel: "Press Start 2P", monospace;
  --font-crt: "VT323", monospace;
  --font-body: "Outfit", system-ui, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(46, 230, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* CRT scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 48px);
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.25s ease, background 0.25s ease;
}
.nav.scrolled { padding: 10px clamp(18px, 5vw, 48px); background: rgba(10, 10, 20, 0.92); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1px; }
.brand-icon { font-size: 1.4rem; filter: drop-shadow(0 0 6px var(--magenta)); }
.brand-text { font-family: var(--font-pixel); font-size: 0.72rem; line-height: 1; color: var(--text); }
.brand-accent { color: var(--magenta); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font-weight: 500; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:not(.nav-cta):hover { color: var(--cyan); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--cyan); transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 600;
  box-shadow: 0 0 14px rgba(255, 46, 136, 0.4); transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(255, 46, 136, 0.7); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px clamp(18px, 5vw, 48px) 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 255, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  bottom: 0; height: 60%; top: auto;
  animation: gridmove 6s linear infinite;
}
@keyframes gridmove { from { background-position: 0 0; } to { background-position: 0 46px; } }

.hero-glow {
  position: absolute; top: 10%; right: -5%; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(255, 46, 136, 0.35), transparent 65%);
  filter: blur(30px); border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-family: var(--font-pixel); font-size: 0.7rem; color: var(--green);
  letter-spacing: 2px; margin-bottom: 22px; animation: blink 1.4s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero-title-2 {
  display: block; color: var(--cyan); margin-top: 14px;
  text-shadow: 0 0 18px rgba(46, 230, 255, 0.7);
}

.hero-sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 640px; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-crt); font-size: 2.6rem; line-height: 1; color: var(--yellow); text-shadow: 0 0 12px rgba(255, 210, 63, 0.5); }
.stat-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Glitch effect */
.glitch { position: relative; color: var(--text); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
}
.glitch::before { color: var(--magenta); animation: glitch1 3s infinite linear alternate-reverse; clip-path: inset(0 0 55% 0); }
.glitch::after { color: var(--cyan); animation: glitch2 2.5s infinite linear alternate-reverse; clip-path: inset(55% 0 0 0); }
@keyframes glitch1 { 0%,92%,100% { transform: translate(0); } 93% { transform: translate(-3px, 1px); } 96% { transform: translate(2px, -1px); } }
@keyframes glitch2 { 0%,90%,100% { transform: translate(0); } 91% { transform: translate(3px, -1px); } 95% { transform: translate(-2px, 1px); } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; padding: 14px 28px;
  border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff;
  box-shadow: 0 0 18px rgba(255, 46, 136, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(255, 46, 136, 0.8); }
.btn-ghost { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(46, 230, 255, 0.12); transform: translateY(-3px); box-shadow: 0 0 20px rgba(46, 230, 255, 0.4); }
.btn-block { width: 100%; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 48px); }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-tag { font-family: var(--font-pixel); font-size: 0.62rem; color: var(--purple); letter-spacing: 2px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; margin-top: 16px; line-height: 1.2; }
.section-title .accent { color: var(--magenta); text-shadow: 0 0 16px rgba(255, 46, 136, 0.45); }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; color: var(--text); }
.about-points li::before { content: "▸"; position: absolute; left: 0; color: var(--green); font-family: var(--font-pixel); font-size: 0.7rem; top: 4px; }

.about-cards { display: grid; gap: 18px; }
.feature-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(46, 230, 255, 0.15); }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- DEVICES ---------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.device-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 16px;
  position: relative; overflow: hidden; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.device-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
  background: linear-gradient(135deg, transparent, var(--magenta), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.22s; pointer-events: none;
}
.device-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(155, 92, 255, 0.2); }
.device-card:hover::after { opacity: 1; }
.device-media {
  height: 190px; background-position: center; background-repeat: no-repeat;
  display: grid; place-items: center; border-bottom: 1px solid var(--border);
}
/* Foto vollständig zeigen (nicht beschneiden) auf hellem Display-Hintergrund */
.device-media:not(.placeholder) {
  background-size: contain; background-origin: content-box; padding: 14px;
  background-color: #eef0f7;
}
.device-media.placeholder { background-size: cover; }
.device-media.placeholder span { font-size: 3.4rem; filter: drop-shadow(0 0 10px rgba(0,0,0,0.4)); }
.device-body { padding: 20px 22px 24px; }
.device-name { font-family: var(--font-pixel); font-size: 0.78rem; line-height: 1.4; margin-bottom: 10px; color: var(--cyan); }
.device-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.device-year { font-family: var(--font-crt); font-size: 1.3rem; color: var(--yellow); }
.device-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 20px; }
.tag-modern { background: rgba(56, 255, 179, 0.16); color: var(--green); }
.device-desc { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.device-credit { font-size: 0.72rem; color: rgba(154, 152, 192, 0.6); margin-top: 12px; line-height: 1.4; }
.device-credit a { color: rgba(46, 230, 255, 0.7); text-decoration: underline; }
.device-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 20px;
  background: rgba(10, 10, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.badge-konsole { color: var(--magenta); }
.badge-computer { color: var(--cyan); }
.badge-handheld { color: var(--green); }

.device-note { text-align: center; margin-top: 40px; color: var(--muted); }
.device-note a { color: var(--cyan); text-decoration: underline; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; grid-auto-rows: 220px; }
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: flex-end;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item .thumb { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; transition: transform 0.4s; }
.gallery-item:hover .thumb { transform: scale(1.08); }
.gallery-cap {
  position: relative; z-index: 2; width: 100%; padding: 16px;
  background: linear-gradient(to top, rgba(10,10,20,0.92), transparent);
  font-weight: 600; transform: translateY(8px); opacity: 0.85; transition: 0.3s;
}
.gallery-item:hover .gallery-cap { transform: translateY(0); opacity: 1; }
.gallery-cap small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.gallery-item img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; background: var(--panel); }
.gallery-item:hover img.thumb { transform: scale(1.08); }
.gallery-item[role="button"] { cursor: zoom-in; }
.gallery-item[role="button"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 9px; font-size: 1rem;
  background: rgba(10,10,20,0.6); color: #fff; opacity: 0; transition: opacity 0.25s; backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* ---------- EVENT-ALBEN (Impressionen) ---------- */
.gallery.albums { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: auto; gap: 22px; }
.album-card {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  cursor: pointer; aspect-ratio: 4 / 3; background: var(--panel);
}
.album-card .album-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.album-card .album-cover.placeholder { display: grid; place-items: center; font-size: 3.4rem; background: linear-gradient(135deg, #3a1c71, #d76d77); }
.album-card:hover .album-cover { transform: scale(1.07); }
.album-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(to top, rgba(5,5,12,0.94) 0%, rgba(5,5,12,0.45) 48%, transparent 78%);
}
.album-count {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--cyan); background: rgba(10,10,20,0.7); border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; backdrop-filter: blur(4px);
}
.album-title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.album-meta { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.album-cta { color: var(--cyan); font-weight: 600; margin-top: 12px; opacity: 0.85; transform: translateY(4px); transition: 0.25s; }
.album-card:hover .album-cta { opacity: 1; transform: none; }
.album-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- ALBUM-POPUP ---------- */
.album-modal {
  position: fixed; inset: 0; z-index: 4000; display: none;
  background: rgba(5,5,12,0.9); backdrop-filter: blur(10px); overflow-y: auto; padding: 0 0 6vh;
}
.album-modal.open { display: block; }
.album-modal-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.album-modal-head {
  position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 24px 0 18px; background: linear-gradient(to bottom, rgba(5,5,12,0.96) 70%, transparent);
}
.album-modal-head h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; }
.album-modal-meta { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }
.album-close {
  flex: 0 0 auto; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer;
  background: rgba(22,22,42,0.85); color: var(--text); border: 1px solid var(--border); border-radius: 10px; transition: 0.2s;
}
.album-close:hover { border-color: var(--magenta); color: var(--magenta); transform: scale(1.06); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.album-photo { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; }
.album-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.album-photo:hover img { transform: scale(1.08); }
.album-photo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 5000; display: none;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(5, 5, 12, 0.92); backdrop-filter: blur(8px); padding: 24px;
}
.lightbox.open { display: flex; }
.lb-figure { max-width: min(1100px, 92vw); max-height: 86vh; margin: 0; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 0 40px rgba(255,46,136,0.25); }
.lb-cap { margin-top: 14px; font-weight: 600; color: var(--text); }
.lb-cap small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 4px; }
.lb-close, .lb-nav {
  background: rgba(22,22,42,0.85); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; border-radius: 10px; transition: 0.2s; flex: 0 0 auto;
}
.lb-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; font-size: 1.1rem; }
.lb-nav { width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; }
.lb-close:hover, .lb-nav:hover { border-color: var(--magenta); color: var(--magenta); transform: scale(1.06); }
@media (max-width: 600px) {
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: 24px; } .lb-next { right: 24px; }
}

/* ---------- SHOWCASE-BANNER (volle Breite) ---------- */
.showcase { width: 100%; line-height: 0; position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.showcase img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; display: block; }
.showcase::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(10,10,20,0.5);
}

/* ---------- EVENTS / KALENDER ---------- */
.event-list { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.event-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateX(6px); border-color: var(--magenta); box-shadow: -6px 0 24px rgba(255, 46, 136, 0.15); }
.event-date {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, rgba(255,46,136,0.15), rgba(155,92,255,0.12));
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px;
}
.event-day { font-family: var(--font-pixel); font-size: 1.6rem; color: var(--cyan); line-height: 1; }
.event-month { font-family: var(--font-crt); font-size: 1.2rem; color: var(--yellow); margin-top: 6px; text-transform: uppercase; }
.event-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.event-desc { color: var(--text); font-size: 0.95rem; opacity: 0.85; }
.event-link { display: inline-block; margin-top: 8px; color: var(--cyan); font-weight: 600; }
.event-link:hover { text-shadow: 0 0 10px rgba(46, 230, 255, 0.6); }

/* ---------- CONTACT ---------- */
.kontakt { max-width: var(--maxw); }
.kontakt-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 56px);
}
.kontakt-info p { color: var(--muted); margin: 16px 0 24px; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a:hover { color: var(--cyan); }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--muted); font-weight: 600; transition: color 0.2s; }
.socials a:hover { color: var(--magenta); }

.kontakt-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.15);
}
.field textarea { resize: vertical; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--magenta); }

/* ---------- SPENDEN / ALTE COMPUTER GESUCHT ---------- */
.spenden { max-width: var(--maxw); }
.spenden-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.spenden-text p { color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.spenden-text strong { color: var(--text); }
.spenden-actions { margin-top: 20px; }
.spenden-visual { text-align: center; }
.spenden-icon-box { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.spenden-icon { font-size: 3.5rem; filter: drop-shadow(0 0 12px rgba(155, 92, 255, 0.4)); }
.spenden-tagline {
  font-family: var(--font-crt); font-size: 1.6rem; color: var(--cyan);
  line-height: 1.4; letter-spacing: 1px;
}
@media (max-width: 860px) {
  .spenden-grid { grid-template-columns: 1fr; }
}

/* ---------- DEVICE DETAIL MODAL ---------- */
.device-modal {
  position: fixed; inset: 0; z-index: 1100; background: rgba(5, 5, 15, 0.92);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.device-modal.open { display: flex; }
.device-modal-inner {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  max-width: 780px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 0 40px rgba(155, 92, 255, 0.2);
}
.device-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; z-index: 10; transition: border-color 0.2s;
}
.device-modal-close:hover { border-color: var(--magenta); }
.device-modal-inner { position: relative; }
.device-modal-content { padding: 32px; }
.device-modal-content .device-badge { margin-right: 48px; }

.device-detail-head { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin-bottom: 28px; }
.device-detail-img { width: 100%; border-radius: 12px; object-fit: contain; background: var(--bg); max-height: 220px; }
.device-detail-img.placeholder { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; border-radius: 12px; }
.device-detail-info h2 { font-size: 1.5rem; margin: 8px 0; color: var(--text); }
.device-detail-sub { color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.device-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; font-size: 0.82rem; color: var(--muted); white-space: nowrap;
}
.detail-tag.tag-modern { border-color: var(--cyan); color: var(--cyan); }

.device-detail-section { margin-bottom: 24px; }
.device-detail-section h3 { font-size: 1rem; margin-bottom: 10px; color: var(--cyan); }
.device-detail-section p { color: var(--muted); line-height: 1.7; }

.device-detail-games { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tag {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 12px; font-size: 0.85rem; color: var(--text); transition: border-color 0.2s;
}
.game-tag:hover { border-color: var(--magenta); cursor: default; }
.game-tag.game-loading { opacity: 0.6; }

.game-tooltip {
  position: fixed; z-index: 1200; pointer-events: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; box-shadow: 0 0 24px rgba(155, 92, 255, 0.3);
  max-width: 320px; transition: opacity 0.15s;
}
.game-tooltip[hidden] { display: none; }
.game-tooltip img {
  display: block; width: 100%; max-height: 220px; object-fit: contain;
  border-radius: 6px;
}

.device-specs { width: 100%; border-collapse: collapse; }
.device-specs tr { border-bottom: 1px solid var(--border); }
.device-specs td { padding: 8px 12px; font-size: 0.9rem; color: var(--muted); }
.device-specs .spec-label { color: var(--text); font-weight: 600; white-space: nowrap; width: 100px; }

.device-more { display: inline-block; margin-top: 8px; font-size: 0.82rem; color: var(--cyan); font-weight: 500; }
.device-card[data-device-id]:hover .device-more { color: var(--magenta); }
.device-card[data-device-id]:hover { border-color: var(--cyan); transform: translateY(-3px); }

@media (max-width: 640px) {
  .device-detail-head { grid-template-columns: 1fr; }
  .device-detail-img { max-height: 200px; }
  .device-modal-content { padding: 20px; }
}

/* ---------- IMPRESSUM ---------- */
.impressum { max-width: var(--maxw); }
.impressum-content { color: var(--muted); line-height: 1.8; }
.impressum-content p { margin-bottom: 12px; }
.impressum-content strong { color: var(--text); }
.impressum-content a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
.impressum-content a:hover { color: var(--magenta); }
.impressum-content h3 { color: var(--cyan); font-size: 1rem; margin: 24px 0 8px; }
.impressum-content h3:first-of-type { margin-top: 0; }
.legal-page { padding-top: 120px !important; min-height: 60vh; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px clamp(18px, 5vw, 48px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-tag { color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cyan); }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about-grid, .kontakt-wrap { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; background: rgba(13, 13, 26, 0.98); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform 0.3s ease; border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1100; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 480px) {
  .brand-text { font-size: 0.6rem; }
  .gallery { grid-auto-rows: 180px; }
  .gallery-item.tall { grid-row: span 1; }
  .event-card { grid-template-columns: 1fr; gap: 14px; }
  .event-date { justify-self: start; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
