/* Design-Tokens kirrovo, 1:1 kopiert aus kirrovo/General/kirrovo-design/tokens/
   (colors.css, typography.css, spacing.css, radii.css, shadows.css), Stand 14.10.2026.
   fonts.css bewusst nicht übernommen: Space Grotesk wird selbst gehostet (termin.css). */

/* tokens/colors.css */
:root {
  /* Basisfarben */
  --color-ink: #14181F;
  --color-ink-80: #383C43;
  --color-ink-60: #6B685F;
  --color-ink-45: #8A877F;
  --color-blue: #2E6BFF;
  --color-blue-hover: #1B4FCC;
  --color-blue-on-dark: #4D82FF;
  --color-blue-tint: #E7EEFF;
  --color-paper: #F5F4F0;
  --color-canvas: #E9E7E1;
  --color-white: #FFFFFF;
  --color-hairline: #DDDBD4;
  --color-hairline-strong: #C9C6BD;
  --color-success: #1F8A5B;
  --color-warning: #D9862E;
  --color-danger: #D64545;

  /* Semantische Aliase: Text */
  --text-strong: var(--color-ink);
  --text-body: var(--color-ink-80);
  --text-muted: var(--color-ink-60);
  --text-subtle: var(--color-ink-45);
  --text-on-dark: var(--color-white);
  --text-muted-on-dark: var(--color-ink-45);
  --text-on-accent: var(--color-white);

  /* Semantische Aliase: Akzent (nur Blau, gezielt fuer CTAs und aktive Zustaende) */
  --accent: var(--color-blue);
  --accent-hover: var(--color-blue-hover);
  --accent-on-dark: var(--color-blue-on-dark);
  --accent-tint: var(--color-blue-tint);

  /* Semantische Aliase: Flaechen */
  --surface-page: var(--color-canvas);
  --surface-card: var(--color-paper);
  --surface-raised: var(--color-white);
  --surface-dark: var(--color-ink);

  /* Semantische Aliase: Linien und Fokus */
  --border: var(--color-hairline);
  --border-strong: var(--color-hairline-strong);
  --focus-ring: var(--color-blue);
}

/* tokens/typography.css */
:root {
  /* Schriftfamilie: Space Grotesk durchgaengig */
  --font-family-base: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Gewichte */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Groessen */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.375rem;
  --font-size-xl: 1.75rem;
  --font-size-2xl: 2.25rem;
  --font-size-3xl: 3rem;
  --font-size-display: 3.75rem;

  /* Laufweite: Display eng, Headings leicht eng */
  --tracking-display: -0.04em;
  --tracking-heading: -0.02em;
  --tracking-normal: 0;

  /* Zeilenhoehe: Body 1.5, Headlines 0.9 bis 1.1 */
  --leading-display: 0.95;
  --leading-heading: 1.1;
  --leading-body: 1.5;
}

/* tokens/spacing.css */
:root {
  /* 4px-Grid: Suffix = Vielfaches von 4px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max: 1160px;
}

/* tokens/radii.css */
:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 999px;
}

/* tokens/shadows.css */
:root {
  /* Weiche, warm getoente Schatten, sparsam einsetzen */
  --shadow-sm: 0 1px 2px rgba(60, 56, 48, 0.06);
  --shadow-md: 0 2px 8px rgba(60, 56, 48, 0.07), 0 8px 24px rgba(60, 56, 48, 0.06);
  --shadow-lg: 0 4px 12px rgba(60, 56, 48, 0.08), 0 16px 48px rgba(60, 56, 48, 0.1);

  /* Blauer Akzent-Schatten: nur unter primaeren CTAs */
  --shadow-accent: 0 8px 20px rgba(46, 107, 255, 0.28);

  /* Fokusring fuer Inputs und interaktive Elemente */
  --shadow-focus: 0 0 0 3px rgba(46, 107, 255, 0.22);
}

/* Website-Ebene: Werte live von kirrovo.de (14.10.2026, berechnete Styles per Playwright).
   Wo die Website vom Designsystem abweicht, gewinnt die Website. Quellen und Abweichungen:
   docs/analyse/2026-10-14-kirrovo-de-design.md */
:root {
  /* Kuehle Website-Toene (index-base.css :root, consent.css #cta) */
  --web-muted: #5D6470;
  --web-ink-2: #383C43;
  --web-hair: #E6E9EF;
  --web-hair-strong: #D3D8E2;
  --web-hair-divider: #E3E7EE;
  --web-paper-2: #F2F5FA;
  --web-blue-deep: #1F56E6;
  --web-blue-ink: #2456D6;
  --web-blue-end: #245BDC;
  --web-blue-wash: rgba(46, 107, 255, 0.10);
  --web-blue-line: rgba(46, 107, 255, 0.5);

  /* Semantische Aliase auf Website-Werte umgestellt */
  --text-muted: var(--web-muted);
  --surface-page: var(--color-white);
  --surface-card: var(--web-paper-2);
  --border: var(--web-hair);
  --border-strong: var(--web-hair-strong);
  --border-divider: var(--web-hair-divider);
  --accent-tint: var(--web-blue-wash);
  --kicker: var(--web-blue-ink);

  /* Typo: Website-Ueberschriften 800, Laufweite -0.05em (.sec-title), Kicker 0.14em */
  --font-weight-heavy: 800;
  --tracking-title: -0.05em;
  --tracking-kicker: 0.14em;
  --font-size-kicker: 0.7rem;
  --font-size-nav: 0.8rem;
  --font-size-button: 1rem;
  --leading-sub: 1.6;
  --leading-title: 1;

  /* Header (index-base.css .site-header, header-surface.css) */
  --header-height: 3.7rem;
  --header-height-mobil: 3.5rem;
  --header-logo-width: 7.5rem;
  --header-logo-width-mobil: 6.9rem;

  /* Radien: Karte 20px (#cta .cta-card), Primaerknopf 20px (Hero-Liquid-Button), Felder 12px (.kr-termin-go) */
  --radius-card: var(--radius-lg);
  --radius-button: 20px;
  --radius-field: var(--radius-md);

  /* Schatten */
  --shadow-card: 0 16px 40px rgba(20, 24, 31, 0.08);
  --shadow-button: 0 7px 20px rgba(46, 107, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(20, 59, 166, 0.3);
  --shadow-button-hover: 0 9px 24px rgba(46, 107, 255, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-button-flach: 0 4px 12px rgba(46, 107, 255, 0.15);
  --shadow-button-leise: 0 5px 16px rgba(37, 59, 101, 0.07), inset 0 1px 0 #FFFFFF, inset 0 0 0 1px var(--web-hair-strong);
  --shadow-ring: inset 0 0 0 1px var(--web-hair-strong);
  --shadow-ring-accent: inset 0 0 0 1px var(--color-blue);
  --shadow-ring-accent-stark: inset 0 0 0 2px var(--color-blue);
  --focus-outline: 3px solid var(--color-blue);

  /* Flaechen der Knoepfe (Hero-Liquid-Button als reines CSS, ohne Shader) */
  --button-primary-bg: linear-gradient(170deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.04) 36%, rgba(255, 255, 255, 0) 48%, rgba(19, 60, 173, 0.19) 100%), linear-gradient(180deg, var(--color-blue), var(--web-blue-deep));
  --button-primary-bg-hover: linear-gradient(165deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.03) 48%, rgba(20, 59, 166, 0.19)), linear-gradient(180deg, var(--color-blue), var(--color-blue-hover));
  --button-primary-bg-flach: linear-gradient(180deg, var(--color-blue), var(--web-blue-end));
  --button-secondary-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.66) 48%, rgba(231, 238, 255, 0.72) 100%), var(--color-white);
  --button-secondary-bg-hover: linear-gradient(160deg, #FFFFFF, rgba(255, 255, 255, 0.75) 48%, rgba(220, 231, 255, 0.8)), var(--color-white);
}
