:root {
  --bg: #09111f;
  --bg-soft: rgba(16, 24, 40, 0.72);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9fb0c9;
  --primary: #73a5ff;
  --primary-strong: #4b84f7;
  --success: #36d399;
  --danger: #ff6b81;
  --orb-a: #73a5ff;
  --orb-b: #8f6dff;
  --hero-gradient-top: #102039;
  --hero-gradient-bottom: #060b14;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, var(--hero-gradient-top) 0%, var(--bg) 55%, var(--hero-gradient-bottom) 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; z-index: 2; }
.section-alt { background: rgba(255,255,255,0.02); }
.glass {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
  z-index: 0;
}
.orb-a { background: var(--orb-a); top: -120px; left: -60px; }
.orb-b { background: var(--orb-b); right: -80px; top: 25%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); }
.brand-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #8f6dff);
  font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.nav-item { position: relative; }
.site-nav a, .nav-dropdown-toggle { color: var(--muted); font-weight: 500; }
.site-nav a:hover, .nav-dropdown-toggle:hover { color: var(--text); }
.nav-dropdown-toggle { background: transparent; border: 0; cursor: pointer; font: inherit; padding: 0; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 12px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 10px; background: rgba(8,14,25,.98); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: var(--shadow); }
.nav-dropdown.open .nav-dropdown-menu { display: grid; gap: 6px; }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 12px; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.05); }
.nav-toggle { display: none; background: transparent; border: 0; color: white; font-size: 1.6rem; }

.hero { padding: 50px 0 90px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.eyebrow, .section-tag {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #b9cbff;
  background: rgba(255,255,255,.04);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .section h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin: 18px 0 18px;
}
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.hero h1 span { color: var(--primary); }
.hero-branding { display: grid; gap: 10px; }
.hero-welcome-logo {
    width: min(500px, 100%);
    max-height: 500px;
    object-fit: contain;
    margin: -55px 0px -125px 70px;
}
.hero-text, .section p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

#hero-panel-status, .hero-panel-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#hero-panel-status.is-online,
.hero-panel-status.is-online {
    background: var(--success);
    color: #08120d;
}

#hero-panel-status.is-offline,
.hero-panel-status.is-offline {
    background: var(--danger);
    color: #ffffff;
}
.hero-actions { flex-wrap: wrap; gap: 14px; margin-top: 28px; text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: white; }
.btn-secondary, .btn-ghost {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: white;
}
.hero-panel { padding: 28px; }
.hero-panel h3 { margin-top: 0; font-size: 1.25rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
article>span {
  text-align: center;
}

.stat-grid article, .mini-card, .feature-card, .team-card, .recruitment-box, .imprint-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 20px;
}
.stat-grid span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.stat-grid strong { font-size: 1.08rem; }
.status-inline {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(255,107,129,.14);
}
.status-dot.online { background: var(--success); box-shadow: 0 0 0 8px rgba(54,211,153,.14); }
.info-strip { position: relative; z-index: 2; padding: 18px 0 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip-grid a {
  text-align: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: #dbe6ff;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.card-stack { padding: 24px; display: grid; gap: 16px; }
.section-head { margin-bottom: 28px; }
.card-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card h3 { margin-top: 0; font-size: 1.1rem; }
.team-card { text-align: center; }
.avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #6ea8fe, #8f6dff);
  font-weight: 800;
  font-size: 1.4rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.gallery-item img { height: 260px; width: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 14px 14px 14px;
  background: rgba(6,11,20,.78);
  padding: 12px 14px;
  border-radius: 14px;
}
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.social-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}
.site-footer {
  position: relative;
  z-index: 2;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}
.footer-grid h4, .footer-grid h3 { margin-top: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,7,13,.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; border-radius: 20px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-shell { width: min(100%, 480px); }
.admin-card {
  padding: 32px;
  display: grid;
  gap: 16px;
}
.admin-card label { display: grid; gap: 8px; color: var(--muted); font-weight: 500; }
.admin-card input {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: white;
  padding: 14px 16px;
  font: inherit;
}
.alert-error {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,107,129,.12);
  color: #ffd4db;
  border: 1px solid rgba(255,107,129,.28);
}
.back-link { color: #bfd2ff; }
.admin-dashboard { padding: 72px 0; }
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
code { color: #cfe0ff; }

@media (max-width: 1080px) {
  .hero-grid, .two-col, .card-grid, .team-grid, .gallery-grid, .footer-grid, .strip-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) {
  .admin-panel-shell, .form-grid.two-columns, .admin-grid-two, .color-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(8,14,25,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-menu { position: static; width: 100%; margin-top: 10px; }
  .hero-grid, .two-col, .card-grid, .team-grid, .gallery-grid, .footer-grid, .strip-grid {
    grid-template-columns: 1fr;
  }
  .social-banner, .dashboard-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1, .section h2 { word-break: break-word; }
}


.imprint-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}
.imprint-modal.open { display: block; }
.imprint-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
}
.imprint-dialog {
  position: relative;
  width: min(calc(100% - 32px), 880px);
  max-height: min(86vh, 900px);
  overflow: auto;
  margin: 6vh auto;
  padding: 28px;
  z-index: 1;
}
.imprint-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}
.imprint-content { color: var(--muted); line-height: 1.8; }
.imprint-content a { color: var(--primary); }

.admin-panel-body {
  min-height: 100vh;
  padding: 24px 0;
}
.admin-panel-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 24px;
  padding: 24px;
}
.admin-sidebar h2 { margin-bottom: 8px; }
.admin-sidebar p { color: var(--muted); }
.admin-menu {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.admin-menu a {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.admin-main { display: grid; gap: 22px; }
.admin-form, .admin-preview-card { padding: 24px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.one-column { grid-template-columns: 1fr; }
.admin-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 500; }
.admin-form input, .admin-form textarea, .admin-form select {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: white;
  padding: 14px 16px;
  font: inherit;
  width: 100%;
}
.admin-form textarea { min-height: 140px; resize: vertical; }
.admin-code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.alert-success {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(54,211,153,.12);
  color: #d8ffef;
  border: 1px solid rgba(54,211,153,.28);
}
.admin-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.imprint-preview {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.imprint-preview a { color: var(--primary); }
.color-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.preview-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.preview-bg { background: var(--bg); }
.preview-panel { background: var(--panel); }
.preview-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); }
.preview-success { background: var(--success); color: #04120d; }
.preview-danger { background: var(--danger); }


body::before { pointer-events: none; }
.brand-logo {
  width: 80px;
  height: 65px;
  object-fit: cover;
}
.muted-copy { color: var(--muted); margin-top: 0; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-two { grid-column: span 2; }
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.upload-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  display: grid;
  gap: 14px;
}
.upload-card h3 { margin: 0; }
.upload-preview-image {
  width: 100%;
  max-width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.upload-preview-wide { max-width: none; height: 150px; }
.upload-preview-icon { width: 64px; height: 64px; }
.checkbox-line {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.checkbox-line input {
  width: auto !important;
  padding: 0 !important;
}
.gallery-admin-list {
  display: grid;
  gap: 16px;
}
.gallery-admin-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.gallery-admin-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}
.gallery-admin-fields {
  display: grid;
  gap: 12px;
}
.color-control-grid { align-items: start; }
.color-control-row { gap: 10px; }
.color-control-inputs {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}
.color-picker-input {
  padding: 0 !important;
  min-height: 52px;
  border-radius: 14px !important;
  overflow: hidden;
}
@media (max-width: 1080px) {
  .upload-grid, .three-columns { grid-template-columns: 1fr; }
  .span-two { grid-column: span 1; }
}
@media (max-width: 760px) {
  .gallery-admin-item { grid-template-columns: 1fr; }
}

.navigation-editor { min-height: 520px; }
.admin-json-help { overflow: auto; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); color: #dbe6ff; }


.page-shell { width: min(calc(100% - 32px), 980px); margin: 0 auto; }
.hero-page { padding-bottom: 18px; }
.page-panel, .page-content-card, .page-admin-card { padding: 28px; }
.page-content-section { padding-top: 28px; }
.rich-content { line-height: 1.8; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 0; color: var(--text); }
.rich-content p, .rich-content li { color: var(--muted); }
.rich-content ul, .rich-content ol { padding-left: 22px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rich-content th, .rich-content td { border: 1px solid rgba(255,255,255,.08); padding: 12px 14px; text-align: left; }
.rich-content code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 8px; }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.page-admin-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; margin-bottom: 18px; }


.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 8px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.live-badge.is-live {
    background: var(--success);
    color: #08120d;
}

.live-badge.is-offline {
    background: var(--danger);
    color: #fff;
}

.twitch-spotlight {
    margin-bottom: 24px;
    padding: 22px;
}

.twitch-embed-wrap iframe {
    width: 100%;
    min-height: 520px;
    border-radius: 18px;
}

.contact-form-public {
    max-width: 840px;
    margin: 0 auto;
}

.hp-field {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: var(--panel);
    color: var(--text);
    border: 1px solid var(--panel-border);
    padding: 10px 40px 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* Pfeil */
select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select option {
    background-color: #352b18;
    color: #ffffff;
}