/*
Theme Name: Ilmtaler Systemhaus Modern – PV
Theme URI: https://www.ilmtaler-systemhaus.de/
Description: Erweiterung des bestehenden Ilmtaler-Systemhaus-Modern-Themes um einen dezenten PV-/Nachhaltigkeitsbereich auf der Startseite. Das bestehende Design wird vollständig vom Parent-Theme übernommen.
Author: Ilmtaler Systemhaus GmbH
Template: ilmtaler-systemhaus-modern
Version: 2.3.21
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: ilmtaler-systemhaus-modern-pv
License: GNU General Public License v2 or later
*/

/*
 * WICHTIG:
 * Alle bisherigen Styles stammen weiterhin aus dem Parent-Theme
 * "ilmtaler-systemhaus-modern".
 * Hier stehen ausschließlich die neuen PV-spezifischen Regeln.
 */

.il-pv-home {
  padding: 42px 0 66px;
  background: #fff;
}

.il-pv-home__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: center;
  gap: 54px;
  min-height: 285px;
  padding: 48px 54px;
  border: 1px solid rgba(131, 198, 41, .20);
  border-radius: 32px;
  background:
    radial-gradient(circle at 94% 4%, rgba(131,198,41,.18), transparent 27%),
    linear-gradient(135deg, #f4f9ed 0%, #f8faf5 54%, #f7f9fc 100%);
  box-shadow: 0 20px 58px rgba(16, 1, 94, .08);
}

.il-pv-home__decoration {
  position: absolute;
  z-index: -1;
  width: 305px;
  height: 305px;
  top: -158px;
  right: -73px;
  border: 29px solid rgba(113,125,126,.11);
  border-radius: 50%;
  pointer-events: none;
}

.il-pv-home__decoration::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 18px solid rgba(255,255,255,.38);
  border-radius: inherit;
}

.il-pv-home__content {
  min-width: 0;
}

.il-pv-home__eyebrow {
  margin-bottom: 23px;
}

.il-pv-home__heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.il-pv-home__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: var(--il-green-dark, #68a51b);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(131,198,41,.24);
  box-shadow: 0 10px 28px rgba(16,1,94,.06);
}

.il-pv-home__icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.il-pv-home h2 {
  margin: 0;
  color: var(--il-ink, #11182a);
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.il-pv-home__subtitle {
  margin: 9px 0 0;
  color: var(--il-green-dark, #68a51b);
  font-size: 1.06rem;
  font-weight: 850;
}

.il-pv-home__text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--il-muted, #5f687b);
  font-size: 1rem;
  line-height: 1.67;
}

.il-pv-home__live {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 178px;
  padding: 28px 24px;
  border: 1px solid rgba(16,1,94,.10);
  border-radius: 23px;
  background: rgba(255,255,255,.89);
  box-shadow: 0 14px 36px rgba(16,1,94,.08);
  text-align: center;
  backdrop-filter: blur(8px);
}


.il-pv-home__live-label {
  color: var(--il-muted, #5f687b);
  font-size: .82rem;
  font-weight: 750;
}

.il-pv-home__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 7px;
  color: var(--il-navy, #10015e);
}

.il-pv-home__value strong {
  font-size: clamp(2.65rem, 4.15vw, 4rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}

.il-pv-home__value span {
  color: var(--il-green-dark, #68a51b);
  font-size: 1.15rem;
  font-weight: 900;
}

.il-pv-home__live small {
  min-height: 1.25em;
  color: #7a8395;
  font-size: .74rem;
  line-height: 1.35;
}

.il-pv-home__live.is-unavailable .il-pv-home__value {
  opacity: .62;
}

@media (max-width: 900px) {
  .il-pv-home {
    padding: 30px 0 46px;
  }

  .il-pv-home__card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 31px;
  }

  .il-pv-home__live {
    width: min(100%, 430px);
    align-items: center;
    text-align: center;
  }

  .il-pv-home__value {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .il-pv-home {
    padding: 24px 0 36px;
  }

  .il-pv-home__card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .il-pv-home__heading {
    align-items: flex-start;
    gap: 15px;
  }

  .il-pv-home__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .il-pv-home__icon svg {
    width: 38px;
    height: 38px;
  }

  .il-pv-home h2 {
    font-size: 2.1rem;
  }

  .il-pv-home__text {
    font-size: .95rem;
  }

  .il-pv-home__live {
    padding: 23px 20px;
  }
}


/*
 * Version 2.3.2 – ruhige Themenband-Hintergründe nur auf der Startseite.
 * JavaScript kennzeichnet ausschließlich die Abschnitte von
 * „Unsere Leistungen“ bis einschließlich „Direkter Kontakt“.
 * Header, Slider, Footer und alle Unterseiten bleiben unangetastet.
 */
.il-home-band {
  position: relative;
  background-color: #fff;
  transition: background-color .2s ease;
}

/* Sanftes Ilmtaler-Grün für einen klaren Themenwechsel. */
.il-home-band--lime {
  background:
    radial-gradient(circle at 94% 18%, rgba(131,198,41,.105) 0%, rgba(131,198,41,0) 31%),
    radial-gradient(circle at 8% 88%, rgba(131,198,41,.045) 0%, rgba(131,198,41,0) 25%),
    linear-gradient(180deg, #fbfdf8 0%, #f5f9ef 100%) !important;
}

/* Neutrale, sehr helle Zwischenfläche. */
.il-home-band--white {
  background:
    radial-gradient(circle at 86% 12%, rgba(16,1,94,.018) 0%, rgba(16,1,94,0) 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

/* Ruhiger hellgrau/bläulicher Kontrast – passend zum Dunkelblau des Themes. */
.il-home-band--slate {
  background:
    radial-gradient(circle at 8% 86%, rgba(16,1,94,.035) 0%, rgba(16,1,94,0) 30%),
    radial-gradient(circle at 94% 10%, rgba(131,198,41,.04) 0%, rgba(131,198,41,0) 27%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f4f8 100%) !important;
}

/* Nur eine feine Trennung; keine harten Linien oder zusätzliche Rahmen. */
.il-home-band + .il-home-band {
  box-shadow: inset 0 1px 0 rgba(16,1,94,.035);
}

/* Der PV-Bereich übernimmt nur den Außenhintergrund des Themenbandes;
   seine eigentliche Karte bleibt unverändert. */
.il-pv-home.il-home-band {
  background-color: transparent;
}

@media (max-width: 900px) {
  .il-home-band--lime {
    background:
      radial-gradient(circle at 96% 12%, rgba(131,198,41,.08) 0%, rgba(131,198,41,0) 30%),
      linear-gradient(180deg, #fbfdf8 0%, #f6f9f1 100%) !important;
  }

  .il-home-band--slate {
    background: linear-gradient(180deg, #f8f9fc 0%, #f4f5f9 100%) !important;
  }
}


/*
 * Version 2.3.4 – Überschrift „Unsere Leistungen“ auf der Startseite linksbündig.
 * Nur der Kopfbereich der Leistungssektion wird angepasst; Karten und restliche
 * Startseite bleiben unverändert.
 */
.il-home-services-left .il-home-services-heading-left,
.il-home-services-left .il-home-section-heading,
.il-home-services-left .il-heading-row,
.il-home-services-left .il-section-heading {
  width: 100%;
  max-width: 780px;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.il-home-services-left .il-home-services-heading-left *,
.il-home-services-left .il-home-section-heading *,
.il-home-services-left .il-heading-row *,
.il-home-services-left .il-section-heading * {
  text-align: left;
}

.il-home-services-left .il-home-services-heading-left .il-eyebrow,
.il-home-services-left .il-home-section-heading .il-eyebrow,
.il-home-services-left .il-heading-row .il-eyebrow,
.il-home-services-left .il-section-heading .il-eyebrow {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.il-home-services-left .il-home-services-heading-left h2,
.il-home-services-left .il-home-section-heading h2,
.il-home-services-left .il-heading-row h2,
.il-home-services-left .il-section-heading h2 {
  max-width: 780px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.il-home-services-left .il-home-services-heading-left p,
.il-home-services-left .il-home-section-heading p,
.il-home-services-left .il-heading-row p,
.il-home-services-left .il-section-heading p {
  max-width: 700px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 900px) {
  .il-home-services-left .il-home-services-heading-left,
  .il-home-services-left .il-home-section-heading,
  .il-home-services-left .il-heading-row,
  .il-home-services-left .il-section-heading {
    max-width: 100%;
  }
}


/*
 * Version 2.3.7 – ausgewählte Eyebrow-Texte der Startseite links ausrichten.
 * Titel, Beschreibung, Partnerlogos, Karten, Abstände und alle übrigen Bereiche bleiben unverändert.
 */
.il-home-eyebrow-anchor {
  position: relative !important;
}

.il-home-eyebrow-original-hidden {
  visibility: hidden !important;
}

.il-home-eyebrow-left-copy {
  position: absolute !important;
  z-index: 4;
  left: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 620px) {
  .il-home-eyebrow-left-copy {
    white-space: normal;
  }
}


/*
 * Version 2.3.14 – eindeutige Ausgabe des Über-uns-Titels.
 * Keine Pseudo-Elemente und keine Parent-Selektoren mehr:
 * Das Script erzeugt echte Text-Spans und gibt ihnen diese Farben.
 */
.il-force-about-line {
  display: block !important;
}

.il-force-about-ilmtaler {
  color: #83c629 !important;
  -webkit-text-fill-color: #83c629 !important;
}

.il-force-about-systemhaus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/*
 * Version 2.3.15 – Leistungsbereich auf der Startseite:
 * „Unsere Leistungen“ bleibt links; nur Hauptüberschrift und Beschreibung
 * werden sauber zentriert. Leistungskarten und restliches Design unverändert.
 */
.il-home-services-left .il-home-services-heading-left,
.il-home-services-left .il-home-section-heading,
.il-home-services-left .il-heading-row,
.il-home-services-left .il-section-heading {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Kleine Oberüberschrift bleibt links wie bisher. */
.il-home-services-left .il-home-services-heading-left .il-eyebrow,
.il-home-services-left .il-home-section-heading .il-eyebrow,
.il-home-services-left .il-heading-row .il-eyebrow,
.il-home-services-left .il-section-heading .il-eyebrow {
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Nur Hauptüberschrift zentrieren. */
.il-home-services-left .il-home-services-heading-left h2,
.il-home-services-left .il-home-section-heading h2,
.il-home-services-left .il-heading-row h2,
.il-home-services-left .il-section-heading h2 {
  width: min(100%, 960px) !important;
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Nur Beschreibung darunter zentrieren. */
.il-home-services-left .il-home-services-heading-left p,
.il-home-services-left .il-home-section-heading p,
.il-home-services-left .il-heading-row p,
.il-home-services-left .il-section-heading p {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}


/*
 * Version 2.3.16 – Datenschutz:
 * Unterstreichung nur beim BfDI-Link zu den Aufsichtsbehörden entfernen.
 * Linkfarbe und bestehender Hover-Farbwechsel bleiben unverändert.
 */
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"],
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:visited,
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:hover,
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:focus-visible {
  text-decoration: none !important;
  text-decoration-line: none !important;
}


/*
 * Version 2.3.17 – PV-Infoanzeige:
 * „PV-Anlage aktiv“ entfernt. Produktionswert, Einheit und Zeitstempel
 * bleiben unverändert und sind in der rechten Karte mittig zentriert.
 */


/*
 * Version 2.3.18 – PV-Produktionskarte quadratisch und vollständig zentriert.
 * Nur die rechte Produktionskarte wird angepasst; restliches Design bleibt unverändert.
 */
.il-pv-home__live {
  width: 100% !important;
  max-width: 330px !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box;
  align-self: center;
  justify-self: center;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.il-pv-home__live-label,
.il-pv-home__value,
.il-pv-home__live small {
  width: 100%;
  text-align: center !important;
}

.il-pv-home__value {
  justify-content: center !important;
}

@media (max-width: 900px) {
  .il-pv-home__live {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    aspect-ratio: 1 / 1 !important;
    margin-inline: auto;
  }
}


/*
 * Version 2.3.19 – quadratische PV-Produktionskarte dezent verkleinert.
 * Inhalt bleibt horizontal und vertikal zentriert.
 */
.il-pv-home__live {
  width: 305px !important;
  max-width: 305px !important;
  aspect-ratio: 1 / 1 !important;
}

@media (max-width: 900px) {
  .il-pv-home__live {
    width: min(100%, 305px) !important;
    max-width: 305px !important;
  }
}

@media (max-width: 380px) {
  .il-pv-home__live {
    width: min(100%, 285px) !important;
    max-width: 285px !important;
  }
}


/*
 * Version 2.3.20 – quadratische PV-Produktionskarte nochmals leicht verkleinert.
 * Inhalt bleibt horizontal und vertikal zentriert; restliches Design unverändert.
 */
.il-pv-home__live {
  width: 285px !important;
  max-width: 285px !important;
  aspect-ratio: 1 / 1 !important;
}

@media (max-width: 900px) {
  .il-pv-home__live {
    width: min(100%, 285px) !important;
    max-width: 285px !important;
  }
}

@media (max-width: 360px) {
  .il-pv-home__live {
    width: min(100%, 265px) !important;
    max-width: 265px !important;
  }
}


/*
 * Version 2.3.21 – Datenschutz:
 * BfDI-Link farblich wie normaler Fließtext; Hover/Fokus bleibt grün.
 * Unterstreichung bleibt entfernt.
 */
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"],
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:visited {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:hover,
body.page a[href*="bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html"]:focus-visible {
  color: var(--il-green-dark, #68a51b) !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/*
 * Version 2.3.21 – Startseite / Leistungen:
 * Alle „Mehr erfahren“-Links in den Leistungskarten sitzen auf derselben
 * vertikalen Ebene. Karten, Texte, Icons und restliches Design bleiben gleich.
 */
.il-home-services-actions-aligned .il-grid-3 {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.il-home-services-actions-aligned .il-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

.il-home-services-actions-aligned .il-card > a:last-child,
.il-home-services-actions-aligned .il-card .il-card__link,
.il-home-services-actions-aligned .il-card a[href]:last-of-type {
  margin-top: auto !important;
  align-self: flex-start;
}
