/* ============================================================================
 * Kobalt-Ueberlagerung fuer die Werkzeuge auf assets.danielbluemlein.de
 * ----------------------------------------------------------------------------
 * Seit 22.10.2026 (Daniel): der Werkzeugkasten traegt die CI der Hauptseite —
 * Kobalt statt Claude-Koralle, keine kursive Serifenschrift.
 *
 * Die Bausteine in apps/ bleiben, wie sie sind. Diese Datei haengt der Bau nur
 * in die Fassung auf assets.danielbluemlein.de ein, NACH dem eigenen <style> der
 * Seite, und stellt ihre Variablen (--bl-…) um. gate.css erbt sie. Fest verdrahtete Farbwerte (Logo-SVG, Berg-Grafik, Word-Vorlage) tauscht
 * der Bau aus (FARBTAUSCH in oeffentlich-bauen.sh) — ein Stil kommt an ein
 * presentation-Attribut im JavaScript-Textbaustein nicht heran.
 *
 * ⚠️ Die Variablen stehen mit !important: ein Baustein kann per Logo-Upload
 * eine eigene Akzentfarbe setzen (applyBrand, Inline-Stil an <html>). Ein Logo
 * ohne erkennbare Farbe fiel dort auf DEFAULT_RGB zurueck — die Koralle. Das
 * Personalisieren ist in der oeffentlichen Fassung deshalb ausgeblendet
 * (.brandbox), und ein alter Eintrag im Browser darf die Farben nicht kippen.
 *
 * Klassen dieser Schicht beginnen mit dbk- (Kopf, Fuss, Hand, Druck), damit sie
 * mit keinem Baustein kollidieren.
 * ========================================================================== */

:root{
  --bl-ink:#14181F !important;
  --bl-accent:#2D5BD7 !important;
  --bl-accent-2:#6B92F0 !important;
  --bl-accent-deep:#1E3F9E !important;
  --bl-paper:#F4F6FB !important;
  --bl-paper-pure:#FFFFFF !important;
  --bl-dark:#0E1730 !important;
  --bl-dark-2:#16243F !important;
  --bl-sub:#6B7280 !important;
  --bl-line:#DDE3EF !important;
  --bl-line-dark:#2C4570 !important;
  /* Keine kursive Serifenschrift: wo die Bausteine "serif" sagen, steht die Grundschrift. */
  --bl-font-serif:"Hanken Grotesk",-apple-system,system-ui,sans-serif !important;
  /* Keine Schreibmaschinenschrift (Daniel, 22.10.2026: „zu mechanisch“): Kicker, Ziffern
     und Knöpfe, die in den Bausteinen die Schreibmaschinenschrift tragen, stehen in der Grundschrift. */
  --bl-font-mono:"Hanken Grotesk",-apple-system,system-ui,sans-serif !important;
  --bl-shadow:0 24px 60px rgba(14,23,48,.10) !important;
  --bl-shadow-sm:0 12px 30px rgba(14,23,48,.08) !important;
}
::selection{background:#2D5BD7;color:#fff}

/* Grund wie auf danielbluemlein.de/wissen: helles Blaugrau mit weichem Kobaltschein. */
body{
  background:
    radial-gradient(58% 44% at 86% 2%, rgba(45,91,215,.11), transparent 62%),
    radial-gradient(46% 38% at 4% 40%, rgba(107,146,240,.10), transparent 62%),
    #F4F6FB !important;
  color:#14181F;
}

/* ── Kopfzeile wie auf der Hauptseite ─────────────────────────────────────── */
.dbk-kopf{position:relative;z-index:20;background:rgba(244,246,251,.86);
  backdrop-filter:saturate(150%) blur(14px);-webkit-backdrop-filter:saturate(150%) blur(14px);
  border-bottom:1px solid rgba(221,227,239,.9);font-family:"Hanken Grotesk",-apple-system,system-ui,sans-serif}
.dbk-reihe{max-width:1180px;margin:0 auto;padding:13px 6vw;display:flex;align-items:center;
  justify-content:space-between;gap:18px}
.dbk-marke{display:flex;align-items:center;gap:11px;flex-shrink:0;text-decoration:none;color:#14181F;
  transition:opacity .18s ease}
.dbk-marke:hover{opacity:.72}
.dbk-marke svg{width:31px;height:31px;flex:0 0 auto}
.dbk-wm{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:600;font-size:20px;
  letter-spacing:-.01em;white-space:nowrap;line-height:1.1;color:#14181F}
.dbk-wm span{color:#2D5BD7}
.dbk-wm sup{font-size:9px;font-weight:600;vertical-align:top;position:relative;top:.15em;margin-left:1px}
.dbk-zurueck{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;font-weight:600;
  color:#1E3F9E;text-decoration:none;border:1.5px solid #C8D8F7;border-radius:999px;padding:8px 16px;
  background:rgba(255,255,255,.6);white-space:nowrap;transition:border-color .18s,background .18s,transform .18s}
.dbk-zurueck:hover{border-color:#2D5BD7;background:#fff;transform:translateY(-1px)}
.dbk-zurueck:focus-visible,.dbk-marke:focus-visible{outline:2px solid #2D5BD7;outline-offset:3px;border-radius:999px}
@media(max-width:560px){
  .dbk-reihe{padding:10px 16px;gap:10px}
  .dbk-marke svg{width:27px;height:27px}
  .dbk-wm{font-size:16px;white-space:normal}
  .dbk-wm span{display:block}
  .dbk-zurueck{font-size:13px;padding:7px 12px}
}

/* Die eigene Kopf- und Fusszeile des Bausteins ersetzt die Kopfzeile oben bzw.
   die Fusszeile unten (mit Impressum). Das Personalisieren per Logo ist hier aus,
   siehe Kopf dieser Datei. */
.wrap > header.top,.wrap > .foot,.brandbox{display:none !important}
.wrap{padding-top:34px}
@media(max-width:600px){.wrap{padding-top:22px}}

/* ── Feinschliff an den Bausteinen ────────────────────────────────────────── */
.serif{font-style:normal !important}
.eyebrow{color:#1E3F9E}
.cta-box .eyebrow,.note-box .eyebrow{color:#9DBBFF !important}
.bar-fill.low{background:linear-gradient(90deg,#6B92F0,#C8D8F7) !important}
.cta-box,.note-box{background:linear-gradient(150deg,#0B1430 0%,#13244F 100%) !important}
.cta-box p,.note-box p{color:#B9C6E2}

/* ── Was du am Ende in der Hand hast ──────────────────────────────────────── */
.dbk-hand{margin:4px 0 26px;padding:18px 20px 16px;border-radius:16px;
  background:#F4F7FE;border:1px solid #DCE6FA;max-width:62ch}
.dbk-hand-titel{display:block;font-family:"Hanken Grotesk",-apple-system,system-ui,sans-serif;font-size:12.5px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#1E3F9E;margin-bottom:11px}
.dbk-hand ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.dbk-hand li{position:relative;padding-left:28px;font-size:15.5px;line-height:1.45;color:#3A4354}
.dbk-hand li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;
  background:#2D5BD7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat}
.dbk-hand p{margin:12px 0 0;font-size:14px;line-height:1.5;color:#5B6475}

/* ── Ergebnis drucken ─────────────────────────────────────────────────────── */
.dbk-druck{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:28px 0 0}
.dbk-druck small{font-size:13.5px;color:#6B7280;max-width:46ch;line-height:1.45}

/* ── Fusszeile ────────────────────────────────────────────────────────────── */
.dbk-fuss{max-width:880px;margin:0 auto;padding:6px 22px 44px;text-align:center;
  font-family:"Hanken Grotesk",-apple-system,system-ui,sans-serif;font-size:13px;line-height:1.7;color:#6B7280}
.dbk-fuss a{color:#1E3F9E;text-decoration:none;white-space:nowrap}
.dbk-fuss a:hover{text-decoration:underline}
.dbk-fuss b{font-weight:600;color:#3A4354}

/* ── Hinweis zu Statistik-Diensten ────────────────────────────────────────────
   Das Markup und sein Skript kommen unveraendert aus newsletter/ (Messung bleibt
   bytegleich). Hier nur die Farbe: vorher Gold auf Braun, jetzt wie der Hinweis
   auf danielbluemlein.de. Die hoehere Spezifitaet (html body …) schlaegt die
   Inline-Regel aus tracking.html, ohne sie anzufassen. */
html body #dbw-hinweis{background:#0E1730;color:#B9C6E2;border:1px solid rgba(157,187,255,.24);
  border-top:2px solid #2D5BD7;box-shadow:0 18px 44px rgba(6,12,30,.34)}
html body #dbw-hinweis a{color:#9DBBFF}
html body #dbw-hinweis button{font-family:"Hanken Grotesk",system-ui,sans-serif;font-size:13px;font-weight:600;
  background:#2D5BD7;color:#fff;border:1px solid #2D5BD7}
html body #dbw-hinweis button:hover{background:#1E3F9E}

/* ── Druck ────────────────────────────────────────────────────────────────── */
@media print{
  .dbk-kopf,.dbk-fuss,.dbk-hand,.dbk-druck,#dbw-hinweis,.dbw-vorab,.dbw-oton,#dbw-start,
  #dbw-gate-huelle,.dbw-nl-hinweis{display:none !important}
  html,body{background:#fff !important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .wrap{padding-top:0}
  /* Reifegrad: das Ergebnis ist das Dokument. Angebot, Formular und Neustart
     gehoeren nicht auf das Blatt, das an die Geschaeftsfuehrung geht. */
  body[data-asset="ki-reifegrad-check"] #result{box-shadow:none !important;border:none !important;padding:0 !important}
  body[data-asset="ki-reifegrad-check"] #result .cta-box,
  body[data-asset="ki-reifegrad-check"] #result .restart{display:none !important}
  body[data-asset="ki-reifegrad-check"] #result .reco{break-inside:avoid}
  body[data-asset="ki-reifegrad-check"] #result::after{content:"Erstellt mit dem KI-Reifegrad-Check · blümlein KI-Sherpa® · assets.danielbluemlein.de";
    display:block;margin-top:26px;padding-top:12px;border-top:1px solid #DDE3EF;font-size:11px;color:#6B7280}
  @page{margin:16mm 15mm}
}
