/* Braincraft.world — Global Styles
   ------------------------------------------------------------
   Drop-in replacement for page-level <style> blocks.
   Path suggestion: /assets/css/styles.css
   ------------------------------------------------------------ */

:root{
  --bg-dark:#0f0f0f;
  --text:#ffffff;

  /* Brand / accents */
  --teal:#6fa8a6;                 /* primary section background */
  --accent: rgba(46,11,202,.662); /* join / primary button */
  --accent-hover: rgba(0,0,0,.35);

  /* Surfaces */
  --surface: rgba(0,0,0,.15);
  --surface-2: rgba(0,0,0,.25);
  --surface-3: rgba(0,0,0,.65);

  /* Borders / radii / shadows */
  --border: 1px solid rgba(255,255,255,.18);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 1000px;
  --header-h: 80px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body{ height:100%; }

body{
  background:var(--bg-dark);
  color:var(--text);
  padding-top:var(--header-h);

  /* keep footer at bottom on short pages */
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

main{ flex:1; }

img{ max-width:100%; height:auto; display:block; }

/* -----------------------------------------
   Header / Navigation
----------------------------------------- */
header{
  background:rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  padding:15px 30px;

  position:fixed;
  top:0; left:0;
  width:100%;
  z-index:1000;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

header img{ height:40px; width:auto; }

nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

nav a{
  color:#fff;
  text-decoration:none;
  margin:0 6px;
  font-weight:500;
  white-space:nowrap;
  opacity:.98;
}

nav a:hover{ opacity:.75; }

.join-btn,
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:8px 15px;
  border-radius:6px;
  text-decoration:none;
  font-weight:800;
  transition: .2s;
  border:2px solid rgba(255,255,255,.18);
}

.join-btn:hover,
.btn:hover{
  background:var(--accent-hover);
  transform: translateY(-1px);
}

/* Optional button variants for future pages */
.btn--teal{
  background: rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.25);
}
.btn--teal:hover{ background: rgba(0,0,0,.35); }

/* -----------------------------------------
   Hero (shared)
   Per-page background should be set via:
   - class modifier (recommended): .hero--home / .hero--commands / etc.
   - OR inline style: style="background-image:url(...)"
----------------------------------------- */
.hero{
  min-height: 70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;

  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.hero--home,
.hero--welcome,
.hero--rules{
  background-image: url("/assets/welcome.webp");
  min-height: 70vh;
}

.hero--commands{ background-image: url("/assets/befehle.webp"); min-height:70vh; }

.hero-box{
  background:var(--surface-3);
  padding:24px 28px;
  border-radius:var(--radius-md);
  max-width:900px;
}

.hero h1{
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height:1.05;
  margin-bottom:12px;
  text-shadow:0 0 10px rgba(0,0,0,.7);
}

.hero p{
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height:1.6;
  opacity:.95;
  white-space: pre-line;
}

.hero-title{
  color: rgb(189,216,238);
}

.hero-text{
  color:#fff;
  font-weight:600;
  line-height: 1.9;
  white-space: pre-line;
}

/* -----------------------------------------
   Sections / Containers
----------------------------------------- */
.section{
  background:var(--teal);
  padding: clamp(48px, 6vw, 90px) 20px;
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
}

.container--narrow{
  max-width:var(--max-width-narrow);
}

/* common "content box" used for legal + rules pages */
.content-box{
  background:var(--surface-2);
  border-radius:var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
  line-height:1.75;
}

/* Typography helpers */
h1{ font-size: clamp(1.8rem, 3.2vw, 2.2rem); margin-bottom: 22px; }
h2{ font-size: 1.25rem; margin: 22px 0 10px; }
p{ line-height:1.7; }
ol, ul{ margin-left: 20px; margin-top: 8px; }
li{ margin-bottom: 10px; }

/* =========================================
   Home (Root index.html) — legacy exact styles
   Usage: <body class="page-home">
========================================= */
.page-home {
  padding-top: 80px; /* Höhe des Headers ausgleichen */
}

.page-home header img {
  height: 40px;
}

.page-home .hero {
  background: url("/assets/welcome.webp") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.page-home .hero-box {
  background: rgba(0,0,0,0.65);
  padding: 20px 20px;
  border-radius: 10px;
  max-width: 900px;
}

.page-home .hero h1 {
  font-size: 3.5rem;
  line-height: 1.0;
  margin-bottom: 12px;
}

.page-home .hero p {
  font-size: 1.25rem;
  line-height: 1.55;
  opacity: 0.95;
}

.page-home .hero-title {
  color: rgb(189, 216, 238);
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-home .hero-text {
  color: #ffffff;
  font-size: 2.0rem;
  font-weight: 600;
  line-height: 2.6;
  white-space: pre-line;
}

.page-home .server-status-panel{
  margin: 24px auto 0;
  max-width: 760px;
}

.page-home .server-status-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-home .server-stat-card{
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 18px 38px rgba(0,0,0,0.24);
  backdrop-filter: blur(6px);
}

.page-home .server-stat-title{
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(189, 216, 238, 0.88);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.page-home .server-stat-value{
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.page-home .server-stat-value--status{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-home .server-status-dot{
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
  flex: 0 0 14px;
}

.page-home .server-status-dot.is-online{
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,0.7);
}

.page-home .server-status-dot.is-offline{
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239,68,68,0.7);
}

.page-home .server-heads-section{
  margin-top: 26px;
  text-align: center;
}

.page-home .server-heads-title{
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 14px;
}

.page-home .server-heads-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.page-home .server-head{
  position: relative;
  width: 56px;
  height: 56px;
}

.page-home .server-head img{
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  background: rgba(17, 24, 39, 0.9);
}

.page-home .server-head-tooltip{
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-home .server-head:hover .server-head-tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-home .server-heads-empty{
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.84);
}

@media (max-width: 768px){
  .page-home .server-status-grid{
    grid-template-columns: 1fr;
  }

  .page-home .server-stat-card{
    padding: 20px 16px;
  }

  .page-home .server-stat-value{
    font-size: 1.7rem;
  }

  .page-home .server-head{
    width: 48px;
    height: 48px;
  }

  .page-home .server-head img{
    width: 48px;
    height: 48px;
  }
}

.page-home .section {
  background: var(--teal);
  padding: 60px 20px;
}

.page-home .container {
  max-width: var(--max-width);
  margin: auto;
}

.page-home .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-home .card {
  background: rgba(0,0,0,0.15);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
  cursor: pointer;
}

.page-home .card:hover {
  transform: translateY(-5px);
}

.page-home .card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-home .card h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.page-home .card a {
  color: white;
  text-decoration: none;
}

.page-home .card p {
  line-height: 1.6;
  opacity: 0.95;
  white-space: pre-line;
}

/* Footer ist global bereits da, aber falls du 1:1 willst: */
.page-home footer {
  background: #000;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}
.page-home footer a {
  color: white;
  text-decoration: none;
}
.page-home footer a:hover {
  opacity: 0.8;
}

/* -----------------------------------------
   Home cards (index)
----------------------------------------- */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card{
  background:var(--surface);
  padding:20px;
  border-radius:var(--radius-md);
  transition:.25s;
  cursor:pointer;
}

.card:hover{ transform: translateY(-5px); }

.card img{
  width:100%;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}

.card h2{ margin: 0 0 10px; font-size:1.25rem; }
.card p{ opacity:.95; white-space: pre-line; }
.card a{ color:#fff; text-decoration:none; }

/* -----------------------------------------
   Vote page components
----------------------------------------- */
.hero--vote{
  background-image: url("/assets/vote.webp");
  min-height: 70vh;
}

/* Vote: Card kompakt + alles untereinander */
.hero-box--vote{
  max-width: 900px;
  width: 100%;
}

/* Vote button + stats spacing in der Card */
.page-vote .vote-popover-wrap{
  margin-top: 14px;
}

.page-vote .stats{
  margin-top: 16px;
  max-width: 100%;
}

.hero-container{
  max-width: var(--max-width);
  margin: 0 auto;
  display:grid;
  gap: 40px;
  align-items:center;
}

.vote-btn{ /* keep old class working */
  /* same styling as .btn/.join-btn */
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:12px 22px;
  border-radius:8px;
  font-weight:900;
  text-decoration:none;
  transition:.2s;
  border:2px solid rgba(255,255,255,.25);
}

.stats{
  margin-top: 22px;
  background: rgba(0,0,0,.18);
  border: var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 520px;
}

.stats-title{ font-weight: 900; margin-bottom: 10px; }

.stats-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-radius:10px;
  background: rgba(0,0,0,.18);
}

.stat-label{ opacity:.95; font-weight:700; }
.stat-value{ font-weight:900; }

/* -----------------------------------------
   Server Commands page
----------------------------------------- */
.copy-hint{
  text-align:center;
  font-weight:800;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 34px;
}

.command-grid{
  display:grid;
  gap: 22px;
}

.command-block{
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.command-block h2{ font-size: 1.35rem; margin: 0 0 14px; }

.command-list{ list-style:none; }
.command-list li{ margin-bottom: 12px; font-size: 1.02rem; line-height: 1.6; }

.command-list code{
  background: rgba(0,0,0,.25);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95rem;

  cursor:pointer;
  user-select:none;
  position:relative;
  transition:.2s;
}

.command-list code:hover{ background: rgba(0,0,0,.35); }

.command-list code.copied::after{
  content:"Kopiert!";
  position:absolute;
  top:-28px;
  left:50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color:#fff;
  font-size:.75rem;
  padding:4px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

/* -----------------------------------------
   Regeln + Legal notes
----------------------------------------- */
.note{
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: var(--border);
}

/* -----------------------------------------
   Features presentation (AuraSkills / Jobs / Shop)
----------------------------------------- */
.feature-grid{
  display:grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card{
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
}

.feature-card h3{
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem;
  font-weight: 800;
}

/* -----------------------------------------
   Lands Wiki layout (Sidebar + content)
   Categories: Start / Commands / Chat / Sub-Areas / Rent&Sell
----------------------------------------- */
.wiki{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items:start;
}

.wiki-sidebar{
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.wiki-sidebar h3{
  font-size: 1rem;
  margin: 8px 8px 10px;
  opacity: .95;
}

.wiki-nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.wiki-nav a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color:#fff;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
}

.wiki-nav a:hover{ background: rgba(0,0,0,.22); }

.wiki-nav a.active{
  background: rgba(0,0,0,.32);
  border-color: rgba(255,255,255,.22);
}

.wiki-content{
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
  line-height: 1.75;
}

.wiki-content h1{ margin-bottom: 14px; }
.wiki-content h2{ margin-top: 22px; }


/* Placeholder boxes (legal pages etc.) */
.placeholder{
  background: rgba(0,0,0,.20);
  padding:16px;
  border-radius:12px;
  margin-top:16px;
  font-style: italic;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-image img{
  width:min(125%, 560px);
  height:auto;
  border-radius: 1px;
  border:4px solid rgba(0,0,0,.25);
}

/* -----------------------------------------
   Footer
----------------------------------------- */
footer{
  background:#000;
  padding:20px;
  text-align:center;
  font-size:.9rem;
}

footer a{ color:#fff; text-decoration:none; }
footer a:hover{ opacity:.8; }

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (min-width: 900px){
  .hero-container{ grid-template-columns: 1fr 1fr; }
  .command-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
  header{ padding: 12px 16px; }
  nav a{ margin: 0 4px; }
  .hero-box{ padding: 18px 18px; }
  .wiki{ grid-template-columns: 1fr; }
  .wiki-sidebar{ position: relative; top: 0; }
  .hero-image img{ width:100%; }
}

@media (max-width: 520px){
  :root{ --header-h: 92px; } /* header wraps -> a bit more breathing room */
  header{
    align-items:flex-start;
    flex-direction: column;
  }
  nav{ width:100%; }
  nav{ gap: 8px; }
  .join-btn{ width:100%; text-align:center; }
}

@media (max-width: 380px){
  :root{ --header-h: 116px; }
  nav a{ font-size: .95rem; }
}

/* -----------------------------------------
   Vote page — keep legacy layout EXACT
   Usage: <body class="page-vote"> + <section class="hero hero--vote">
----------------------------------------- */
.page-vote .hero-text h1{
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-style: italic;
}

.page-vote .hero-text p{
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}

/* Match legacy weights/details */
.page-vote .vote-btn{ font-weight: 800; }
.page-vote .stats-title{
  font-weight: 800;
  letter-spacing: 0.2px;
}
.page-vote .stat-label{ font-weight: 600; }

/* -----------------------------------------
   Server-Commands — keep legacy layout EXACT
   Usage: <body class="page-commands"> + <section class="hero hero--commands">
----------------------------------------- */
.page-commands .hero{
  height: 70vh;           /* legacy: fixed height */
  min-height: 70vh;
}

.page-commands .hero-box{
  background: rgba(0,0,0,0.65); /* legacy */
  padding: 24px 28px;
  border-radius: 12px;
  max-width: 900px;
}

.page-commands .hero h1{
  font-size: 2.8rem;      /* legacy */
  margin-bottom: 10px;
  color: rgb(180, 209, 233);
}

.page-commands .hero p{
  font-size: 1.2rem;      /* legacy */
  font-weight: 600;
  line-height: 1.6;
}

/* Content spacing */
.page-commands .section{
  padding: 60px 20px;     /* legacy */
}

/* Grid gap + block sizes */
.page-commands .command-grid{
  gap: 30px;              /* legacy */
}

.page-commands .command-block{
  padding: 28px;          /* legacy */
  border-radius: 16px;    /* legacy */
}

.page-commands .command-block h2{
  font-size: 1.6rem;      /* legacy */
  margin-bottom: 18px;
}

.page-commands .copy-hint{
  font-weight: 700;       /* legacy */
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-commands .command-list li{
  font-size: 1.05rem;     /* legacy */
}

@media (min-width: 900px){
  .page-commands .command-grid{
    grid-template-columns: repeat(3, 1fr); /* legacy */
  }
}

/* -----------------------------------------
   Regeln — keep legacy layout EXACT
   Usage: <body class="page-rules"> + <section class="hero hero--rules">
----------------------------------------- */
.hero--rules{
  background-image: url("/assets/regeln.webp"); /* legacy page image */
}

.page-rules .hero{
  height: 70vh;
  min-height: 340px; /* legacy: safeguard */
}

.page-rules .hero-box{
  background: rgba(0,0,0,0.65);
  padding: 24px 28px;
  border-radius: 12px;
  max-width: 900px;
}

.page-rules .hero h1{
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: rgb(180, 209, 233);
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-rules .hero p{
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: pre-line;
}

/* Content box matches the old .container on this page */
.page-rules .section{
  padding: 70px 20px; /* legacy */
}

.page-rules .container{
  max-width: 1000px;              /* legacy var(--max-width) on page */
  margin: auto;
  background: rgba(0,0,0,0.25);
  border-radius: 16px;
  padding: 40px;
  line-height: 1.75;
}

/* -----------------------------------------
   Legal pages (Datenschutz / Impressum) — keep legacy layout EXACT
   Usage: <body class="page-legal"> on those pages
----------------------------------------- */
.page-legal .section{
  padding: 90px 20px; /* legacy */
}

.page-legal .container{
  max-width: 1000px;                 /* legacy */
  margin: auto;
  background: rgba(0,0,0,0.25);      /* legacy */
  padding: 40px;                      /* legacy */
  border-radius: 16px;                /* legacy */
  line-height: 1.75;                  /* Datenschutz legacy */
}

.page-legal h1{
  margin-bottom: 22px;
  font-size: 2.2rem;
}

/* Impressum uses slightly tighter line-height in container */
.page-legal.page-impressum .container{
  line-height: 1.7; /* legacy impressum */
}

/* Features page */
.hero--features{
  background-image: url("/assets/features.webp");
  min-height: 70vh;
}

/* only the wiki link clickable + styled */
.wiki-link{
  display:inline-block;
  font-weight: 900;
  text-decoration:none;
  color:#fff;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  transition: .2s;
}

.wiki-link:hover{
  opacity: .85;
  transform: translateY(-1px);
}

.command{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  font-family:monospace;
  letter-spacing:.5px;
}

/* Commands page: command headings (only here) */
.page-lands-commands .command-sub,
.page-lands-chat .command-sub{
  font-weight: 800;
  font-size: 1.1rem;
  color: rgb(0, 0, 0);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-family: monospace;
}

.page-lands-commands .command-inline,
.page-lands-chat .command-inline{
  font-weight: 700;
  color: rgb(0, 0, 0);
}

.wiki-figure{
  margin: 14px auto 22px;
  width: fit-content;              /* Card passt sich dem Inhalt an */
  background: rgba(0,0,0,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 8px;
}

.wiki-figure img{
  width: 520px;                    /* feste angenehme Größe */
  max-width: 90vw;                 /* responsive fallback */
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Small sign preview images (Rent & Sell page) */
.wiki-sign{
  margin: 8px auto 16px;
  width: fit-content;
}

.wiki-sign img{
  width: 260px;        /* bewusst klein */
  max-width: 70vw;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
}

/* -----------------------------------------
   Vote Popover (Vote-Seiten Auswahl)
----------------------------------------- */
.vote-popover-wrap{
  position: relative;
  display: inline-block;
}

.vote-popover{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(360px, 85vw);
  background: rgba(0,0,0,.85);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 50;
}

.vote-popover.open{ display:block; }

.vote-popover-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.vote-site{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;

  text-decoration:none;
  color:#fff;

  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: .2s;
  margin-bottom: 8px;
}

.vote-site:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.vote-site-name{ font-weight: 900; }
.vote-site-hint{ opacity: .85; font-weight: 800; }

.vote-popover-note{
  margin-top: 10px;
  opacity: .9;
  font-size: .95rem;
  line-height: 1.5;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
}

/* --- Vote page: compact spacing (override) --- */
.page-vote .hero--vote{
  padding: 70px 20px 55px; /* weniger Luft */
}

.page-vote .hero-container{
  gap: 24px; /* kompakter */
}

.page-vote .stats{
  margin-top: 14px; /* weniger Abstand */
}

/* --- Vote button: make <button> look like your .join-btn --- */
.page-vote button.vote-btn{
  appearance: none;
  -webkit-appearance: none;
  background: var(--accent);
  color:#fff;

  padding: 12px 22px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.25);

  font-weight: 900;
  font: inherit;
  line-height: 1;

  cursor: pointer;
  transition: .2s;
}

.page-vote button.vote-btn:hover{
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.page-vote button.vote-btn:active{
  transform: translateY(0);
}
.page-vote button.vote-btn:focus-visible{
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 3px;
}

.page-vote .hero-image img{
  width: min(110%, 520px); /* weniger überbreit */
}
