/* ============================================================
   Community Earth Project – comeproject.com
   Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c9a227;
  --gold-light:  #e8c96a;
  --gold-dark:   #8b6914;
  --bg-dark:     #0a0e1a;
  --bg-mid:      #111827;
  --bg-card:     #1a2235;
  --bg-card2:    #141c2e;
  --text-main:   #e8eaf0;
  --text-muted:  #8892a4;
  --text-gold:   #c9a227;
  --border:      rgba(201,162,39,0.25);
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.45);
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Ticker Bar ---------- */
#ticker-bar {
  background: linear-gradient(90deg, #0d1220 0%, #141c2e 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
}
#ticker-bar .ticker-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
  overflow: hidden;
}
#ticker-bar .ticker-label { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
#ticker-bar .ticker-price { color: var(--text-main); font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
#ticker-bar .ticker-change.up   { color: #4ade80; flex-shrink: 0; }
#ticker-bar .ticker-change.down { color: #f87171; flex-shrink: 0; }
#ticker-bar .ticker-change.neutral { color: var(--text-muted); flex-shrink: 0; }
#ticker-bar .ticker-source { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; flex-shrink: 0; }
/* Mobile: Contract-Adresse im Ticker ausblenden */
@media(max-width:600px){
  #ticker-bar .ticker-inner > span:nth-child(4),
  #ticker-bar .ticker-inner > span:nth-child(5),
  #ticker-bar .ticker-inner > span:nth-child(6) { display: none; }
  #ticker-bar .ticker-inner { gap: 1rem; }
  #ticker-bar .ticker-source { display: none; }
}

/* ---------- Navigation ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.6); }

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--gold); background: rgba(201,162,39,0.08); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--gold);
  color: #000;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,162,39,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,162,39,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 40px rgba(201,162,39,0.35));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-badge::before { content: '●'; font-size: 0.6rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(201,162,39,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.45);
  color: #000;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.06);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }

/* ---------- Section Base ---------- */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Vision ---------- */
#vision { background: var(--bg-mid); }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,162,39,0.12);
}
.vision-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.vision-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.vision-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Token / Blockchain ---------- */
#token { background: var(--bg-dark); }
.token-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media(max-width:768px){ .token-grid { grid-template-columns: 1fr; } }

.token-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
.token-row:last-child { border-bottom: none; }
.token-row .label { color: var(--text-muted); }
.token-row .value { color: var(--text-main); font-weight: 600; text-align: right; max-width: 60%; word-break: break-all; }
.token-row .value.mono { font-family: 'Courier New', monospace; font-size: 0.78rem; }

/* Tokenomics Donut-like bars */
.tokenomics-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.tok-bar-row { display: flex; flex-direction: column; gap: 0.3rem; }
.tok-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; }
.tok-bar-label span:first-child { color: var(--text-muted); }
.tok-bar-label span:last-child  { color: var(--gold); font-weight: 700; }
.tok-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}
.tok-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 999px;
  transition: width 1.2s ease;
}

/* ---------- Burning ---------- */
#burning { background: var(--bg-mid); }
.burn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.burn-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.burn-year { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.35rem; }
.burn-amount { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.burn-unit { font-size: 0.72rem; color: var(--text-muted); }
.burn-note {
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.burn-note strong { color: var(--gold); }

/* ---------- Exchanges ---------- */
#exchanges { background: var(--bg-dark); }
.exchange-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.exchange-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 180px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.exchange-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(201,162,39,0.15);
}
.exchange-name { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.exchange-type { font-size: 0.75rem; color: var(--text-muted); }
.exchange-icon { font-size: 1.8rem; }

.contract-box {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.contract-box .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.contract-box .address {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--gold);
  word-break: break-all;
  background: rgba(0,0,0,0.3);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.copy-btn {
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover { background: rgba(201,162,39,0.25); }

/* ---------- Roadmap ---------- */
#roadmap { background: var(--bg-mid); }
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.1rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-mid);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.3);
  z-index: 2;
}
.timeline-dot.future { background: var(--text-muted); box-shadow: 0 0 0 3px rgba(136,146,164,0.2); }
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 340px;
  width: 100%;
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.timeline-card p  { font-size: 0.85rem; color: var(--text-muted); }
.timeline-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-done    { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-active  { background: rgba(201,162,39,0.15); color: var(--gold); }
.status-planned { background: rgba(136,146,164,0.12); color: var(--text-muted); }

/* ---------- Whitepaper ---------- */
#whitepaper { background: var(--bg-dark); }
.wp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.wp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-width: 260px;
  max-width: 320px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: all var(--transition);
}
.wp-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.wp-icon { font-size: 2.5rem; }
.wp-card h3 { font-size: 1rem; font-weight: 700; }
.wp-card p  { font-size: 0.85rem; color: var(--text-muted); flex: 1; }

/* ---------- Community / Telegram ---------- */
#community { background: var(--bg-mid); }
.community-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  min-width: 240px;
  max-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: all var(--transition);
}
.community-card:hover { border-color: #2AABEE; transform: translateY(-3px); }
.tg-icon { font-size: 2.2rem; }
.community-card h3 { font-size: 0.95rem; font-weight: 700; }
.community-card p  { font-size: 0.82rem; color: var(--text-muted); }
.btn-telegram {
  background: #2AABEE;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-telegram:hover { background: #1a9bde; color: #fff; transform: none; }

/* ---------- Kontakt ---------- */
#contact { background: var(--bg-dark); }
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  font-family: inherit;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:520px){ .form-row { grid-template-columns: 1fr; } }

.form-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.form-spam-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(201,162,39,0.07);
  border-left: 2px solid rgba(201,162,39,0.35);
  border-radius: 4px;
  line-height: 1.5;
}
.form-spam-hint strong { color: var(--gold); }

.form-success, .form-error {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 1rem;
}
.form-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.form-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media(max-width:700px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .nav-logo { margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 300px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul a:hover { color: var(--gold); }

.footer-disclaimer {
  background: rgba(201,162,39,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Roadmap Mobile ---------- */
@media(max-width:640px){
  .timeline::before { left: 20px; transform: none; }
  .timeline-item {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 3.5rem;
  }
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3.5rem;
  }
  .timeline-dot { left: 20px; transform: none; }
  .timeline-card { max-width: 100%; }
}

/* ---------- Exchange Cards Mobile ---------- */
@media(max-width:480px){
  .exchange-card { min-width: calc(50% - 0.5rem); padding: 1rem; }
  .exchange-name { font-size: 0.85rem; }
}

/* ---------- Contact Form Mobile ---------- */
@media(max-width:480px){
  .contact-wrap { padding: 1.5rem 1rem; }
}

/* ---------- Hero Mobile ---------- */
@media(max-width:480px){
  .hero-logo { width: 140px; height: 140px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ---------- Section Padding Mobile ---------- */
@media(max-width:600px){
  section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .burn-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile Nav ---------- */
.nav-links ul { display: flex; gap: 0.5rem; list-style: none; }
@media(max-width:900px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100%;
    height: -webkit-fill-available;
    background: var(--bg-dark);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Safari iOS: verhindert Durchscheinen des Inhalts */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .nav-links.open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .nav-links.open .close-mobile {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    z-index: 10001;
    padding: 0.5rem;
    line-height: 1;
  }
  body.menu-open {
    overflow: hidden;
    /* Safari iOS: position:fixed verhindert Scroll-Through */
    position: fixed;
    width: 100%;
    top: 0;
  }
}

/* ---------- Utilities ---------- */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Whitepaper Embed ---------- */
.wp-embed-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.wp-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.wp-embed-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wp-embed-meta .wp-icon { font-size: 2rem; flex-shrink: 0; }
.wp-embed-meta h3 { margin: 0 0 0.2rem; font-size: 1.1rem; color: var(--text-main); }
.wp-embed-meta p  { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.wp-embed-viewer { width: 100%; background: #1a1a2e; }
.wp-iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: none;
}
.wp-btn-group {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}
@media(max-width:768px) {
  .wp-iframe { height: 500px; }
  .wp-embed-header { padding: 1rem 1.25rem; }
  .wp-btn-group { flex-direction: column; width: 100%; }
  .wp-btn-group .btn { width: 100%; justify-content: center; text-align: center; }
}
@media(max-width:480px) {
  .wp-iframe { height: 380px; }
  .wp-embed-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .wp-embed-meta { width: 100%; }
}
/* Mobile: Iframe ausblenden, Direktlink anzeigen */
.wp-mobile-fallback { display: none; }
@media(max-width:768px) {
  .wp-iframe-desktop { display: none; }
  .wp-mobile-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
}

/* ---------- Cookie Overlay ---------- */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  backdrop-filter: blur(3px);
}
#cookie-overlay.hidden { display: none; }

/* ---------- Cookie Banner (EU/DSGVO 2026) ---------- */
#cookie-banner {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  max-width: 560px;
  width: calc(100% - 2rem);
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  font-size: 0.85rem;
  color: var(--text-muted);
}
#cookie-banner.hidden { display: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.cookie-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.35rem; }
.cookie-desc  { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.65; }
.cookie-categories { display: flex; flex-direction: column; gap: 0.6rem; }
.cookie-cat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cookie-cat:hover { border-color: var(--gold); }
.cookie-cat input[type=checkbox] {
  width: 17px; height: 17px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}
.cookie-cat input[disabled] { opacity: 0.45; cursor: not-allowed; }
.cookie-cat > span { display: flex; flex-direction: column; gap: 0.2rem; }
.cookie-cat strong { font-size: 0.86rem; color: var(--text-main); }
.cookie-cat small  { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  flex: 1;
  min-width: 110px;
  text-align: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.cookie-legal { font-size: 0.73rem; color: var(--text-muted); margin: 0; text-align: center; }
.cookie-legal a { color: var(--gold); text-decoration: none; }
.cookie-legal a:hover { text-decoration: underline; }
@media(max-width:480px){
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.25rem 1rem;
    max-height: 88vh;
    overflow-y: auto;
  }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { min-width: unset; }
}
