/* ==========================================================================
   A-TRON Blockheizkraftwerke — Design System
   Konzept: "Strom & Wärme" — Blau (Strom) trifft Orange (Wärme)
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Farben */
  --navy-950: #07111d;
  --navy-900: #0b1d2e;
  --navy-800: #11293f;
  --navy-700: #1a3a57;

  --blue-600: #1572ae;
  --blue-500: #29abe2;
  --blue-400: #62c3ec;
  --blue-100: #e4f4fc;

  --amber-600: #c01b13;
  --amber-500: #e2231a;
  --amber-400: #ec5b50;
  --amber-100: #fdeae9;

  --green-600: #15803d;
  --green-500: #22a35a;
  --green-100: #e4f6ec;

  --surface: #f5f8fb;
  --card: #ffffff;
  --line: #e2e9f1;

  --text-900: #13283a;
  --text-700: #2e4a63;
  --text-600: #51687e;
  --text-400: #8aa0b4;
  --text-inverse: #eef4fa;
  --text-inverse-dim: #a8bccf;

  --grad-energy: linear-gradient(90deg, var(--blue-500), var(--amber-500));
  --grad-hero: linear-gradient(152deg, #0b1d2e 0%, #11293f 55%, #14344e 100%);

  /* Typografie */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 29, 46, 0.08);
  --shadow: 0 8px 28px rgba(11, 29, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(11, 29, 46, 0.16);

  --header-h: 76px;
  --topbar-h: 38px;
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-700);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

/* clip statt hidden: verhindert horizontales Scrollen durch das
   ausgeblendete Mobile-Menü, ohne position:sticky zu brechen */
html, body { overflow-x: clip; }

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--text-900);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7em 1.2em;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--alt { background: var(--surface); }
.section--dark {
  background: var(--grad-hero);
  color: var(--text-inverse-dim);
}
.section--dark h2,
.section--dark h3 { color: #fff; }

/* ---------- Hilfsklassen ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-energy);
}

.section--dark .eyebrow { color: var(--blue-400); }

.lead {
  font-size: var(--fs-lg);
  color: var(--text-600);
  max-width: 62ch;
}

.section--dark .lead { color: var(--text-inverse-dim); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead { margin-inline: auto; }

.text-grad {
  background: var(--grad-energy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(226, 35, 26, 0.35);
}

.btn--primary:hover { background: var(--amber-600); color: #fff; }

.btn--secondary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41, 171, 226, 0.3);
}

.btn--secondary:hover { background: #115d8f; color: #fff; }

.btn--ghost {
  border-color: var(--line);
  color: var(--text-900);
  background: var(--card);
}

.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.btn--lg { padding: 1em 2.2em; font-size: var(--fs-base); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--text-inverse-dim);
  font-size: var(--fs-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
}

.topbar a {
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.topbar__contact { display: flex; gap: 1.4rem; }

.topbar__hours { margin: 0; }

@media (max-width: 640px) {
  .topbar__hours { display: none; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand svg { height: 40px; width: auto; }

/* Echtes A-TRON Logo (PNG mit transparentem Hintergrund; der weiße
   Claim im unteren Bilddrittel ist auf hellem Grund unsichtbar). */
.brand img { height: 56px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6em 0.9em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-900);
}

.nav__link:hover,
.nav__item.is-active > .nav__link {
  color: var(--blue-600);
  text-decoration: none;
  background: var(--blue-100);
}

.nav__caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav__item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown,
.nav__item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__item:hover > .nav__link .nav__caret,
.nav__item.is-open > .nav__link .nav__caret {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 0.65em 0.9em;
  border-radius: var(--radius-sm);
  color: var(--text-900);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.dropdown a:hover {
  background: var(--surface);
  color: var(--blue-600);
  text-decoration: none;
}

.dropdown a span {
  display: block;
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--text-600);
}

.nav__cta { margin-left: 0.8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  /* Hinweis: backdrop-filter auf .site-header macht den Header zum
     Containing Block — daher absolute statt fixed Positionierung. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--card);
    padding: 1.2rem 1.4rem 4rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    z-index: 99;
  }

  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    font-size: var(--fs-base);
    padding: 0.85em 0.6em;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 0.4rem 0.9rem;
    padding: 0;
    display: none;
  }

  .nav__item.is-open > .dropdown { display: block; }

  .nav__cta {
    margin: 1.2rem 0 0;
    width: 100%;
  }

  body.nav-locked { overflow: hidden; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--text-inverse-dim);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(41, 171, 226, 0.22), transparent 65%),
    radial-gradient(640px 420px at 8% 95%, rgba(226, 35, 26, 0.16), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5em;
}

.hero .lead { color: var(--text-inverse-dim); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-inverse);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 163, 90, 0.25);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__fact strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__fact span { font-size: var(--fs-xs); }

.hero__visual { position: relative; }

/* Produktfoto im Hero (freigestelltes PNG auf dunklem Grund) */
.hero__product {
  position: relative;
  padding: 1rem;
}

.hero__product::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  background: radial-gradient(closest-side, rgba(41, 171, 226, 0.35), transparent 72%);
  filter: blur(34px);
}

.hero__product img {
  position: relative;
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.5));
}

.hero__product .eff-badge {
  position: absolute;
  top: 4%;
  left: 0;
  z-index: 1;
  background: rgba(34, 163, 90, 0.16);
  border: 1px solid var(--green-500);
  color: #7ee2a8;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Produktfotos in Karten */
.product-card__img {
  background: linear-gradient(180deg, #f2f5f9, #e7edf4);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-card__img img {
  height: 190px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Bild-Figuren mit Bildunterschrift */
.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.figure img { width: 100%; height: auto; border-radius: var(--radius-sm); }

.figure figcaption {
  font-size: var(--fs-xs);
  color: var(--text-400);
  margin-top: 0.7rem;
  text-align: center;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 540px; }
}

/* Sub-Hero für Unterseiten */
.page-hero {
  background: var(--grad-hero);
  color: var(--text-inverse-dim);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 360px at 88% 0%, rgba(41, 171, 226, 0.2), transparent 65%);
}

.page-hero__inner {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
  max-width: 800px;
}

.page-hero h1 { color: #fff; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: var(--fs-xs);
}

.breadcrumb a { color: var(--text-inverse-dim); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4em; color: var(--text-inverse-dim); }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Karten & Grids ---------- */
.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--contact { grid-template-columns: 1.3fr 0.7fr; align-items: start; }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfdce9;
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--blue-100);
  color: var(--blue-600);
}

.card__icon--warm { background: var(--amber-100); color: var(--amber-600); }
.card__icon--green { background: var(--green-100); color: var(--green-600); }

.card__icon svg { width: 28px; height: 28px; }

.card .more {
  font-weight: 700;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* Feature-Liste mit Häkchen */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.section--dark .checklist li::before {
  background-color: rgba(34, 163, 90, 0.22);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.stat strong .unit { font-size: 0.55em; font-weight: 700; margin-left: 0.08em; }

.stat span { font-size: var(--fs-sm); }

/* ---------- Tabs (Produktserien) ---------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tabs__btn {
  padding: 0.65em 1.4em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-600);
  cursor: pointer;
  transition: all 0.18s ease;
}

.tabs__btn:hover { border-color: var(--blue-400); color: var(--blue-600); }

.tabs__btn[aria-selected="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.tabs__panel[hidden] { display: none; }

/* ---------- Tabellen ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 640px;
}

table.data th,
table.data td {
  padding: 0.85em 1.1em;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
}

table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--surface); }

table.data .hl { color: var(--blue-600); font-weight: 700; }

/* ---------- Produktkarte ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-600);
}

.pill--warm { background: var(--amber-100); color: var(--amber-600); }
.pill--green { background: var(--green-100); color: var(--green-600); }
.pill--dark { background: var(--navy-900); color: #fff; }

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1rem 0 1.3rem;
}

.spec {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.spec b {
  display: block;
  font-size: 1.15rem;
  color: var(--text-900);
  letter-spacing: -0.01em;
}

.spec span { font-size: var(--fs-xs); color: var(--text-600); }

/* ---------- Referenzen ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ref-card { overflow: hidden; padding: 0; }

.ref-card__media {
  height: 140px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--grad-hero);
}

.ref-card__media svg { width: 64px; height: 64px; color: rgba(255,255,255,0.85); }

.ref-card__media--photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.ref-card__body { padding: 1.3rem 1.5rem 1.5rem; }

.ref-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-400);
  margin-bottom: 0.3rem;
}

.ref-card__power {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.ref-card__power .el { color: var(--blue-600); }
.ref-card__power .th { color: var(--amber-600); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--amber-500));
}

.timeline li {
  position: relative;
  padding-left: 3rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--card);
  border: 5px solid var(--blue-500);
  box-shadow: var(--shadow-sm);
}

.timeline .year {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-900);
  display: block;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] { box-shadow: var(--shadow); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  color: var(--text-900);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231572ae' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 1.5rem 1.3rem; }

/* ---------- CTA-Banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  color: var(--text-inverse-dim);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 2rem;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 280px at 90% 110%, rgba(226, 35, 26, 0.28), transparent 70%);
}

.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 0.3em; }
.cta-banner p { margin: 0; }

@media (max-width: 800px) {
  .cta-banner { grid-template-columns: 1fr; }
}

/* ---------- Formulare ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-900);
}

.field .hint { font-size: var(--fs-xs); color: var(--text-400); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--text-900);
  padding: 0.75em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.14);
}

.field input[aria-invalid="true"] { border-color: #d33; }

.checkbox-row {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: var(--fs-sm);
}

.checkbox-row input { width: 19px; height: 19px; margin-top: 3px; flex-shrink: 0; }

/* ---------- Rechner ---------- */
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc__progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.calc__progress li {
  list-style: none;
  text-align: center;
  padding: 1rem 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-400);
  position: relative;
}

.calc__progress li .num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: var(--text-600);
  margin-right: 0.5em;
}

.calc__progress li.is-active { color: var(--text-900); }
.calc__progress li.is-active .num { background: var(--blue-600); color: #fff; }
.calc__progress li.is-done .num {
  background: var(--green-500);
  color: #fff;
}

@media (max-width: 720px) {
  .calc__progress li span.label { display: none; }
}

.calc__body { padding: clamp(1.6rem, 4vw, 2.8rem); }

.calc__step[hidden] { display: none; }

.calc__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* Objekttyp-Auswahl */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }

.choice {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--card);
}

.choice:hover { border-color: var(--blue-400); transform: translateY(-2px); }

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.7rem;
  color: var(--text-600);
  transition: color 0.18s ease;
}

.choice b { display: block; color: var(--text-900); font-size: var(--fs-sm); }

.choice small { color: var(--text-400); font-size: var(--fs-xs); }

.choice:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-100);
  box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.12);
}

.choice:has(input:checked) svg { color: var(--blue-600); }

.choice:has(input:focus-visible) { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* Slider + Zahlfeld */
.range-field { margin-bottom: 1.7rem; }

.range-field__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.range-field__top label { font-weight: 700; color: var(--text-900); }

.range-field__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-600);
  letter-spacing: -0.01em;
}

.range-field__value input {
  width: 9ch;
  font: inherit;
  color: inherit;
  border: none;
  border-bottom: 2px solid var(--line);
  text-align: right;
  background: transparent;
  padding: 0 0.1em;
}

.range-field__value input:focus { outline: none; border-color: var(--blue-500); }

.range-field__value .unit { font-size: 0.75rem; color: var(--text-600); font-weight: 600; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-500) var(--fill, 50%), var(--line) var(--fill, 50%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-600);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-600);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.range-field__scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-400);
  margin-top: 0.3rem;
}

.preset-note {
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: var(--fs-sm);
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

/* Ergebnis */
.result-hero {
  background: var(--grad-hero);
  border-radius: var(--radius);
  color: var(--text-inverse-dim);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

@media (max-width: 640px) { .result-hero { grid-template-columns: 1fr; } }

.result-hero__icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.result-hero__icon svg { width: 52px; height: 52px; color: #fff; }

.result-hero__img {
  width: 120px;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  overflow: hidden;
}

.result-hero__img img { width: 100%; height: auto; display: block; border-radius: 8px; }

.result-hero h3 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.2em;
}

.result-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 860px) { .result-kpis { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.kpi b {
  display: block;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-900);
}

.kpi b.pos { color: var(--green-600); }

.kpi span { font-size: var(--fs-xs); color: var(--text-600); }

/* Balken-Vergleich */
.compare-bars { display: grid; gap: 1.1rem; margin: 1.4rem 0; }

.cbar__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 0.35rem;
}

.cbar__track {
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cbar__fill {
  height: 100%;
  border-radius: 7px 0 0 7px;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cbar__fill--old { background: linear-gradient(90deg, #94a3b8, #64748b); }
.cbar__fill--new { background: var(--grad-energy); }

.disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-400);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-inverse-dim);
  font-size: var(--fs-sm);
}

.site-footer a { color: var(--text-inverse-dim); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-brand svg { height: 38px; width: auto; margin-bottom: 1rem; }

.footer-brand img { height: 70px; width: auto; margin-bottom: 0.8rem; }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.footer-badges span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: var(--fs-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Scroll-Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cbar__fill { transition: none; }
  * { animation: none !important; }
}

/* ---------- Energie-Fluss-Animation (Hero-SVG) ---------- */
.flow-dash {
  stroke-dasharray: 6 10;
  animation: flowmove 1.6s linear infinite;
}

@keyframes flowmove {
  to { stroke-dashoffset: -32; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .topbar, .cta-banner, .calc__nav, .hero__actions { display: none !important; }
}


/* ==========================================================================
   WordPress-Integration (Astra Child)
   ========================================================================== */

/* Caret für Dropdown-Menüpunkte (ersetzt das Inline-SVG der statischen Seite) */
.nav__item.has-dropdown > .nav__link::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2313283a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}

.nav__item.has-dropdown:hover > .nav__link::after,
.nav__item.is-open > .nav__link::after { transform: rotate(180deg); }

/* Admin-Bar nicht vom Sticky-Header überlappen lassen */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Astra-Eigenheiten neutralisieren */
.site-header .navbar__inner a.brand { border: none; }
#inhalt.site-content { padding: 0; }

/* Blog-/Archivinhalte (Astra-Container) optisch andocken */
.ast-container { font-family: var(--font-sans); }

/* ==========================================================================
   Elementor-Bridge: native Widgets im A-TRON Design
   Gilt nur innerhalb von Sektionen mit der Klasse .atron-sec
   ========================================================================== */

/* Abstände steuert das Design-System, nicht die Elementor-Widget-Margins */
.atron-sec .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* Headings (Elementor setzt margin:0 zurück – hier wiederherstellen) */
.atron-sec .elementor-widget-heading .elementor-heading-title {
  color: var(--text-900);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
.atron-sec .elementor-widget-heading h1.elementor-heading-title { font-size: var(--fs-h1); }
.atron-sec .elementor-widget-heading h2.elementor-heading-title { font-size: var(--fs-h2); }
.atron-sec .elementor-widget-heading h3.elementor-heading-title { font-size: 1.2rem; margin-bottom: 0.4em; }

.page-hero .elementor-heading-title,
.hero .elementor-heading-title,
.section--dark .elementor-heading-title,
.cta-banner .elementor-heading-title { color: #fff !important; }

/* Zentrierte Abschnittsköpfe */
.atron-center { text-align: center; }
.atron-center .lead { margin-inline: auto; }

/* Buttons (Spiegelung der .btn-Varianten) */
.el-btn .elementor-button,
.el-btn .elementor-button:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  border: 2px solid transparent;
  background: transparent;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.el-btn .elementor-button:hover { transform: translateY(-2px); }
.el-btn-primary .elementor-button { background: var(--amber-500); color: #fff; box-shadow: 0 6px 18px rgba(226, 35, 26, 0.32); }
.el-btn-primary .elementor-button:hover { background: var(--amber-600); color: #fff; }
.el-btn-secondary .elementor-button { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(41, 171, 226, 0.3); }
.el-btn-secondary .elementor-button:hover { background: #115d8f; color: #fff; }
.el-btn-ghost .elementor-button { border-color: var(--line); color: var(--text-900); background: var(--card); }
.el-btn-ghost .elementor-button:hover { border-color: var(--blue-500); color: var(--blue-600); }
.el-btn-ghost-light .elementor-button { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.el-btn-ghost-light .elementor-button:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.el-btn-lg .elementor-button { padding: 1em 2.2em; font-size: var(--fs-base); }
.atron-sec .elementor-widget-button { margin: 0.5rem 0.9rem 0.5rem 0 !important; }

/* CTA-Banner als Inner-Section */
.cta-banner.elementor-section > .elementor-container { align-items: center; }
.cta-banner .elementor-widget-text-editor p { margin: 0; }

/* FAQ-Akkordeon im Stil der .faq-item */
.atron-faq .elementor-accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.atron-faq .elementor-tab-title {
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  color: var(--text-900);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
}
.atron-faq .elementor-tab-title a { color: inherit; }
.atron-faq .elementor-tab-title.elementor-active { color: var(--blue-600); }
.atron-faq .elementor-accordion-icon { color: var(--blue-600); }
.atron-faq .elementor-tab-content {
  border-top: none !important;
  padding: 0 1.5rem 1.3rem;
  color: var(--text-700);
}

/* Karten als Elementor-Spalten: Box auf dem Widget-Wrap, Außenabstand auf der Spalte */
.atron-sec .atron-card { padding: 0 0.7rem 1.4rem; }
.atron-sec .atron-card > .elementor-widget-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem) !important;
  box-shadow: var(--shadow-sm);
  align-content: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.atron-sec .atron-card:hover > .elementor-widget-wrap {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.atron-card .more { font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.35em; }

/* Bild-Widgets */
.atron-sec .elementor-widget-image img { border-radius: var(--radius-sm); }
.atron-sec .photo-card img { width: 100%; }