/*
 Theme Name:   Divi Child Theme
 Description:  Child Theme for Divi
 Author:       iloweb e.U.
 Author URI:   https://www.iloweb.at
 Template:     Divi
 Version:      1.1.0
 Text Domain:  divi-5-child
*/

/* Helpers */
.flexCenter {
	display: flex;
	align-items: center;
}

/* === AE Gebaeudetechnik (generiert, divi-toolkit) === */
/* AE Gebäudetechnik – Präfix ae- */
@font-face { font-family: "AE Barlow"; src: url("ae-barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "AE Barlow"; src: url("ae-barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "AE Barlow"; src: url("ae-barlow-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --ae-blue: #0471bd;
  --ae-blue-dark: #035a97;
  --ae-dark: #1d1d1f;
  --ae-text: #3b3f45;
  --ae-light: #f2f4f6;
  --ae-radius: 50px;
  --ae-shadow: 0 10px 40px rgba(20, 40, 60, .12);
  --ae-font: "AE Barlow", Helvetica, Arial, sans-serif;
}

/* Schrift und Grundtext in eigenen Sektionen */
.ae-sec, .ae-sec h1, .ae-sec h2, .ae-sec h3, .ae-sec p, .ae-sec li, .ae-sec a, .ae-sec .et_pb_button {
  font-family: var(--ae-font) !important;
}
.ae-sec p, .ae-sec li { font-size: 18px; line-height: 1.65; color: var(--ae-text); }
.ae-sec h1, .ae-sec h2, .ae-sec h3 { color: var(--ae-dark); line-height: 1.15; font-weight: 700; padding-bottom: .4em; }
.ae-sec h2 { font-size: 40px; }
.ae-sec h3 { font-size: 25px; }
.ae-sec a { overflow-wrap: anywhere; }
.ae-kicker {
  color: var(--ae-blue) !important; text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px !important; font-weight: 700; padding-bottom: 6px !important;
}
.ae-link { color: var(--ae-blue) !important; font-weight: 700; text-decoration: none; }
.ae-link:hover { text-decoration: underline; }
.ae-small { font-size: 14px !important; }
.ae-todo { background: #fff3a3; color: #5c4b00; padding: 0 4px; border-radius: 3px; }

/* Buttons */
.ae-sec .et_pb_button.ae-btn, .ae-btn.et_pb_button {
  display: inline-block; border-radius: 30px 0 30px 0 !important; border: 2px solid var(--ae-blue) !important;
  padding: 12px 28px !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.ae-btn.et_pb_button:after { display: none !important; }
.ae-sec .ae-btn-primary.et_pb_button { background: var(--ae-blue) !important; color: #fff !important; }
.ae-sec .ae-btn-primary.et_pb_button:hover { background: var(--ae-blue-dark) !important; border-color: var(--ae-blue-dark) !important; }
.ae-sec .ae-btn-outline-dark.et_pb_button { background: rgba(255,255,255,.7) !important; color: var(--ae-dark) !important; border-color: var(--ae-dark) !important; }
.ae-sec .ae-btn-outline-dark.et_pb_button:hover { background: var(--ae-dark) !important; color: #fff !important; }
.ae-sec .ae-btn-white.et_pb_button { background: #fff !important; color: var(--ae-blue) !important; border-color: #fff !important; }
.ae-sec .ae-btn-white.et_pb_button:hover { background: transparent !important; color: #fff !important; }
.ae-sec .ae-btn-outline.et_pb_button { background: transparent !important; color: #fff !important; border-color: #fff !important; }
.ae-sec .ae-btn-outline.et_pb_button:hover { background: #fff !important; color: var(--ae-blue) !important; }
.ae-sec .et_pb_button_module_wrapper { margin: 0 !important; }
.ae-hero-col, .ae-cta-buttons { flex-direction: row !important; flex-wrap: wrap !important; gap: 14px; align-items: center; }
.ae-hero-col > .ae-hero-text { flex: 0 0 100% !important; width: 100% !important; margin-bottom: 0 !important; }
.ae-hero-col > .et_pb_button_module_wrapper { flex: 0 0 auto !important; width: auto !important; }
.ae-cta-buttons { justify-content: flex-end; }

/* Hero */
.ae-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 230px !important; position: relative; }
.ae-hero:before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 75%);
}
.ae-hero .et_pb_row { position: relative; z-index: 1; width: 90%; max-width: 1280px; }
.ae-hero-text .et_pb_text_inner { max-width: 680px; }
.ae-hero-p1 { font-size: 22px !important; color: var(--ae-blue) !important; font-weight: 700; padding-bottom: 0 !important; }
.ae-sec h1.ae-hero-title { font-size: 64px; font-weight: 700; padding-bottom: 12px; }
.ae-hero-claim { font-size: 24px !important; line-height: 1.4 !important; color: var(--ae-dark) !important; padding-bottom: 28px !important; }

/* Leistungen: Karten ragen in den Hero */
.ae-leistungen { padding: 0 0 60px !important; margin-top: -170px; position: relative; z-index: 2; background: transparent !important; }
.ae-leistungen .et_pb_row { width: 90%; max-width: 1280px; gap: 30px; padding: 0 !important; }
.ae-leistungen .et_pb_row { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.ae-leistungen .et_pb_row > .et_pb_column { margin-right: 0 !important; display: flex; width: auto !important; max-width: none !important; }
.ae-leistungen-flat { margin-top: 0; padding: 20px 0 90px !important; }
.ae-card {
  height: 100%;
  background: #fff; padding: 50px 30px 40px; box-shadow: var(--ae-shadow); width: 100%;
  border-radius: var(--ae-radius) 0 var(--ae-radius) 0; transition: transform .25s, box-shadow .25s;
}
.ae-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(4, 113, 189, .18); }
.ae-icon { display: block; width: 72px; height: 72px; margin: 0 auto 20px; }
.ae-card h3 { font-size: 24px; padding-bottom: 10px; }
.ae-card p { font-size: 17px; }

/* Über uns */
.ae-ueber { padding: 90px 0 !important; }
.ae-row-ueber { width: 90%; max-width: 1280px; gap: 60px; align-items: center; }
.ae-row-ueber > .et_pb_column:first-child { flex: 0 0 58% !important; max-width: 58%; }
.ae-row-ueber > .et_pb_column:last-child { flex: 1 1 auto !important; }
.ae-bild img { border-radius: var(--ae-radius) 0 var(--ae-radius) 0; box-shadow: var(--ae-shadow); }
.ae-zitat { font-style: italic; font-size: 22px !important; color: var(--ae-dark) !important; margin-top: 18px; }
.ae-zitat:before { content: "«"; font-style: normal; color: var(--ae-blue); margin-right: 3px; }
.ae-zitat:after { content: "»"; font-style: normal; color: var(--ae-blue); margin-left: 3px; }
.ae-signs { display: flex; gap: 40px; flex-wrap: wrap; margin: 10px 0 20px; }
.ae-signs figure { margin: 0; }
.ae-sign { height: 54px; width: auto; }
.ae-signs figcaption { font-size: 14px; color: var(--ae-text); margin-top: 4px; }

/* Call to Action */
.ae-cta { padding: 70px 0 !important; }
.ae-cta .et_pb_row { width: 90%; max-width: 1280px; align-items: center; }
.ae-cta h2, .ae-cta p { color: #fff !important; }
.ae-cta-buttons { text-align: right; }

/* Unterseiten */
.ae-pagehead { padding: 170px 0 70px !important; position: relative; }
.ae-pagehead:before { content: ""; position: absolute; inset: 0; background: rgba(15, 25, 35, .55); pointer-events: none; }
.ae-pagehead .et_pb_row { position: relative; z-index: 1; width: 90%; max-width: 1280px; }
.ae-pagehead h1 { color: #fff !important; font-size: 56px; padding-bottom: 0; }
.ae-pagehead .ae-kicker { color: #9fd3ff !important; }
.ae-content { padding: 80px 0 !important; }
.ae-content .et_pb_row { width: 90%; max-width: 1280px; gap: 60px; }
.ae-prose { max-width: 820px; }
.ae-legal h2 { font-size: 26px; padding-top: 18px; }

/* Kontakt */
.ae-contact-line { display: flex; gap: 16px; padding-bottom: 6px !important; }
.ae-contact-line span { min-width: 160px; font-weight: 700; color: var(--ae-dark); }
.ae-contact-info h3 { padding-top: 24px; }
.ae-form-col { background: var(--ae-light); padding: 40px !important; border-radius: var(--ae-radius) 0 var(--ae-radius) 0; }
.ae-form input[type=text], .ae-form input[type=email], .ae-form input[type=tel], .ae-form textarea {
  background: #fff !important; border: 1px solid #d5dbe1 !important; border-radius: 6px !important;
  font-family: var(--ae-font) !important; font-size: 17px !important; padding: 14px !important; color: var(--ae-dark) !important;
}
.ae-form input:focus, .ae-form textarea:focus { border-color: var(--ae-blue) !important; outline: none; }
.ae-form .de_fb_submit, .ae-form button[type=submit], .ae-form .et_pb_button {
  background: var(--ae-blue) !important; color: #fff !important; border: 0 !important;
  border-radius: 30px 0 30px 0 !important; padding: 12px 34px !important; font-family: var(--ae-font) !important; font-weight: 700 !important;
}
.ae-map-sec { padding: 0 !important; }
.ae-map-sec .et_pb_row { width: 100%; max-width: none; padding: 0 !important; }
.ae-map { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3); }
.ae-map-sec .ae-small { width: 90%; max-width: 1280px; margin: 8px auto; }

/* Tablet und Handy */
@media (max-width: 980px) {
  .ae-sec .et_pb_row { flex-wrap: wrap !important; }
  .ae-sec .et_pb_row > .et_pb_column { flex: 0 0 100% !important; max-width: 100% !important; margin-right: 0 !important; }
  .ae-leistungen .et_pb_row { grid-template-columns: repeat(2, 1fr); }
  .ae-hero { min-height: 80vh; padding-bottom: 200px !important; }
  .ae-hero:before { background: linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.85) 70%); }
  .ae-sec h1.ae-hero-title { font-size: 46px; }
  .ae-cta-buttons { justify-content: flex-start; }
  .ae-row-ueber, .ae-content .et_pb_row { gap: 40px; }
}
@media (max-width: 600px) {
  .ae-leistungen .et_pb_row { grid-template-columns: 1fr; }
  .ae-leistungen { margin-top: -120px; }
  .ae-leistungen-flat { margin-top: 0; }
  .ae-hero { padding-bottom: 150px !important; min-height: 78vh; }
  .ae-sec h1.ae-hero-title { font-size: 36px; hyphens: auto; }
  .ae-hero-claim { font-size: 20px !important; }
  .ae-sec h2 { font-size: 30px; }
  .ae-pagehead { padding: 130px 0 50px !important; }
  .ae-pagehead h1 { font-size: 38px; hyphens: auto; overflow-wrap: anywhere; }
  .ae-contact-line { flex-direction: column; gap: 0; }
  .ae-form-col { padding: 28px 20px !important; }
  .ae-ueber, .ae-content { padding: 60px 0 !important; }
}

/* Footer */
.ae-foot { padding: 70px 0 50px !important; }
.ae-foot .et_pb_row { width: 90%; max-width: 1280px; gap: 40px; }
.ae-foot h4 { color: #fff !important; font-size: 20px; font-weight: 700; padding-bottom: 12px; font-family: var(--ae-font) !important; }
.ae-foot p, .ae-foot a { color: #c9ced4 !important; font-size: 16px !important; }
.ae-foot a:hover { color: #fff !important; }
.ae-foot-logo { width: 110px; height: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
@media (max-width: 980px) {
  .ae-foot .et_pb_row > .et_pb_column { flex: 0 0 calc(50% - 20px) !important; max-width: calc(50% - 20px) !important; }
}
@media (max-width: 600px) {
  .ae-foot .et_pb_row > .et_pb_column { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Header-Menü */
.et-l--header .et_pb_menu a, .et-l--header .et_mobile_menu a { font-family: var(--ae-font) !important; font-size: 17px !important; font-weight: 700 !important; color: var(--ae-dark) !important; }
.et-l--header .et_pb_menu .current-menu-item > a, .et-l--header .et_pb_menu a:hover { color: var(--ae-blue) !important; }
.et-l--footer p, .et-l--footer a { font-family: var(--ae-font) !important; }

/* Unterste Footer-Zeile dunkel */
.et-l--footer .et_pb_section:not(.ae-sec) { background-color: #151517 !important; border-top: 1px solid rgba(255, 255, 255, .08); }
.et-l--footer .et_pb_section:not(.ae-sec) p, .et-l--footer .et_pb_section:not(.ae-sec) a,
.et-l--footer .et_pb_section:not(.ae-sec) li { color: #9aa1a9 !important; }
.et-l--footer .et_pb_section:not(.ae-sec) a:hover { color: #fff !important; }

/* Referenzen: Übersicht */
.ae-ref-list .et_pb_text_inner { max-width: none; }
.ae-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 10px; }
.ae-ref-card {
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--ae-shadow); overflow: hidden;
  border-radius: var(--ae-radius) 0 var(--ae-radius) 0; transition: transform .25s, box-shadow .25s;
}
.ae-ref-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(4, 113, 189, .18); }
.ae-ref-imglink { display: block; aspect-ratio: 4 / 3; background: var(--ae-light, #f2f4f6); overflow: hidden; }
.ae-ref-imglink img, .ae-ref-noimg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ae-ref-card:hover .ae-ref-imglink img { transform: scale(1.04); }
.ae-ref-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.ae-ref-body h3 { font-size: 22px; padding-bottom: 8px; }
.ae-ref-body h3 a { color: var(--ae-dark) !important; }
.ae-ref-body h3 a:hover { color: var(--ae-blue) !important; }
.ae-ref-body p { font-size: 16px; }
.ae-ref-body .ae-link { margin-top: auto; padding-top: 14px; }
.ae-sec p.ae-ref-meta { font-size: 14px !important; font-weight: 700; color: var(--ae-blue) !important; padding-bottom: 6px !important; text-transform: uppercase; letter-spacing: .06em; }
.ae-ref-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.ae-ref-tag { font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 20px; background: #e6f1f9; color: var(--ae-blue); font-weight: 700; }

/* Referenzen: Detailseite */
.ae-ref-details .et_pb_text_inner { max-width: none; }
.ae-ref-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 50px; align-items: start; }
.ae-ref-facts { background: var(--ae-light, #f2f4f6); padding: 30px; border-radius: var(--ae-radius) 0 var(--ae-radius) 0; }
.ae-ref-facts h3 { font-size: 22px; padding-bottom: 14px; }
.ae-ref-facts dl { margin: 0; }
.ae-ref-facts dl > div { padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.ae-ref-facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.ae-ref-facts dd { margin: 2px 0 0; font-size: 17px; color: var(--ae-dark); }
.ae-ref-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.ae-ref-gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.ae-ref-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ae-ref-gallery-item:hover img { transform: scale(1.04); }
.ae-ref-back { margin-top: 40px; }
.ae-lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.ae-lightbox::backdrop { background: rgba(10, 10, 12, .85); }
.ae-lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.ae-lightbox button { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

@media (max-width: 980px) {
  .ae-ref-grid { grid-template-columns: repeat(2, 1fr); }
  .ae-ref-detail { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .ae-ref-grid, .ae-ref-gallery { grid-template-columns: 1fr; }
}
/* === Ende AE Gebaeudetechnik === */
