/* Planet TeaSpeak – Modern UI (PHP 8.1) */
:root {
  --bg: #0d0f14;
  --bg-card: #151922;
  --bg-elevated: #1a1e28;
  --text: #e6e9ef;
  --text-muted: #8b90a0;
  --accent: #7dcfff;
  --accent-dim: #5fa8e0;
  --green: #98c379;
  --orange: #d19a66;
  --red: #e06c75;
  --radius: 12px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.15rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.site-header .container { padding: 0 1.5rem; }
.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.9; }
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.nav-links > a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--accent); }
.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,.12);
  margin: 0 0.15rem;
  flex-shrink: 0;
}
.nav-links .btn-ghost.btn-sm {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
}
.nav-links .btn-ghost.btn-sm:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.25rem;
  box-shadow: 0 2px 12px rgba(125, 207, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { box-shadow: 0 4px 16px rgba(125, 207, 255, 0.35); }
.cart-count { background: var(--accent); color: var(--bg); font-size: 0.7rem; padding: 0.2em 0.5em; border-radius: 999px; margin-left: 0.35rem; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; border: none; text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.btn-lg { padding: .7rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.inline { display: inline; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: 3rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}
.hero h1 { font-size: 2.5rem; margin: 0 0 .5rem; }
.hero .logo span { color: var(--accent); }
.hero-tagline { color: var(--text-muted); font-size: 1.1rem; margin: 0 auto 1.5rem; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { min-width: 160px; }

/* Customer benefits & how it works */
.section-title { text-align: center; margin: 0 0 2rem; font-size: 1.5rem; color: var(--text); }
.customer-benefits { padding: 3rem 0; background: var(--bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.benefit-card { text-align: center; padding: 1.5rem; }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: rgba(125, 207, 255, .15); color: var(--accent); border-radius: 50%; font-weight: 700; margin-bottom: .75rem; }
.benefit-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.benefit-card p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.how-it-works { padding: 2.5rem 0; background: var(--bg-elevated); border-top: 1px solid rgba(255,255,255,.06); }
.how-it-works .section-title { margin-bottom: 1.5rem; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2rem; }
.step { display: flex; align-items: center; gap: .75rem; color: var(--text-muted); font-size: .95rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--bg); border-radius: 50%; font-weight: 700; font-size: .9rem; flex-shrink: 0; }

/* Categories preview */
.categories-preview { padding: 3rem 0; background: var(--bg); }
.section-lead.center { text-align: center; max-width: 560px; margin: 0 auto 1.5rem; color: var(--text-muted); }
.category-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.category-card:hover { border-color: rgba(125, 207, 255, .3); transform: translateY(-2px); }
.category-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--text); }
.category-card p { margin: 0 0 .75rem; font-size: .9rem; color: var(--text-muted); line-height: 1.4; }
.category-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.category-link { font-size: .9rem; font-weight: 600; color: var(--accent); }

/* Why us */
.why-us { padding: 2.5rem 0; background: var(--bg-elevated); border-top: 1px solid rgba(255,255,255,.06); }
.why-us-content { max-width: 640px; margin: 0 auto; text-align: center; }
.why-us-content p { margin: 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* Support CTA */
.support-cta { padding: 2rem 0 3rem; }
.support-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
}
.support-cta-text h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.support-cta-text p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Shop */
.shop-section { padding: 2rem 0 4rem; }
.shop-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab { padding: .5rem 1rem; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.tab:hover { color: var(--text); background: var(--bg-elevated); }
.tab.active { background: var(--accent); color: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.product-card h2 a { color: var(--text); text-decoration: none; }
.product-card h2 a:hover { color: var(--accent); }
.product-badge { font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; display: block; }
.product-desc { color: var(--text-muted); font-size: .9rem; margin: 0 0 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.price { font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.empty-state { color: var(--text-muted); text-align: center; padding: 3rem; }

/* Product detail */
.product-detail-section { padding: 2rem 0 4rem; }
.breadcrumb { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.product-detail h1 { margin: 0 0 1rem; }
.product-description { margin-bottom: 1rem; white-space: pre-wrap; }
.product-meta { color: var(--text-muted); margin-bottom: 1rem; }
.product-detail-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); }

/* Auth */
.auth-section { padding: 3rem 0; min-height: 60vh; display: flex; align-items: center; }
.auth-section .container-narrow { padding-left: 1.5rem; padding-right: 1.5rem; }
.auth-card { max-width: 440px; margin: 0 auto; padding: 2.25rem 2rem; }
.auth-card h1 { margin: 0 0 1.75rem; }
.auth-form label { display: block; margin-bottom: 1.35rem; }
.auth-form label span { display: block; margin-bottom: .4rem; color: var(--text-muted); font-size: .9rem; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form textarea {
  width: 100%; padding: .75rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: var(--bg); color: var(--text); font-family: inherit; box-sizing: border-box;
}
.auth-form button { margin-top: 1.25rem; }
.auth-footer { margin-top: 2rem; padding-top: 0.25rem; text-align: center; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }

/* Cart */
.cart-section { padding: 2rem 0 4rem; }
.cart-section h1 { margin: 0 0 1.5rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.06); gap: 1rem; flex-wrap: wrap; }
.cart-item-meta { color: var(--text-muted); font-size: .9rem; }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.cart-item-subtotal { font-family: var(--font-mono); font-weight: 600; }
.cart-summary h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.cart-total { font-size: 1.25rem; margin-bottom: .5rem; }
.cart-payment-info { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.cart-summary .btn { margin-top: 0; }

/* Checkout */
.checkout-section { padding: 2rem 0 4rem; }
.checkout-section h1 { margin: 0 0 1.5rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-total { margin: 1rem 0; }
.payment-form .payment-option { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; cursor: pointer; }
.payment-form .payment-option input { margin: 0; }
.payment-form button { margin-top: 1rem; }

/* Alerts */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: rgba(224,108,117,.15); color: var(--red); }
.alert-warning { background: rgba(209,154,102,.15); color: var(--orange); }

/* Demo */
.demo-section { padding: 2rem 0 4rem; }
.section-lead { color: var(--text-muted); margin-bottom: 2rem; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.demo-card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.demo-meta { font-size: .9rem; color: var(--text-muted); margin: .5rem 0 1rem; }

/* Footer */
.site-footer { padding: 3rem 0 2rem; margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.06); background: var(--bg-card); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { margin: 0 0 .75rem; font-size: .9rem; color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { max-width: 260px; }
.footer-trust { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-copy { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* Dashboard customer focus */
.dashboard-backlink { margin: 0 0 1rem; }
.dashboard-backlink a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.dashboard-backlink a:hover { color: var(--accent); }
.dashboard-welcome { margin-bottom: 2rem; }
.dashboard-welcome h1 { margin: 0 0 .5rem; font-size: 1.5rem; }
.dashboard-intro { color: var(--text-muted); margin: 0 0 1rem; }
.dashboard-intro a { color: var(--accent); }
.dashboard-quicklinks { display: flex; gap: .75rem; flex-wrap: wrap; }
.dashboard-empty { color: var(--text-muted); margin: 0 0 1rem; }

/* Extra Dashboard – Übersicht */
.dashboard-uebersicht { max-width: 900px; }
.uebersicht-title { margin: 0 0 0.25rem; font-size: 1.75rem; }
.uebersicht-greeting { color: var(--text-muted); margin: 0 0 2rem; }
.uebersicht-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.uebersicht-stat {
  text-align: center;
  padding: 1.25rem 1rem;
}
.uebersicht-stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.uebersicht-stat-label { font-size: 0.85rem; color: var(--text-muted); }
.uebersicht-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.uebersicht-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.uebersicht-card:hover { border-color: rgba(125, 207, 255, .35); transform: translateY(-2px); }
.uebersicht-card-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.uebersicht-card h2 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--text); }
.uebersicht-card p { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.uebersicht-card-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.footer-support-text { margin: 0 0 .35rem; font-size: .9rem; color: var(--text-muted); }
.footer-ts-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-ts-link:hover { text-decoration: underline; }

/* Support page */
.support-section { padding: 2rem 0 4rem; }
.support-card h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.support-card .btn-support-link { display: inline-block; margin: 1rem 0; font-size: 1rem; padding: .75rem 1.5rem; }
.support-host { margin: 1rem 0 0; color: var(--text-muted); font-size: .9rem; }
.support-host code { background: var(--bg); padding: .2em .5em; border-radius: 6px; }

/* Protocol-Key-Formular */
.protocol-key-form-section { padding: 2rem 0 4rem; }
.protocol-key-form-card h1 { margin: 0 0 0.5rem; }
.protocol-key-form-intro { color: var(--text-muted); margin: 0 0 1.5rem; }
.protocol-key-form h2 { font-size: 1rem; margin: 1.25rem 0 0.75rem; color: var(--text-muted); }
.protocol-key-form h2:first-of-type { margin-top: 0; }
.protocol-key-form label { display: block; margin-bottom: 1rem; }
.protocol-key-form label span { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.protocol-key-form label em { color: var(--text-muted); font-weight: normal; }
.protocol-key-form input { width: 100%; padding: 0.6rem 0.85rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: var(--bg); color: var(--text); }
.protocol-key-form button { margin-top: 1rem; }
.cart-item-protocol-meta { font-size: 0.85rem; color: var(--text-muted); margin: 0.35rem 0 0; }

/* Dashboard */
.dashboard-main { padding: 2rem 0 4rem; }
.dashboard-page h1 { margin: 0 0 1.5rem; }
.dashboard-section { margin-bottom: 2rem; }
.dashboard-section h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.ts-server-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ts-server-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.ts-server-card p { margin: .35rem 0; font-size: .9rem; color: var(--text-muted); }
.dashboard-table { width: 100%; border-collapse: collapse; }
.dashboard-table th, .dashboard-table td { padding: .75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.dashboard-table th { color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.status { padding: .2em .5em; border-radius: 6px; font-size: .85rem; }
.status-paid { background: rgba(152,195,121,.2); color: var(--green); }
.status-pending { background: rgba(209,154,102,.2); color: var(--orange); }
.status-failed { background: rgba(224,108,117,.2); color: var(--red); }
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.download-list li:last-child { border-bottom: none; }
.ts-server-detail code { background: var(--bg); padding: .2em .5em; border-radius: 6px; font-size: .9rem; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-header { background: var(--bg-elevated); }
.admin-main { padding: 2rem 0 4rem; }
.admin-dashboard h1 { margin: 0 0 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stats-grid .card { text-align: center; }
.stats-grid strong { font-size: 1.5rem; color: var(--accent); }
.admin-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-page h1 { margin: 0 0 1.5rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-table th { color: var(--text-muted); font-size: .85rem; }
.form-vertical label { display: block; margin-bottom: .75rem; }
.form-vertical input, .form-vertical select, .form-vertical textarea { width: 100%; padding: .5rem .75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: var(--bg); color: var(--text); margin-top: .25rem; }
.form-vertical button { margin-top: .5rem; }
