/* heureki-kmu-ki – globale Styles
   ------------------------------------
   Mappme-ähnlich: hell, weiß, viel Weißraum, ein Akzent.
   Tailwind wird per CDN geladen, hier nur Custom-Layer. */

:root {
  --hk-bg: #ffffff;
  --hk-fg: #0f172a;          /* slate-900 */
  --hk-muted: #64748b;       /* slate-500 */
  --hk-soft: #f8fafc;        /* slate-50 */
  --hk-line: #e5e7eb;        /* gray-200 */
  --hk-accent: #2563eb;      /* blue-600 */
  --hk-accent-soft: #eff6ff; /* blue-50 */
  --hk-ok: #16a34a;          /* green-600 */
  --hk-warn: #f59e0b;        /* amber-500 */
  --hk-bad: #dc2626;         /* red-600 */
}

html, body {
  background: var(--hk-bg);
  color: var(--hk-fg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Container mit ruhigem Maximal-Rhythmus */
.hk-container { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Subtile Section-Trennung */
.hk-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .hk-section { padding-top: 6rem; padding-bottom: 6rem; } }

/* Eyebrow-Text (über Überschriften) */
.hk-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hk-accent);
  background: var(--hk-accent-soft);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}

/* Headlines */
.hk-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.hk-h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.hk-h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
.hk-lede { font-size: 1.1rem; line-height: 1.55; color: var(--hk-muted); }

/* Karten */
.hk-card {
  background: #fff; border: 1px solid var(--hk-line); border-radius: 16px;
  padding: 1.5rem; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.hk-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 30px -20px rgba(15,23,42,0.25); transform: translateY(-2px); }

.hk-workflow-img {
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hk-workflow-img {
    animation: hk-soft-float 7s ease-in-out infinite;
  }

  .hk-node--ok {
    animation: hk-soft-glow 4.8s ease-in-out infinite;
  }
}

@keyframes hk-soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes hk-soft-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
  50% { box-shadow: 0 12px 28px -24px rgba(22, 163, 74, 0.65); }
}

/* Buttons */
.hk-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hk-btn-primary { background: var(--hk-accent); color: #fff; }
.hk-btn-primary:hover { background: #1d4ed8; }
.hk-btn-ghost { background: #fff; color: var(--hk-fg); border: 1px solid var(--hk-line); }
.hk-btn-ghost:hover { border-color: #94a3b8; }

/* Code- / JSON-Block */
.hk-pre {
  background: #0f172a; color: #e2e8f0; border-radius: 12px;
  padding: 1rem 1.15rem; font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.5; overflow-x: auto;
}

/* Workflow-Node */
.hk-node {
  border: 1px solid var(--hk-line); background: #fff; border-radius: 12px;
  padding: 0.75rem 0.9rem; font-size: 0.85rem; line-height: 1.3;
}
.hk-node--accent { border-color: var(--hk-accent); background: var(--hk-accent-soft); color: var(--hk-accent); font-weight: 600; }
.hk-node--ok { border-color: #86efac; background: #f0fdf4; color: #166534; font-weight: 600; }
.hk-node--warn { border-color: #fde68a; background: #fffbeb; color: #92400e; font-weight: 600; }
.hk-node--bad { border-color: #fecaca; background: #fef2f2; color: #991b1b; font-weight: 600; }

/* Dünner Trenner mit optionaler Beschriftung */
.hk-divider { height: 1px; background: var(--hk-line); border: 0; margin: 3rem 0; }

/* Sticky-CTA-Banner auf Service-Detailseiten */
.hk-sticky-cta {
  position: sticky; bottom: 1rem; z-index: 30;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--hk-line); border-radius: 14px; padding: 0.9rem 1.1rem;
  box-shadow: 0 12px 30px -20px rgba(15,23,42,0.25);
}

/* Tab-Indikator (für die Demo-Seite) */
.hk-tab[aria-selected="true"] { background: var(--hk-accent); color: #fff; }
.hk-tab { background: #fff; color: var(--hk-fg); border: 1px solid var(--hk-line); }

/* Drag-Drop-Zone */
.hk-drop {
  border: 2px dashed #cbd5e1; border-radius: 16px; padding: 2.5rem 1.5rem; text-align: center;
  background: #f8fafc; transition: background-color .15s, border-color .15s;
}
.hk-drop.is-drag { background: var(--hk-accent-soft); border-color: var(--hk-accent); }
