/*
 * HBC Digital Design System V1.0 · Design-Tokens als CSS Custom Properties
 * Quelle: hbc-tokens.json (W3C DTCG). Nicht von Hand abweichen.
 * Nutzung: <html data-theme="light|dark" data-brand="digital|software-factory|ai">
 */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Grundfarben */
  --hbc-dunkelblau: #282D37;
  --hbc-abendgrau: #232831;
  --hbc-beige: #EBE7D9;
  --hbc-soft-clay: #DCD3C4;
  --hbc-white: #FFFFFF;
  --hbc-black: #000000;

  /* Bereichsfarben */
  --hbc-rost: #B85633;           --hbc-rost-on-dark: #DC7E5B;   --hbc-rost-on-light: #9E4529;
  --hbc-gold: #D9A441;           --hbc-gold-on-dark: #D9A441;   --hbc-gold-on-light: #7D5A14;
  --hbc-petrol: #6E8894;         --hbc-petrol-on-dark: #8FA9B5; --hbc-petrol-on-light: #456270;

  /* Typografie */
  --hbc-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hbc-weight-regular: 400; --hbc-weight-medium: 500; --hbc-weight-semibold: 600; --hbc-weight-bold: 700; --hbc-weight-extrabold: 800;
  --hbc-text-display: clamp(2.75rem, 2rem + 3.6vw, 5rem);
  --hbc-text-h1: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --hbc-text-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --hbc-text-h3: 1.5rem;
  --hbc-text-h4: 1.25rem;
  --hbc-text-body-lg: 1.1875rem;
  --hbc-text-body: 1.0625rem;
  --hbc-text-small: 0.9375rem;
  --hbc-text-caption: 0.8125rem;
  --hbc-text-overline: 0.75rem;

  /* Abstände (4-px-Raster) */
  --hbc-space-1: 4px;  --hbc-space-2: 8px;  --hbc-space-3: 12px; --hbc-space-4: 16px; --hbc-space-5: 20px;
  --hbc-space-6: 24px; --hbc-space-8: 32px; --hbc-space-10: 40px; --hbc-space-12: 48px; --hbc-space-16: 64px;
  --hbc-space-20: 80px; --hbc-space-24: 96px; --hbc-space-32: 128px;

  /* Radien, Linien, Schatten */
  --hbc-radius-xs: 6px; --hbc-radius-sm: 10px; --hbc-radius-md: 14px; --hbc-radius-lg: 20px; --hbc-radius-xl: 28px; --hbc-radius-pill: 999px;
  --hbc-border-hairline: 1px; --hbc-border-strong: 2px; --hbc-focus-width: 2px; --hbc-focus-offset: 2px;
  --hbc-shadow-sm: 0 1px 2px rgba(35, 40, 49, 0.08);
  --hbc-shadow-md: 0 8px 24px rgba(35, 40, 49, 0.12);
  --hbc-shadow-lg: 0 24px 56px rgba(35, 40, 49, 0.18);

  /* Layout */
  --hbc-container: 1280px; --hbc-container-wide: 1440px; --hbc-measure: 68ch;
  --hbc-gutter: 16px; --hbc-header-height: 64px;

  /* Bewegung */
  --hbc-duration-fast: 120ms; --hbc-duration-base: 200ms; --hbc-duration-slow: 320ms;
  --hbc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Ebenen */
  --hbc-z-header: 100; --hbc-z-dropdown: 200; --hbc-z-overlay: 300; --hbc-z-dialog: 400; --hbc-z-toast: 500;

  /* Logo */
  --hbc-logo-clear-space: 0.5; --hbc-logo-min-vertical: 32px; --hbc-logo-min-compact: 16px; --hbc-logo-min-horizontal: 16px; --hbc-logo-header: 26px;
}
@media (min-width: 768px)  { :root { --hbc-gutter: 24px; } }
@media (min-width: 1024px) { :root { --hbc-gutter: 32px; --hbc-header-height: 80px; } }

/* ---------- Themen: semantische Tokens ---------- */
:root, [data-theme="light"] {
  --hbc-bg: var(--hbc-beige);
  --hbc-surface: var(--hbc-white);
  --hbc-surface-alt: var(--hbc-soft-clay);
  --hbc-text: var(--hbc-dunkelblau);
  --hbc-text-muted: rgba(40, 45, 55, 0.72);
  --hbc-border: rgba(40, 45, 55, 0.16);
  --hbc-border-strong: rgba(40, 45, 55, 0.32);
  --hbc-overlay: rgba(35, 40, 49, 0.56);
  --hbc-error: var(--hbc-rost-on-light);
  --hbc-warning: var(--hbc-gold-on-light);
  --hbc-success: var(--hbc-petrol-on-light);
  --hbc-info: var(--hbc-dunkelblau);
}
[data-theme="dark"] {
  --hbc-bg: var(--hbc-abendgrau);
  --hbc-surface: var(--hbc-dunkelblau);
  --hbc-surface-alt: rgba(235, 231, 217, 0.06);
  --hbc-text: var(--hbc-beige);
  --hbc-text-muted: rgba(235, 231, 217, 0.72);
  --hbc-border: rgba(235, 231, 217, 0.14);
  --hbc-border-strong: rgba(235, 231, 217, 0.28);
  --hbc-overlay: rgba(0, 0, 0, 0.56);
  --hbc-error: var(--hbc-rost-on-dark);
  --hbc-warning: var(--hbc-gold-on-dark);
  --hbc-success: var(--hbc-petrol-on-dark);
  --hbc-info: var(--hbc-beige);
}

/* ---------- Bereiche: Akzent pro Website ---------- */
/* --hbc-accent: Text, Linien, Fokus. --hbc-accent-fill/--hbc-on-accent: Buttonflächen (geprüft >= 4,5 : 1) */
:root, [data-brand="digital"] {
  --hbc-accent: var(--hbc-rost-on-light); --hbc-accent-fill: var(--hbc-rost); --hbc-on-accent: var(--hbc-white);
  --hbc-accent-fill-hover: var(--hbc-rost-on-light); --hbc-on-accent-hover: var(--hbc-white);
}
[data-brand="software-factory"] {
  --hbc-accent: var(--hbc-gold-on-light); --hbc-accent-fill: var(--hbc-gold); --hbc-on-accent: var(--hbc-dunkelblau);
  --hbc-accent-fill-hover: var(--hbc-dunkelblau); --hbc-on-accent-hover: var(--hbc-gold);
}
[data-brand="ai"] {
  --hbc-accent: var(--hbc-petrol-on-light); --hbc-accent-fill: var(--hbc-petrol-on-light); --hbc-on-accent: var(--hbc-white);
  --hbc-accent-fill-hover: var(--hbc-dunkelblau); --hbc-on-accent-hover: var(--hbc-white);
}
[data-theme="dark"][data-brand="digital"], [data-theme="dark"] [data-brand="digital"], [data-theme="dark"]:not([data-brand]) {
  --hbc-accent: var(--hbc-rost-on-dark); --hbc-accent-fill: var(--hbc-rost-on-dark); --hbc-on-accent: var(--hbc-dunkelblau); --hbc-accent-fill-hover: var(--hbc-beige); --hbc-on-accent-hover: var(--hbc-dunkelblau);
}
[data-theme="dark"][data-brand="software-factory"], [data-theme="dark"] [data-brand="software-factory"] {
  --hbc-accent: var(--hbc-gold-on-dark); --hbc-accent-fill: var(--hbc-gold); --hbc-on-accent: var(--hbc-dunkelblau); --hbc-accent-fill-hover: var(--hbc-beige); --hbc-on-accent-hover: var(--hbc-dunkelblau);
}
[data-theme="dark"][data-brand="ai"], [data-theme="dark"] [data-brand="ai"] {
  --hbc-accent: var(--hbc-petrol-on-dark); --hbc-accent-fill: var(--hbc-petrol-on-dark); --hbc-on-accent: var(--hbc-dunkelblau); --hbc-accent-fill-hover: var(--hbc-beige); --hbc-on-accent-hover: var(--hbc-dunkelblau);
}
