/* ===========================================================================
   KI-Business-Agenten · Video-Briefings – Design-System
   Optik bewusst an die Hauptseite ki-business-agenten.de angeglichen:
   Weiß + Near-Black + kräftiges Brand-Blau, Instrument Sans, runde Karten.
   =========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --ink: #1f1f1f;
  --ink-soft: #3a3a3f;
  --muted: #6b6b73;
  --line: #e7e7ea;
  --accent: #2929fb;          /* Brand-Blau */
  --accent-ink: #1c1cd6;      /* dunkler für Hover/Links */
  --accent-soft: #ecedff;     /* heller Blau-Tint */
  --dark: #1f1f1f;            /* dunkle Sektionen + Footer */
  --dark-ink: #e9e9ec;
  --dark-muted: #9a9aa2;
  --good: #1f9d57;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 34px rgba(31,31,31,.07);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px rgba(31,31,31,.05);
  --radius: 16px;
  --radius-sm: 9px;
  --maxw: 900px;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); line-height: 1.62; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }

/* ---------- Inline-Highlight (blauer Block wie auf der Hauptseite) ---------- */
.hl { background: var(--accent); color: #fff; padding: .04em .32em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark { background: var(--accent); color: #fff; padding: .04em .32em; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* ===========================================================================
   HEADER / NAV
   =========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand .tag { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent-ink); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav .sep { width: 1px; height: 22px; background: var(--line); }

/* ===========================================================================
   HOMEPAGE
   =========================================================================== */
.hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 13px; border-radius: 999px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.06; margin: 18px 0 14px; letter-spacing: -.022em; font-weight: 700; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 60ch; }

.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 14px 0 8px; }
.vcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vthumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #2929fb 0%, #5a3df0 100%); position: relative; display: grid; place-items: center; }
.vthumb .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.vthumb .play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--accent); }
.vthumb .soon { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: rgba(0,0,0,.34); padding: 5px 10px; border-radius: 999px; }
.vbody { padding: 20px 22px 22px; }
.vbody .vtag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.vbody h3 { margin: 7px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.vbody p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.vbody .more { font-size: 14px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }

/* ===========================================================================
   BRIEFING-SEITE
   =========================================================================== */
.brief { padding-top: 40px; padding-bottom: 90px; }
.crumb { font-size: 14px; color: var(--muted); margin: 22px 0 26px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); }

.brief-head h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -.02em; font-weight: 700; }
.brief-head .sub { font-size: 18px; color: var(--muted); margin: 0; max-width: 64ch; }
.meta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.meta .chip { font-size: 13px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.meta .chip b { color: var(--ink); font-weight: 600; }
.disclosure { margin-top: 18px; font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; padding: 9px 14px; display: inline-block; }

/* Video-Einbettung (später) */
.embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 30px 0; border: 1px solid var(--line); box-shadow: var(--shadow); }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed.placeholder { display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-size: 14px; text-align: center; }

/* Kernbotschaft */
.key { margin: 36px 0; padding: 28px 30px; background: var(--dark); color: #faf8f5; border-radius: var(--radius); box-shadow: var(--shadow); }
.key .label { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #8f8fff; font-weight: 700; }
.key p { font-size: 21px; line-height: 1.42; margin: 10px 0 0; font-weight: 500; }
.key.accent { background: var(--accent); }
.key.accent .label { color: #fff; opacity: .8; }

/* Sektionen */
h2.s { font-size: 24px; margin: 50px 0 16px; letter-spacing: -.012em; display: flex; align-items: center; gap: 12px; }
h2.s .n { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; }
p.lead { font-size: 17px; }

ul.bullets { padding-left: 0; list-style: none; margin: 14px 0; }
ul.bullets li { position: relative; padding-left: 26px; margin: 10px 0; }
ul.bullets li::before { content: ""; position: absolute; left: 5px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
strong { font-weight: 650; }
code { font-family: var(--mono); font-size: .88em; background: #eef0f4; padding: 2px 6px; border-radius: 6px; color: var(--ink); }

/* Compare (Vorher/Nachher) */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin: 22px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare .col { padding: 24px; }
.compare .col h3 { margin: 12px 0 12px; font-size: 16px; }
.compare .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.compare .left .tag { color: var(--muted); background: #eef0f4; }
.compare .right { background: var(--accent-soft); }
.compare .right .tag { color: var(--accent-ink); background: #dadbff; }
.compare .step { font-size: 14.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.compare .step:last-of-type { border-bottom: 0; }
.compare .divider { display: grid; place-items: center; background: var(--bg-soft); width: 48px; color: var(--muted); font-weight: 700; }
.compare .note { margin-top: 14px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Nummerierte Schritte */
ol.steps { counter-reset: s; list-style: none; padding-left: 0; margin: 16px 0; }
ol.steps li { position: relative; padding: 4px 0 4px 44px; margin: 11px 0; min-height: 30px; }
ol.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 9px; background: var(--dark); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* Beispiel-Karten */
.ex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ex .card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px 19px; box-shadow: var(--shadow-sm); }
.ex .q { font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.ex .q.no { color: var(--muted); }
.ex .a { font-size: 14px; color: var(--ink-soft); margin-top: 5px; }

/* Callout / Hinweis */
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin: 26px 0; box-shadow: var(--shadow-sm); }
.callout h4 { margin: 0 0 9px; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

/* Scope / Grenzen */
.scope { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 26px 0; }
.scope h4 { margin: 0 0 10px; font-size: 15px; }
.scope ul { padding-left: 0; list-style: none; margin: 0; }
.scope li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 14.5px; color: var(--ink-soft); }
.scope li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Code-/Befehlsblock mit Kopieren-Button ---------- */
.codeblock { position: relative; background: var(--dark); color: #f2ede6; border-radius: 12px; padding: 16px 18px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.codeblock .cb-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dark-muted); font-weight: 700; margin-bottom: 9px; padding-right: 104px; }
.codeblock pre { font-family: var(--mono); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin: 0; color: #f4efe8; }
.cb-copy { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); color: #f2ede6; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .15s ease; }
.cb-copy:hover { background: rgba(255,255,255,.2); }
.cb-copy.copied { background: var(--good); border-color: var(--good); color: #fff; }
.cb-copy svg { width: 14px; height: 14px; }

/* ---------- Switch / Toggle ---------- */
.switch { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 4px; font-size: 14.5px; color: var(--muted); }
.switch .opt { font-weight: 600; color: var(--muted); transition: color .15s ease; }
.switch .opt.on { color: var(--ink); }
.toggle { position: relative; width: 50px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; padding: 0; flex: none; transition: background .18s ease; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.toggle[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); }

/* Preis-Tabelle */
.ptable { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14.5px; }
.ptable th, .ptable td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.ptable thead th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td b { color: var(--ink); }
.ptable .muted { color: var(--muted); }

/* ===========================================================================
   FOOTER (dunkel, wie Hauptseite)
   =========================================================================== */
.site-footer { background: var(--dark); color: var(--dark-ink); margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 54px 0 30px; }
.site-footer h4 { margin: 0 0 16px; font-size: 16px; color: #fff; }
.site-footer .links { display: grid; gap: 9px; }
.site-footer a { color: var(--dark-ink); text-decoration: none; font-size: 14.5px; width: fit-content; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--accent); }
.site-footer .muted { color: var(--dark-muted); font-size: 14px; }
.site-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 30px; font-size: 12.5px; color: var(--dark-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .vgrid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .divider { width: auto; height: 40px; }
  .ex { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .nav .hide-sm { display: none; }
}
