/* ==========================================================================
   ELSA GmbH – Schalt- und Steuerungsanlagenbau
   Relaunch 2026 · Technische Realisierung: Dr. István Tibor Nébel
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Variablen ---------- */
:root {
  --accent: #3BB59C;        /* ELSA-Grün (aus der bisherigen Seite) */
  --accent-hover: #5CC6B0;
  --accent-soft: rgba(59, 181, 156, .25);
  --ink: #0F1318;
  --ink-2: #171C23;
  --ink-3: #0A0D11;
  --line-dark: #262C34;
  --line-dark-2: #3A424D;
  --paper: #F3F4F1;
  --white: #FFFFFF;
  --line: #DDE0DA;
  --text: #0F1318;
  --text-2: #4A515B;
  --text-3: #5A616B;
  --on-dark: #FFFFFF;
  --on-dark-2: #C3C9D1;
  --on-dark-3: #A7AFBA;

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Inter Display", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 112px);
  --radius: 10px;
  --header-h: 80px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }

.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.eyebrow--accent { color: var(--accent); }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 6px; font: 600 16px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn--ghost { border-color: #5A626D; background: rgba(15, 19, 24, .4); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #262C34; color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 19, 24, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark); }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--accent); color: var(--ink); border-radius: 6px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: 21px; letter-spacing: 0.02em; }
.brand__tag { font-size: 12px; color: var(--on-dark-3); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #E6E9ED; text-decoration: none; font-size: 15px; padding: 12px 14px; border-radius: 6px; }
.nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark-2); background: transparent; color: var(--on-dark); border-radius: 6px; cursor: pointer; place-items: center; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 24px; background: var(--ink); border-bottom: 1px solid var(--line-dark); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 17px; }
  .nav .btn { margin: 16px 0 0; }
}

/* ---------- Hero mit Slideshow ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 9s ease-out; }
.hero__slide.is-active img { transform: scale(1.06); }
.hero__slide--lowres img { filter: blur(2px) saturate(.9); transform: scale(1.04); }
.hero__slide--lowres.is-active img { transform: scale(1.1); }
.hero__slide--graphic { background: var(--ink); display: flex; align-items: center; justify-content: flex-end; padding-right: 8%; color: var(--accent); }
.hero__graphic { height: 78%; width: auto; opacity: .9; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,19,24,.95) 0%, rgba(15,19,24,.85) 42%, rgba(15,19,24,.5) 100%); }
.hero__inner { position: relative; min-height: min(80vh, 740px); padding-block: clamp(72px, 9vw, 112px) 40px; display: flex; flex-direction: column; gap: 28px; }
.hero__kicker { font-family: var(--f-mono); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero__texts { display: grid; max-width: 720px; }
.hero__text { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.hero__text.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .25s, transform .7s ease .25s, visibility 0s; }
.hero__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.03; letter-spacing: -0.03em; hyphens: manual; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--on-dark-2); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__bar { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero__caption { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #E6E9ED; }
.hero__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero__pause { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark-2); border-radius: 6px; background: rgba(15,19,24,.4); color: var(--on-dark); cursor: pointer; }
.hero__pause:hover { border-color: var(--on-dark-2); }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { width: 44px; height: 44px; padding: 0 4px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.hero__dot span { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background-color .3s ease; }
.hero__dot[aria-current="true"] span { background: var(--accent); }
.hero__dot:hover span { background: rgba(255,255,255,.7); }
@media (max-width: 600px) {
  .hero__dot { width: 34px; padding: 0 3px; }
  .hero__slide--graphic { justify-content: center; padding-right: 0; }
  .hero__graphic { opacity: .25; }
}

.facts { position: relative; background: var(--ink); border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { font-family: var(--f-head); font-weight: 600; font-size: clamp(28px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.fact__label { font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 860px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Abschnittskopf ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head__title { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.section-head__text { max-width: 420px; color: var(--text-2); }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 270px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card:hover { border-color: #B9BEB5; transform: translateY(-3px); box-shadow: 0 12px 32px -18px rgba(15,19,24,.35); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-family: var(--f-mono); font-size: 13px; color: var(--text-3); }
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { font-size: 15px; color: var(--text-2); }
.card__link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link:hover { text-decoration: underline; }
.card--cta { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card--cta:hover { border-color: var(--ink); }
.card--cta .card__num { color: var(--accent); }
.card--cta h3 { font-size: 26px; line-height: 1.15; }
.card--cta .btn { margin-top: auto; align-self: flex-start; }
.card--cta .btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- Referenzen ---------- */
.refs-section { background: var(--white); border-block: 1px solid var(--line); }
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr; } }
.ref { display: flex; flex-direction: column; gap: 16px; }
.ref__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: #E8EAE5; }
.ref h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; }
.ref p { color: var(--text-2); max-width: 560px; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.partners__item { font-family: var(--f-head); font-weight: 600; font-size: 20px; color: #3A4048; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.step { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step__num { font-family: var(--f-head); font-weight: 600; font-size: 56px; line-height: 1; color: #C9CDC5; }
.step h3 { font-size: 22px; }
.step p { font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
}

/* ---------- Ladestation ---------- */
.charge { background: var(--accent); color: var(--ink); border-radius: 14px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.charge__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.charge .eyebrow { color: var(--ink); }
.charge p { max-width: 520px; }
.charge .btn { align-self: flex-start; }
.charge__visual { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.charge__visual svg { width: 160px; height: auto; }
.chips { display: flex; flex-direction: column; gap: 10px; }
.chip { font-family: var(--f-mono); font-size: 14px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--on-dark); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; line-height: 1.5; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg { flex: none; margin-top: 2px; color: var(--accent); }
.contact__list a { color: var(--on-dark); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__route { align-self: flex-start; }

.form { flex: 1 1 460px; min-width: 0; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--on-dark-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; background: var(--ink); border: 1px solid var(--line-dark-2); border-radius: 6px; color: var(--white); padding: 12px 14px; font: 16px/1.4 var(--f-body); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C3C9D1' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--on-dark-3); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--on-dark-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form__status { font-size: 15px; padding: 14px 16px; border-radius: 6px; display: none; }
.form__status.is-ok { display: block; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .5); color: #CFF5DC; }
.form__status.is-error { display: block; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .5); color: #FBD5D5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: var(--on-dark-3); font-size: 14px; }
.site-footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; padding: 12px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-block: clamp(56px, 7vw, 88px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal ul { color: var(--text-2); margin: 0 0 12px; }
.legal a { color: var(--text); }

/* ---------- Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__slide.is-active img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
