/* ENERGY.ONE Home Systems – Web-CI / Design-Tokens (Stand 07.11.2026)
   Einbinden: <link rel="stylesheet" href="energy-one-tokens.css">
   Schrift:   Inter (Variable, OFL) – Datei liegt in fonts/ */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---------- Markenfarben (aus dem Logo, 1:1) ---------- */
  --eo-schwarz: #0C0C0C;   /* Schrift, linker Balken */
  --eo-rot:     #C6201B;   /* .ONE, rechter Balken – Hauptakzent, Buttons */
  --eo-orange:  #EC9E0E;   /* Dach, „Independence.“ – Energie, Highlights */
  --eo-weiss:   #FFFFFF;

  /* ---------- Abgeleitete Töne ---------- */
  --eo-rot-dunkel:    #A51A16;  /* Hover/aktiv auf Rot */
  --eo-rot-hell:      #E8473F;  /* Rot auf dunklem Grund (Text) */
  --eo-rot-zart:      #FBEAE9;  /* Hinweisflächen */
  --eo-orange-text:   #9A6200;  /* Orange als TEXT auf Weiß (Kontrast 5,1:1) */
  --eo-orange-zart:   #FDF3DF;  /* Hinterlegungen, Badges */

  /* ---------- Neutrale ---------- */
  --eo-dunkel:     #121212;  /* dunkle Sektionen, Footer */
  --eo-dunkel-2:   #1C1C1C;  /* Karten auf Dunkel */
  --eo-grau-900:   #2A2A2A;
  --eo-grau-600:   #5E5E5E;  /* Fließtext gedämpft (6,5:1 auf Weiß) */
  --eo-grau-400:   #A3A3A3;  /* gedämpft auf Dunkel */
  --eo-grau-200:   #E4E2DD;  /* Linien, Rahmen */
  --eo-hell:       #F6F5F2;  /* helle Sektionen (warmes Off-White) */

  /* ---------- Semantik ---------- */
  --eo-text:        var(--eo-schwarz);
  --eo-text-leise:  var(--eo-grau-600);
  --eo-flaeche:     var(--eo-weiss);
  --eo-flaeche-2:   var(--eo-hell);
  --eo-linie:       var(--eo-grau-200);
  --eo-akzent:      var(--eo-rot);
  --eo-akzent-hover:var(--eo-rot-dunkel);
  --eo-energie:     var(--eo-orange);
  --eo-erfolg:      #2E7D32;
  --eo-fokus:       0 0 0 3px rgba(236, 158, 14, .55);

  /* ---------- Typografie ---------- */
  --eo-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --eo-fs-xs:  .8125rem;  /* 13 */
  --eo-fs-sm:  .9375rem;  /* 15 */
  --eo-fs-md:  1.0625rem; /* 17 – Fließtext */
  --eo-fs-lg:  1.25rem;   /* 20 – Lead */
  --eo-fs-h4:  1.375rem;  /* 22 */
  --eo-fs-h3:  clamp(1.5rem, 1.2rem + 1vw, 1.875rem);    /* 24–30 */
  --eo-fs-h2:  clamp(1.875rem, 1.4rem + 2vw, 2.75rem);   /* 30–44 */
  --eo-fs-h1:  clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem); /* 38–68 */
  --eo-lh-text: 1.6;
  --eo-lh-titel: 1.08;
  --eo-track-overline: .32em;   /* wie „HOME SYSTEMS“ */
  --eo-track-claim: .14em;      /* wie „Power Your Independence.“ */

  /* ---------- Abstände (4er-Raster) ---------- */
  --eo-s1: 4px;  --eo-s2: 8px;  --eo-s3: 12px; --eo-s4: 16px; --eo-s5: 24px;
  --eo-s6: 32px; --eo-s7: 48px; --eo-s8: 64px; --eo-s9: 96px; --eo-s10: 128px;
  --eo-container: 1200px;

  /* ---------- Form ---------- */
  --eo-radius-s: 2px;   /* das Logo ist kantig – kaum Rundung */
  --eo-radius-m: 4px;
  --eo-dach: 36deg;     /* Winkel der Dachschräge im Logo */
  --eo-schatten: 0 1px 2px rgba(12,12,12,.06), 0 8px 24px rgba(12,12,12,.08);
  --eo-streifen: linear-gradient(90deg, var(--eo-orange) 0 33.34%, var(--eo-schwarz) 33.34% 66.67%, var(--eo-rot) 66.67% 100%);

  /* ---------- Bewegung ---------- */
  --eo-ease: cubic-bezier(.2, .7, .2, 1);
  --eo-dauer: 180ms;
}

/* ---------- Basis ---------- */
html { font-family: var(--eo-font); color: var(--eo-text); background: var(--eo-flaeche);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
body { font-size: var(--eo-fs-md); line-height: var(--eo-lh-text); margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: var(--eo-lh-titel); letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: var(--eo-fs-h1); } h2 { font-size: var(--eo-fs-h2); }
h3 { font-size: var(--eo-fs-h3); } h4 { font-size: var(--eo-fs-h4); }
a { color: var(--eo-akzent); text-underline-offset: .18em; }
:focus-visible { outline: none; box-shadow: var(--eo-fokus); }

/* ---------- Bausteine ---------- */
.eo-overline { font-size: var(--eo-fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--eo-track-overline); color: var(--eo-text); }
.eo-claim { font-weight: 500; letter-spacing: var(--eo-track-claim); }
.eo-claim em { font-style: normal; color: var(--eo-orange-text); }
.eo-dunkel .eo-claim em, .eo-claim.auf-dunkel em { color: var(--eo-orange); }
.eo-punkt { color: var(--eo-rot); }       /* ENERGY<span class="eo-punkt">.ONE</span> */
.eo-streifen { height: 6px; background: var(--eo-streifen); }

.eo-btn { display: inline-flex; align-items: center; gap: .6em; font: 600 var(--eo-fs-sm)/1 var(--eo-font);
  padding: 16px 26px; border-radius: var(--eo-radius-s); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background var(--eo-dauer) var(--eo-ease), color var(--eo-dauer) var(--eo-ease), border-color var(--eo-dauer) var(--eo-ease); }
.eo-btn--primaer { background: var(--eo-rot); color: #fff; }
.eo-btn--primaer:hover { background: var(--eo-rot-dunkel); }
.eo-btn--sekundaer { background: transparent; color: var(--eo-text); border-color: var(--eo-schwarz); }
.eo-btn--sekundaer:hover { background: var(--eo-schwarz); color: #fff; }
.eo-btn--energie { background: var(--eo-orange); color: var(--eo-schwarz); }
.eo-btn--energie:hover { background: #D88F08; }

.eo-karte { background: var(--eo-flaeche); border: 1px solid var(--eo-linie); border-radius: var(--eo-radius-m);
  padding: var(--eo-s6); position: relative; }
.eo-karte::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 4px; background: var(--eo-rot); }

.eo-dunkel { background: var(--eo-dunkel); color: #fff; }
.eo-dunkel .eo-overline { color: #fff; }
.eo-dunkel a { color: var(--eo-rot-hell); }

/* Dachschräge als Sektionskante (Signatur-Element) */
.eo-schraege { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
