/* =========================================================
   Schlüsselfertig-Kit · Design-System für den Kit-Bereich (base.css)
   Gleiche Farb- und Schriftwelt wie die Landingpage (Marineblau →
   Messing, Lora + Inter), dazu der schwebende Liquid-Look: sanfte
   Farb-Glows, Glaskarten, ruhige Float-Animationen.
   Seitenspezifisches liegt in kit/dashboard/handbuch/videos/
   legal.css. Schriften kommen aus fonts.css.
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #131f2e;          /* Tiefblau, Text */
  --ink-soft: #46566a;     /* Sekundärtext */
  --ink-mute: #7b8798;     /* Nebentext */
  --navy-900: #142c47;
  --navy-700: #1d4368;     /* Produktfarbe */
  --navy-500: #35719f;     /* Akzent */
  --navy-300: #9cc2e0;
  --navy-soft: #e7f0f7;    /* helle Navy-Fläche */
  --brass: #c08a4e;        /* warmer Akzent */
  --brass-dark: #96682f;
  --brass-soft: #f7ecdc;   /* helle Messing-Fläche */
  --sand: #e9c896;
  --bg: #faf7f1;           /* warmes Elfenbein, Grundfläche */
  --bg-2: #f2ece2;
  --surface: #ffffff;
  --line: #e6decf;
  --line-2: #ece5d8;
  --ok: #2e7d4f;           /* Erfolg */
  --ok-soft: #e9f4ec;
  --bad: #c0392b;          /* Risiko */
  --bad-soft: #fdf2f0;

  --shadow-sm: 0 1px 3px rgba(19, 31, 46, .06), 0 6px 18px rgba(19, 31, 46, .05);
  --shadow-md: 0 2px 8px rgba(19, 31, 46, .07), 0 18px 50px rgba(19, 31, 46, .10);
  --shadow-lg: 0 30px 80px rgba(19, 31, 46, .18);

  /* Glaskarte (Liquid-Look), überall gleich eingesetzt */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68));
  --glass-border: 1px solid rgba(255, 255, 255, .8);
  --glass-shadow:
    0 0 0 1px rgba(19, 31, 46, .045),
    0 2px 6px rgba(19, 31, 46, .04),
    0 18px 44px -10px rgba(19, 31, 46, .13),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  --glass-shadow-hover:
    0 0 0 1px rgba(29, 67, 104, .08),
    0 8px 18px rgba(19, 31, 46, .07),
    0 32px 66px -12px rgba(29, 67, 104, .28),
    inset 0 1px 0 rgba(255, 255, 255, .95);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;
  --maxw: 1160px;
  --pad-x: clamp(20px, 4vw, 40px);
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--navy-soft); color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.1rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.26rem; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sektions-Kopf ---------- */
.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--navy-700);
  margin: 0 0 .9em;
}
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: .72em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--surface); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: .5em 1.1em; font-size: .93rem; }
.btn-lg { min-height: 56px; padding: .85em 1.9em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-mini {
  min-height: 36px;
  padding: .35em .95em;
  font-size: .86rem;
  border-radius: var(--r-pill);
  background: var(--navy-soft);
  color: var(--navy-900);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}
.btn-mini:hover { background: var(--navy-300); }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35em; }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: .6em .9em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--navy-500);
  outline-offset: 0;
  border-color: var(--navy-500);
}
.hint { font-size: .88rem; color: var(--ink-mute); }

/* ---------- Glaskarte & Abzeichen ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .28em .75em;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  background: var(--navy-soft);
  color: var(--navy-900);
}
.badge-brass { background: var(--brass-soft); color: var(--brass-dark); }
.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .8em;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  background: var(--ok-soft);
  color: var(--ok);
}

/* ---------- Token-Chips (Prompt-Platzhalter) ---------- */
.tk {
  display: inline-block;
  padding: 0 .35em;
  border-radius: 5px;
  border: 1px dashed var(--line);
  background: var(--bg-2);
  font-size: .92em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tk-var { border-style: solid; }
.tk-var.filled {
  background: var(--navy-soft);
  border-color: var(--navy-500);
  color: var(--navy-900);
  font-weight: 500;
}
.tk-var.empty {
  background: var(--brass-soft);
  border-color: var(--brass);
  color: var(--brass-dark);
  cursor: pointer;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -80px);
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: .7em 1.3em;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: .97rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Topbar (geteilt von allen Kit-Seiten) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-badge svg { width: 21px; height: 21px; }
.topbar-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }

/* ---------- Liquid-Glows (Hintergrund, fest im Viewport) ---------- */
.has-glow::before, .has-glow::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.has-glow::before {
  width: 680px;
  height: 680px;
  top: -230px;
  right: -200px;
  background: radial-gradient(circle, rgba(53, 113, 159, .16), rgba(53, 113, 159, 0) 70%);
  filter: blur(40px);
  animation: glowFloat 16s ease-in-out infinite;
}
.has-glow::after {
  width: 580px;
  height: 580px;
  bottom: -230px;
  left: -190px;
  background: radial-gradient(circle, rgba(192, 138, 78, .15), rgba(192, 138, 78, 0) 70%);
  filter: blur(40px);
  animation: glowFloat 20s ease-in-out infinite reverse;
}
@keyframes glowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.1); }
}

/* ---------- Scroll-Reveal (dezent) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast { transition: none; }
  .has-glow::before, .has-glow::after { animation: none; }
}
