/* ============================================================================
   KI AKADEMIE – Ultra-kompaktes SaaS-Design-System (Whop / Linear / Polar Stil)
   ============================================================================ */

:root {
  --bg-0: #060609;
  --bg-1: #0B0B11;
  --bg-2: #11111A;
  --bg-3: #171723;
  --bg-card: #0D0D14;

  --orange: #FF6A00;
  --orange-hover: #FF7E1F;
  --orange-light: #FF9838;
  --amber-gold: #F59E0B;
  --orange-subtle: rgba(255, 106, 0, 0.11);
  --orange-border: rgba(255, 125, 38, 0.36);
  --orange-glow: rgba(255, 106, 0, 0.18);

  --text-main: #F4F4F6;
  --text-secondary: #B4B4C0;
  --text-soft: #A1A1AA;
  --text-muted: #71717A;

  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.13);

  --green: #10B981;
  --red: #F43F5E;
  --discord: #5865F2;

  --container: 1120px;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-0);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-0);
  background-image:
    radial-gradient(ellipse 65% 35% at 50% -8%, rgba(255, 106, 0, 0.11) 0%, transparent 70%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.18;
  font-weight: 800;
}

p {
  line-height: 1.55;
}

strong, b {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: var(--font-sans);
}

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

.nowrap {
  white-space: nowrap;
}

.display-font {
  font-family: var(--font-display);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================================
   ULTRA-KOMPAKTER STICKY HEADER (56px)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 56px;
  background: rgba(6, 6, 9, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-left-group {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-logo,
.logo-circle {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 133, 51, 0.42);
  background: var(--bg-1);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-title span {
  color: var(--orange-light);
}

.brand-sub {
  display: none;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}

.header-nav-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 6px 11px;
  border-radius: 7px;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.header-nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.nav-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}

.nav-bar-btn:hover,
.nav-bar-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.nav-bar-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.nav-bar-btn.rating-bar {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-soft);
  padding: 0 10px;
}

.stars-gold {
  color: #FBBF24;
  font-size: 12px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 11px;
}

.nav-bar-btn.ghost-auth {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.nav-bar-btn.ghost-auth:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-bar-btn.primary-bar {
  background: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
}

.nav-bar-btn.primary-bar:hover {
  background: var(--orange-hover);
}

.user-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px 0 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.user-chip-btn:hover,
.user-chip-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 133, 51, 0.5);
  color: #FFFFFF;
}

.user-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-status-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* ============================================================================
   BADGES, BUTTONS, INPUTS & LISTEN
   ============================================================================ */
.editorial-kicker,
.badge-bar,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange-light);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 133, 51, 0.26);
  margin-bottom: 10px;
  width: fit-content;
}

.kicker-indicator,
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF6A00;
  flex-shrink: 0;
}

.gradient-highlight {
  background: linear-gradient(135deg, #FF7A1A 0%, #FFB366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-orange-bar,
.btn-card-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 10px rgba(255, 106, 0, 0.22);
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.btn-orange-bar:hover,
.btn-card-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-dark-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  background: #12121B;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.btn-dark-bar:hover {
  background: #191925;
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.popup-close-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.popup-close-x:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #FDA4AF;
}

.pw-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pw-field-wrap .ui-input {
  padding-right: 64px !important;
  margin-bottom: 0 !important;
}

.pw-toggle-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pw-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.09);
}

.ka-toast-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.back-to-top-btn {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 3900;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(14, 14, 22, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.back-to-top-btn:hover {
  background: var(--orange);
  border-color: var(--orange-light);
}

/* Segmented Control */
.auth-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #0A0A10;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.auth-tab-btn {
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.auth-tab-btn:hover {
  color: #FFFFFF;
}

.auth-tab-btn.active {
  background: #161622;
  border-color: var(--border-strong);
  color: #FFFFFF;
}

/* Kompakte Sektion-Tabs */
.compact-tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0A0A10;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compact-tab-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.compact-tab-btn:hover {
  color: #FFFFFF;
}

.compact-tab-btn.active {
  background: #161622;
  border-color: var(--border-strong);
  color: #FFFFFF;
}

.compact-tab-btn .tab-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--orange-light);
}

.compact-tab-panel {
  display: none;
}

.compact-tab-panel.active {
  display: block;
}

/* Kompaktes FAQ-Accordion */
.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: #0D0D14;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.14s ease;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  padding: 12px 15px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-q span.faq-icon {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.16s ease;
}

.faq-item.open .faq-q span.faq-icon {
  transform: rotate(45deg);
  color: var(--orange-light);
}

.faq-a {
  display: none;
  padding: 0 15px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.faq-item.open .faq-a {
  display: block;
}

/* Saubere Checklisten */
.check-list {
  list-style: none;
  display: grid;
  gap: 7px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--orange-light);
  font-weight: 800;
  font-size: 12px;
}

.prod-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.prod-status.live {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.prod-status.soon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.ui-input, .ui-textarea {
  width: 100%;
  background: #09090F;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.ui-input:focus, .ui-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.14);
}

/* ============================================================================
   TOAST-BENACHRICHTIGUNGEN
   ============================================================================ */
.ka-toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.ka-toast {
  background: rgba(13, 13, 20, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: kaToastIn 0.18s ease forwards;
}

@keyframes kaToastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   SCHLANKER EINZEILIGER FOOTER
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060609;
  padding: 16px 0;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-btn-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s;
}

.footer-pill-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

/* ==========================================================================
   SOCIAL OAUTH BUTTONS
   ========================================================================== */
.social-auth-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.btn-social-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  background: #12121B;
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.btn-social-provider:hover {
  background: #191926;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-social-provider.discord-btn {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.38);
  color: #E0E7FF;
}

.btn-social-provider.discord-btn:hover {
  background: rgba(88, 101, 242, 0.24);
  border-color: rgba(88, 101, 242, 0.65);
  color: #FFFFFF;
}

.btn-social-provider svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

@media (max-width: 520px) {
  .social-auth-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .header-nav-links,
  .header-right {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .container {
    padding: 0 16px;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060609;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
