/* ============================================================
   KSI|PROair ECOCONTROL – Website-Stylesheet
   Farbwelt: Navy/Petrol/Mint (gemeinsames ECOCONTROL-Design)
   ============================================================ */
:root {
  --navy: #153F63;
  --navy-deep: #103654;
  --teal: #3E9C90;
  --teal-dark: #2C7A70;
  --mint: #E3F0ED;
  --mint-deep: #CFE5E0;
  --line: #BFDCD6;
  --ink: #22333E;
  --muted: #5A6E7A;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --soft: #F5FAF8;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; /* Anker-Sprungziele landen unterhalb der Sticky-Navigation */ }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.kicker {
  color: var(--teal-dark); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px;
}
h2 { color: var(--navy); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; text-wrap: balance; margin-bottom: 12px; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 46rem; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 12px 20px; min-height: 60px; flex-wrap: wrap; padding: 6px 0; }
.brand {
  font-weight: 700; color: var(--navy); font-size: 1.02rem; white-space: nowrap;
  text-decoration: none; display: flex; align-items: center; gap: 10px; flex: none;
}
.brand .eco { color: var(--teal); }
.brand-logo { height: 38px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 3px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 7px 10px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--mint); color: var(--navy); outline: none; }
.nav-links a.active { background: var(--mint); color: var(--navy); }
.nav-links a.cta { background: var(--navy); color: #fff; }
.nav-links a.cta:hover, .nav-links a.cta:focus-visible { background: var(--teal-dark); }
.nav-links a.cta.active { background: var(--teal-dark); color: #fff; }
.nav-links a.lang {
  border: 1.5px solid var(--line); color: var(--teal-dark); font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-links a.lang:hover, .nav-links a.lang:focus-visible { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.flag { width: 19px; height: auto; display: block; border-radius: 2px; flex: none; }

/* ===== Hamburger-Button (nur mobil sichtbar, siehe Media Query unten) ===== */
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--teal-dark); outline: none; }
/* Offen: Burger wird zum X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, #fff 0%, var(--mint) 100%); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
h1 { color: var(--navy); font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; text-wrap: balance; }
h1 .eco { color: var(--teal); }
.hero p.sub { margin: 18px 0 26px; font-size: 1.12rem; color: var(--ink); max-width: 34rem; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--teal-dark); outline: none; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 24px; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: #fff; outline: none; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges span {
  background: #fff; border: 1px solid var(--line); color: var(--teal-dark);
  font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}

.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(21,63,99,.18); }
.browser .bar { background: var(--mint); padding: 9px 14px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-deep); }
.browser .bar span { font-size: .74rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 12px; margin-left: 8px; flex: 1; }
.browser img { display: block; width: 100%; }

/* ===== Karten ===== */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 26px;
}
.card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 4px; }
.card .role { color: var(--teal-dark); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.card ul { list-style: none; }
.card li { padding-left: 20px; position: relative; margin-bottom: 8px; font-size: .95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.prodimg { height: 150px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 12px; margin-bottom: 16px; }
.prodimg img { max-height: 130px; width: auto; }

.band {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 26px;
  display: flex; gap: 14px; align-items: center; margin-top: 26px; font-size: 1rem;
}
.band b { color: #A8D8CF; }
.band .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); flex: none; }

/* ===== Funktionskette ===== */
.chain { display: flex; align-items: stretch; gap: 0; margin-top: 40px; }
.chain .node {
  flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 22px 16px; text-align: center;
}
.chain .node.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.chain .node h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.chain .node.dark h3 { color: #fff; }
.chain .node p { font-size: .85rem; color: var(--muted); }
.chain .node.dark p { color: #BEE0DA; }
.chain .link { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.chain .link .proto {
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--teal-dark);
  text-align: center; white-space: nowrap;
}
/* Variante: Kaesten vertikal mittig statt auf gleiche Hoehe gestreckt (Datensammler-Diagramm) */
.chain-mid { align-items: center; }
.chain .link .arrow { color: var(--teal); font-size: 1.5rem; line-height: 1; }
.trust { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.trust div {
  flex: 1; min-width: 220px; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 12px 20px; font-size: .95rem; text-align: center;
}
.fpbox { background: var(--mint); border-radius: 20px; padding: 34px; }

/* ===== Vernetzung / Datensammler ===== */
.newpill {
  display: inline-block; background: var(--teal); color: #fff; font-size: .74rem;
  font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px;
  vertical-align: middle; margin-left: 10px;
}
.sender-chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: .88rem; text-align: center; color: var(--muted);
}
.sender-chip b { color: var(--navy); display: block; font-size: .95rem; }

/* ===== Systemberater ===== */
.wizard-shell {
  background: var(--navy); border-radius: 22px; padding: 40px;
  color: #fff; margin-top: 36px;
}
.wizard-shell .kicker { color: #A8D8CF; }
.wizard-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.wizard-progress .bar { flex: 1; height: 6px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.wizard-progress .bar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.wizard-progress .step { font-size: .85rem; color: #BEE0DA; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wizard-q { font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.wizard-hint { color: #BEE0DA; font-size: .95rem; margin-bottom: 22px; }
.wizard-answers { display: flex; gap: 14px; flex-wrap: wrap; }
.wizard-answers button {
  background: #fff; color: var(--navy); border: none; border-radius: 12px;
  padding: 16px 24px; font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit; min-width: 130px; text-align: left;
}
.wizard-answers button small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.wizard-answers button:hover, .wizard-answers button:focus-visible {
  background: var(--teal); color: #fff; outline: none;
}
.wizard-answers button:hover small, .wizard-answers button:focus-visible small { color: #E3F0ED; }
.wizard-back {
  background: none; border: none; color: #A8D8CF; font-size: .9rem; cursor: pointer;
  margin-top: 24px; font-family: inherit; padding: 6px 0; text-decoration: underline;
}
.wizard-back:hover, .wizard-back:focus-visible { color: #fff; outline: none; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.result-card { background: #fff; border-radius: 14px; padding: 20px; color: var(--ink); }
.result-card .tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--teal-dark); text-transform: uppercase; }
.result-card h4 { color: var(--navy); font-size: 1.1rem; margin: 2px 0 8px; }
.result-card p { font-size: .88rem; color: var(--muted); }
.result-card .rimg { height: 110px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 10px; margin-bottom: 12px; }
.result-card .rimg img { max-height: 95px; width: auto; }
.result-note {
  background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4);
  border-radius: 12px; padding: 14px 18px; font-size: .92rem; color: #E3F0ED; margin-bottom: 20px;
}
.result-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover, .btn-teal:focus-visible { background: #fff; color: var(--navy); outline: none; }
.btn-outline-w { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-w:hover, .btn-outline-w:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); outline: none; }

/* ===== Software / Lizenzen ===== */
.shot { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(21,63,99,.12); }
.table-scroll { overflow-x: auto; margin-top: 30px; border-radius: 14px; border: 1.5px solid var(--line); }
table.lic { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.lic th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: .88rem; }
table.lic th.c, table.lic td.c { text-align: center; width: 110px; }
table.lic td { padding: 9px 16px; border-bottom: 1px solid var(--mint); }
table.lic tr:nth-child(odd) td { background: #F7FBFA; }
.yes, .no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.yes { background: var(--teal); color: #fff; }
.no { background: var(--mint-deep); color: #fff; }

.num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* ===== Gruppe / Logos ===== */
.group-box { background: var(--mint); border-radius: 20px; padding: 40px; margin-top: 30px; }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.group-card { background: #fff; border-radius: 16px; padding: 26px; display: flex; gap: 18px; align-items: flex-start; }
.group-card img { width: 64px; height: 64px; border-radius: 10px; flex: none; object-fit: contain; background: #fff; }
.group-card h3 { color: var(--navy); font-size: 1.1rem; }
.group-card p { font-size: .93rem; color: var(--muted); margin-top: 6px; }

.logo-eq {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin: 34px 0 8px;
}
.logo-eq figure { text-align: center; }
.logo-eq img { height: 84px; width: auto; border-radius: 12px; }
.logo-eq .op { font-size: 2rem; color: var(--teal-dark); font-weight: 700; }
.logo-eq figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; line-height: 1.35; }

/* ===== Kontakt / Footer ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
address { font-style: normal; font-size: .95rem; line-height: 1.7; }
footer { background: var(--navy); color: #BEE0DA; padding: 34px 0; font-size: .88rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; }

/* ===== Kein-Cookie-Hinweis ===== */
#nocookie {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 60;
  background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px;
  display: none; gap: 14px; align-items: center; width: min(560px, calc(100vw - 32px));
  box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem;
}
#nocookie.show { display: flex; }
#nocookie b { color: #A8D8CF; }
#nocookie button {
  background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 8px;
  width: 32px; height: 32px; font-size: 1rem; cursor: pointer; flex: none; font-family: inherit;
}
#nocookie button:hover, #nocookie button:focus-visible { background: var(--teal); outline: none; }

/* ===== Reveal-Animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wizard-progress .bar i { transition: none; }
}

/* ===== Lightbox (Bilder per Klick vergroessern) ===== */
img.zoom { cursor: zoom-in; }
.node-shot { width: 100%; border-radius: 8px; border: 1px solid var(--line); margin: 10px 0 8px; display: block; }
#lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(16, 42, 64, .88);
  display: none; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
#lb-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 1.5rem; cursor: pointer; font-family: inherit; line-height: 1;
}
#lb-close:hover, #lb-close:focus-visible { background: var(--teal); outline: none; }

/* ===== Responsiv ===== */
/* Hamburger-Menue: unterhalb 1200px passt die volle Menuezeile nicht mehr neben das Logo */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(21, 63, 99, .14);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 22px 16px; margin: 0;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .nav-links a.cta { text-align: center; margin-top: 8px; }
  .nav-links a.lang { justify-content: center; margin-top: 4px; }
  /* Unterseiten (Impressum/Datenschutz): nur ein Link -> kein Hamburger noetig */
  .nav-simple .nav-toggle { display: none; }
  .nav-simple .nav-links {
    display: flex; position: static; flex-direction: row; align-items: center;
    background: transparent; border: 0; box-shadow: none; padding: 0; max-height: none;
  }
}
@media (max-width: 920px) {
  section { padding: 54px 0; }
  .hero-grid, .grid3, .grid2, .group-grid, .contact-grid { grid-template-columns: 1fr; }
  .chain { flex-direction: column; }
  .chain .link { width: auto; flex-direction: row; gap: 10px; padding: 10px 0; justify-content: center; }
  .chain .link .arrow { transform: rotate(90deg); }
  .fpbox, .wizard-shell, .group-box { padding: 26px 20px; }
}
