/*
 * 3claws — benannte Dark-Farbpaletten / v16.
 *
 * DIE FARBE WÄHLEN: assets/js/config.js → theme: "blue".
 * Möglich: blue, red, yellow, grey, purple, green, teal, orange.
 *
 * Alle Farbwerte bleiben hier in CSS. Das kleine color-theme.js setzt lediglich
 * data-theme am html-Element. Ohne JavaScript / bei unbekanntem Namen: Blau.
 * v16: Headerpalette wieder aus v11. Der Hellmodus steht in light.css.
 *
 * Eigene Abweichungen in custom-colors.css eintragen (wird danach geladen).
 * Die alten Namen --blue und --claw-blue sind kompatible Komponentennamen:
 * sie bedeuten jetzt immer die Akzentfarbe der gewählten Palette.
 */

/* STANDARD: BLUE. Auch der Fallback ohne JavaScript. */
:root {

  color-scheme: dark;
  --incident-background: #a52537;
  --incident-border: #ff9aab;
  --incident-text: #fff;
  --service-tag-background: #245690;
  --service-tag-border: #96bef0;

  /* 1. Markenfarben. Kleine Texte bleiben heller als die Buttonflächen. */
  --color-primary: #5b8fc7;
  --color-action: #194b80;
  --color-action-hover: #245e97;
  --color-heading-accent: #427dbd;
  --color-green: #769c96;
  --color-coral: #ae8980;

  /* 2. Neutralere Texte und zurückhaltende Trennlinien. */
  --color-background: #090f18;
  --color-surface: #121e2c;
  --color-text: #eef2f6;
  --color-muted: #a1afc0;
  --color-border: #2b3b4c;
  --color-footer: #070c13;
  --color-on-dark: #ffffff;
  --color-on-action: #ffffff; /* Kontrastschrift auf gefüllten Aktionen. */
  --color-shadow: #000000;

  /* Eigenständige Navigation: dunkle, dezent getönte Fläche mit feiner Unterkante.
   * Deckend statt transparent; der Inhalt scheint auch beim Scrollen nicht durch. */
  --color-header: #182c40;
  --color-header-border: #45637e;
  --color-header-text: #f0f5fa;
  --color-header-muted: #b8c9d9;
  --color-header-active: #a6c9ee;
  --color-header-hover: #233e57;
  --color-header-menu: #15283a;
  /* V11-Schatten; Header bleibt deckend. */
  --color-header-shadow: color-mix(in srgb, var(--color-shadow) 48%, transparent);
  --color-header-shadow-soft: color-mix(in srgb, var(--color-shadow) 18%, transparent);

  /* 3. Standardpalette Blau: zusammengehörige Abschnittsflächen. */
  --section-hero: #090f18;       /* tiefes Navy */
  --section-services: #101923;   /* kühles Graphit */
  --section-approach: #0e2135;   /* dunkles Tintenblau */
  --section-team: #0d1b22;       /* sehr zurückhaltendes Blau-Petrol */
  --section-offers: #0e1a29;     /* dunkles Stahlblau */
  --section-contact: #0b1521;    /* ruhiges Nachtblau */

  /* 4. Metall: klare, filterfreie Vektorflächen. */
  --color-metal-light: #c9d5e0;
  --color-metal-dark: #2d4055;
  --metal-1: var(--color-metal-light);
  --metal-2: #a7b8c9;
  --metal-3: #8b9fb2;
  --metal-4: #50667d;
  --metal-5: #6a8097;
  --metal-6: var(--color-metal-dark);

  /* 5. Aktive Kralle: dunkleres Blau, schmale Lichtkante statt Glow. */
  --claw-highlight: #b4cde3;
  --claw-blue-light: #5486b7;
  --claw-blue: #2c6096;
  --claw-blue-deep: var(--color-action);
  --claw-blue-dark: #102d4c;
  --claw-rim: #e2edf5;
  --claw-rim-mid: #738fa9;
  --claw-rim-dark: #304b65;
  --claw-edge-light: #496582;
  --claw-edge-dark: #0b1624;

  /* 6. Formularbeispiel: Feld-, Fokus- und Statusfarben. */
  --color-field: var(--color-surface);
  --color-field-border: #43596f;
  --color-field-focus: var(--color-header-active);
  --color-placeholder: #90a0b1;
  --color-error: #f2a899;
  --color-success: #a4c8bc;

  /* Kurzformen für die vorhandenen Komponenten. */
  --blue: var(--color-primary);
  --paper: var(--color-background);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --green: var(--color-green);
  --coral: var(--color-coral);
  --white: var(--color-on-dark);

  /* Abgeleitete Oberflächen. */
  --primary-wash: color-mix(in srgb, var(--blue) 6%, var(--color-surface));
  --primary-soft: color-mix(in srgb, var(--blue) 12%, var(--color-surface));
  --primary-pale: color-mix(in srgb, var(--blue) 18%, var(--color-surface));
  --primary-light: color-mix(in srgb, var(--blue) 32%, var(--white));
  --primary-mid: color-mix(in srgb, var(--blue) 60%, var(--color-surface));
  --primary-bright: color-mix(in srgb, var(--blue) 82%, var(--white));
  --primary-deep: color-mix(in srgb, var(--color-action) 86%, var(--color-shadow));
  --primary-dark: color-mix(in srgb, var(--color-action) 54%, var(--color-shadow));
  --primary-faint: color-mix(in srgb, var(--blue) 10%, transparent);
  --primary-glow: color-mix(in srgb, var(--color-action) 8%, transparent);
  --primary-glow-soft: color-mix(in srgb, var(--blue) 3%, transparent);
  --primary-shadow: color-mix(in srgb, var(--color-shadow) 40%, transparent);

  /* Linien, Beschriftungen und Überlagerungen. */
  --surface-muted: color-mix(in srgb, var(--line) 40%, var(--color-surface));
  --muted-soft: color-mix(in srgb, var(--muted) 92%, var(--color-surface));
  --on-dark-muted: color-mix(in srgb, var(--muted) 80%, var(--white));
  --footer-muted: var(--muted);
  --line-on-dark: color-mix(in srgb, var(--white) 14%, transparent);
  --line-on-dark-strong: color-mix(in srgb, var(--white) 22%, transparent);
  --line-on-dark-soft: color-mix(in srgb, var(--white) 7%, transparent);
  --overlay: color-mix(in srgb, var(--color-shadow) 65%, transparent);
  --shadow: color-mix(in srgb, var(--color-shadow) 40%, transparent);

  /* Kleine, entsättigte Akzente der ursprünglichen Marke. */
  --green-surface: var(--section-team);
  --green-line: color-mix(in srgb, var(--green) 18%, var(--section-team));
  --green-light: color-mix(in srgb, var(--green) 60%, var(--white));
  --green-dark: var(--green);
  --green-muted: color-mix(in srgb, var(--green) 14%, var(--muted));
  --coral-dark: var(--coral);
}


/* RED — Rubin / klares Lackrot auf nahezu schwarzem Graphit. */
:root[data-theme="red"] {
  --color-primary: #ff5357;
  --color-action: #c91f35;
  --color-action-hover: #df263d;
  --color-heading-accent: #f43f49;
  --color-green: #b98782;
  --color-coral: #ff755e;
  --color-background: #100c0f;
  --color-surface: #20181d;
  --color-text: #f6f2f3;
  --color-muted: #bcaeb3;
  --color-border: #463039;
  --color-footer: #090709;
  --color-header: #301e25;
  --color-header-border: #69414d;
  --color-header-text: #faf4f5;
  --color-header-muted: #d1b9c2;
  --color-header-active: #ff777b;
  --color-header-hover: #3b232b;
  --color-header-menu: #24171d;
  --section-hero: #100c0f;
  --section-services: #191419;
  --section-approach: #2c111b;
  --section-team: #171419;
  --section-offers: #21151b;
  --section-contact: #140f14;
  --color-metal-light: #e0dfe4;
  --color-metal-dark: #35333d;
  --metal-2: #bdbcc7;
  --metal-3: #9c9ba8;
  --metal-4: #646370;
  --metal-5: #81808d;
  --claw-highlight: #ffd0c9;
  --claw-blue-light: #ff7362;
  --claw-blue: #ef3041;
  --claw-blue-deep: #b40c29;
  --claw-blue-dark: #560819;
  --claw-rim: #eeebed;
  --claw-rim-mid: #96929a;
  --claw-rim-dark: #48434c;
  --claw-edge-light: #6a626d;
  --claw-edge-dark: #131015;
  --color-field-border: #76515e;
  --color-placeholder: #b09da5;
}


/* YELLOW — Gold / leuchtendes Goldgelb auf klarem Carbon. */
:root[data-theme="yellow"] {
  --color-primary: #f5cd28;
  --color-action: #f5c518;
  --color-action-hover: #ffda42;
  --color-on-action: #171405;
  --color-heading-accent: #f6cc2b;
  --color-green: #b8a46d;
  --color-coral: #e5ae51;
  --color-background: #10100e;
  --color-surface: #20201b;
  --color-text: #f6f5ef;
  --color-muted: #b8b7aa;
  --color-border: #42402d;
  --color-footer: #090907;
  --color-header: #292a20;
  --color-header-border: #625e3d;
  --color-header-text: #faf8ef;
  --color-header-muted: #cecbb8;
  --color-header-active: #ffdb4c;
  --color-header-hover: #343326;
  --color-header-menu: #202119;
  --section-hero: #10100e;
  --section-services: #191a16;
  --section-approach: #29250f;
  --section-team: #151815;
  --section-offers: #211f15;
  --section-contact: #131510;
  --color-metal-light: #e1e2dd;
  --color-metal-dark: #333630;
  --metal-2: #bfc3bc;
  --metal-3: #9ea69e;
  --metal-4: #626a63;
  --metal-5: #7f8880;
  --claw-highlight: #fff6ca;
  --claw-blue-light: #ffe66a;
  --claw-blue: #f4c518;
  --claw-blue-deep: #c99005;
  --claw-blue-dark: #67420a;
  --claw-rim: #eeefe9;
  --claw-rim-mid: #969a90;
  --claw-rim-dark: #454b40;
  --claw-edge-light: #656d60;
  --claw-edge-dark: #11140e;
  --color-field-border: #706b45;
  --color-placeholder: #a9a68d;
}


/* GREY — Grau / neutrales Graphit und Silber. */
:root[data-theme="grey"] {
  --color-primary: #919191;
  --color-action: #4c4c4c;
  --color-action-hover: #5e5e5e;
  --color-heading-accent: #808080;
  --color-green: #898989;
  --color-coral: #979797;
  --color-background: #101010;
  --color-surface: #1f1f1f;
  --color-text: #f2f2f2;
  --color-muted: #b0b0b0;
  --color-border: #3c3c3c;
  --color-footer: #0d0d0d;
  --color-header: #2c2c2c;
  --color-header-border: #626262;
  --color-header-text: #f5f5f5;
  --color-header-muted: #c8c8c8;
  --color-header-active: #cacaca;
  --color-header-hover: #3d3d3d;
  --color-header-menu: #282828;
  --section-hero: #101010;
  --section-services: #1a1a1a;
  --section-approach: #222222;
  --section-team: #181818;
  --section-offers: #1c1c1c;
  --section-contact: #161616;
  --color-metal-light: #d4d4d4;
  --color-metal-dark: #414141;
  --metal-2: #b8b8b8;
  --metal-3: #9e9e9e;
  --metal-4: #666666;
  --metal-5: #808080;
  --claw-highlight: #cccccc;
  --claw-blue-light: #868686;
  --claw-blue: #616161;
  --claw-blue-dark: #2e2e2e;
  --claw-rim: #ececec;
  --claw-rim-mid: #8e8e8e;
  --claw-rim-dark: #4a4a4a;
  --claw-edge-light: #666666;
  --claw-edge-dark: #181818;
  --color-field-border: #595959;
  --color-placeholder: #a0a0a0;
}


/* PURPLE — Violett / gedecktes Pflaume. */
:root[data-theme="purple"] {
  --color-primary: #9e73bf;
  --color-action: #522574;
  --color-action-hover: #633289;
  --color-heading-accent: #8751ae;
  --color-green: #866fa3;
  --color-coral: #9f84aa;
  --color-background: #120b16;
  --color-surface: #211529;
  --color-text: #f2eff5;
  --color-muted: #b3a5bc;
  --color-border: #3d2f48;
  --color-footer: #0e0812;
  --color-header: #2e1d3b;
  --color-header-border: #644c77;
  --color-header-text: #f6f1f9;
  --color-header-muted: #cabcd5;
  --color-header-active: #ceafe5;
  --color-header-hover: #3f2951;
  --color-header-menu: #291936;
  --section-hero: #120b16;
  --section-services: #1b1221;
  --section-approach: #241330;
  --section-team: #17101f;
  --section-offers: #1d1126;
  --section-contact: #170e1e;
  --color-metal-light: #d5d2d7;
  --color-metal-dark: #423c46;
  --metal-2: #b9b4bc;
  --metal-3: #9f9aa3;
  --metal-4: #67616c;
  --metal-5: #817b86;
  --claw-highlight: #cdbadd;
  --claw-blue-light: #8a60ab;
  --claw-blue: #673989;
  --claw-blue-dark: #311745;
  --claw-rim: #eceaed;
  --claw-rim-mid: #8f8894;
  --claw-rim-dark: #4b4451;
  --claw-edge-light: #665f6c;
  --claw-edge-dark: #18151a;
  --color-field-border: #5b486a;
  --color-placeholder: #a294ad;
}


/* GREEN — Grün / dunkles Waldgrün. */
:root[data-theme="green"] {
  --color-primary: #68ba90;
  --color-action: #25744c;
  --color-action-hover: #2f8056;
  --color-heading-accent: #51ae7f;
  --color-green: #6fa382;
  --color-coral: #84aa9c;
  --color-background: #0b1611;
  --color-surface: #15291f;
  --color-text: #eff5f2;
  --color-muted: #a5bcb1;
  --color-border: #2f483b;
  --color-footer: #08120d;
  --color-header: #1d3b2b;
  --color-header-border: #4c7760;
  --color-header-text: #f1f9f5;
  --color-header-muted: #bcd5c8;
  --color-header-active: #afe5c9;
  --color-header-hover: #29513c;
  --color-header-menu: #193627;
  --section-hero: #0b1611;
  --section-services: #122119;
  --section-approach: #133021;
  --section-team: #101f16;
  --section-offers: #11261c;
  --section-contact: #0e1e16;
  --color-metal-light: #d2d7d4;
  --color-metal-dark: #3c4641;
  --metal-2: #b4bcb8;
  --metal-3: #9aa39e;
  --metal-4: #616c66;
  --metal-5: #7b8680;
  --claw-highlight: #baddca;
  --claw-blue-light: #60ab84;
  --claw-blue: #398960;
  --claw-blue-dark: #17452e;
  --claw-rim: #eaedeb;
  --claw-rim-mid: #88948e;
  --claw-rim-dark: #44514a;
  --claw-edge-light: #5f6c65;
  --claw-edge-dark: #151a18;
  --color-field-border: #486a58;
  --color-placeholder: #94ada0;
}


/* TEAL — Petrol / kühles Blaugrün. */
:root[data-theme="teal"] {
  --color-primary: #67b9bb;
  --color-action: #247375;
  --color-action-hover: #2c7d7e;
  --color-heading-accent: #50adaf;
  --color-green: #6fa39e;
  --color-coral: #84a3aa;
  --color-background: #0b1616;
  --color-surface: #152829;
  --color-text: #eff5f5;
  --color-muted: #a4bcbd;
  --color-border: #2f4848;
  --color-footer: #081112;
  --color-header: #1c3b3c;
  --color-header-border: #4b7878;
  --color-header-text: #f1f9f9;
  --color-header-muted: #bcd5d5;
  --color-header-active: #aee5e6;
  --color-header-hover: #295151;
  --color-header-menu: #193636;
  --section-hero: #0b1616;
  --section-services: #122021;
  --section-approach: #123031;
  --section-team: #0f201f;
  --section-offers: #112526;
  --section-contact: #0d1e1f;
  --color-metal-light: #d2d7d7;
  --color-metal-dark: #3c4646;
  --metal-2: #b4bcbc;
  --metal-3: #9aa3a3;
  --metal-4: #616c6c;
  --metal-5: #7b8686;
  --claw-highlight: #b9dede;
  --claw-blue-light: #5fabac;
  --claw-blue: #38898a;
  --claw-blue-dark: #174445;
  --claw-rim: #eaeded;
  --claw-rim-mid: #889494;
  --claw-rim-dark: #445151;
  --claw-edge-light: #5f6c6c;
  --claw-edge-dark: #151a1a;
  --color-field-border: #486a6a;
  --color-placeholder: #94adad;
}


/* ORANGE — Glut / kräftiges Mandarinenorange auf dunklem Graphit. */
:root[data-theme="orange"] {
  --color-primary: #ff8a35;
  --color-action: #ff791f;
  --color-action-hover: #ff9945;
  --color-on-action: #1c1008;
  --color-heading-accent: #ff7929;
  --color-green: #c29b7e;
  --color-coral: #ffac5d;
  --color-background: #120f0d;
  --color-surface: #231e19;
  --color-text: #f7f3ef;
  --color-muted: #bdb1a8;
  --color-border: #4a382b;
  --color-footer: #0b0806;
  --color-header: #30251e;
  --color-header-border: #735039;
  --color-header-text: #fcf5ef;
  --color-header-muted: #d7c2b1;
  --color-header-active: #ffab5a;
  --color-header-hover: #403025;
  --color-header-menu: #251c15;
  --section-hero: #120f0d;
  --section-services: #1d1915;
  --section-approach: #2d1c0e;
  --section-team: #191916;
  --section-offers: #251c14;
  --section-contact: #18120e;
  --color-metal-light: #e2deda;
  --color-metal-dark: #39352f;
  --metal-2: #c3bdb7;
  --metal-3: #a79f96;
  --metal-4: #6d655a;
  --metal-5: #8b8174;
  --claw-highlight: #ffe0b7;
  --claw-blue-light: #ffb052;
  --claw-blue: #ff711c;
  --claw-blue-deep: #cd4007;
  --claw-blue-dark: #6b2108;
  --claw-rim: #f0ece7;
  --claw-rim-mid: #9b9388;
  --claw-rim-dark: #4e463b;
  --claw-edge-light: #706353;
  --claw-edge-dark: #17110b;
  --color-field-border: #795a40;
  --color-placeholder: #b49e8c;
}
