/* ==========================================================================
   IR Elektrotechnik GmbH  ·  styles.css
   Look: hell mit dunklen Akzenten. Electric Blue + Chrome + Hexagon.
   ========================================================================== */

/* ==========================================================================
   SCHRIFT: Inter, selbst gehostet
   Bewusst lokal statt ueber Google Fonts. Bei Google Fonts geht bei jedem
   Seitenaufruf die IP des Besuchers an Google, das muesste in die Datenschutz-
   erklaerung. So bleibt dort "keine Daten an Drittanbieter" richtig.
   Variable Fonts: eine Datei deckt wght 100-900 ab, deshalb reichen vier
   Dateien fuer alle benutzten Schnitte (400/500/600/700/800 plus Kursiv).
   Nachgeladen wird nur, was die Seite an Zeichen wirklich braucht, latin-ext
   bleibt bei deutschen Texten in der Regel ungenutzt.
   Lizenz: SIL Open Font License 1.1, siehe fonts/OFL.txt.
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-italic-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;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ir-blue:        #0B5FE3;
  --ir-blue-bright: #2C7BFF;
  --ir-blue-deep:   #063B8F;
  --ir-glow:        rgba(45,123,255,0.55);

  --ir-ink:         #0B0E14;   /* near-black, leicht blaustichig */
  --ir-ink-soft:    #11151D;
  --ir-ink-2:       #161C26;

  --ir-paper:       #F4F6FA;   /* heller, kuehler Body */
  --ir-paper-alt:   #EAEEF5;
  --ir-white:       #FFFFFF;

  --ir-text:        #151B24;
  --ir-muted:       #5C6675;
  --ir-muted-d:     #9AA6B6;   /* muted auf dunkel */

  --ir-line:        #E3E8F0;
  --ir-line-d:      rgba(255,255,255,0.10);

  --ir-chrome-1:    #EAF0F8;
  --ir-chrome-2:    #95A2B5;

  --ir-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Notdienst-Signalfarben */
  --ir-red:         #D42A1F;   /* Flaeche, immer mit weisser Schrift (5.1:1) */
  --ir-red-deep:    #B8231A;   /* Hover (6.4:1 auf Weiss, 3.0:1 auf Ink) */
  --ir-red-bright:  #FF6A5A;   /* Akzent-Text auf dunklem Grund (6.9:1 auf Ink) */

  --ir-sans-num: "Inter", system-ui, sans-serif;

  --ir-wrap: 1440px;
  --ir-nav-h: 84px;
  /* 3-Stufen-Radius (Apple-Stil): Chips/Buttons, Cards, grosse Bilder */
  --ir-r1: 9px;
  --ir-r2: 16px;
  --ir-r3: 26px;
  --ir-radius: 14px;           /* Legacy-Alias, bestehende Nutzungen */
  --ir-shadow: 0 18px 50px -20px rgba(11,14,20,0.35);
  --ir-shadow-blue: 0 22px 60px -24px rgba(11,95,227,0.55);
  /* Bewegungs-Tokens */
  --ir-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ir-ease-power: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--ir-nav-h); }

body {
  font-family: var(--ir-sans);
  background: var(--ir-paper);
  color: var(--ir-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.ir-wrap { width: 100%; max-width: var(--ir-wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }

/* ---------- Typo-Bausteine ---------- */
.ir-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ir-blue);
  margin-bottom: 18px;
}
/* Strich-Praefix fuer kleine Abschnittslabels */
.ir-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.ir-eyebrow--light { color: var(--ir-blue-bright); }

/* ---------- Notdienst (dunkel + Signalrot, Rhythmus-Bruch nach den Leistungen) ---------- */
.ir-notdienst { background: var(--ir-ink); color: #fff; position: relative; overflow: hidden; padding: 72px 0; }
.ir-notdienst::before {
  content: ""; position: absolute; top: -35%; right: -4%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212,42,31,0.22), transparent 62%);
  pointer-events: none;
}
.ir-notdienst-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center;
}
.ir-notdienst-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ir-red); color: #fff;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--ir-r1);
}
.ir-notdienst h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; margin: 18px 0 14px; letter-spacing: -0.01em; }
/* auf dem dunklen Band die helle Rot-Variante, sonst saeuft die Kursive ab */
.ir-notdienst h2 em { color: var(--ir-red-bright); font-style: italic; font-weight: 500; }
.ir-notdienst p { color: var(--ir-muted-d); max-width: 50ch; margin-bottom: 26px; }
.ir-notdienst-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ir-red); color: #fff;
  font-weight: 800; font-size: 1rem; padding: 14px 24px; border-radius: var(--ir-r1);
  transition: transform .18s var(--ir-ease), box-shadow .25s ease, background .2s ease;
}
.ir-notdienst-cta:hover { transform: translateY(-2px); background: var(--ir-red-deep); box-shadow: 0 14px 34px -12px rgba(212,42,31,0.55); }
.ir-notdienst-visual { display: flex; justify-content: center; }
.ir-notdienst-visual img { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }
@media (max-width: 760px) {
  .ir-notdienst-inner { grid-template-columns: 1fr; gap: 28px; }
  .ir-notdienst-visual { display: none; }
}

/* ---------- Notdienst-Seite (notdienst.html): Rot-Akzente + grosser Anruf-Button ---------- */
.ir-nd-eyebrow { color: var(--ir-red-bright); }
.ir-subhero--nd .ir-subhero-title em { color: var(--ir-red-bright); }
.ir-nd-call {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ir-red); color: #fff;
  font-weight: 800; font-size: 1.06rem; line-height: 1.35;
  padding: 16px 28px; border-radius: var(--ir-r1);
  transition: transform .18s var(--ir-ease), box-shadow .25s ease, background .2s ease;
}
.ir-nd-call:hover { transform: translateY(-2px); background: var(--ir-red-deep); box-shadow: 0 16px 38px -12px rgba(212,42,31,0.6); }
.ir-nd-note {
  margin-top: 30px; max-width: 640px;
  font-size: 0.95rem; color: var(--ir-text);
  padding: 14px 18px; background: var(--ir-white);
  border-left: 3px solid var(--ir-red); border-radius: 0 var(--ir-r1) var(--ir-r1) 0;
  box-shadow: 0 10px 26px -18px rgba(11, 14, 20, 0.35);
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--ir-text); }

.ir-section-head h2,
.ir-about h2,
.ir-warum h2,
.ir-kontakt h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

h2 em, h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ir-blue);
}

.ir-section-head { max-width: 720px; margin-bottom: 54px; }
/* schlanker Kopf: nur Eyebrow, z.B. ueber dem Marken-Marquee */
.ir-section-head--slim { margin-bottom: 0; }
.ir-section-lead { color: var(--ir-muted); font-size: 1.1rem; margin-top: 18px; }
/* Helle Alternativ-Flaeche fuer Sektionen, die sich ohne dunkles Band absetzen sollen */
.ir-section--alt { background: var(--ir-paper-alt); }

.ir-section { padding: 96px 0; }

/* ---------- Buttons ---------- */
/* Buttons: ruhig und typografisch, flache Flaeche mit kleinem Radius.
   Bewegung nur im Hover (Farbwechsel bzw. Inversion), keine Verlaeufe, keine Effekt-Formen. */
.ir-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 0.94rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .18s ease;
}
.ir-btn--primary { background: var(--ir-blue); color: #fff; border-color: var(--ir-blue); }
.ir-btn--primary:hover {
  background: var(--ir-blue-deep); border-color: var(--ir-blue-deep);
  box-shadow: 0 6px 18px -6px rgba(11, 95, 227, 0.5); transform: translateY(-1px);
}
.ir-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.ir-btn--ghost:hover { background: #fff; color: var(--ir-ink); border-color: #fff; }
/* Helle Variante fuer dunkle/blaue Baender, Hover invertiert */
.ir-btn--light { background: #fff; color: var(--ir-blue-deep); border-color: #fff; }
.ir-btn--light:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   TOP-STRIP
   ========================================================================== */
.ir-top { position: relative; background: var(--ir-ink-soft); color: var(--ir-muted-d); font-size: 0.85rem; }
.ir-top::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ir-blue), var(--ir-blue-bright) 55%, var(--ir-blue));
}
.ir-top-row { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.ir-top-region { letter-spacing: 0.04em; }
.ir-top-contact { display: flex; align-items: center; gap: 12px; }
.ir-top-contact a { transition: color .2s; }
.ir-top-contact a:hover { color: #fff; }
.ir-top-sep { color: rgba(255,255,255,0.25); }

/* ==========================================================================
   NAV
   ========================================================================== */
/* Van-Lackierung als Nav: dunkles Logo-Eck links, blauer Schwung, ab der Navigation alles weiss
   (Links + CTA auf Weiss). Geometrie ist ans Logo verankert (--swoosh-x), nicht an die
   Bildschirmmitte -> die weisse Flaeche schliesst sauber an das Logo-Eck an, kein Leerraum.
   --logo-inset folgt der Logo-Position (Wrap-Padding bzw. zentriert ab 1440px). */
.ir-nav {
  --logo-inset: max(clamp(20px, 5vw, 72px), calc(50% - 648px));
  --brand-w: 252px;                                 /* Logo + Wortmarke */
  /* Auf ganze Pixel runden: sonst landen Welle (SVG) und Streifen (CSS) auf halben
     Pixeln (5vw -> krumm) und es entsteht ein 1px-Saum an der Welle.
     Erste Zeile = Fallback fuer Browser ohne round(). */
  --swoosh-x: calc(var(--logo-inset) + var(--brand-w));
  --swoosh-x: round(calc(var(--logo-inset) + var(--brand-w)), 1px);
  position: sticky; top: 0; z-index: 100;
  background-color: var(--ir-ink);
  background-image:
    linear-gradient(var(--ir-blue-bright), var(--ir-blue-bright)),   /* Streifen unten links: matcht das helle Ende des gedrehten Schwung-Verlaufs */
    linear-gradient(var(--ir-blue), var(--ir-blue)),                 /* Streifen oben rechts: matcht das dunkle Ende des gedrehten Schwung-Verlaufs */
    linear-gradient(to right, transparent calc(var(--swoosh-x) + 126px), var(--ir-white) calc(var(--swoosh-x) + 126px)); /* weisse Flaeche rechts, Start exakt am oberen Schwung-Ende (kein weisser Saum) */
  background-repeat: no-repeat;
  background-position: left bottom, right top, left top;
  background-size:
    calc(var(--swoosh-x) + 8px) 5px,                /* unten links: bis in den Schwung */
    calc(100% - var(--swoosh-x) - 160px) 5px,       /* oben rechts: ab dem Schwung bis zur Kante */
    100% 100%;
  transition: box-shadow .3s ease;
}
.ir-nav.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }
/* Geschwungener Uebergang, ans Logo verankert. Um 180 Grad gedreht (scale -1,-1): Weiss liegt
   rechts UND der blaue Streifen steigt an (unten-links -> oben-rechts), wie im Original. */
.ir-nav::before {
  content: ''; position: absolute; left: var(--swoosh-x); top: 0; bottom: 0; width: 200px;
  background: url("images/ir-nav-swoosh.svg") left top / 200px 100% no-repeat;
  transform: scale(-1, -1);
  pointer-events: none; z-index: 0;
}
.ir-nav-row { position: relative; z-index: 1; }
.ir-nav-row { display: flex; align-items: center; justify-content: space-between; height: var(--ir-nav-h); gap: 24px; }

/* padding-right reserviert die weisse Schwung-Fahne, damit die Links garantiert dahinter starten
   (sonst rutscht "Leistungen" bei mittleren Breiten ueber das Weiss). */
.ir-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-right: 130px; }
/* Chrom-Symbol sitzt auf dem dunklen Eck. Glanz leicht zurueck, auf Dunkel getunt
   (etwas heller, damit das Silber auf Schwarz poppt). */
.ir-brand-logo { height: 58px; width: auto; }
/* Wortmarke neben dem Symbol, sitzt auf dem dunklen Eck -> weiss */
.ir-brand-word {
  font-size: clamp(0.78rem, 0.82vw, 1.05rem);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; white-space: nowrap; line-height: 1;
}
/* Auf mittleren Desktops braucht die Navigation den Platz -> nur das Symbol, Schwung rueckt ans Logo. */
@media (max-width: 1320px) {
  .ir-brand-word { display: none; }
  .ir-nav { --brand-w: 110px; }
}

.ir-nav-links { display: flex; align-items: center; gap: 26px; }
/* Links sitzen auf der weissen Flaeche -> dunkle Schrift */
.ir-nav-links a {
  color: var(--ir-ink); font-size: 0.96rem; font-weight: 500;
  position: relative; transition: color .2s; white-space: nowrap;
}
.ir-nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--ir-blue); transition: width .25s ease, box-shadow .25s ease;
}
.ir-nav-links a:hover { color: var(--ir-blue); }
.ir-nav-links a:hover::after { width: 100%; box-shadow: 0 0 8px rgba(11,95,227,0.45); }

.ir-nav-cta {
  background: var(--ir-blue); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 8px; flex-shrink: 0;
  transition: background .2s, box-shadow .25s, transform .18s;
}
.ir-nav-cta:hover { background: var(--ir-blue-deep); box-shadow: 0 5px 14px -5px rgba(11, 95, 227, 0.5); transform: translateY(-1px); }
.ir-nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.ir-nav-actions {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
}

/* Notdienst-Pille oben rechts (rot, neben dem blauen CTA).
   Beschriftung ist das Wort, nicht die Zahl: "Notdienst" ist das, wonach jemand im
   Ernstfall sucht. Die 24/7-Aussage traegt der Drawer-Eintrag, das Dropdown, das
   Startseiten-Band und notdienst.html. */
.ir-nav-notdienst {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ir-red); color: #fff;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  padding: 10px 16px; border-radius: 10px; flex-shrink: 0;
  transition: background .2s, transform .18s, box-shadow .25s;
}
/* Strichstaerke 2.2 aus dem Markup wirkt auf 16px klobig */
.ir-nav-notdienst svg { stroke-width: 1.9; }
.ir-nav-notdienst:hover { background: var(--ir-red-deep); transform: translateY(-1px); box-shadow: 0 5px 14px -6px rgba(212, 42, 31, 0.6); }
.ir-nav-notdienst:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* Kein Icon-only-Modus mehr: nachgemessen passt "Notdienst" ueberall, von 320px
   bis zum breiten Desktop (bei 1081px bleiben 24px Luft zu den Nav-Links). */

/* Burger (von JS injiziert) */
.ir-burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
.ir-burger span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
body.ir-nav-open .ir-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.ir-nav-open .ir-burger span:nth-child(2) { opacity: 0; }
body.ir-nav-open .ir-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.ir-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ir-ink); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 6px;
  /* safe center: zentriert bei Platz, bleibt aber scrollbar wenn der Inhalt
     hoeher ist als der Viewport (Smartphone quer). Fallback: flex-start. */
  justify-content: flex-start; justify-content: safe center;
  padding: 104px 40px 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
body.ir-nav-open .ir-drawer { opacity: 1; visibility: visible; transform: none; }
.ir-drawer a { color: #fff; font-size: 1.6rem; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--ir-line-d); }
.ir-drawer a:last-of-type { border-bottom: 0; }
.ir-drawer .ir-drawer-cta { color: var(--ir-blue-bright); }
.ir-drawer .ir-drawer-notdienst { color: var(--ir-red-bright); }
/* Leistungen: aufklappbares Untermenue im Drawer */
.ir-drawer-group {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--ir-line-d);
  font-family: inherit; text-align: left; cursor: pointer;
  color: #fff; font-size: 1.6rem; font-weight: 700; padding: 12px 0;
}
.ir-drawer-group-chev { width: 22px; height: 22px; flex-shrink: 0; color: var(--ir-blue-bright); transition: transform .3s var(--ir-ease); }
.ir-drawer-group.is-open .ir-drawer-group-chev { transform: rotate(180deg); }
.ir-drawer-sub {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s var(--ir-ease), opacity .25s ease;
}
.ir-drawer-sub.is-open { grid-template-rows: 1fr; opacity: 1; }
.ir-drawer-sub-inner { overflow: hidden; min-height: 0; }
.ir-drawer a.ir-drawer-sublink {
  display: block; font-size: 1.08rem; font-weight: 600; color: rgba(255, 255, 255, 0.82);
  padding: 11px 0 11px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ir-drawer-sub.is-open + a { border-top: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.ir-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: calc(100svh - 72px);
  padding: 80px 0 104px;
  background: var(--ir-ink);
  color: #fff;
}
/* Cinematic Video-Buehne */
.ir-hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: var(--ir-ink) url("images/ir-hero-poster.jpg?v=6") center / cover no-repeat;
}
.ir-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.ir-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(8,11,18,0.93) 0%, rgba(8,11,18,0.72) 38%, rgba(8,11,18,0.42) 70%, rgba(8,11,18,0.6) 100%),
    linear-gradient(0deg, rgba(11,95,227,0.2) 0%, rgba(11,95,227,0.04) 55%, transparent 100%);
}
@keyframes ir-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16) translate(-1.5%, -1.2%); }
}

.ir-hero-inner { position: relative; z-index: 2; max-width: 600px; }
.ir-hero .ir-eyebrow { color: var(--ir-blue-bright); }
.ir-hero-title {
  font-size: clamp(2.7rem, 7.5vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 24px; text-wrap: balance;
}
.ir-hero-title em { color: var(--ir-blue-bright); font-style: italic; font-weight: 500; }
/* Energie-Linie zieht beim Laden von "Strom." nach "Technik.":
   an beiden Enden spitz, in der Mitte am dicksten (SVG-Linse), skaliert mit der Schrift.
   Sitzt im Unterlaengen-Raum der Zeile ("Strom. Technik." hat keine Unterlaengen),
   dadurch klarer Abstand zu "Zukunft." darunter. */
.ir-hero-line { position: relative; display: inline-block; }
.ir-hero-line::after {
  content: ''; position: absolute; left: 4px; right: 12px; bottom: 0.05em; height: 0.09em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230B5FE3'/%3E%3Cstop offset='1' stop-color='%232C7BFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 4 C 18 0.8 82 0.8 100 4 C 82 7.2 18 7.2 0 4 Z' fill='url(%23g)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 10px rgba(45, 123, 255, 0.5));
  transform: scaleX(0); transform-origin: left center;
  animation: ir-hero-underline .9s var(--ir-ease) .5s forwards;
}
@keyframes ir-hero-underline { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ir-hero-line::after { animation: none; transform: scaleX(1); }
}
.ir-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,0.86); max-width: 620px; }
/* Lesbarkeit ueber wechselnden Videoframes absichern */
.ir-hero-title, .ir-hero-lead { text-shadow: 0 2px 28px rgba(8,11,18,0.45); }
.ir-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* Telefon als Icon-Button */
.ir-btn--call { display: inline-flex; align-items: center; gap: 9px; }
.ir-btn--call svg { width: 18px; height: 18px; flex-shrink: 0; }
.ir-hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 42px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.16);
}
.ir-hero-trust li {
  position: relative; padding-left: 20px;
  font-size: 0.9rem; color: rgba(255,255,255,0.82); font-weight: 500;
}
.ir-hero-trust li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ir-blue-bright); box-shadow: 0 0 10px var(--ir-blue-bright);
}

/* Hero Entrance-Animation (gestaffelt) */
.ir-hero-inner > * { opacity: 0; transform: translateY(22px); animation: ir-hero-in .85s cubic-bezier(.2,.75,.25,1) forwards; }
.ir-hero-inner > .ir-hero-title{ animation-delay: .1s; }
.ir-hero-inner > .ir-hero-lead { animation-delay: .24s; }
.ir-hero-inner > .ir-hero-ctas { animation-delay: .38s; }
@keyframes ir-hero-in { to { opacity: 1; transform: none; } }

/* Scroll-Cue */
.ir-hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; display: flex; align-items: center; gap: 13px;
  color: rgba(255,255,255,0.58); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  transition: color .25s ease;
}
.ir-hero-scroll-line {
  position: relative; width: 1px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,0.25); overflow: hidden;
  transition: background .25s ease;
}
.ir-hero-scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 42%;
  background: var(--ir-blue-bright);
  animation: ir-scrollcue 1.9s ease-in-out infinite;
  transition: box-shadow .25s ease;
}
/* Hover: aufleuchten */
.ir-hero-scroll:hover { color: var(--ir-blue-bright); }
.ir-hero-scroll:hover .ir-hero-scroll-line { background: rgba(45,123,255,0.55); }
.ir-hero-scroll:hover .ir-hero-scroll-line::after { box-shadow: 0 0 12px var(--ir-blue-bright); }
@keyframes ir-scrollcue {
  0%       { transform: translateY(-100%); }
  65%,100% { transform: translateY(260%); }
}

/* ==========================================================================
   STATS  (dunkler Band)
   ========================================================================== */
.ir-stats {
  background: linear-gradient(180deg, var(--ir-ink-soft), var(--ir-ink-2));
  color: #fff; padding: 56px 0; position: relative;
  border-top: 1px solid var(--ir-line-d);
}
/* blaue Unterkante als Anker-Optik */
.ir-stats::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--ir-blue), var(--ir-blue-bright));
}
.ir-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ir-stat { text-align: center; }
.ir-stat-num {
  display: inline-flex; align-items: baseline; justify-content: center;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
/* Chrom-Gradient auf die Zahl selbst (data-count steckt hier drin) */
.ir-stat-val {
  background: linear-gradient(180deg, var(--ir-chrome-1) 0%, var(--ir-chrome-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ir-stat-suffix { color: var(--ir-blue-bright); -webkit-text-fill-color: var(--ir-blue-bright); margin-left: 3px; }
.ir-stat-label {
  display: block; margin-top: 12px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; line-height: 1.35; color: var(--ir-muted-d);
}
.ir-stat.reveal:nth-child(2) { transition-delay: .08s; }
.ir-stat.reveal:nth-child(3) { transition-delay: .16s; }
.ir-stat.reveal:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   LEISTUNGEN
   ========================================================================== */
/* Leistungsumfang: dezentes Blueprint-Raster gibt der Sektion Tiefe */
.ir-leistungen {
  background-color: var(--ir-paper-alt);
  background-image:
    linear-gradient(rgba(11, 95, 227, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 227, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Leistungen als Zickzack-Reihen (Bild/Text abwechselnd) */
.ir-feature-list { display: flex; flex-direction: column; gap: clamp(34px, 6vw, 76px); }
.ir-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  color: inherit; text-decoration: none;
}
/* Bild hebt sich mit tiefem Schatten vom Hintergrund ab (3D) */
.ir-feature-img {
  position: relative; min-height: 360px; border-radius: 18px; overflow: hidden;
  background: var(--ir-ink) center / cover no-repeat;
  box-shadow: 0 34px 64px -30px rgba(11,14,20,0.55), 0 12px 26px -16px rgba(11,14,20,0.32);
  transition: opacity .7s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
/* echtes img statt CSS-Background: gleicher Look, aber alt-Text + Bildersuche.
   Absolut positioniert, sonst diktiert ein Hochformat-Bild die Kartenhoehe. */
.ir-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ir-feature:nth-child(even) .ir-feature-img { order: 2; }
.ir-feature-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 14px; color: var(--ir-text);
  display: inline-flex; align-items: center; gap: 12px;
}
.ir-feature-body p { color: var(--ir-muted); font-size: 1.05rem; line-height: 1.6; max-width: 460px; }
.ir-feature-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--ir-blue); color: #fff; font-weight: 600; font-size: 0.95rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.ir-feature-btn-arrow { display: inline-block; transition: transform .25s ease; }
.ir-feature:hover .ir-feature-btn { opacity: 1; transform: none; background: var(--ir-blue-bright); }
.ir-feature:hover .ir-feature-btn-arrow { transform: translateX(4px); }
/* Touch-Geraete: Button dauerhaft sichtbar (kein Hover) */
@media (hover: none) { .ir-feature-btn { opacity: 1; transform: none; } }
.ir-feature:hover .ir-feature-img {
  transform: translateY(-8px);
  box-shadow: 0 46px 84px -30px rgba(11,14,20,0.62), 0 16px 30px -16px rgba(11,14,20,0.4);
}

/* Reveal beim Scrollen: Bild blendet ein, Text kommt aus dem Bild */
.ir-feature.reveal { opacity: 1; transform: none; }
.ir-feature .ir-feature-img { opacity: 0; transform: scale(0.95); }
.ir-feature .ir-feature-body {
  opacity: 0; transform: translateX(-52px);
  transition: opacity .7s ease .12s, transform .75s cubic-bezier(.2,.7,.2,1) .12s;
}
.ir-feature:nth-child(even) .ir-feature-body { transform: translateX(52px); }
.ir-feature.reveal.is-visible .ir-feature-img { opacity: 1; transform: none; }
.ir-feature.reveal.is-visible .ir-feature-body { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .ir-feature { grid-template-columns: 1fr; gap: 18px; }
  .ir-feature:nth-child(even) .ir-feature-img { order: 0; }
  .ir-feature .ir-feature-body, .ir-feature:nth-child(even) .ir-feature-body { transform: translateY(28px); }
  .ir-feature-img { min-height: 220px; }
  .ir-feature-body p { max-width: none; }
}

/* Leistungen als Bild-Kacheln (Tesla-Stil) */
.ir-svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ir-svc-card {
  position: relative; overflow: hidden; border-radius: 16px;
  grid-column: span 2; min-height: 322px;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  background: var(--ir-ink); box-shadow: var(--ir-shadow);
}
.ir-svc-card:nth-child(4), .ir-svc-card:nth-child(5) { grid-column: span 3; min-height: 300px; }
.ir-svc-card-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.ir-svc-card:hover .ir-svc-card-img { transform: scale(1.07); }
.ir-svc-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,11,18,0.92) 0%, rgba(8,11,18,0.45) 44%, rgba(8,11,18,0.06) 78%, rgba(8,11,18,0.22) 100%);
}
.ir-svc-card-body { position: relative; z-index: 1; padding: 26px 24px; width: 100%; }
.ir-svc-card-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--ir-blue-bright); }
.ir-svc-card h3 { font-size: 1.3rem; color: #fff; margin: 8px 0; display: flex; align-items: center; gap: 8px; }
.ir-svc-card p { color: rgba(255,255,255,0.86); font-size: 0.96rem; line-height: 1.5; text-shadow: 0 1px 12px rgba(8,11,18,0.55); }
.ir-svc-card-num, .ir-svc-card h3 { text-shadow: 0 1px 12px rgba(8,11,18,0.6); }
a.ir-svc-card .ir-leistung-arrow { display: inline-block; color: var(--ir-blue-bright); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; font-weight: 500; font-size: 0.85em; }
a.ir-svc-card:hover .ir-leistung-arrow { opacity: 1; transform: translateX(2px); }
/* gestaffelter Reveal */
.ir-svc-card.reveal:nth-child(2) { transition-delay: .07s; }
.ir-svc-card.reveal:nth-child(3) { transition-delay: .14s; }
.ir-svc-card.reveal:nth-child(4) { transition-delay: .07s; }
.ir-svc-card.reveal:nth-child(5) { transition-delay: .14s; }
@media (max-width: 860px) {
  .ir-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .ir-svc-card, .ir-svc-card:nth-child(4), .ir-svc-card:nth-child(5) { grid-column: span 1; min-height: 256px; }
  .ir-svc-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ir-svc-grid { grid-template-columns: 1fr; }
  .ir-svc-card, .ir-svc-card:nth-child(4), .ir-svc-card:nth-child(5) { grid-column: 1 / -1; min-height: 236px; }
}
.ir-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 34px; counter-reset: svc; }
@media (max-width: 1040px) { .ir-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ir-services { grid-template-columns: 1fr; gap: 38px; } }
.ir-services.ir-services--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px)  { .ir-services.ir-services--3 { grid-template-columns: 1fr; } }
/* Leistungsumfang: editoriale Zellen mit Hairline und Nummer */
.ir-service {
  counter-increment: svc;
  position: relative; background: transparent; border: 0; border-radius: 0;
  border-top: 2px solid rgba(11, 14, 20, 0.82);
  padding: 26px 2px 6px 0;
  display: flex; flex-direction: column;
}
.ir-service::before {
  content: ''; position: absolute; top: -2px; left: 0; height: 2px; width: 44px;
  background: var(--ir-blue); transition: width .4s var(--ir-ease);
}
.ir-service:hover::before { width: 100%; }
.ir-service::after {
  content: '0' counter(svc);
  position: absolute; top: 24px; right: 2px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em; color: var(--ir-blue);
}
.ir-service-icon {
  width: auto; height: auto; margin-bottom: 20px;
  display: block; background: none; border: 0; border-radius: 0;
  color: var(--ir-muted-d); transition: color .25s ease;
}
.ir-service:hover .ir-service-icon { color: var(--ir-blue); }
.ir-service-icon svg { width: 38px; height: 38px; stroke-width: 1.3; }
.ir-service h3 { font-size: 1.22rem; margin-bottom: 12px; }
.ir-service p { color: var(--ir-muted); font-size: 0.97rem; flex-grow: 1; }

/* Aufklappbare Details: Das Panel sitzt direkt unter der angeklickten Rasterzeile.
   Mobil bedeutet das direkt unter der einzelnen Leistungskarte. */
.ir-service-more { display: none; }
.ir-service-cue {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 18px; padding: 0; border: 0; background: none;
  font-family: inherit; color: var(--ir-blue); font-weight: 600; font-size: 0.92rem;
  cursor: pointer;
}
.ir-service-cue::after {
  content: '+'; font-size: 1.1rem; line-height: 1;
  transition: transform .3s var(--ir-ease);
}
.ir-service.is-open .ir-service-cue::after { transform: rotate(45deg); }
.ir-service.is-open::before { width: 100%; }
.ir-service.is-open .ir-service-icon { color: var(--ir-blue); }
.ir-service-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  grid-column: 1 / -1; width: 100%;
  transition: grid-template-rows .45s var(--ir-ease), opacity .3s ease;
}
.ir-service-panel.is-open { grid-template-rows: 1fr; opacity: 1; }
.ir-service-panel-clip { overflow: hidden; min-height: 0; }
.ir-service-panel-inner {
  margin-top: 6px; padding: 28px 32px;
  background: var(--ir-white); border-left: 3px solid var(--ir-blue);
  border-radius: 0 14px 14px 0; box-shadow: var(--ir-shadow);
}
.ir-service-panel-inner h4 { font-size: 1.15rem; margin-bottom: 12px; }
.ir-service-panel-inner p { color: var(--ir-muted); font-size: 0.99rem; line-height: 1.65; max-width: 76ch; }
.ir-service-panel-inner p + p { margin-top: 12px; }
.ir-service-link {
  display: inline-block; margin-top: 20px; color: var(--ir-blue); font-weight: 700; font-size: 0.95rem;
  transition: gap .2s;
}
.ir-service:hover .ir-service-link { color: var(--ir-blue-bright); }

/* ==========================================================================
   WARUM IR  (heller Block, weisse Karten)
   ========================================================================== */
.ir-warum { position: relative; overflow: hidden; background: var(--ir-white); color: var(--ir-text); }
.ir-warum::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.18;
  -webkit-mask-image: radial-gradient(90% 100% at 0% 0%, #000, transparent 58%);
          mask-image: radial-gradient(90% 100% at 0% 0%, #000, transparent 58%);
}
.ir-warum .ir-wrap { position: relative; z-index: 1; }
.ir-warum h2 { color: var(--ir-text); }
.ir-warum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ir-warum-card {
  background: var(--ir-white); border: 1px solid var(--ir-line);
  border-radius: var(--ir-radius); padding: 30px 26px;
  box-shadow: 0 12px 32px -20px rgba(11,14,20,0.28);
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
}
.ir-warum-card:hover { transform: translateY(-5px); border-color: rgba(11,95,227,0.4); box-shadow: var(--ir-shadow); }
.ir-warum-num {
  font-size: 1rem; font-weight: 800; color: var(--ir-blue);
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.ir-warum-card h3 { color: var(--ir-text); font-size: 1.18rem; margin-bottom: 10px; }
.ir-warum-card p { color: var(--ir-muted); font-size: 0.95rem; }

/* ==========================================================================
   MARKEN: vertikaler Logo-Ticker als gerahmtes Panel in der Sektion.
   Zwei gegenlaeufige Spalten; die Bewegung bleibt beim Hovern erhalten.
   ========================================================================== */
.ir-brands { background: var(--ir-paper); overflow: hidden; }
.ir-brands-lead { color: var(--ir-muted); font-size: 1.06rem; margin-top: 16px; max-width: 560px; }
.ir-brands-ticker {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  height: 420px; padding: 14px;
  background: var(--ir-white); border: 1px solid var(--ir-line); border-radius: 16px;
  box-shadow: var(--ir-shadow);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.ir-ticker-col { overflow: hidden; min-height: 0; }
.ir-ticker-track { display: flex; flex-direction: column; animation: ir-ticker-up 62s linear infinite; }
/* gegenlaeufige Spalten mit leicht unterschiedlichem Tempo, nimmt der Wand das Mechanische */
.ir-ticker-col:nth-child(2) .ir-ticker-track { animation: ir-ticker-down 74s linear infinite; }
.ir-ticker-col:nth-child(3) .ir-ticker-track { animation: ir-ticker-up 68s linear infinite; }
.ir-ticker-col:nth-child(4) .ir-ticker-track { animation: ir-ticker-down 58s linear infinite; }
.ir-ticker-card {
  flex: 0 0 auto; height: 84px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; padding: 18px 24px;
  background: var(--ir-paper); border: 1px solid var(--ir-line); border-radius: 12px;
  /* kraeftig entsaettigt statt blass: auch helle Logos (Hager, Sungrow, 2N) bleiben lesbar */
  filter: grayscale(1) contrast(1.3) brightness(0.88); opacity: 0.85;
  transition: filter .3s ease, opacity .3s ease, border-color .3s ease;
}
.ir-ticker-card:hover { filter: grayscale(0); opacity: 1; border-color: rgba(11, 95, 227, 0.3); }
.ir-ticker-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; pointer-events: none; }
/* Loop-Distanz = ein Set inkl. margin-bottom, deshalb margin statt gap */
@keyframes ir-ticker-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes ir-ticker-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@media (max-width: 700px) {
  /* 2x2 Ticker-Fenster statt 4 schmaler Spalten. Explizite 1fr-Reihen sind Pflicht,
     sonst nimmt Reihe 1 die volle Track-Hoehe ein und Spalte 3+4 sind unsichtbar. */
  .ir-brands-ticker {
    grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 480px;
    -webkit-mask-image: none; mask-image: none;
  }
  /* Fade gehoert dann an jedes der vier Fenster, nicht an den Container
     (sonst schneidet die Container-Maske Logos in der Panel-Mitte hart ab) */
  .ir-ticker-col {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  }
  .ir-ticker-card { height: 66px; padding: 12px 16px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ir-ticker-track, .ir-ticker-col:nth-child(2) .ir-ticker-track, .ir-ticker-col:nth-child(3) .ir-ticker-track, .ir-ticker-col:nth-child(4) .ir-ticker-track { animation: none; }
  .ir-brands-ticker, .ir-ticker-col { -webkit-mask-image: none; mask-image: none; }
  .ir-ticker-card[aria-hidden="true"] { display: none; }
}
/* ==========================================================================
   ABLAUF
   ========================================================================== */
/* Ablauf als dunkles Technik-Band: bricht die hellen Sektionen und gibt den Innenseiten Tiefe */
.ir-ablauf {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ir-ink) 0%, var(--ir-ink-soft) 100%);
}
.ir-ablauf::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.05;
}
.ir-ablauf .ir-wrap { position: relative; }
.ir-ablauf .ir-eyebrow { color: var(--ir-blue-bright); }
.ir-ablauf h2 { color: #fff; }
.ir-ablauf h2 em { color: var(--ir-blue-bright); }
.ir-ablauf .ir-section-lead { color: var(--ir-muted-d); }
.ir-ablauf .ir-process-step h4 { color: #fff; }
.ir-ablauf .ir-process-step p { color: var(--ir-muted-d); }
.ir-ablauf .ir-process-step:not(:last-child)::before {
  background: linear-gradient(90deg, rgba(45, 123, 255, 0.55) 0%, rgba(45, 123, 255, 0.18) 72%, rgba(45, 123, 255, 0) 100%);
}
/* Schritt 4 (dunkelster Verlauf der 4er-Ablaeufe) braucht auf dunklem Grund eine Kante */
.ir-ablauf .ir-process-step:nth-child(4) .ir-process-num {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}
.ir-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ir-process-step { position: relative; padding-top: 8px; }
/* Timeline: feine Linie verbindet die Schritte (nur in der 5-spaltigen Ansicht) */
.ir-process-step:not(:last-child)::before {
  content: ''; position: absolute; z-index: 0;
  top: 34px; left: 27px; width: calc(100% + 20px); height: 2px;
  background: linear-gradient(90deg, rgba(11,95,227,0.34) 0%, rgba(11,95,227,0.12) 72%, rgba(11,95,227,0) 100%);
}
.ir-process-num {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.32rem; font-weight: 800; color: #fff; letter-spacing: -0.01em;
  margin-bottom: 22px; background: var(--ir-blue);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 14px 28px -14px rgba(11,14,20,0.5);
  transition: transform .25s ease;
}
.ir-process-step:hover .ir-process-num { transform: translateY(-3px); }
/* Farb-Reise: Electric Blue am Start, ueber Tiefblau bis fast Schwarz am Ende */
.ir-process-step:nth-child(1) .ir-process-num { background: linear-gradient(150deg, #3F8CFF, var(--ir-blue)); }
.ir-process-step:nth-child(2) .ir-process-num { background: linear-gradient(150deg, var(--ir-blue-bright), var(--ir-blue)); }
.ir-process-step:nth-child(3) .ir-process-num { background: linear-gradient(150deg, var(--ir-blue), var(--ir-blue-deep)); }
.ir-process-step:nth-child(4) .ir-process-num { background: linear-gradient(150deg, var(--ir-blue-deep), #08245A); }
.ir-process-step:nth-child(5) .ir-process-num { background: linear-gradient(150deg, var(--ir-ink-2), var(--ir-ink)); }
.ir-process-step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.ir-process-step p { color: var(--ir-muted); font-size: 0.94rem; }

/* ==========================================================================
   UEBER IR
   ========================================================================== */
.ir-about { background: var(--ir-white); }
.ir-about-sign { margin-top: 26px; font-style: italic; font-weight: 600; color: var(--ir-text); }

/* Unternehmensprofil und Ablauf liegen als zusammenhaengende Geschichte auf Paper. */
.ir-story { background: var(--ir-paper); }
.ir-about-process { margin-top: 0; padding-top: 0; border-top: 0; }
.ir-about-process-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 52px); }
.ir-about-process-head h3 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); color: var(--ir-text); }
.ir-about-process-head .ir-section-lead { margin-top: 16px; }

/* ==========================================================================
   KONTAKT  (heller Block, weisse Formular-Karte)
   ========================================================================== */
.ir-kontakt { position: relative; overflow: hidden; background: var(--ir-paper); color: var(--ir-text); }
.ir-kontakt::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.18;
  -webkit-mask-image: radial-gradient(90% 100% at 100% 0%, #000, transparent 58%);
          mask-image: radial-gradient(90% 100% at 100% 0%, #000, transparent 58%);
}
.ir-kontakt .ir-wrap { position: relative; z-index: 1; }
.ir-kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ir-kontakt h2 { color: var(--ir-text); }
.ir-kontakt-lead { color: var(--ir-muted); margin: 18px 0 30px; font-size: 1.06rem; }
.ir-kontakt-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.ir-kontakt-list li { display: flex; flex-direction: column; gap: 4px; }
.ir-kontakt-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ir-blue); font-weight: 700; }
.ir-kontakt-list a, .ir-kontakt-list span { color: var(--ir-text); font-size: 1.1rem; }
.ir-kontakt-list a:hover { color: var(--ir-blue); }

/* Form */
.ir-form {
  background: var(--ir-white); border: 1px solid var(--ir-line);
  border-radius: var(--ir-radius); padding: 34px 30px;
  box-shadow: var(--ir-shadow);
}
.ir-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.ir-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ir-field label { font-size: 0.85rem; font-weight: 600; color: var(--ir-text); margin-bottom: 7px; }
.ir-field input, .ir-field select, .ir-field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ir-text);
  background: var(--ir-paper); border: 1px solid var(--ir-line);
  border-radius: 9px; padding: 12px 14px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.ir-field input::placeholder, .ir-field textarea::placeholder { color: var(--ir-muted); opacity: 0.7; }
.ir-field input:focus, .ir-field select:focus, .ir-field textarea:focus {
  outline: none; border-color: var(--ir-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(11,95,227,0.12);
}
.ir-field select option { color: #111; }
.ir-field textarea { resize: vertical; }
.ir-form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Datenschutz-Zustimmung */
.ir-form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; }
.ir-form-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ir-blue); cursor: pointer; }
.ir-form-consent label { font-size: 0.82rem; line-height: 1.5; color: var(--ir-muted); font-weight: 400; margin: 0; cursor: pointer; }
.ir-form-consent a { color: var(--ir-blue); text-decoration: underline; }
.ir-form-submit { width: 100%; margin-top: 6px; position: relative; }
.ir-form-submit .spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; display: none; animation: ir-spin .7s linear infinite;
}
.ir-form-submit.is-loading .label { opacity: 0.6; }
.ir-form-submit.is-loading .spinner { display: inline-block; }
@keyframes ir-spin { to { transform: rotate(360deg); } }
.ir-form-status { margin-top: 14px; font-size: 0.94rem; min-height: 1.2em; }
.ir-form-status.is-ok { color: #15803d; }
.ir-form-status.is-err { color: #c1121f; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ir-footer { background: #07090D; color: var(--ir-muted-d); padding: 64px 0 30px; }
.ir-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ir-footer-logo { height: 64px; width: auto;  margin-bottom: 18px; }
.ir-footer-brand p { font-size: 0.95rem; line-height: 1.7; }
.ir-footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 18px; }
.ir-footer-col a, .ir-footer-col span { display: block; font-size: 0.92rem; margin-bottom: 11px; transition: color .2s; }
.ir-footer-col a:hover { color: var(--ir-blue-bright); }
.ir-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--ir-line-d); font-size: 0.85rem;
}
.ir-footer-credit a { color: var(--ir-blue-bright); font-weight: 600; }

/* ==========================================================================
   REVEAL-ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .ir-warum-grid { grid-template-columns: repeat(2, 1fr); }
  .ir-process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .ir-process-step:not(:last-child)::before { display: none; }
}

/* Nav klappt auf Burger: das weisse Feld + Schwung + reservierte Fahne brauchen Platz neben
   den Links, deshalb hier (1000px) statt erst bei 860px. */
@media (max-width: 1080px) {
  .ir-nav-links, .ir-nav-cta { display: none; }
  /* Der Notdienst sitzt mobil im Drawer. Dadurch bleibt die Kopfzeile ruhig und
     der Menueknopf hat auch auf 320px ausreichend Platz. */
  .ir-nav-actions { display: none; }
  .ir-burger { display: flex; margin-left: auto; }

  /* Den charakteristischen Schwarz-Weiss-Uebergang auch mobil beibehalten.
     Der Schwung beginnt direkt hinter dem kompakten Logo; rechts liegt der
     Menueknopf auf der weissen Flaeche. */
  .ir-nav {
    --logo-inset: 20px;
    --brand-w: 95px;
  }
  .ir-burger span { background: var(--ir-ink); }
  .ir-brand { padding-right: 0; }

  .ir-drawer .ir-drawer-notdienst {
    display: flex; align-items: center; justify-content: center;
    margin-top: 8px; padding: 13px 16px;
    color: #fff; background: var(--ir-red); border: 0; border-radius: 10px;
    font-size: 1.18rem;
  }
}

@media (max-width: 860px) {
  .ir-kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .ir-section { padding: 72px 0; }
  .ir-hero { padding: 60px 0 84px; }
  /* Hochformat schneidet die Seiten weg -> Ausschnitt nach rechts schieben, damit Wallbox/Kamera sichtbar bleiben */
  .ir-hero-video, .ir-hero-media { object-position: 68% center; background-position: 68% center; }
}

@media (max-width: 620px) {
  .ir-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .ir-top-region { display: none; }
  .ir-top-row { justify-content: center; }
  .ir-process { grid-template-columns: 1fr 1fr; }
  /* Notdienst-Anruf-Button: volle Breite, damit die Nummer einzeilig bleibt */
  .ir-nd-call { width: 100%; justify-content: center; font-size: 1rem; padding: 16px 18px; }
  .ir-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ir-field-row { grid-template-columns: 1fr; gap: 0; }
  .ir-hero-trust { gap: 8px 18px; }
  .ir-btn { width: 100%; }
  .ir-hero-ctas { flex-direction: column; }
}

@media (max-width: 420px) {
  .ir-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .ir-process { grid-template-columns: 1fr; }
  .ir-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ir-hero-video { display: none; }
  .ir-hero-inner > * { animation: none; opacity: 1; transform: none; }
  .ir-hero-scroll-line::after { animation: none; }
  .ir-feature .ir-feature-img, .ir-feature .ir-feature-body { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   SUBSEITEN-KOMPONENTEN (photovoltaik.html etc.)
   ========================================================================== */

/* Aktiver Nav-Link (auf der weissen Flaeche) */
.ir-nav-links a.is-active { color: var(--ir-blue); }
.ir-nav-links a.is-active::after { width: 100%; }

/* Sub-Hero */
.ir-subhero {
  position: relative; overflow: hidden; background: var(--ir-ink); color: #fff;
  display: flex; align-items: center; min-height: 56vh;
  padding: clamp(72px, 9vw, 118px) 0 clamp(76px, 10vw, 124px);
}
.ir-subhero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ir-ink) url("images/ir-svc-pv-v2.jpg") center / cover no-repeat;
}
.ir-subhero-bg::before {
  /* cinematischer Scrim ueber dem Solarbild */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,11,18,0.86) 0%, rgba(8,11,18,0.46) 52%, rgba(8,11,18,0.18) 100%),
    linear-gradient(0deg, rgba(8,11,18,0.55) 0%, transparent 52%);
}
.ir-subhero-bg::after { display: none; }
.ir-subhero-inner { position: relative; z-index: 1; max-width: 760px; }
.ir-subhero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.04; color: #fff; margin-bottom: 20px;
}
.ir-subhero-title em { color: var(--ir-blue-bright); font-style: italic; font-weight: 500; }
.ir-subhero-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,0.86); max-width: 620px; }
.ir-subhero-title, .ir-subhero-lead { text-shadow: 0 2px 24px rgba(8,11,18,0.5); }

/* Breadcrumbs */
.ir-crumbs { font-size: 0.85rem; color: var(--ir-muted-d); margin-bottom: 22px; }
.ir-crumbs a { color: var(--ir-muted-d); transition: color .2s; }
.ir-crumbs a:hover { color: var(--ir-blue-bright); }
.ir-crumbs span { margin: 0 8px; }
.ir-crumbs span:last-child { color: rgba(255,255,255,0.7); margin: 0; }

/* Split-Layout (Copy + Media) */
.ir-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.ir-split-copy h2 { margin-bottom: 20px; }
/* Benefit-Liste: editoriale Hairline-Zeilen mit kleinem Marken-Bolt */
.ir-features { list-style: none; margin-top: 30px; display: flex; flex-direction: column; }
.ir-features li {
  position: relative; padding: 15px 0 15px 32px;
  border-top: 1px solid var(--ir-line);
  color: var(--ir-text); font-size: 1.05rem; font-weight: 500; line-height: 1.4;
}
.ir-features li:last-child { border-bottom: 1px solid var(--ir-line); }
/* Marker: kurzer blauer Strich wie vor den Eyebrow-Zeilen (statt Blitz-Icon,
   wiederholte Symbole wirken schnell nach Deko) */
.ir-features li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 2px; background: var(--ir-blue);
}

/* Highlight-Box (blaue Akzent-Box) */
.ir-highlight {
  position: relative; overflow: hidden; border-radius: 18px; padding: 40px 36px;
  background: linear-gradient(150deg, var(--ir-blue) 0%, var(--ir-blue-deep) 100%);
  color: #fff; box-shadow: var(--ir-shadow-blue);
}
.ir-highlight::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("images/hex.svg"); background-size: 54px auto; opacity: 0.07;
}
.ir-highlight-kicker {
  position: relative; z-index: 1; display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 14px;
}
.ir-highlight-text { position: relative; z-index: 1; font-size: 1.15rem; line-height: 1.55; margin-bottom: 24px; }
.ir-highlight .ir-btn--primary { position: relative; z-index: 1; background: #fff; border-color: #fff; color: var(--ir-blue); }
.ir-highlight .ir-btn--primary:hover { background: rgba(255,255,255,0.92); border-color: rgba(255,255,255,0.92); box-shadow: none; }

/* ============ PASST DAZU: begruendete Cross-Sell-Links (Leistungsseiten) ============ */
.ir-related { background: var(--ir-white); }
.ir-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* bei genau 2 Karten sauberes 2er-Raster statt 2+Luecke (Katalog: Grid-Symmetrie) */
.ir-related-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.ir-related-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px; border: 1px solid var(--ir-line); border-radius: 14px;
  background: var(--ir-paper); text-decoration: none; color: inherit;
  transition: border-color .25s ease, transform .22s ease, box-shadow .25s ease;
}
.ir-related-card:hover { border-color: rgba(11, 95, 227, 0.45); transform: translateY(-4px); box-shadow: var(--ir-shadow); }
.ir-related-card h3 { font-size: 1.12rem; }
.ir-related-card p { color: var(--ir-muted); font-size: 0.95rem; flex-grow: 1; }
.ir-related-arrow { color: var(--ir-blue); font-weight: 600; font-size: 0.92rem; }
.ir-related-card:hover .ir-related-arrow { color: var(--ir-blue-bright); }
@media (max-width: 900px) {
  .ir-related-grid, .ir-related-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
}

/* ============ PV-RECHNER TEASER (Startseite, schmale Klickleiste) ============ */
.ir-pvteaser { background: linear-gradient(115deg, #08245A, var(--ir-blue-deep) 60%, var(--ir-blue) 145%); color: #fff; }
.ir-pvteaser-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 28px; flex-wrap: wrap;
  /* nur vertikal: das Element traegt auch .ir-wrap, dessen Seiten-Padding bleiben muss */
  padding-top: 26px; padding-bottom: 26px;
}
.ir-pvteaser-title { font-weight: 800; font-size: 1.12rem; }
.ir-pvteaser-sub { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-top: 3px; }

/* ============ PV-PROMO: Konfigurator-Band (photovoltaik.html) ============ */
.ir-pvpromo {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(45, 123, 255, 0.4), transparent 60%),
    linear-gradient(135deg, #08245A 0%, var(--ir-blue-deep) 45%, var(--ir-blue) 135%);
}
.ir-pvpromo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.06;
}
.ir-pvpromo-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  /* nur vertikal: das Element traegt auch .ir-wrap, dessen Seiten-Padding bleiben muss */
  padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px);
}
.ir-pvpromo .ir-eyebrow { color: #9CC1FF; }
.ir-pvpromo h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 14px 0 18px; }
/* das globale h2-em-Blau haette auf dem blauen Band keinen Kontrast */
.ir-pvpromo h2 em { color: #9CC1FF; }
.ir-pvpromo-copy > p { color: rgba(255, 255, 255, 0.84); font-size: 1.06rem; max-width: 520px; }
.ir-pvpromo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 30px; }
.ir-pvpromo-note { color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; }

/* Schnellcheck-Panel: echte Slider, Werte wandern per URL-Parameter in den Konfigurator */
.ir-pvpromo-mock {
  display: block; color: #fff;
  background: rgba(8, 12, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 26px 26px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
  transition: border-color .25s ease;
}
.ir-pvpromo-mock:hover { border-color: rgba(45, 123, 255, 0.55); }
.ir-pvpromo-mock-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); margin-bottom: 22px;
}
.ir-pvpromo-mock-head strong { color: var(--ir-blue-bright); }
.ir-pvpromo-row { display: block; margin-bottom: 18px; }
.ir-pvpromo-row-label { display: flex; justify-content: space-between; font-size: 0.9rem; }
.ir-pvpromo-row-label b { font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.ir-pvpromo-row-label span { color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
/* Echte Slider im dunklen Panel. Der blaue Fuellstand kommt per JS als Gradient-Stop. */
.ir-pvpromo-range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 6px; margin-top: 2px;
  box-sizing: content-box; padding: 13px 0;
  border-radius: 16px; background-color: rgba(255, 255, 255, 0.16); background-clip: content-box;
  cursor: pointer; outline-offset: 5px;
}
.ir-pvpromo-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.ir-pvpromo-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.ir-pvpromo-range::-moz-range-progress {
  height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ir-blue), var(--ir-blue-bright));
}
/* Live-Schaetzung im Schnellcheck: klappt beim ersten Reglerkontakt auf */
.ir-pvpromo-result {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .45s var(--ir-ease), opacity .3s ease;
}
.ir-pvpromo-result.is-open { grid-template-rows: 1fr; opacity: 1; }
.ir-pvpromo-result-clip { overflow: hidden; min-height: 0; }
.ir-pvpromo-result-inner { padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ir-pvpromo-result-hero { display: flex; align-items: baseline; gap: 8px; }
.ir-pvpromo-result-hero b { font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ir-pvpromo-result-hero em { font-style: normal; font-weight: 800; color: var(--ir-blue-bright); }
.ir-pvpromo-result-hero span { color: rgba(255, 255, 255, 0.66); font-size: 0.88rem; }
.ir-pvpromo-result-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); }
.ir-pvpromo-result-stats b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ir-pvpromo-result-note { display: block; margin-top: 12px; font-size: 0.82rem; color: #9CC1FF; }
.ir-pvpromo-result-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 20px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ir-pvpromo-result-cta span { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; max-width: 300px; }
.ir-pvpromo-result-cta .ir-btn { padding: 12px 20px; font-size: 0.9rem; }

.ir-pvpromo-mock-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px 16px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.75);
}
.ir-pvpromo-mock-foot strong { color: #fff; font-weight: 700; }
.ir-pvpromo-mock-foot .ir-leistung-arrow { color: var(--ir-blue-bright); font-weight: 600; }
@media (max-width: 900px) {
  .ir-pvpromo-grid { grid-template-columns: 1fr; gap: 40px; }
  .ir-pvpromo-mock { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* Foto in der Intro-Split-Spalte (ersetzt auf photovoltaik.html die Highlight-Box) */
.ir-split-photo {
  margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--ir-shadow);
}
.ir-split-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Process 4-spaltig */
.ir-process--4 { grid-template-columns: repeat(4, 1fr); }

/* FAQ */
.ir-faq-section { background: var(--ir-paper); }
.ir-faq-wrap { max-width: 800px; }
.ir-faq { display: flex; flex-direction: column; gap: 14px; }
.ir-faq-item {
  background: var(--ir-white); border: 1px solid var(--ir-line); border-radius: 12px;
  overflow: hidden; transition: border-color .2s;
}
.ir-faq-item[open] { border-color: rgba(11,95,227,0.4); }
.ir-faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.ir-faq-item summary::-webkit-details-marker { display: none; }
.ir-faq-item summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--ir-blue); transition: transform .25s; flex-shrink: 0;
}
.ir-faq-item[open] summary::after { transform: rotate(45deg); }
.ir-faq-body { padding: 0 24px 22px; }
.ir-faq-body p { color: var(--ir-muted); }

/* Cinematisches CTA-Band (Unterseiten-Abschluss) */
.ir-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--ir-ink); padding: clamp(80px, 11vw, 132px) 0;
}
.ir-cta-media { position: absolute; inset: 0; z-index: 0; }
.ir-cta-img { position: absolute; inset: 0; background: var(--ir-ink) url("images/ir-svc-pv-v2.jpg") center / cover no-repeat; }

.ir-cta-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,11,18,0.86) 0%, rgba(8,11,18,0.6) 100%),
    linear-gradient(0deg, rgba(11,95,227,0.16) 0%, transparent 60%);
}
.ir-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
/* ruhige CTA-Variante ohne Foto (ueber-mich: die Seite hat oben schon zwei starke Bilder) */
.ir-cta--plain { background: linear-gradient(180deg, var(--ir-ink) 0%, var(--ir-ink-soft) 100%); }
.ir-cta--plain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.05;
}
.ir-cta--plain::after {
  content: ''; position: absolute; top: -32%; right: -8%; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.18), transparent 65%); pointer-events: none;
}
.ir-cta .ir-eyebrow { color: var(--ir-blue-bright); }
.ir-cta h2 { color: #fff; margin: 4px 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); text-shadow: 0 2px 24px rgba(8,11,18,0.5); }
.ir-cta h2 em { color: var(--ir-blue-bright); font-style: italic; font-weight: 500; }
.ir-cta p { color: rgba(255,255,255,0.88); margin-bottom: 28px; font-size: 1.06rem; text-shadow: 0 2px 24px rgba(8,11,18,0.5); }
.ir-cta-btns { justify-content: center; }

@media (max-width: 860px) {
  .ir-split { grid-template-columns: 1fr; gap: 36px; }
  .ir-process--4 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 480px) {
  .ir-process--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RECHTSSEITEN (impressum.html / datenschutz.html)
   ========================================================================== */
.ir-legal-head {
  position: relative; overflow: hidden; background: var(--ir-paper); color: var(--ir-text); padding: 72px 0 52px;
}
.ir-legal-head::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("images/hex.svg"); background-size: 46px auto; opacity: 0.10;
  -webkit-mask-image: radial-gradient(120% 100% at 90% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 100% at 90% 0%, #000, transparent 70%);
}
.ir-legal-head .ir-wrap { position: relative; z-index: 1; }
.ir-legal-head h1 { color: var(--ir-text); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ir-legal { background: var(--ir-paper); padding: 60px 0 90px; }
.ir-legal .ir-wrap { max-width: 820px; }
.ir-legal h1 {
  color: var(--ir-text);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 34px;
}
.ir-legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.ir-legal h2:first-child { margin-top: 0; }
.ir-legal h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.ir-legal h4 { font-size: 0.98rem; margin: 20px 0 8px; }
.ir-legal p, .ir-legal li { color: var(--ir-muted); margin-bottom: 12px; }
.ir-legal p { line-height: 1.72; }
.ir-legal ul { padding-left: 22px; margin-bottom: 16px; }
.ir-legal a { color: var(--ir-blue); }
.ir-legal strong { color: var(--ir-text); }
.ir-legal-updated { margin-top: 36px; }
.ir-legal-flag {
  display: inline-block; background: #FFF4DA; border: 1px solid #E8C46A; color: #8a6400;
  padding: 1px 8px; border-radius: 5px; font-size: 0.9rem; font-weight: 600;
}

/* ============ MEISTERBETRIEB: TEXT + ROBERT + MEISTERBRIEF ============ */
.ir-origin {
  position: relative; overflow: hidden; background: var(--ir-white);
}
.ir-origin::before {
  content: ''; position: absolute; right: -16%; top: -34%; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(44,123,255,0.13), transparent 68%);
  pointer-events: none;
}
.ir-origin-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(48px, 7vw, 96px); align-items: center;
}
.ir-origin-copy { max-width: 650px; }
.ir-origin-copy h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 24px; }
.ir-origin-copy p { color: var(--ir-muted); margin-bottom: 16px; font-size: 1.04rem; }
.ir-origin-copy .ir-origin-lead {
  color: var(--ir-text); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55;
}
.ir-origin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.ir-origin-more { color: var(--ir-blue); font-weight: 700; transition: color .2s ease; }
.ir-origin-more span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.ir-origin-more:hover { color: var(--ir-blue-bright); }
.ir-origin-more:hover span { transform: translateX(4px); }

.ir-origin-visual {
  position: relative; min-height: clamp(500px, 42vw, 620px);
  display: flex; align-items: center; padding-right: clamp(64px, 8vw, 112px);
}
.ir-origin-portrait {
  position: relative; overflow: hidden; margin: 0; width: min(100%, 450px); aspect-ratio: 4 / 5;
  border-radius: var(--ir-r3); background: var(--ir-ink); box-shadow: 0 34px 70px -28px rgba(11,14,20,0.52);
}
.ir-origin-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ir-origin-portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px;
  display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(0deg, rgba(8,11,18,0.9), transparent);
}
.ir-origin-portrait figcaption strong { font-size: 1.02rem; }
.ir-origin-portrait figcaption span { color: rgba(255,255,255,0.74); font-size: 0.8rem; }
.ir-origin-cert {
  position: absolute; right: 0; bottom: 18px; width: clamp(170px, 37%, 230px); margin: 0;
  padding: 10px 10px 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 28px 58px -20px rgba(11,14,20,0.58);
  transform: rotate(2deg); transition: transform .35s var(--ir-ease); cursor: default;
}
.ir-origin-cert:hover { transform: rotate(0deg) translateY(-3px); }
.ir-origin-cert img { width: 100%; height: auto; border-radius: 5px; }
.ir-origin-cert > span {
  display: block;
  margin-top: 7px; text-align: center; color: var(--ir-muted); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ir-origin-cert small { display: block; margin-top: 2px; color: var(--ir-blue); font-size: 0.62rem; }

@media (max-width: 860px) {
  .ir-origin-grid { grid-template-columns: 1fr; }
  .ir-origin-copy { max-width: 720px; }
  .ir-origin-visual { min-height: 540px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .ir-origin-visual { min-height: 440px; padding-right: 44px; }
  .ir-origin-portrait { width: 88%; }
  .ir-origin-portrait figcaption span { display: none; }
  .ir-origin-cert { width: 48%; bottom: 0; }
  /* Caption + Klick-Hinweis lesbar halten (sonst ~10px) */
  .ir-origin-cert > span { font-size: 0.78rem; letter-spacing: 0.04em; }
  .ir-origin-cert small { font-size: 0.72rem; }
  .ir-origin-actions { align-items: stretch; }
  .ir-origin-more { text-align: center; padding: 8px 0; }
}

/* ============ LIGHTBOX (Meisterbrief gross auf der Seite) ============ */
.ir-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(11, 14, 20, 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
  cursor: zoom-out;
}
.ir-lightbox.is-open { opacity: 1; }
.ir-lightbox img {
  max-width: min(92vw, 700px); max-height: 88vh; width: auto; height: auto;
  padding: 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  transform: scale(0.96); transition: transform .25s var(--ir-ease);
  cursor: default;
}
.ir-lightbox.is-open img { transform: scale(1); }
.ir-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 1.5rem; line-height: 1; font-family: inherit;
  cursor: pointer; transition: background .2s ease;
}
.ir-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ============ ÜBER MICH / PORTRAIT ============ */
.ir-split--portrait { grid-template-columns: 0.85fr 1.15fr; }
.ir-portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  box-shadow: var(--ir-shadow);
}
/* echtes Foto (sobald vorhanden) deckt den Rahmen voll aus */
.ir-portrait > img:not(.ir-portrait-mark) { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Alternative Darstellung ohne Portraitfoto */
.ir-portrait--ph {
  display: grid; place-items: center; gap: 14px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(11,95,227,0.30), transparent 60%),
    linear-gradient(150deg, var(--ir-ink-2) 0%, var(--ir-ink) 100%);
  border: 1px solid var(--ir-line-d);
}
.ir-portrait-mark { width: 52%; max-width: 200px; height: auto; opacity: 0.55; }
.ir-portrait-cap { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ir-muted-d); }

.ir-meister-line { font-size: 0.95rem; color: var(--ir-muted); margin: 18px 0 0; }
.ir-meister-line a { color: var(--ir-blue); font-weight: 600; }
.ir-meister-line a:hover { color: var(--ir-blue-bright); }

@media (max-width: 768px) {
  .ir-split--portrait { grid-template-columns: 1fr; }
  .ir-portrait { max-width: 340px; margin: 0 auto; }
}

/* ============ NAV-DROPDOWN (Leistungen) ============ */
.ir-nav-item { position: relative; display: flex; align-items: center; }
.ir-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ir-chev { width: 14px; height: 14px; opacity: 0.8; transition: transform .25s ease; flex-shrink: 0; }
.ir-has-dropdown:hover .ir-chev,
.ir-has-dropdown:focus-within .ir-chev { transform: rotate(180deg); }

.ir-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 248px; margin-top: 16px; padding: 10px;
  background: var(--ir-ink-2);
  border: 1px solid var(--ir-line-d); border-radius: 12px;
  box-shadow: 0 22px 54px -18px rgba(0,0,0,0.65);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
/* unsichtbare Hover-Bruecke ueber dem Spalt, damit das Menue beim Rueberfahren offen bleibt */
.ir-dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 20px; }
/* Pfeilspitze nach oben (Sprechblasen-Optik) */
.ir-dropdown-menu::after {
  content: ''; position: absolute; bottom: calc(100% - 1px); left: 50%; transform: translateX(-50%);
  border: 9px solid transparent; border-bottom-color: var(--ir-ink-2);
}
.ir-has-dropdown:hover .ir-dropdown-menu,
.ir-has-dropdown:focus-within .ir-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.ir-dropdown-menu a.ir-dropdown-link {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.80);
  white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.ir-dropdown-menu a.ir-dropdown-link::after { content: none; }
.ir-dropdown-menu a.ir-dropdown-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ir-dropdown-menu a.ir-dropdown-link.is-active { color: var(--ir-blue-bright); background: rgba(11,95,227,0.14); }

/* Mobile: Drawer zeigt nur "Leistungen" (verlinkt zur Uebersicht), Sub-Links + Chevron aus */
@media (max-width: 1080px) {
  /* Untermenue kommt im Drawer als eigenes Aufklapp-Panel (ir-drawer-sub) */
  .ir-drawer .ir-chev { display: none; }
}

/* ============ PV-KONFIGURATOR (pv-konfigurator.html) ============ */
.ir-konf-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 32px; align-items: start; }
.ir-konf-panel { background: var(--ir-white); border: 1px solid var(--ir-line); border-radius: var(--ir-r2); box-shadow: var(--ir-shadow); padding: clamp(22px, 3vw, 36px); }
.ir-konf-field { padding: 20px 0; border-bottom: 1px solid var(--ir-line); }
.ir-konf-field:first-child { padding-top: 0; }
.ir-konf-field:last-child { padding-bottom: 0; border-bottom: 0; }
.ir-konf-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.ir-konf-label > span { font-weight: 600; color: var(--ir-text); font-size: 0.98rem; }
.ir-konf-label b { font-weight: 800; color: var(--ir-blue); font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ir-konf-hint { font-size: 0.82rem; color: var(--ir-muted); margin-top: 9px; }
.ir-konf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-konf-chip { border: 1px solid var(--ir-line); background: var(--ir-white); color: var(--ir-text); font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 9px 16px; border-radius: var(--ir-r1); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.ir-konf-chip:hover { border-color: var(--ir-blue); }
.ir-konf-chip.is-active { background: var(--ir-blue); border-color: var(--ir-blue); color: #fff; box-shadow: 0 8px 20px -10px var(--ir-glow); }
/* 6px-Balken + unsichtbare Padding-Hitbox = 32px Touchflaeche.
   JS setzt den Fuellstand ueber backgroundImage, background-clip bleibt erhalten. */
.ir-konf-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  box-sizing: content-box; padding: 13px 0;
  border-radius: 999px; background-color: var(--ir-paper-alt); background-clip: content-box;
  accent-color: var(--ir-blue); cursor: pointer;
}
.ir-konf-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ir-blue); border: 3px solid #fff; box-shadow: 0 2px 9px rgba(11,95,227,0.5); cursor: pointer; }
.ir-konf-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ir-blue); border: 3px solid #fff; cursor: pointer; }

.ir-konf-result { background: var(--ir-ink); color: #fff; border-radius: var(--ir-r2); padding: clamp(24px, 3vw, 38px); position: sticky; top: 104px; overflow: hidden; }
.ir-konf-result::before { content: ""; position: absolute; top: -28%; right: -12%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(45,123,255,0.20), transparent 64%); pointer-events: none; }
.ir-konf-result > * { position: relative; z-index: 1; }
.ir-konf-result-eyebrow { color: var(--ir-blue-bright); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.ir-konf-hero { margin: 12px 0 22px; }
.ir-konf-hero-num { font-size: clamp(2.8rem, 7vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ir-konf-hero-num b { color: var(--ir-blue-bright); font-weight: 800; }
.ir-konf-hero-lbl { display: block; margin-top: 9px; color: var(--ir-muted-d); font-size: 0.92rem; }
.ir-konf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ir-line-d); border: 1px solid var(--ir-line-d); border-radius: var(--ir-r1); overflow: hidden; }
.ir-konf-stat { background: var(--ir-ink); padding: 16px 18px; }
.ir-konf-stat .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ir-konf-stat .lbl { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--ir-muted-d); }
.ir-konf-extra { margin-top: 16px; font-size: 0.9rem; color: var(--ir-muted-d); }
/* zeigt, welcher Faktor die Empfehlung gerade begrenzt (Verbrauch oder Dach) */
.ir-konf-limit { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--ir-blue-bright); }
.ir-konf-extra b { color: #fff; font-weight: 700; }
.ir-konf-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ir-line-d); font-size: 0.78rem; line-height: 1.55; color: var(--ir-muted-d); }
.ir-konf-cta { display: flex; width: 100%; justify-content: center; margin-top: 18px; }

.ir-konf-wissen {
  margin-top: 32px; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 32px;
  padding: clamp(24px, 3vw, 36px); background: var(--ir-white);
  border: 1px solid var(--ir-line); border-radius: var(--ir-r2); box-shadow: var(--ir-shadow);
}
.ir-konf-wissen-intro { align-self: center; }
.ir-konf-wissen-intro .ir-eyebrow { margin-bottom: 12px; }
.ir-konf-wissen-intro h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; margin-bottom: 14px; }
.ir-konf-wissen-intro h2 em { color: var(--ir-blue); font-style: italic; font-weight: 500; }
.ir-konf-wissen-intro > p { color: var(--ir-muted); font-size: 0.94rem; }
.ir-konf-wissen-intro .ir-konf-units {
  margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--ir-blue);
  background: var(--ir-paper); border-radius: 0 var(--ir-r1) var(--ir-r1) 0; font-size: 0.86rem;
}
.ir-konf-units strong { color: var(--ir-text); }
.ir-text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: var(--ir-blue); font-weight: 700; font-size: 0.9rem;
}
.ir-text-link span { transition: transform .2s ease; }
.ir-text-link:hover span { transform: translateX(3px); }
.ir-konf-wissen-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--ir-line); border: 1px solid var(--ir-line);
  border-radius: var(--ir-r1); overflow: hidden;
}
.ir-konf-wissen-item { min-width: 0; background: #fff; padding: 20px; }
.ir-konf-wissen-item > span { color: var(--ir-blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.ir-konf-wissen-item h3 { color: var(--ir-text); font-size: 1rem; line-height: 1.3; margin: 7px 0 7px; }
.ir-konf-wissen-item p { color: var(--ir-muted); font-size: 0.84rem; line-height: 1.55; }

@media (max-width: 900px) {
  .ir-konf-grid { grid-template-columns: 1fr; gap: 22px; }
  .ir-konf-result { position: static; }
  .ir-konf-wissen { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) { .ir-konf-wissen-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PV-KONFIGURATOR WIZARD (eine Frage pro Schritt, ohne jede Preisangabe).
   Chips/Slider nutzen die ir-konf-Basisklassen.
   ========================================================================== */
.ir-wiz {
  max-width: 880px; margin: 0 auto;
  background: var(--ir-white); border: 1px solid var(--ir-line); border-radius: var(--ir-r2);
  box-shadow: var(--ir-shadow); padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
}
/* hidden-Attribut muss gegen die display-Werte der Klassen gewinnen */
.ir-wiz-progress[hidden], .ir-wiz-nav[hidden] { display: none; }
.ir-wiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ir-wiz-progress-track { flex: 1; height: 6px; border-radius: 999px; background: var(--ir-paper-alt); overflow: hidden; }
.ir-wiz-progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--ir-blue), var(--ir-blue-bright));
  transition: width .45s var(--ir-ease);
}
.ir-wiz-progress-text { font-size: 0.82rem; font-weight: 700; color: var(--ir-muted); font-variant-numeric: tabular-nums; }
.ir-wiz-step { display: none; }
.ir-wiz-step.is-active { display: block; animation: ir-wiz-in .4s var(--ir-ease); }
@keyframes ir-wiz-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.ir-wiz-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.ir-wiz-title em { color: var(--ir-blue); }
.ir-wiz-lead { color: var(--ir-muted); margin-bottom: 24px; max-width: 60ch; }
.ir-wiz-choices { gap: 10px; }
.ir-wiz-choices .ir-konf-chip { padding: 14px 20px; font-size: 0.95rem; }

.ir-wiz-helper { margin-top: 22px; border: 1px solid var(--ir-line); border-radius: 12px; background: var(--ir-paper); }
.ir-wiz-helper summary { padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ir-blue); list-style: none; }
.ir-wiz-helper summary::-webkit-details-marker { display: none; }
.ir-wiz-helper summary::before { content: '+'; margin-right: 8px; font-weight: 800; }
.ir-wiz-helper[open] summary::before { content: '-'; }
.ir-wiz-helper-body { padding: 2px 16px 18px; }
.ir-wiz-helper-body .ir-konf-label { margin: 14px 0 8px; }
.ir-wiz-helper-result { margin-top: 16px; font-size: 0.95rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ir-wiz-helper-apply {
  border: 0; background: var(--ir-blue); color: #fff; font-family: inherit;
  font-weight: 600; font-size: 0.85rem; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease;
}
.ir-wiz-helper-apply:hover { background: var(--ir-blue-deep); }

.ir-wiz-live { margin-top: 12px; font-size: 0.98rem; }
.ir-wiz-ampel { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; border: 1px solid; }
.ir-wiz-ampel.is-good { background: rgba(31, 158, 90, 0.08); border-color: rgba(31, 158, 90, 0.35); color: #1E7A4B; }
.ir-wiz-ampel.is-warn { background: rgba(214, 170, 14, 0.10); border-color: rgba(214, 170, 14, 0.45); color: #8A6D06; }
.ir-wiz-ampel.is-info { background: rgba(11, 95, 227, 0.07); border-color: rgba(11, 95, 227, 0.3); color: var(--ir-blue-deep); }

.ir-wiz-check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; cursor: pointer; margin-bottom: 18px; }
.ir-wiz-check input { width: 20px; height: 20px; accent-color: var(--ir-blue); flex-shrink: 0; margin-top: 2px; }

.ir-wiz-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ir-line);
}
.ir-wiz-back { border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ir-muted); cursor: pointer; padding: 10px 6px; }
.ir-wiz-back:hover { color: var(--ir-text); }
.ir-wiz-back:disabled { opacity: 0.35; cursor: default; }

/* Ergebnis: dunkle Anlagen-Karte + helle Alltags-Karte */
.ir-wiz-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ir-wiz-result-card { border-radius: var(--ir-r2); padding: clamp(22px, 3vw, 30px); position: relative; overflow: hidden; }
.ir-wiz-result-card--dark { background: var(--ir-ink); color: #fff; }
.ir-wiz-result-card--dark::before {
  content: ''; position: absolute; top: -30%; right: -14%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.22), transparent 64%); pointer-events: none;
}
.ir-wiz-result-card > * { position: relative; z-index: 1; }
.ir-wiz-result-card--light { background: var(--ir-paper); border: 1px solid var(--ir-line); }
.ir-wiz-result-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ir-blue-bright); }
.ir-wiz-result-card--light .ir-wiz-result-kicker { color: var(--ir-blue); }
.ir-wiz-result-card .ir-konf-hero-num { margin-top: 12px; font-size: clamp(2.1rem, 4.4vw, 2.9rem); }
.ir-wiz-result-card .ir-konf-hero-num b { font-size: 0.52em; font-weight: 800; }
.ir-wiz-result-card--light .ir-konf-hero-num { color: var(--ir-text); }
.ir-wiz-result-card--light .ir-konf-hero-num b { color: var(--ir-blue); }
.ir-wiz-result-card--light .ir-konf-hero-lbl { color: var(--ir-muted); }
.ir-wiz-result-list { list-style: none; margin-top: 20px; }
.ir-wiz-result-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.93rem; }
.ir-wiz-result-card--dark .ir-wiz-result-list li span { color: var(--ir-muted-d); }
.ir-wiz-result-card--light .ir-wiz-result-list li { border-color: var(--ir-line); }
.ir-wiz-result-card--light .ir-wiz-result-list li span { color: var(--ir-muted); }
.ir-wiz-result-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ir-wiz .ir-konf-note { color: var(--ir-muted); border-color: var(--ir-line); }

/* Antworten-Uebersicht mit Aendern-Flow */
.ir-wiz-summary { margin-top: 26px; border: 1px solid var(--ir-line); border-radius: 12px; padding: 18px 20px; background: var(--ir-paper); }
.ir-wiz-summary h4 { font-size: 1rem; margin-bottom: 8px; }
.ir-wiz-summary-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--ir-line); font-size: 0.93rem; }
.ir-wiz-summary-row span { color: var(--ir-muted); flex: 0 0 170px; }
.ir-wiz-summary-row b { flex: 1; }
.ir-wiz-summary-edit { border: 0; background: none; color: var(--ir-blue); font-family: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; padding: 4px 6px; }
.ir-wiz-summary-edit:hover { color: var(--ir-blue-deep); }

.ir-wiz-cta { gap: 12px; flex-wrap: wrap; }
.ir-btn--ghost-darktext { color: var(--ir-text); border-color: var(--ir-line); }
.ir-btn--ghost-darktext:hover { background: var(--ir-ink); color: #fff; border-color: var(--ir-ink); }

@media (max-width: 760px) {
  .ir-wiz-result-grid { grid-template-columns: 1fr; }
  /* Antworten-Zeilen: Label als eigene Zeile, Wert + Aendern teilen sich die zweite,
     sonst laufen die Zeilen rechts aus der Karte (overflow: hidden schneidet ab) */
  .ir-wiz-summary-row { flex-wrap: wrap; row-gap: 2px; }
  .ir-wiz-summary-row span { flex: 1 0 100%; }
  .ir-wiz-summary-row b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .ir-wiz-summary-edit { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ir-wiz-step.is-active { animation: none; }
  .ir-wiz-progress-fill { transition: none; }
}
