/* ==========================================================================
   Genesys Technologies AG – Stylesheet
   Struktur: Tokens -> Basis/Reset -> Layout -> Komponenten -> Seiten -> Utils
   ========================================================================== */

/* ---------- Schrift (Inter, lokal eingebunden – keine Verbindung zu Google) ---------- */
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root{
  /* Farben – schlicht: Weiss/Grau als Flächen, Schwarz/Grau für Text.
     Farbe kommt aus dem Logo und den Fotos; Marken-Türkis (#00A88F) nur
     gezielt für Buttons und Links. Gold (#FCDF1C) bleibt dem Logo vorbehalten. */
  --c-bg:            #ffffff;
  --c-bg-alt:        #f4f4f4;
  --c-bg-alt-2:      #ebebeb;
  --c-navy-900:      #1f2224; /* dunkles Grau statt Navy (Footer, starke Kontraste) */
  --c-navy-800:      #2b2e31;
  --c-navy-700:      #3a3d40;
  --c-text:          #1a1a1a;
  --c-text-muted:    #555a5e;
  --c-text-soft:     #7d8286;
  --c-text-on-dark:  #f2f2f2;
  --c-text-on-dark-muted: #b4b8bb;
  --c-border:        #dedede;
  --c-border-dark:   #3a3d40;
  --c-accent:        #00a88f; /* Marken-Türkis */
  --c-accent-600:    #00806c; /* Button-Hintergrund – weisse Schrift erreicht WCAG AA (4.9:1) */
  --c-accent-700:    #006b5a; /* Links auf hellem Grund */
  --c-accent-900:    #004a3f;
  --c-accent-100:    #f0f0f0; /* Icon-Hintergründe: neutral */
  --c-accent-soft:   #e2e2e2;
  --c-icon:          #4a4f53; /* graue Strich-Icons */

  --radius-s:  2px;
  --radius-m:  3px;
  --radius-l:  4px;
  --radius-full: 3px;

  --shadow-s: none;
  --shadow-m: 0 2px 10px rgba(0,0,0,.06);
  --shadow-l: 0 6px 20px rgba(0,0,0,.08);

  --max-width: 1200px;
  --space-section: clamp(64px, 9vw, 128px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; font-size: inherit; }

h1,h2,h3,h4{ font-weight: 600; letter-spacing: -.01em; color: var(--c-text); overflow-wrap: break-word; hyphens: auto; }
h1{ font-size: clamp(2.1rem, 2.6vw + 1rem, 3.2rem); line-height: 1.1; }
h2{ font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem); line-height: 1.15; }
h3{ font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem); line-height: 1.25; }
h4{ font-size: 1.05rem; line-height: 1.3; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-soft);
}

.lede{ font-size: clamp(1.05rem, .3vw + 1rem, 1.2rem); color: var(--c-text-muted); }

/* ---------- Layout ---------- */
.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px){ .wrap{ padding: 0 40px; } }

.section{ padding: var(--space-section) 0; }
.section--tight{ padding: clamp(48px, 5vw, 80px) 0; }
.section--alt{ background: var(--c-bg-alt); }
/* Früher dunkler Verlauf – jetzt bewusst hell und ruhig */
.section--dark{ background: var(--c-bg-alt); }

.grid{ display: grid; gap: 32px; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
@media (min-width: 760px){ .grid-2{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px){ .grid-3{ grid-template-columns: repeat(3, 1fr); } }

.section-head{ max-width: 680px; margin-bottom: 48px; display: grid; gap: 14px; }
.section-head > *{ min-width: 0; } /* lange deutsche Komposita dürfen das Grid nicht verbreitern */
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--c-accent-600); color: #fff; }
.btn-primary:hover{ background: var(--c-accent-700); }
.btn-ghost{ background: transparent; color: var(--c-text); border-color: #b9bcbf; }
.btn-ghost:hover{ border-color: var(--c-text); }
/* CTA-Band ist jetzt hell: btn-on-dark wird zum dunklen Button, Ghost bleibt dunkel auf hell */
.btn-on-dark{ background: var(--c-navy-900); color: #fff; }
.btn-on-dark:hover{ background: var(--c-navy-700); }
.btn-sm{ padding: 10px 18px; font-size: .85rem; }
.btn-arrow{ transition: transform .2s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px; max-width: 1360px;
}
.brand{ display: flex; align-items: center; color: var(--c-navy-900); flex: 0 0 auto; white-space: nowrap; }
.brand .brand-logo{ height: 46px; width: auto; flex: none; }

/* Header: links nur das Logo, rechts die Navigation (ohne zusätzlichen Button).
   Desktop-Navigation ab 1080px; darunter Menü-Button – so läuft der Header nie über. */
.nav{ display: none; align-items: center; gap: 4px; flex: 0 1 auto; justify-content: flex-end; }
@media (min-width: 1080px){ .nav{ display: flex; } }
.nav a{
  position: relative; padding: 10px 12px; font-size: .9rem; font-weight: 500;
  white-space: nowrap;
  color: var(--c-text-muted); transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"]{ color: var(--c-text); }
.nav a[aria-current="page"]::after{
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--c-accent);
}

.site-header .header-cta{ display: none; }

.nav-toggle{
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius-s);
}
@media (min-width: 1080px){ .nav-toggle{ display: none; } .mobile-nav.is-open{ display: none; } }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width: 20px; height: 2px; background: var(--c-navy-900); position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

.mobile-nav{
  display: none; position: fixed; inset: 76px 0 0 0; background: #fff; z-index: 90;
  padding: 24px; overflow-y: auto;
}
.mobile-nav.is-open{ display: block; }
.mobile-nav a{
  display: block; padding: 16px 4px; font-size: 1.15rem; font-weight: 600;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav .header-cta{ display: flex; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero{ position: relative; overflow: hidden; }
.hero .wrap{
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px);
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 980px){ .hero .wrap{ grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero h1{ margin-bottom: 22px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.hero-stats strong{ display:block; font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); font-weight: 600; color: var(--c-text); }
.hero-stats span{ font-size: .82rem; color: var(--c-text-muted); }

/* Startseite: grosses Hintergrundbild, Text in heller Box */
.hero--image{ display: flex; align-items: flex-end; min-height: min(78vh, 760px); padding: 120px 0 64px; }
.hero--image .hero-bg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Zwei Hintergrundbilder blenden sich langsam ab (je ca. 8 s sichtbar) */
.hero--image .hero-bg--alt{ opacity: 0; animation: hero-swap 18s ease-in-out infinite; }
@keyframes hero-swap{ 0%,40%{ opacity: 0; } 50%,90%{ opacity: 1; } 100%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .hero--image .hero-bg--alt{ animation: none; } }
.hero--image::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); z-index: 0; }
.hero--image .wrap{ position: relative; z-index: 1; display: block; width: 100%; }
.hero-box{ max-width: 640px; background: rgba(255,255,255,.96); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-m, 4px); }
.hero-box{ max-width: 520px; }
.hero-box h1{ font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); hyphens: manual; margin-bottom: 14px; }
.hero-box .hero-actions{ margin-top: 24px; }
@media (max-width: 600px){ .hero--image{ padding: 200px 0 0; } .hero--image .wrap{ padding: 0; } .hero-box{ border-radius: 0; } }

.more-title{ margin: 56px 0 20px; font-size: 1.15rem; color: var(--c-text-muted); font-weight: 600; }

/* Energiefluss-Grafik (EMS-Seite) */
.flow{ margin: 0; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-l); padding: clamp(12px, 3vw, 28px); align-self: start; }
.flow svg{ display: block; width: 100%; height: auto; }
.flow-lines path{ stroke: var(--c-border); stroke-width: 6; fill: none; }
.flow-pulse path{ stroke: var(--c-accent); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 10 22; animation: flow-run 1.4s linear infinite; }
.flow-pulse .flow-pulse--both{ animation-duration: 2.2s; }
@keyframes flow-run{ to{ stroke-dashoffset: -32; } }
.flow-node rect{ fill: var(--c-bg); stroke: var(--c-border); stroke-width: 2; }
.flow-node text{ font: 600 20px Inter, system-ui, sans-serif; fill: var(--c-text); text-anchor: middle; }
.flow-ico{ fill: none; stroke: var(--c-icon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow-node--ems rect{ fill: var(--c-accent-600); stroke: none; }
.flow-node--ems .flow-ems{ font-size: 30px; fill: #fff; }
.flow-node--ems .flow-sub{ font-size: 16px; font-weight: 400; fill: #fff; }
.flow figcaption{ margin-top: 14px; font-size: .9rem; color: var(--c-text-muted); }
@media (prefers-reduced-motion: reduce){ .flow-pulse path{ animation: none; } }

.hero-visual{ position: relative; aspect-ratio: 4/3; border-radius: var(--radius-l); overflow: hidden; background: var(--c-bg-alt-2); }
.hero-visual > img{ width: 100%; height: 100%; object-fit: cover; }
/* Software-Screenshots: nicht beschneiden, im Originalformat zeigen */
.hero-visual--screen{ aspect-ratio: auto; background: #181b1f; }
.hero-visual--screen > img{ height: auto; object-fit: contain; }
/* Freigestellte Produktfotos auf schwarzem Grund */
.hero-visual--white{ background: #fff; border: 1px solid var(--c-border); }
.hero-visual--white > img{ object-fit: contain; }
.hero-visual--product{ background: #000; }
.hero-visual--product > img{ object-fit: contain; padding: 8%; }

/* ---------- Cards: Kernbereiche ---------- */
.pillar-card{
  position: relative; display: grid; gap: 20px; padding: 32px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-l);
  transition: border-color .2s var(--ease);
}
.pillar-card:hover{ border-color: #b9bcbf; }
/* Icons einheitlich grau, ohne farbige Hintergründe */
.pillar-card .pillar-icon{ width: 44px; height: 44px; display:flex; align-items:center; justify-content:flex-start; color: var(--c-icon); }
.pillar-card .pillar-icon svg{ width: 36px; height: 36px; }
.pillar-card p{ color: var(--c-text-muted); }
.pillar-card .card-link{ display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:.92rem; color: var(--c-text); margin-top: 4px; }
.pillar-card .card-link svg{ width:16px; height:16px; transition: transform .2s var(--ease); }
.pillar-card:hover .card-link svg{ transform: translateX(4px); }

/* ---------- Feature list / icon rows ---------- */
.feature-row{ display: grid; gap: 20px; grid-template-columns: 44px 1fr; }
.feature-row .icon{
  width: 44px; height: 44px; color: var(--c-icon);
  display: flex; align-items: flex-start; justify-content: flex-start;
}
.feature-row .icon svg{ width: 28px; height: 28px; }
.feature-row h4{ margin-bottom: 6px; }
.feature-row p{ color: var(--c-text-muted); font-size: .96rem; }
.feature-list{ display: grid; gap: 28px; }

/* ---------- Process steps ---------- */
.process{ counter-reset: step; display: grid; gap: 28px; }
@media (min-width: 760px){ .process{ grid-template-columns: repeat(4, 1fr); } }
.process-step{ position: relative; padding-top: 8px; }
.process-step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: .85rem; font-weight: 600; color: var(--c-text-soft); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); letter-spacing: .04em;
}
.process-step h4{ margin-bottom: 8px; }
.process-step p{ color: var(--c-text-muted); font-size: .93rem; }

/* ---------- Stat band ---------- */
.stat-band{ display: grid; gap: 24px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 760px){ .stat-band{ grid-template-columns: repeat(4,1fr); } }
.stat-item strong{ display:block; font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); letter-spacing: -.02em; }
.stat-item span{ color: var(--c-text-muted); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-l); padding: clamp(40px, 5vw, 64px);
  display: grid; gap: 28px; align-items: center;
  background: var(--c-bg-alt);
}
@media (min-width: 860px){ .cta-band{ grid-template-columns: 1fr auto; } }
.cta-band h2{ margin-bottom: 10px; }
.cta-band p{ color: var(--c-text-muted); }
.cta-band .btn-row{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Cards generic ---------- */
.card{ background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-m); padding: 28px; }
.card-soft{ background: var(--c-bg-alt); border-radius: var(--radius-m); padding: 28px; }

/* ---------- Project / reference cards ---------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip{
  padding: 9px 18px; border-radius: var(--radius-full); border: 1px solid var(--c-border);
  font-size: .85rem; font-weight: 600; color: var(--c-text-muted); background: #fff;
}
.filter-chip[aria-pressed="true"]{ background: var(--c-navy-900); color: #fff; border-color: var(--c-navy-900); }

.project-card{ border: 1px solid var(--c-border); border-radius: var(--radius-l); overflow: hidden; background: #fff; transition: border-color .2s var(--ease); }
@media (min-width: 900px){ .project-card--wide{ grid-column: span 2; } }
.project-card--wide .project-body{ height: 100%; align-content: start; }
.project-card .also-link{ display:inline-flex; align-items:center; gap:6px; font-size:.88rem; font-weight:600; color: var(--c-accent-700); }
.ref-list{ margin: 4px 0; padding-left: 18px; color: var(--c-text-muted); font-size: .92rem; display: grid; gap: 4px; }
.ref-list strong{ color: var(--c-text); font-weight: 600; }
.project-card:hover{ border-color: #b9bcbf; }
.project-card .project-media{ aspect-ratio: 4/3; position: relative; background: var(--c-bg-alt-2); }
.project-card .project-media img{ width: 100%; height: 100%; object-fit: cover; }
.filter-empty{ padding: 32px; border: 1px dashed var(--c-border); border-radius: var(--radius-m); color: var(--c-text-muted); text-align: center; }
.filter-empty a{ color: var(--c-accent-700); text-decoration: underline; }
.project-card .project-body{ padding: 22px 24px 26px; display: grid; gap: 10px; }
.project-tag{ display:inline-flex; width: fit-content; padding: 5px 12px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--c-bg-alt); color: var(--c-text-muted); }
.project-card p{ color: var(--c-text-muted); font-size: .92rem; }
.project-meta{ display:flex; gap: 16px; font-size: .82rem; color: var(--c-text-soft); margin-top: 4px; }

/* ---------- Placeholder art (statt Fotos) ---------- */
.art{
  position: relative; border-radius: inherit; overflow: hidden;
  background: var(--c-bg-alt-2);
}
.art::after{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
}
.art--accent{ background: linear-gradient(155deg, var(--c-accent-700), var(--c-accent-900)); }
.art--soft{ background: linear-gradient(155deg, var(--c-bg-alt-2), var(--c-bg-alt)); }
.art-icon{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.art-icon svg{ width: 34%; height: 34%; opacity: .9; }
.art-label{
  position: absolute; left: 14px; bottom: 12px; font-size: .68rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-soft);
}

/* ---------- Price cards ---------- */
.price-grid{ display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); margin-bottom: 20px; }
@media (min-width: 760px){ .price-grid{ grid-template-columns: repeat(4,1fr); } }
.price-grid--2col{ grid-template-columns: 1fr; }
@media (min-width: 620px){ .price-grid--2col{ grid-template-columns: 1fr 1fr; } }
.price-card{
  background:#fff; border:1px solid var(--c-border); border-radius: var(--radius-m);
  padding: 24px 22px; display:grid; gap:6px;
}
.price-card .price-kwh{ font-size:.82rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color: var(--c-text-soft); }
.price-card .price-value{ font-size: clamp(1.5rem, 1.2vw + 1rem, 1.9rem); font-weight:600; letter-spacing:-.02em; color: var(--c-navy-900); }
.price-card .price-brand{ font-size:.82rem; color: var(--c-text-muted); margin-top:2px; }
.price-card .price-note{ font-size:.78rem; color: var(--c-text-soft); margin-top:6px; }
.price-subhead{ font-size:.82rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: var(--c-text-soft); margin: 28px 0 14px; }
.price-subhead:first-child{ margin-top:0; }

/* ---------- Weitere Bereiche (Über uns) ---------- */
.also-card{
  display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:26px; border:1px solid var(--c-border); border-radius: var(--radius-m); background:#fff;
}
.also-card .also-media{ width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-s); margin-bottom: 4px; }
.also-card .also-link{ margin-top: auto; }
.also-card .also-link{ display:inline-flex; align-items:center; gap:6px; font-size:.88rem; font-weight:600; color: var(--c-accent-700); }

/* ---------- Team ---------- */
.team-card{ display: grid; gap: 16px; text-align: left; }
.team-photo{ aspect-ratio: 1/1; border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.team-photo > img{ width: 100%; height: 100%; object-fit: cover; }
.team-card h4{ margin-bottom: 2px; }
.team-role{ color: var(--c-text-muted); font-size: .85rem; font-weight: 500; }

/* ---------- Values ---------- */
.value-card{ display: grid; gap: 14px; }
.value-card .icon{ width: 48px; height: 48px; color: var(--c-icon); display:flex; align-items:center; justify-content:flex-start; }
.value-card .icon svg{ width: 32px; height: 32px; }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; gap: 48px; }
.contact-grid > *, .form-row-2 > *{ min-width: 0; }
@media (min-width: 980px){ .contact-grid{ grid-template-columns: 1fr 1fr; align-items: start; } }
.form-field{ display: grid; gap: 8px; margin-bottom: 20px; }
.form-field label{ font-size: .85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea{
  width: 100%; min-width: 0;
  padding: 13px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-s);
  background: #fff; color: var(--c-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0,168,143,.18);
}
.form-row-2{ display: grid; gap: 20px; }
@media (min-width: 620px){ .form-row-2{ grid-template-columns: 1fr 1fr; } }
.form-note{ font-size: .8rem; color: var(--c-text-soft); margin-top: 4px; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

.contact-info-card{ display: grid; gap: 22px; }
.contact-info-row{ display: flex; gap: 16px; align-items: flex-start; }
.contact-info-row .icon{ width: 32px; height: 32px; color: var(--c-icon); display:flex; align-items:center; justify-content:flex-start; flex: none; }
.contact-info-row .icon svg{ width: 24px; height: 24px; }

.form-status{ margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); font-size: .9rem; display: none; }
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: #e6f4f1; color: var(--c-accent-700); }
.form-status.is-error{ background: #fdeceb; color: #a3271b; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--c-navy-900); color: var(--c-text-on-dark-muted); padding: 64px 0 32px; }
.footer-grid{ display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 760px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand{ color: #fff; margin-bottom: 18px; }
.footer-brand .brand-logo{ height: 48px; }
.footer-grid p{ font-size: .9rem; max-width: 320px; }
.footer-col h4{ color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul{ display: grid; gap: 10px; }
.footer-col a{ font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--c-border-dark); font-size: .82rem;
}
.footer-bottom ul{ display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal animation ----------
   Läuft nur, wenn JavaScript aktiv ist (html.js, per Inline-Skript im
   <head> gesetzt). Ohne JavaScript bleiben alle Inhalte normal sichtbar –
   das ist wichtig, falls JS blockiert ist oder nicht lädt. */
html.js .reveal{ opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  html.js .reveal{ opacity: 1; transform: none; transition: none; }
  .btn:hover{ transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.max-w-sm{ max-width: 620px; }
.max-w-sm.center{ margin-left: auto; margin-right: auto; }
.divider{ height: 1px; background: var(--c-border); border: none; margin: 0; }
.skip-link{
  position: absolute; left: 12px; top: -60px; background: var(--c-navy-900); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-s); z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus{ top: 12px; }

/* ---------- Legal pages ---------- */
.legal-content{ max-width: 760px; display: grid; gap: 20px; }
.legal-content h2{ font-size: 1.4rem; margin-top: 12px; }
.legal-content p, .legal-content li{ color: var(--c-text-muted); }
.legal-content ul{ display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.callout{
  background: var(--c-bg-alt); border-left: 3px solid var(--c-text-soft); border-radius: var(--radius-m);
  padding: 20px 22px; font-size: .92rem; color: var(--c-text-muted);
}

/* ---------- 404 (optional use) ---------- */
.error-hero{ text-align: center; padding: 120px 0; }

.contact-note{ margin-top: 6px; font-size: .85rem; color: var(--c-text-muted); }

/* Hochformat-Fotos (Batterie unten im Bild) ganz zeigen statt beschneiden */
.hero-visual--tall{ aspect-ratio: 4/5; max-height: 640px; }
.hero-visual--tall > img{ object-position: center bottom; }
.footer-col strong{ color: #fff; font-weight: 600; }

/* Schema-Zeichnung ohne Rahmen */
.hero-visual--plain{ aspect-ratio: auto; background: none; border: 0; border-radius: 0; }
.hero-visual--plain > img{ height: auto; object-fit: contain; }

/* EMS: Karten links, App-Screenshot rechts */
.ems-split{ display: grid; gap: 32px; }
.ems-phone{ margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.ems-phone img{ width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
@media (min-width: 980px){ .ems-split{ grid-template-columns: 1fr 300px; align-items: center; gap: 56px; } }

/* Photovoltaik: Bildergalerie unter den Anwendungsbereichen */
.pv-split{ display: grid; gap: 24px; }
@media (min-width: 980px){ .pv-split{ grid-template-columns: 1fr 1fr; align-items: center; } }
.pv-gallery{ margin: 0; }
.pv-gallery figure{ margin: 0; }
.pv-gallery img{ width: 100%; height: auto; border-radius: var(--radius-l); }
