/* ==========================================================================
   Design-Tokens – Sachverständigenbüro Piffrement
   Alle Theme-Farben werden ausschließlich hier gepflegt.
   Markenfarbe: #ff6600 (Logofarbe) – nicht verändern.
   ========================================================================== */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Latin Extended (Polnisch, Türkisch) */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Kyrillisch (Russisch) */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Vietnamesisch */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-vietnamese-400-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-vietnamese-500-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-vietnamese-600-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-vietnamese-700-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Arabisch (auch Persisch) */
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); }

:root {
  /* Marke */
  --brand: #ff6600;              /* Hauptfarbe – Logo, Buttons, Flächen, Icons */
  --brand-hover: #e65c00;        /* Hover auf hellem Grund */
  --on-brand: #17191c;           /* Schrift auf Orange: 7,2:1 (WCAG AA/AAA) */
  --brand-soft: rgba(255, 102, 0, .10);
  --brand-line: rgba(255, 102, 0, .35);

  /* Neutrale Basis */
  --anthracite: #202124;
  --anthracite-deep: #17191c;
  --white: #ffffff;
  --grey-50: #f5f5f5;

  /* Typografie */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Noto Sans Arabic", "IBM Plex Sans", Tahoma, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  --fs-h3: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  --lh-tight: 1.12;
  --lh-base: 1.65;

  /* Abstände */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --section-y: clamp(3.25rem, 2.5rem + 3.3vw, 5.75rem);
  --gutter: clamp(1rem, .5rem + 2vw, 2rem);
  --container: 1200px;

  /* Formen */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;

  --header-h: 76px;
  --header-h-compact: 60px;
}

/* ---------- Light Mode (Standard) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;            /* warmes Hellgrau */
  --surface: #ffffff;
  --surface-2: #f7f7f6;
  --surface-raised: #ffffff;
  --text: #17191c;
  --text-muted: #4b4f56;        /* 8,3:1 auf Weiß */
  --text-subtle: #61666e;       /* 5,8:1 auf Weiß */
  --line: #e5e5e3;
  --line-strong: #d3d3d0;
  --link: #b84a00;              /* Orange für kleinen Text: 5,0:1 auf Weiß */
  --link-hover: #8f3900;
  --shadow-sm: 0 1px 2px rgba(23, 25, 28, .06), 0 2px 8px rgba(23, 25, 28, .05);
  --shadow: 0 2px 6px rgba(23, 25, 28, .05), 0 12px 32px rgba(23, 25, 28, .08);
  --shadow-lg: 0 6px 16px rgba(23, 25, 28, .07), 0 28px 64px rgba(23, 25, 28, .12);
  --header-bg: rgba(255, 255, 255, .86);
  --hero-overlay: linear-gradient(180deg, rgba(23,25,28,0) 40%, rgba(23,25,28,.55) 100%);
  --dark-band: #17191c;          /* Abschluss-CTA bleibt in beiden Modi dunkel */
  --dark-band-2: #202124;
  --focus: #17191c;
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px #ff6600;
  --map-land: #ecebe8;
  --map-berlin: #ffd3b3;
  --scene-bg: #e7e6e2;
  /* Leistungskarten */
  --card-title: #191919;
  --card-text: #4b5563;     /* 7,6:1 auf Weiß */
  --card-label: #606670;    /* 5,8:1 auf Weiß */
  --card-item: #262626;
  --logo-light: block;
  --logo-dark: none;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191c;
  --bg-alt: #1c1e22;
  --surface: #202124;
  --surface-2: #26282c;
  --surface-raised: #2a2c30;
  --text: #f1f1f1;
  --text-muted: #c4c6ca;        /* 10:1 auf #17191c */
  --text-subtle: #9fa3a9;       /* 6,6:1 */
  --line: #33363b;
  --line-strong: #44474d;
  --link: #ff8533;              /* 6,6:1 auf #17191c */
  --link-hover: #ffa366;
  --brand-hover: #ff7a1f;
  --brand-soft: rgba(255, 102, 0, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, .4), 0 28px 64px rgba(0, 0, 0, .5);
  --header-bg: rgba(23, 25, 28, .86);
  --dark-band: #0f1012;
  --dark-band-2: #1a1c1f;
  --focus: #ffffff;
  --focus-ring: 0 0 0 3px #17191c, 0 0 0 6px #ff6600;
  --map-land: #26282c;
  --map-berlin: #5a3317;
  --scene-bg: #1e2024;
  /* Leistungskarten */
  --card-title: #f5f5f5;
  --card-text: #d1d5db;     /* 11:1 auf #202124 */
  --card-label: #b0b4bc;    /* 7,8:1 auf #202124 */
  --card-item: #e5e7eb;
  --logo-light: none;
  --logo-dark: block;
}
