/* =====================================================================
   ProMeti Facility Services — base.css
   Design tokens, reset, typography, base elements.
   Reihenfolge der Stylesheets: base → layout → components → pages
   ===================================================================== */

:root {
  /* --- Farben: Dunkel / Premium --- */
  --ink:           #0b0b0c;   /* primärer dunkler Hintergrund */
  --ink-2:         #101115;   /* leicht angehobenes Dunkel */
  --anthracite:    #16171b;   /* Anthrazit-Fläche */
  --anthracite-2:  #1e1f25;   /* Karten-/Panel-Fläche auf Dunkel */
  --line-dark:     rgba(255, 255, 255, 0.10); /* Hairline auf Dunkel */
  --line-dark-2:   rgba(255, 255, 255, 0.16);

  /* --- Farben: Hell / Warm --- */
  --paper:         #f6f5f2;   /* warmes Off-White */
  --paper-2:       #ecebe4;   /* warme helle Fläche */
  --line-light:    rgba(11, 11, 12, 0.12);

  /* --- Gold (gedeckt / antik) --- */
  --gold:          #c6a256;
  --gold-soft:     #ddc389;   /* Hover / Verlauf oben */
  --gold-deep:     #9a7b36;   /* Verlauf unten / Rahmen */
  --gold-on-light: #806326;   /* gold-getöntes TEXT-Niveau auf hellem Grund (AA) */

  /* --- Text --- */
  --text-on-dark:  #ecebe6;
  --muted-on-dark: #a6a7ae;
  --text-on-light: #16171a;
  --muted-on-light:#585a61;

  /* --- Typografie --- */
  --font-display: "Archivo", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --fs-display: clamp(2.75rem, 1.65rem + 4.9vw, 5.5rem);
  --fs-h1:      clamp(2.2rem, 1.55rem + 2.9vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 1.3rem + 1.9vw, 2.7rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-lead:    clamp(1.1rem, 1.02rem + 0.4vw, 1.35rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-small:   0.9375rem;   /* 15px */
  --fs-eyebrow: 0.8125rem;   /* 13px */

  --lh-tight:  1.05;
  --lh-snug:   1.18;
  --lh-body:   1.65;

  /* --- Abstände (8pt-Raster) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4.5rem, 8vw, 9rem);

  /* --- Layout --- */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* --- Form / Radius / Schatten --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.06), 0 2px 8px rgba(11, 11, 12, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(11, 11, 12, 0.25);
  --shadow-gold: 0 18px 40px -20px rgba(154, 123, 54, 0.55);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.22s;
  --dur: 0.45s;
  --dur-slow: 0.7s;

  /* --- z-index --- */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ---------------------------------------------------------------------
   Reset (modern)
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-dark);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  min-height: 100dvh;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:where(p, li) { max-width: 68ch; }

/* ---------------------------------------------------------------------
   Fokus & Selektion (Barrierefreiheit)
   --------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Skip-Link
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: var(--z-modal);
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------
   Globale Typo-Helfer
   --------------------------------------------------------------------- */
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.03em; font-weight: 800; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted-on-dark); }

.num {
  font-family: var(--font-display);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------------------------------------------------------------------
   Reduced Motion: alle nicht-essentiellen Animationen abschalten
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
