/* ==========================================================================
   könig.dev — Landing
   Vanilla CSS, keine externen Fonts (DSGVO), keine JS-Frameworks.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg-base: #0b1020;
  --bg-2: #0f172a;
  --fg: #e5e7eb;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #a78bfa;
  --accent-2: #fbbf24;
  --accent-3: #60a5fa;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(167, 139, 250, 0.4);
  --card: rgba(30, 41, 59, 0.55);
  --card-hover: rgba(30, 41, 59, 0.75);
  --max-w: 1100px;
  --pad-x: clamp(20px, 4vw, 40px);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg-base);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 14px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--fg);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.crown {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.55));
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--fg); }

@media (max-width: 560px) {
  .nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 50% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 20% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 90%, rgba(251, 191, 36, 0.10) 0%, transparent 60%),
    var(--bg-base);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: twinkle 3.5s ease-in-out infinite;
}
.star:nth-child(2n) { animation-delay: 1.2s; opacity: 0.5; }
.star:nth-child(3n) { animation-delay: 2.4s; opacity: 0.8; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.6); }
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-crown {
  font-size: clamp(3.5rem, 9vw, 6rem);
  filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.55));
  animation: crown-float 5s ease-in-out infinite;
}
@keyframes crown-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #f3f4f6 0%, #a78bfa 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .dot-dev {
  color: var(--accent-2);
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--fg-muted);
  margin: 0;
  max-width: 34ch;
}

.scroll-cue {
  margin-top: 36px;
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  position: relative;
  text-decoration: none;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  background: var(--fg-muted);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  70%  { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow-soon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-2);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Feature (Schlag den König)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature-visual { order: -1; }
}

.feature-copy .feature-lead {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 16px;
}
.feature-copy p {
  color: #cbd5e1;
  margin: 0 0 20px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.feature-list li {
  color: #cbd5e1;
  padding-left: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5);
}
.btn-primary .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* --- Mockup (rein dekorativ, ohne echte Screenshots) --- */
.feature-visual {
  perspective: 1200px;
}
.mockup {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(167, 139, 250, 0.08) inset;
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-visual:hover .mockup { transform: rotateY(-2deg) rotateX(1deg); }

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #10b981; }

.mockup-body {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mockup-buzzer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buzzer-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.buzzer-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbbf24 0%, #f59e0b 55%, #b45309 100%);
  color: #451a03;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(245, 158, 11, 0.45),
    inset 0 -6px 12px rgba(0, 0, 0, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.3);
}

.mockup-teams {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.dot-red, .dot-blue {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.dot-blue { background: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }

/* ==========================================================================
   Coming Soon
   ========================================================================== */
.soon {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px dashed rgba(251, 191, 36, 0.3);
}
.soon-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}
.soon h2 { color: var(--fg); }
.soon p { color: var(--fg-muted); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--fg); }
.footer-note { font-size: 0.85rem; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}

/* ==========================================================================
   Legal-Pages (Impressum, Datenschutz)
   ========================================================================== */
.legal {
  padding: 140px 0 80px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
    var(--bg-base);
}
.legal .wrap { max-width: 720px; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal .subtitle {
  color: var(--fg-muted);
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  color: var(--fg);
}
.legal p {
  color: #cbd5e1;
  margin: 0 0 12px;
}
.legal-img {
  display: block;
  margin: 8px 0 20px;
  padding: 20px 24px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px;
}
.legal .back {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent);
  text-decoration: none;
}
.legal .back:hover { color: var(--fg); }

.legal-note {
  padding: 20px;
  margin: 24px 0;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--accent-2);
  color: #fde68a;
  font-size: 0.95rem;
}