:root{
  --fg:#eaf2ff; --muted:#b8c7e6;
  --blue1:#2b6bff; --blue2:#00b2ff; --bg:#081225;
}
*{box-sizing:border-box;margin:0;padding:0}
/* Custom scrollbar */
*{
  scrollbar-width: thin;
  scrollbar-color: #3c71ff #0c1834;
}
*::-webkit-scrollbar{width:10px}
*::-webkit-scrollbar-track{background:#0c1834;border-radius:10px}
*::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg,#3c71ff,#00b2ff);
  border-radius:10px;
  border:2px solid #0c1834;
}

body{
  font-family:Arial,system-ui,Segoe UI,Roboto,sans-serif;
  background: var(--bg) url('../images/partyzone/Stars usw bild.png') center/cover fixed no-repeat;
  color:var(--fg);
  padding-bottom:116px;
}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(4,10,24,.8);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-content{
  position:relative; padding:12px 0; min-height:76px;
  display:flex; align-items:center; justify-content:center;
}
.brand{position:absolute; left:10px;}
.brand img{height:56px;display:block;filter:drop-shadow(0 0 12px rgba(0,178,255,.35))}

/* Nav centered */
.nav{
  display:flex; gap:.6rem; align-items:center; justify-content:center; flex-wrap:wrap;
}
.nav-link,.dropbtn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  padding:.72rem 1.1rem; border-radius:12px; font-weight:700; color:var(--fg);
  background:linear-gradient(#0c1b3b,#0c1b3b) padding-box,
            linear-gradient(45deg,var(--blue1),var(--blue2)) border-box;
  border:1px solid transparent;
  transition:transform .12s ease, box-shadow .2s ease;
}
.nav-link::after,.dropbtn::after{
  content:""; position:absolute; left:10px; right:10px; bottom:6px; height:2px;
  background:linear-gradient(90deg,var(--blue1),var(--blue2));
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease; border-radius:2px;
}
.nav-link:hover::after,.dropbtn:hover::after{transform:scaleX(1)}
.nav-link:hover,.dropbtn:hover{box-shadow:0 10px 24px rgba(0,178,255,.25)}
.nav [data-active="true"], .nav .active{box-shadow:0 10px 24px rgba(0,178,255,.3)}
.nav [data-active="true"]::after{transform:scaleX(1)}
.nav-link:active,.dropbtn:active{transform:translateY(1px) scale(.98)}

/* Apply dropdown (no hover gap; stable) */
.dropdown{position:relative}
.dropdown-content{
  display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  margin-top:8px;
  min-width:220px; background:rgba(8,18,44,.98); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.55);
}
.dropdown-content a{display:block;color:var(--fg);text-decoration:none;padding:.8rem 1rem}
.dropdown-content a:hover{background:rgba(255,255,255,.06)}

/* Lang switch */
.lang-switch{position:absolute; right:10px; display:flex; align-items:center}
.lang-btn{cursor:pointer}
.lang-menu{display:none; position:absolute; right:0; top:100%; margin-top:8px;
  background:rgba(8,18,44,.98); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.55)}
.lang-menu button{display:block; width:100%; background:transparent; border:none; color:var(--fg); padding:.75rem 1rem; text-align:left; cursor:pointer}
.lang-menu button:hover{background:rgba(255,255,255,.06)}

/* Hero & video */
.hero{text-align:center;padding:5.5rem 1rem 1.2rem}
.hero h1{font-size:3rem;margin-bottom:.5rem;text-shadow:0 6px 36px rgba(0,0,0,.6)}
.hero p{color:var(--muted)}

.video-wrap{display:flex;justify-content:center;padding:1rem 0 0}
.video-card{
  background: linear-gradient(#081638cc,#081638cc) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.7), rgba(0,178,255,.7)) border-box;
  border:1px solid transparent;
  border-radius:16px; box-shadow:0 12px 36px rgba(0,0,0,.35);
  padding:1rem; max-width:900px; width:100%;
}
.ratio{position:relative;width:100%;padding-top:56.25%}
.ratio iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px}

/* Cards with nicer border */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem;padding:2rem 0 4.5rem}
.card{
  background: linear-gradient(#0a1a3bcc,#0a1a3bcc) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.5), rgba(0,178,255,.5)) border-box;
  border:1px solid transparent;
  border-radius:16px;padding:1rem;box-shadow:0 10px 30px rgba(0,0,0,.25)
}
.main-pad{padding:2rem 1rem 6rem}

/* Footer */

/* Fix: Ensure footer links (e.g., 'Instanz‑Regeln' in DE) align like EN and don't sink */
.footer-nav{align-items:center}
.footer-nav a{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  line-height:1.4;
  vertical-align:middle;
}

.site-footer{position:fixed;bottom:0;left:0;width:100%;background:rgba(4,10,24,.95);border-top:1px solid rgba(255,255,255,.08);z-index:40}
.footer-nav{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;padding:.7rem 0 .3rem}
.footer-nav a{color:#c9dcff;text-decoration:none;font-size:.95rem}
.footer-nav a:hover{color:#ffffff}
.copy{text-align:center;color:#c9dcff;font-size:.9rem;padding:0 0 .6rem}

/* Messages (errors only) */
#msg-container{position:fixed;top:20px;right:20px;display:flex;flex-direction:column;gap:10px;z-index:100}
.msg{
  position:relative;min-width:260px;padding:1rem 1.2rem 1.2rem;border-radius:14px;color:white;font-weight:600;font-size:.95rem;
  opacity:0;transform:translateY(-10px) scale(.95);transition:all .35s ease;backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  background: linear-gradient(#2a0f14cc,#2a0f14cc) padding-box,
              linear-gradient(135deg, rgba(255,77,77,.8), rgba(255,140,140,.7)) border-box;
  border:1px solid transparent; overflow:hidden
}
.msg.show{opacity:1;transform:translateY(0) scale(1)} .msg.hide{opacity:0;transform:translateY(-10px) scale(.95)}
.msg .progress{position:absolute;bottom:0;left:0;height:4px;background:rgba(255,255,255,.85);animation:progressBar 4s linear forwards}
@keyframes progressBar{from{width:100%}to{width:0%}}


/* Subtle typography & spacing improvements on homepage */
h1, h2, h3{letter-spacing:.2px}
p{line-height:1.75}
.container.grid{gap:1.25rem; margin-top:1.25rem}
.card p{margin-top:.4rem}
.hero{padding:6.5rem 1rem 1.75rem}
.video-wrap{padding:1.25rem 0 0}
.main-pad{padding:2.2rem 1rem 7.5rem}


/* ==== Home sections styling (added) ==== */
.section{padding:3rem 0}
.section-head{max-width:900px;margin:0 auto 1.25rem;text-align:center}
.section-head h2{font-size:2rem;margin-bottom:.5rem;text-shadow:0 4px 24px rgba(0,0,0,.45)}
.section-head p{color:var(--muted)}

.grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
@media (max-width: 900px){ .grid.three{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .grid.three{grid-template-columns:1fr} }

.feature-list{list-style:none;display:grid;gap:.75rem;max-width:900px;margin:0 auto;padding:0}
.feature-list li{background: linear-gradient(#0a1835cc,#0a1835cc) padding-box,
                            linear-gradient(135deg, rgba(43,107,255,.35), rgba(0,178,255,.35)) border-box;
  border:1px solid transparent;border-radius:14px;padding:.9rem 1rem;box-shadow:0 8px 24px rgba(0,0,0,.25)}

.callout-card{
  display:flex;gap:1rem;align-items:center;justify-content:space-between;
  background: linear-gradient(#081638e6,#081638e6) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.6), rgba(0,178,255,.6)) border-box;
  border:1px solid transparent;border-radius:18px;padding:1.25rem 1.5rem;
  box-shadow:0 16px 40px rgba(0,0,0,.45)
}
.callout-copy p{color:var(--muted)}
.callout-actions .btn, .newsletter-form .btn{
  display:inline-block;text-decoration:none;padding:.7rem 1rem;border-radius:12px;
  background:linear-gradient(135deg, var(--blue1), var(--blue2)); color:white; border:none;
  font-weight:600; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,.35)
}

.faq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.faq-item{
  background: linear-gradient(#0a1835cc,#0a1835cc) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.35), rgba(0,178,255,.35)) border-box;
  border:1px solid transparent;border-radius:14px;padding:1rem;box-shadow:0 8px 24px rgba(0,0,0,.25)
}
.faq-item h3{margin-bottom:.4rem}

.newsletter-card{
  display:flex;gap:1rem;align-items:center;justify-content:space-between;
  background: linear-gradient(#0a1835cc,#0a1835cc) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.35), rgba(0,178,255,.35)) border-box;
  border:1px solid transparent;border-radius:18px;padding:1.25rem 1.5rem;box-shadow:0 12px 30px rgba(0,0,0,.3)
}
.newsletter-form{display:flex;gap:.6rem;min-width:320px}
.newsletter-form input{
  flex:1; min-width:0; background:#0b1a37; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:.7rem 1rem; color:var(--fg)
}

@media (max-width: 800px){
  .callout-card, .newsletter-card{flex-direction:column;align-items:stretch}
  .newsletter-form{min-width:0;width:100%}
}

/* Increase overall bottom padding so page is scrollable and not cut off by fixed footer */
.main-pad{padding-bottom:9rem}


/* ==== Discord & extra info sections ==== */
.discord-widget-wrap{
  position:relative; max-width:900px; margin:0 auto; width:100%;
}
.discord-iframe{
  width:100%; height: 360px; border-radius: 16px;
  background:#0b1a37;
  box-shadow:0 12px 36px rgba(0,0,0,.35);
}
.discord-fallback{margin-top:.6rem; text-align:center; color:var(--muted)}

.grid.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
@media (max-width: 1100px){ .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 640px){ .grid.four{grid-template-columns:1fr} }

.story-text{max-width:900px;margin:0 auto;display:grid;gap:.75rem;color:var(--fg)}

.quote-box{
  max-width:900px;margin:0 auto;background:linear-gradient(#0a1835cc,#0a1835cc) padding-box,
    linear-gradient(135deg, rgba(43,107,255,.35), rgba(0,178,255,.35)) border-box;
  border:1px solid transparent;border-radius:18px;padding:1.25rem 1.5rem;
  font-size:1.25rem; text-align:center; box-shadow:0 12px 30px rgba(0,0,0,.35)
}

.socials-buttons{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.socials-buttons .btn{min-width:140px;text-align:center}


/* ==== Discord online count compact ==== */
.discord-online-card{
  display:flex;align-items:center;justify-content:center;
  gap:.6rem;max-width:420px;margin:0 auto;
  background: linear-gradient(#0a1835cc,#0a1835cc) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.5), rgba(0,178,255,.5)) border-box;
  border:1px solid transparent;border-radius:14px;padding:1rem 1.2rem;
  font-size:1.3rem;font-weight:600;color:var(--fg);text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:transform .15s ease, box-shadow .25s ease;
}
.discord-online-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(0,0,0,.45)}
.discord-icon{font-size:1.5rem}
.discord-count{font-size:1.6rem;font-weight:700}
.discord-label{font-size:.95rem;color:var(--muted)}

/* ==== Discord online counter (compact) ==== */
.discord-counter-card{
  max-width:900px; margin:0 auto;
  background: linear-gradient(#081638e6,#081638e6) padding-box,
              linear-gradient(135deg, rgba(43,107,255,.6), rgba(0,178,255,.6)) border-box;
  border:1px solid transparent; border-radius:18px; padding:1rem 1.25rem;
  box-shadow:0 16px 40px rgba(0,0,0,.45); text-align:center;
}
.discord-counter-link{display:inline-flex; align-items:baseline; gap:.6rem; text-decoration:none; color:var(--fg)}
.discord-counter-label{opacity:.85; font-size:1rem}
.discord-counter-value{font-size:1.8rem; font-weight:800}

/* Mini-Hinweis über der Tabelle */
.schedule-hint{
  text-align:center;
  opacity:.85;
  margin:-.25rem 0 1rem;
}
@keyframes rowFlash{
  0%{ box-shadow:0 0 0 0 rgba(0,178,255,0); }
  50%{ box-shadow:0 0 0 8px rgba(0,178,255,.25); }
  100%{ box-shadow:0 0 0 0 rgba(0,178,255,0); }
}
.date-cell.flash{ animation: rowFlash 900ms ease 1; }

/* ===== Schedule (date-table) base ===== */
.schedule-hint{text-align:center;opacity:.9;margin:-.25rem 0 1.1rem}
.schedule-dates{display:grid;grid-template-columns:180px 1fr 1fr 1fr;gap:10px}
.schedule-dates .hdr{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:.6rem .75rem;font-weight:800;text-transform:uppercase;letter-spacing:.6px;font-size:.9rem;text-align:center}
.schedule-dates .date-cell{background:rgba(10,24,53,.66);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:.9rem 1rem;color:#cfe0ff;font-weight:700;text-align:center}
.schedule-dates .slot{min-height:120px;background:rgba(10,24,53,.58);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:.6rem;display:flex;flex-direction:column;gap:.6rem;position:relative}
.event{border-radius:12px;border:1px solid rgba(255,255,255,.12);padding:.75rem .9rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 10px 26px rgba(0,0,0,.3);cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, filter .15s ease}
.event:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.35);filter:brightness(1.02)}
.event .ev-title{font-weight:800}
.event .ev-sub{opacity:.9;font-size:.9rem;margin-top:.2rem}
.event.type-party{background:linear-gradient(180deg,rgba(154,108,233,.9),rgba(120,75,200,.9));color:#fbf5ff}
.event.type-meetup{background:linear-gradient(180deg,rgba(61,173,93,.9),rgba(39,143,70,.9));color:#f3fff6}
.event.type-panel{background:linear-gradient(180deg,rgba(67,147,231,.9),rgba(46,120,197,.9));color:#eef7ff}
.jump-today{position:fixed;right:20px;bottom:100px;z-index:120;background:linear-gradient(135deg,#1ea0ff,#6dc7ff);color:white;border:none;border-radius:999px;padding:.6rem 1rem;font-weight:800;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.35);display:none}
.jump-today.show{display:inline-block}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:200}
.modal:not(.hidden){display:flex}
.modal-dialog{position:relative;background:#0b1a37;color:#eaf3ff;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:1rem 1.25rem;width:min(560px,90vw);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.modal-close{position:absolute;top:.5rem;right:.5rem;background:transparent;border:none;color:#fff;font-size:1.5rem;cursor:pointer}
.modal-title{font-size:1.5rem;margin-bottom:.25rem}
.modal-sub{opacity:.9;margin-bottom:.25rem}
.modal-time{color:#cfe0ff;font-weight:700}
.modal-desc{margin-top:.5rem;line-height:1.6}
.modal-cta{margin-top:.75rem;text-align:center}
.btn-link{display:inline-block;padding:.55rem 1rem;border-radius:999px;font-weight:800;background:linear-gradient(135deg,#1ea0ff,#6dc7ff);color:#fff;border:0}
.btn-link:hover{filter:brightness(1.05)}

/* ==== TIME GRID ==== */
.day-wrap{margin:1.25rem 0 2rem}
.day-head{display:flex;align-items:center;gap:.75rem;margin:.25rem 0 .5rem}
.day-title{font-weight:900;letter-spacing:.4px}
.legend{margin-left:auto;display:flex;gap:.5rem;align-items:center;font-size:.9rem;opacity:.9}
.legend .chip{width:14px;height:14px;border-radius:4px;display:inline-block;margin-right:.25rem;vertical-align:-2px;border:1px solid rgba(255,255,255,.3)}
.time-grid{--row-h:44px; --cols:3; position:relative;border:1px solid rgba(255,255,255,.18);border-radius:14px;overflow:hidden;background:linear-gradient(#0a1835bb,#0a1835bb)}
.grid-header{display:grid;grid-template-columns:160px repeat(var(--cols),1fr);background:rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.18)}
.grid-header div{padding:.65rem .75rem;font-weight:800;text-transform:uppercase;letter-spacing:.6px;text-align:center}
.grid-header .th-time{text-align:left}
.grid-body{display:grid;grid-template-columns:160px repeat(var(--cols),1fr)}
.time-col{display:grid;grid-auto-rows:var(--row-h)}
.time-slot{display:flex;align-items:center;justify-content:flex-start;padding-left:.75rem;font-weight:800;color:#cfe0ff;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) calc(var(--row-h)/2 - .5px), rgba(255,255,255,.08) calc(var(--row-h)/2), rgba(255,255,255,.08) var(--row-h));
  border-right:1px solid rgba(255,255,255,.18);}
.time-slot small{display:block;opacity:.75;font-weight:600;margin-left:.4rem}
.track-col{position:relative;display:grid;grid-auto-rows:var(--row-h);
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) calc(var(--row-h)/2 - .5px), rgba(255,255,255,.07) calc(var(--row-h)/2), rgba(255,255,255,.07) var(--row-h));
  border-right:1px solid rgba(255,255,255,.18);}
.track-col:last-child{border-right:none}
.event{position:absolute;left:10px;right:10px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  padding:.75rem .9rem;display:flex;flex-direction:column;align-items:center;text-align:center;
  box-shadow:0 10px 26px rgba(0,0,0,.30);cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, filter .15s ease}
.event:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.35);filter:brightness(1.02)}
.event .ev-title{font-weight:900}
.event .ev-sub{opacity:.9;font-size:.9rem;margin-top:.2rem}
.event.type-party{background:linear-gradient(180deg, rgba(154,108,233,.9), rgba(120,75,200,.9)); color:#fbf5ff}
.event.type-meetup{background:linear-gradient(180deg, rgba(61,173,93,.9), rgba(39,143,70,.9)); color:#f3fff6}
.event.type-panel{ background:linear-gradient(180deg, rgba(67,147,231,.9), rgba(46,120,197,.9)); color:#eef7ff}

/* fixes */
.dropdown:hover .dropdown-content{display:block}


/* === Discord CTA === */
.discord-cta{display:flex; justify-content:center; margin:2rem 0}
.discord-btn{display:flex; align-items:center; gap:.6rem; padding:.8rem 1rem; border-radius:999px; border:1px solid rgba(255,255,255,.15); background:rgba(13,18,28,.6); backdrop-filter: blur(6px); cursor:pointer}
.discord-icon{width:24px; height:24px; animation: floaty 3s ease-in-out infinite}
@keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(-3px)}100%{transform:translateY(0)}}
.dropdown{position:relative}
.dropdown-menu{position:absolute; top:110%; left:0; padding:.75rem; border-radius:12px; background:rgba(13,18,28,.9); border:1px solid rgba(255,255,255,.12); opacity:0; transform:translateY(-4px); pointer-events:none; transition:.18s ease}
.dropdown.open .dropdown-menu{opacity:1; transform:translateY(0); pointer-events:auto}
.dropdown-menu .btn{display:inline-block; padding:.55rem .9rem; border-radius:10px; border:1px solid rgba(255,255,255,.2); text-decoration:none}
.dropdown-menu .hint{opacity:.8; font-size:.85rem; margin:.4rem 0 0}

/* compact party badge in events table */
.party-badge{display:inline-block; padding:.5rem .75rem; border-radius:12px; background:linear-gradient(180deg, #2bbcff, #1dbb8f); color:#fff; font-weight:600; box-shadow:0 8px 20px rgba(0,0,0,.25)}

/* Ensure party cell content stays inside cell and centered */
table td:last-child > *{max-width:100%}

/* ensure party/event boxes fit inside table cells */
table td{vertical-align:top}
table td div{max-width:100%}

/* Events table safety: keep rightmost cell content compact */
.section table td:last-child > *{max-width:280px;min-width:220px;margin:0 auto}

/* Safety: keep last column compact across all tables */
table tr td:last-child > *{max-width:280px;min-width:220px;margin:0 auto}

/* --- Gallery Grid --- */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:1rem}
.gallery-item{position:relative;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(10,18,39,.45)}
.gallery-item img{width:100%;height:220px;object-fit:cover;display:block;transition:transform .25s ease}
.gallery-item:hover img{transform:scale(1.03)}
.gallery-item .cap{position:absolute;left:0;right:0;bottom:0;padding:.5rem .65rem;background:linear-gradient(180deg, transparent, rgba(0,0,0,.65));font-weight:600}

/* --- Gallery v2 (no clicks, prettier) --- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:18px;
  margin-top:1.2rem
}
.gallery-item{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,18,39,.45);
  aspect-ratio:16/9;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor:default; user-select:none;
}
.gallery-item::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(0,0,0,.25));
  opacity:.0; transition:opacity .25s ease;
  pointer-events:none;
}
.gallery-item img{
  width:100%; height:100%; display:block; object-fit:cover;
  transform:scale(1); transition:transform .3s ease;
  pointer-events:none; /* no clicks */
}
.gallery-item:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 44px rgba(0,0,0,.35);
  border-color:rgba(66,176,255,.45);
}
.gallery-item:hover::before{ opacity:.2 }
.gallery-item:hover img{ transform:scale(1.03) }
/* Remove any old caption styling if present */
.gallery-item .cap{display:none !important}

/* Centered page titles */
.page-title{
  text-align:center;
  font-size:clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight:900;
  letter-spacing:.02em;
  margin:.25rem 0 .35rem;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.page-sub{
  text-align:center;
  opacity:.9;
  margin:-.15rem auto 1.1rem;
  max-width:820px;
}

/* --- Neon Enhancements --- */
.neon-title{
  background: linear-gradient(90deg, #7cf0ff, #7aa8ff, #3cfad6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(66,176,255,.35), 0 0 8px rgba(66,176,255,.25);
  position: relative;
}
.neon-title::after{
  content:"";
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:-8px; width:140px; height:3px; border-radius:999px;
  background: radial-gradient(closest-side, rgba(66,176,255,.9), transparent);
  box-shadow: 0 0 14px rgba(66,176,255,.6);
}

.gallery-grid{
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:20px;
}
.gallery-item{
  border-radius:18px;
  border:1px solid rgba(120,210,255,.25);
  box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(66,176,255,0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
  aspect-ratio: 16/9;
}
.gallery-item.wide{ aspect-ratio: 21/9; }
.gallery-item.tall{ aspect-ratio: 4/5; }

.gallery-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 24px rgba(66,176,255,.35);
  border-color: rgba(120,210,255,.55);
  filter: saturate(1.1);
}

/* --- Gallery uniform tiles --- */
.gallery-grid{grid-template-columns:repeat(auto-fill, minmax(360px, 1fr)); gap:22px}
.gallery-item.uniform{aspect-ratio:16/9}
.gallery-item.uniform img{object-fit:cover}

/* --- Team Page Styles --- */
.team-hero{margin:1.2rem auto 1rem;max-width:1100px}
.team-hero h1{font-size:clamp(1.8rem,3vw,2.4rem);font-weight:900;margin:0 0 .35rem}
.team-hero p{opacity:.9;margin:0}
.badges{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0 .6rem}
.badge{font-size:.85rem;border:1px solid rgba(255,255,255,.15);padding:.25rem .55rem;border-radius:999px;background:rgba(10,18,39,.5)}
.badge a{text-decoration:none}
.team-section{max-width:1100px;margin:0 auto 1.2rem}
.team-group{margin:1.2rem 0}
.team-group h2{margin:.2rem 0 .6rem;font-size:1.2rem;opacity:.95}
.card{position:relative;display:flex;align-items:center;gap:.9rem;padding:.9rem 1rem;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg, rgba(69,39,160,.35), rgba(0,163,255,.2));box-shadow:0 10px 30px rgba(0,0,0,.25);}
.card + .card{margin-top:.6rem}
.avatar{width:56px;height:56px;border-radius:999px;overflow:hidden;border:2px solid rgba(255,255,255,.2);background:rgba(0,0,0,.25)}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.meta{flex:1}
.name{font-weight:800;margin:0 0 .15rem}
.role{opacity:.9;margin:0}
.actions{display:flex;gap:.35rem}
.btn-icon{width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(10,18,39,.5);display:grid;place-items:center;cursor:pointer;text-decoration:none}
.btn-icon:hover{border-color:rgba(120,210,255,.5);box-shadow:0 0 0 3px rgba(120,210,255,.12)}
.btn-icon svg{width:18px;height:18px}
/* anchors for quick-jump badges */
.anchor{position:relative;top:-70px}

/* === Global card/grid tweaks for equal heights === */
.cards, .features, .feature-grid, .grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.cards .card, .features .card, .feature-grid .card, .grid-tiles .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card .card-content { flex: 1 1 auto; }
.card .card-actions { margin-top: .6rem; }

/* === Team page polish === */
.card.lead {
  background: linear-gradient(135deg, rgba(120, 210, 255, .28), rgba(100, 70, 255, .25));
  border-color: rgba(120,210,255,.45);
}
.btn-icon{
  position: relative;
  background: radial-gradient(120% 120% at 30% 20%, rgba(120,210,255,.25), rgba(10,18,39,.6));
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn-icon::after{
  content:""; position:absolute; inset:-2px; border-radius:12px;
  box-shadow: 0 0 12px rgba(120,210,255,.25);
  opacity:0; transition:opacity .25s ease;
}
.btn-icon:hover{
  transform: translateY(-1px);
  border-color: rgba(120,210,255,.7);
  box-shadow: 0 8px 26px rgba(0,0,0,.35), 0 0 22px rgba(120,210,255,.25) inset;
}
.btn-icon:hover::after{ opacity:1 }
.btn-icon svg{ opacity:.95 }

/* === Pill buttons like header nav === */
.pills{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 .6rem}
.pill{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.5rem .9rem; border-radius:999px;
  border:1px solid rgba(120,210,255,.35);
  background:linear-gradient(180deg, rgba(120,210,255,.15), rgba(10,18,39,.55));
  box-shadow:0 6px 18px rgba(0,0,0,.25), inset 0 0 0 0 rgba(120,210,255,.2);
  text-decoration:none; font-weight:700; letter-spacing:.02em;
  transition:transform .15s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.pill:hover{
  transform:translateY(-1px);
  border-color:rgba(120,210,255,.65);
  box-shadow:0 10px 24px rgba(0,0,0,.35), inset 0 0 14px rgba(120,210,255,.18);
}
.pill:active{ transform:translateY(0) }
.pill.is-active{
  border-color:rgba(120,210,255,.85);
  background:linear-gradient(180deg, rgba(120,210,255,.22), rgba(10,18,39,.6));
  box-shadow:0 10px 28px rgba(0,0,0,.35), 0 0 24px rgba(120,210,255,.25) inset;
}

/* Match card look from index */
.card{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(10,18,39,.55), rgba(30,40,78,.45));
  border:1px solid rgba(255,255,255,.12);
}
.card .meta .name{font-size:1.05rem}

/* --- Simple nav & footer normalizer --- */
.main-nav .nav-buttons{display:flex; gap:.75rem; list-style:none; padding:0; margin:1rem 0}
.main-nav .btn{display:inline-block; padding:.55rem 1.1rem; border-radius:12px; border:1px solid rgba(120,210,255,.35);
  background:linear-gradient(180deg, rgba(120,210,255,.15), rgba(10,18,39,.55)); text-decoration:none; font-weight:800}
.main-nav .btn:hover{border-color:rgba(120,210,255,.65)}
.site-footer{margin-top:2rem; padding:1rem 0; border-top:1px solid rgba(255,255,255,.08)}
.site-footer .footer-links{display:flex; gap:1.5rem; margin-bottom:.35rem}
.site-footer .copyright{opacity:.9}

/* compact footer */
footer, .site-footer{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  margin-top: 16px;
  font-size: 0.92rem;
}
footer .footer-links, .site-footer .footer-links{
  gap: 1rem;
  margin-bottom: 2px;
}
footer .copyright, .site-footer .copyright{ margin-top: 2px; opacity: .9; }

/* === Uniform footer size across site === */
footer {
  padding: 10px 0 !important;
  margin-top: 16px !important;
  font-size: 0.95rem;
}
footer .footer-links { gap: 1.25rem; margin-bottom: 4px; }
footer .copyright { opacity: .95; }

/* === New Neon Top Navigation === */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(10,18,39,.55);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:.6rem .5rem}
.brand img{height:36px; display:block}
.site-nav{display:flex; gap:1.2rem}
.site-nav a{
  position:relative; display:inline-block; padding:.35rem .2rem;
  font-weight:800; letter-spacing:.02em; text-decoration:none;
}
.site-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:999px;
  transform:scaleX(0); transform-origin: center; transition:transform .22s ease, box-shadow .22s ease;
  background:linear-gradient(90deg, #7cf0ff, #7aa8ff, #3cfad6);
  box-shadow:0 0 14px rgba(66,176,255,.45);
}
.site-nav a:hover::after{ transform:scaleX(1); }
.site-nav a.active::after{ transform:scaleX(1); }

@media (max-width: 640px){
  .site-nav{gap:.8rem}
  .brand img{height:30px}
}

/* === Polished Neon Nav Buttons (uniform) === */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(10,18,39,.55);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:.7rem .75rem}
.brand img{height:40px; display:block}
.site-nav{display:flex; gap:1.1rem}
.site-nav a{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  height:36px; padding:0 .75rem; border-radius:10px;
  font-weight:800; letter-spacing:.02em; text-decoration:none;
  transition: transform .15s ease, box-shadow .22s ease;
}
.site-nav a:hover{ transform: translateY(-1px); }
.site-nav a::after{
  content:""; position:absolute; left:14%; right:14%; bottom:-6px; height:3px; border-radius:999px;
  transform:scaleX(0); transform-origin:center; transition:transform .22s ease, box-shadow .22s ease;
  background:linear-gradient(90deg, #7cf0ff, #7aa8ff, #3cfad6);
  box-shadow:0 0 14px rgba(66,176,255,.45);
}
.site-nav a:hover::after{ transform:scaleX(1); }
.site-nav a.active::after{ transform:scaleX(1); }

@media (max-width: 640px){
  .nav-row{padding:.55rem .6rem}
  .brand img{height:32px}
  .site-nav{gap:.7rem}
  .site-nav a{height:34px; padding:0 .6rem}
}

/* === v71 Nav polish === */
.site-nav a{
  min-width: 110px;
  justify-content:center;
}
.site-nav a:hover{
  box-shadow: 0 4px 18px rgba(66,176,255,.18);
}



/* === v76 full patch === */
/* Boxed nav buttons & better focus */
.site-nav{display:flex; align-items:center; gap:1rem}
.site-nav a{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  padding:.7rem 1rem;
  border-radius:12px; font-weight:700; color:var(--fg);
  background:linear-gradient(#0c1b3b,#0c1b3b) padding-box,
            linear-gradient(45deg,var(--blue1),var(--blue2)) border-box;
  border:1px solid transparent;
  box-shadow:0 10px 24px rgba(0,178,255,.15);
  transition:transform .1s ease, box-shadow .2s ease, filter .15s ease;
}
.site-nav a:hover{filter:brightness(1.05); box-shadow:0 14px 34px rgba(0,178,255,.22)}
.site-nav a:active{transform:translateY(1px) scale(.98)}
.site-nav a:focus-visible{outline:2px solid var(--blue2); outline-offset:3px}

/* Remove hover bar underline everywhere */
.nav-link::after, .dropbtn::after, .site-nav a::after,
.nav-link:hover::after, .dropbtn:hover::after, .site-nav a:hover::after,
.site-nav a.active::after, .nav [data-active="true"]::after { display:none !important; content:none !important; }

/* Header layout: logo left with spacing, nav centered */
.site-header .nav-row{
  display:flex; flex-direction:row; align-items:center; justify-content:center;
  gap:2.2rem; padding:.9rem 1rem;
}
.brand{position:static !important; margin-right:2.2rem !important;}
.brand img{height:56px; display:block}

/* Footer center: Instanz-Regeln & Datenschutz */
.site-footer{padding:1.2rem 1rem; border-top:1px solid rgba(255,255,255,.08); background:#0b1734;}
.footer-center{
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin:.4rem auto;
}
.footer-center a{
  display:inline-flex; align-items:center; gap:.4rem;
  color:var(--fg); text-decoration:none; font-weight:700;
  padding:.35rem .6rem; border-radius:10px;
  background:linear-gradient(#0c1b3b,#0c1b3b) padding-box,
            linear-gradient(45deg,var(--blue1),var(--blue2)) border-box;
  border:1px solid transparent;
}
.footer-center a:hover{box-shadow:0 8px 20px rgba(0,178,255,.22)}
.footer-center .dot{opacity:.6}
.copy{opacity:.7; text-align:center; margin-top:.2rem}
.footer-nav, .footer-links{display:none !important}

/* Team rows like screenshot */
.team{padding:2.2rem 1rem; max-width:1100px; margin:0 auto}
.team h1{font-size:2.1rem; margin-bottom:1.2rem}
.team h2{font-size:1.4rem; margin:1.6rem 0 .8rem}
.team .section-note{color:var(--muted); margin-bottom:1.2rem;}
.team-row{
  display:flex; align-items:center; gap:1rem;
  background:linear-gradient(90deg, rgba(78,64,152,.55), rgba(0,178,255,.3));
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:.9rem 1rem;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.team-row + .team-row{ margin-top:.8rem }
.team-row .avatar{width:64px;height:64px;border-radius:50%;overflow:hidden;flex:0 0 64px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.05);
}
.team-row .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.team-row .info{flex:1 1 auto; min-width:0}
.team-row .info .name{font-weight:800; font-size:1.05rem}
.team-row .info .role{opacity:.9}
.team-row .actions{display:flex; gap:.5rem}
.team-row .actions a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:8px;
  background:#102247; border:1px solid rgba(255,255,255,.1);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.team-row .actions a img{height:16px; width:auto; display:block; opacity:.95}

/* === v80 legal/rules styling === */
.legal, .rules{padding:2rem 1.2rem; max-width:900px; margin:0 auto}
.legal h1, .rules h1{font-size:2rem; margin-bottom:1.2rem}
.legal h2, .rules h2{font-size:1.3rem; margin:1.2rem 0 .8rem}
.legal ul{list-style:disc; margin-left:1.5rem; line-height:1.6}
.legal li span{opacity:.7; font-size:.9em}
.legal .note, .rules .note{margin-top:1rem; font-style:italic; opacity:.8}
.rules ol{margin-left:1.5rem; line-height:1.6}
.rules li{margin-bottom:.6rem}
