/* ==========================================================================
   Kidge Website — Design System
   Helles, aufgeräumtes Theme im Apple-Marketing-Stil: viel Weißraum, ruhige
   Typografie, zurückhaltende Farbe. Die Chat-Vorschau bleibt bewusst dunkel
   (Produkt-Screenshot-Look) und kontrastiert mit dem hellen Seitenhintergrund.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;

  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-faint: #86868b;

  --accent: #6a4cff;       /* Violett – Markenfarbe */
  --accent-2: #0071e3;     /* Apple-Blau – Links/Interaktion */
  --accent-3: #1c8a5c;     /* Grün – "gut kompatibel" */
  --accent-warn: #b9690a;  /* Amber – "eingeschränkt" */

  --gradient: linear-gradient(120deg, #6a4cff 0%, #0091ad 100%);

  /* Dunkles Sub-Theme nur fuer die Produkt-Screenshot-Flaechen (Mockup) */
  --dark-bg: #1d1d1f;
  --dark-surface: #232326;
  --dark-surface-2: #2c2c2f;
  --dark-border: #3a3a3d;
  --dark-text: #f5f5f7;
  --dark-text-muted: #a1a1a6;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.18);

  --max-w: 1180px;

  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: inherit;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em 0; color: var(--text-muted); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border-soft);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 980px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { opacity: 0.82; }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--text); background: var(--surface-2); }

.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  padding: 9px 4px;
}
.btn-ghost:hover { opacity: 0.7; }

.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 0;
  text-align: center;
}

.hero .container:not(.prose) > .eyebrow,
.hero .container:not(.prose) > h1,
.hero .container:not(.prose) > .lede {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .container.prose { text-align: left; }

.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.25rem; line-height: 1.5; color: var(--text-muted); }
.hero-cta { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

.hero-visual {
  margin-top: 64px;
  padding-bottom: 96px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta div { font-size: 0.85rem; color: var(--text-faint); text-align: center; }
.hero-meta strong { display: block; color: var(--text); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }

/* ---------- Chat mockup (dark "screenshot" look) ---------- */

.mockup {
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-border); }
.mockup-bar .title { margin-left: 6px; font-size: 0.82rem; color: var(--dark-text-muted); font-weight: 500; }

.mockup-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--dark-text);
}
.bubble-user {
  align-self: flex-end;
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
  border-bottom-right-radius: 4px;
}
.bubble-ai {
  align-self: flex-start;
  background: rgba(106, 76, 255, 0.09);
  border: 1px solid rgba(106, 76, 255, 0.22);
  border-bottom-left-radius: 4px;
}
.bubble-tool {
  align-self: flex-start;
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;
  font-size: 0.78rem;
  color: #4fd1a5;
  background: rgba(79, 209, 165, 0.1);
  border: 1px solid rgba(79, 209, 165, 0.28);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------- Sections ---------- */

section { padding: 100px 0; }
section.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 1.1rem;
}

.feature-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.card p:last-child { margin-bottom: 0; }

.tool-list {
  list-style: none;
  margin: 14px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.tool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- Badges / tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  letter-spacing: 0.01em;
}
.badge-best { background: rgba(28, 138, 92, 0.1); color: var(--accent-3); }
.badge-good { background: rgba(0, 113, 227, 0.1); color: var(--accent-2); }
.badge-limited { background: rgba(185, 105, 10, 0.1); color: var(--accent-warn); }
.badge-basic { background: var(--border-soft); color: var(--text-muted); }
.badge-soon { background: rgba(106, 76, 255, 0.1); color: var(--accent); }

/* ---------- Model grid (Features page) ---------- */

.model-tier { margin-bottom: 36px; }
.model-tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.model-tier-head h3 { margin: 0; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.model-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.model-card .provider { font-size: 0.74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.model-card .model-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }

.model-card.is-future {
  border-style: dashed;
  opacity: 0.7;
}

/* ---------- Steps (How it works) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(106, 76, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2, .cta-banner h3 { color: var(--dark-text); }
.cta-banner p { color: var(--dark-text-muted); }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: #fff; color: var(--dark-bg); }
.cta-banner .btn-secondary { border-color: var(--dark-border); color: var(--dark-text); }
.cta-banner .btn-secondary:hover { border-color: var(--dark-text); background: var(--dark-surface); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 48px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 12px; font-weight: 600; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Simple content pages (Impressum/Kontakt) ---------- */

.prose { max-width: 680px; text-align: left; margin-left: 0; margin-right: 0; }
.prose h2 { margin-top: 1.6em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
}
.info-box dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-top: 16px; }
.info-box dt:first-child { margin-top: 0; }
.info-box dd { margin: 4px 0 0 0; font-size: 1.02rem; }

/* ---------- Download page ---------- */

.download-panel {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  text-align: left;
}
.download-version { font-size: 0.85rem; color: var(--text-faint); margin-top: 6px; }
.download-version .v { color: var(--accent-3); font-weight: 600; }

.req-table { width: 100%; border-collapse: collapse; }
.req-table td, .req-table th { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.94rem; }
.req-table th { color: var(--text-faint); font-weight: 500; width: 40%; }

.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.changelog li:last-child { border-bottom: none; }
.changelog .tag { font-size: 0.78rem; color: var(--accent-2); font-weight: 700; margin-right: 8px; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .hero-visual { padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .download-panel { padding: 28px; text-align: center; justify-content: center; }
  .footer-grid { gap: 28px; }
  .hero-meta { gap: 28px; }
}
