/* =============================================================
   DELPERRO CITY - Webseite
============================================================== */
:root {
  --red:        #E0242E;
  --red-soft:   #FF4D57;
  --red-dark:   #7A0F16;

  --bg:         #08080A;
  --bg-2:       #0C0C0F;
  --panel:      #101014;
  --panel-2:    #14141A;
  --line:       #1E1E25;
  --line-2:     #2A2A33;

  --text:       #F4F4F5;
  --muted:      #8A8A93;
  --dim:        #5A5A63;

  --good:       #22C55E;
  --wrap:       1240px;
  --radius:     14px;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .kicker, .btn, .brand-text b {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

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

.wrap { width: min(var(--wrap), 92vw); margin: 0 auto; }
.wrap.narrow { width: min(860px, 92vw); }
.hidden { display: none !important; }

/* ---------- Kopfzeile ---------- */
#head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex; align-items: center; gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text b { display: block; font-size: 17px; letter-spacing: 3px; }
.brand-text small { display: block; font-size: 10px; letter-spacing: 2.4px; color: var(--muted); text-transform: uppercase; }

#nav { display: flex; gap: 26px; margin-left: auto; }
#nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.6px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
#nav a:hover, #nav a.on { color: var(--text); border-color: var(--red); }

.head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.status.on  .dot { background: var(--good); animation: blink 2.4s infinite; }
.status.off .dot { background: var(--red); }

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { border-color: var(--red); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-soft); border-color: var(--red-soft); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 32px; font-size: 14px; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Kopf ---------- */
.hero { position: relative; padding: 92px 0 0; overflow: hidden; }

.hero-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(224,36,46,0.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 78%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; padding-bottom: 70px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--muted);
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: blink 2s infinite;
}

.hero h1 {
  font-size: clamp(46px, 8.5vw, 108px);
  line-height: 0.98;
  letter-spacing: clamp(4px, 1.2vw, 14px);
  margin: 26px 0 18px;
  background: linear-gradient(180deg, #FFFFFF 12%, #B8B8BE 58%, #6E6E76 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 660px; margin: 0 auto;
  font-size: 16px; color: var(--muted);
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; margin: 36px 0 22px; flex-wrap: wrap; }

.ip-copy {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ip-copy:hover { border-color: var(--red); color: var(--text); }
.ip-copy small { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }

/* ---------- Zahlenband ---------- */
.stats {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat { padding: 26px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 32px; font-weight: 600; letter-spacing: 1px;
}
.stat span { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--dim); }

/* ---------- Abschnitte ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head { max-width: 660px; margin-bottom: 46px; }
.kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 3.4px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 15px; }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }

.card {
  position: relative;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 65%);
  opacity: 0; transition: opacity 0.18s;
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(224,36,46,0.1);
  border: 1px solid rgba(224,36,46,0.25);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; fill: var(--red); }

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }

.card-tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Wirtschaft ---------- */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.eco-text h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px; }
.eco-text p { color: var(--muted); margin-bottom: 22px; }

.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: 14px; color: var(--muted);
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.eco-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.eco-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}
.eco-row:first-child { border-top: none; }
.eco-row .label { flex: 1; font-size: 14px; }
.eco-row .value {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; letter-spacing: 0.6px;
  color: var(--text);
  white-space: nowrap;
}
.eco-row .note { width: 100%; font-size: 11px; color: var(--dim); letter-spacing: 0.4px; }

/* ---------- Fraktionen ---------- */
.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.faction {
  position: relative;
  padding: 24px 24px 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s, transform 0.18s;
}
.faction:hover { border-color: var(--line-2); transform: translateY(-2px); }
.faction::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--red);
}
.faction h3 { font-size: 17px; margin-bottom: 6px; }
.faction .slots { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; display: block; }
.faction p { font-size: 14px; color: var(--muted); }

/* ---------- Aufklappbares ---------- */
.accordion { display: grid; gap: 10px; }

.acc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.acc-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: none; border: none;
  color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 500; text-align: left;
  cursor: pointer;
}
.acc-head b {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; color: var(--red); min-width: 26px;
}
.acc-head .chev {
  margin-left: auto; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s;
}
.acc.on .acc-head .chev { transform: rotate(225deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.acc-body p { padding: 0 22px 20px 62px; color: var(--muted); font-size: 14px; }
.acc.on .acc-body { max-height: 320px; }

/* ---------- Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.step {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step b {
  font-family: 'Oswald', sans-serif;
  font-size: 30px; color: var(--line-2);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Aufruf ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding: 38px 42px;
  background: linear-gradient(120deg, rgba(224,36,46,0.14) 0%, var(--panel) 60%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.cta h3 { font-size: 24px; margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 14px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.member {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.member .avatar {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: 'Oswald', sans-serif;
  font-size: 20px; color: var(--red);
}
.member h3 { font-size: 16px; margin-bottom: 4px; }
.member .role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.member p { font-size: 13px; color: var(--muted); }

/* ---------- Fußzeile ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 34px; background: var(--bg-2); }

.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-family: 'Oswald', sans-serif; letter-spacing: 2.4px; display: block; }
.foot-brand small { color: var(--dim); font-size: 11px; letter-spacing: 1.6px; }

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--red); }

.foot-note { padding-top: 20px; font-size: 11px; color: var(--dim); letter-spacing: 0.4px; }

/* ---------- Meldungen ---------- */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 10px; }

.toast {
  padding: 13px 18px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  animation: toastIn 0.22s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 980px) {
  .eco { grid-template-columns: 1fr; gap: 34px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  #nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 6vw 20px;
    display: none;
  }
  #nav.open { display: flex; }
  #nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }

  .burger { display: block; }
  .status { display: none; }
  .head-actions .btn { padding: 9px 16px; font-size: 12px; }

  .section { padding: 68px 0; }
  .cta { padding: 28px; }
  .acc-body p { padding-left: 22px; }
}

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