/*
  PE Immo – Anpassung der immonex-Kickstart-Seiten (Default-Skin) an das Theme.
  Wird nach den Kickstart-Styles geladen. Das Plugin selbst bleibt unverändert.
*/

/* ---------- Kickstart-Farben auf PE umstellen ---------- */
:root:root {
  --inx-color-action-element: var(--accent);
  --inx-color-action-element-lighter: var(--accent);
  --inx-color-action-element-darker: #c4006b;
  --inx-gradient-action-element: var(--accent);
  --inx-color-action-element-25pct: rgba(227, 0, 124, .25);
  --inx-color-bg-muted-default: var(--beige);
  --inx-color-bg-muted-default-darker: #d9d3cc;
  --inx-color-label-default: var(--text);
  --inx-gradient-label-default: var(--text);
  --inx-color-marketing-type-sale: var(--accent);
  --inx-gradient-marketing-type-sale: var(--accent);
  --inx-color-marketing-type-rent: var(--accent);
  --inx-gradient-marketing-type-rent: var(--accent);
  --inx-color-marketing-type-leasing: var(--accent);
  --inx-gradient-marketing-type-leasing: var(--accent);
  --inx-color-demo: var(--muted);
  --inx-gradient-demo: var(--muted);
  --inx-border-radius-subtle: 0;
  --inx-signature-border-radius: 0;
  --inx-gallery-image-slider-bg-color: var(--beige);
}

/* ---------- Grundgerüst ---------- */
body .inx-single-property {
  max-width: 1240px; margin: 0 auto; padding: 0 12px 56px;
  font-family: "Inter", sans-serif; color: var(--text); line-height: 1.55;
}
body .inx-single-property__main-content { display: flex; flex-direction: column; }
body .inx-single-property a { color: var(--accent); }
body .inx-single-property a:hover { color: #c4006b; }

/* Galerie nach oben, wie Bild über der Kachel auf der Startseite */
body .inx-single-property__head + .inx-gallery { order: -1; margin: 24px 0 0 !important; }

/* ---------- Immobilien-Archiv: Seitentitel wie Immobilienbewertung ---------- */
body .inx-page-header { padding-top: 36px; margin-bottom: 24px; }
body .inx-page-title {
  margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 46px; line-height: 1.08; letter-spacing: 0; color: var(--text);
}
body .inx-page-title::before { content: "— "; }

/* ---------- Kopf: beige Fläche wie die Kacheln ---------- */
body div.inx-single-property__head {
  background: var(--beige); margin: 0 0 40px; padding: 22px 18px 26px;
}
body .inx-single-property__head-type {
  margin-bottom: 4px !important;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
body .inx-single-property__head-title,
body h1.inx-single-property__head-title {
  margin: 6px 0 18px !important;
  font-family: var(--font-head); font-weight: 500; font-size: 46px; line-height: 1.08; letter-spacing: 0; color: var(--text);
}
body .inx-single-property__head-title::before { content: "— "; }
body .inx-single-property__head-location { font-size: 17px; color: var(--muted); }
body .inx-single-property__head-primary-price {
  font-family: var(--font-head); font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--text);
}
@media (max-width: 959px) {
  body .inx-single-property__head-primary-price .uk-text-right { text-align: left !important; }
}
body div.inx-single-property__head hr { background: #d9d3cc; margin: 18px 0; }
body .inx-single-property__head-elements.uk-child-width-auto { display: flex; flex-wrap: wrap; gap: 10px 26px; }
body .inx-single-property__head-elements > * { margin-top: 0 !important; }
body .inx-single-property__head-core-data-element { font-size: 17px; color: var(--muted); }
body .inx-core-detail-icon,
body .inx-core-detail-icon i,
body .inx-feature-list__icon { color: var(--accent); }

/* Labels (Zu verkaufen, Demo …) */
body .inx-property-list-item__labels { display: none; } /* in den Listen-Kacheln ausgeblendet, nur im Exposé sichtbar */
body .inx-single-property__labels { position: static !important; display: flex; gap: 6px; margin-bottom: 8px; }
body .inx-property-label {
  padding: 3px 10px; border-radius: 4px;
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
}

/* ---------- Galerie ---------- */
body .inx-gallery { background: transparent; }
body .inx-gallery__images li { background-color: var(--beige); }
body .inx-gallery__slidenav,
body .inx-gallery__slidenav:focus,
body .inx-gallery__slidenav:active {
  width: 44px; height: 44px; margin: 0 14px; padding: 0;
  font-size: 18px; line-height: 1; text-shadow: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--text) !important; border-radius: 50%;
  transition: background .3s ease, color .3s ease;
}
body .inx-gallery__slidenav:hover { background: var(--accent); color: #fff !important; }
body .inx-thumbnail-nav { margin-top: 8px; }
body .inx-thumbnail-nav__item { margin-right: 8px; }
body .inx-thumbnail-nav__item a, body .inx-thumbnail-nav__item img { border-radius: 0; }

/* ---------- Tabs (Die Immobilie, Details, Ausstattung …) ---------- */
body .inx-single-property__tabbed-content { background: transparent; padding: 0 !important; margin-bottom: 56px !important; }
body .inx-single-property__tab-nav.uk-tab { margin: 0 0 28px; gap: 4px 26px; }
body .inx-single-property__tab-nav.uk-tab > li { padding-left: 0; }
body .inx-single-property__tab-nav.uk-tab > li > a {
  padding: 10px 0; color: var(--muted);
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: color .3s ease;
}
body .inx-single-property__tab-nav.uk-tab > li > a:hover,
body .inx-single-property__tab-nav.uk-tab > .uk-active > a { color: var(--text); }
body .inx-single-property__tab-nav.uk-tab > .uk-active > a { border-color: var(--accent) !important; }
body .inx-single-property__tabbed-content .uk-tab::before { border-color: #e2e2e2; }
/* schmale Spalte: Tabs untereinander mit Linie links */
body .inx-single-property__tab-nav.uk-tab:not(.inx-cq-s) { gap: 0; }
body .inx-single-property__tab-nav.uk-tab:not(.inx-cq-s) > li > a { padding: 8px 0 8px 14px; }

body .inx-description-text { font-size: 18px; line-height: 1.65; max-width: 72ch; }
body .inx-description-text p { margin: 0 0 1em; }

/* ---------- Abschnittstitel ---------- */
body .inx-single-property__section-title,
body .inx-single-property__section-title.uk-heading-divider {
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid #e2e2e2 !important;
  font-family: var(--font-head); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: 0; color: var(--text);
}
body .inx-single-property__section-title::before { content: "— "; }
/* Headlines in den Reitern (Flächen, Zustand …) und "Grundrisse" in Inter statt Kepler */
body .inx-single-property__tabbed-content .inx-single-property__section-title,
body .inx-single-property__section--type--gallery .inx-single-property__section-title {
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3;
}
body .inx-single-property__section { margin-bottom: 40px; }

/* ---------- Detail- und Ausstattungslisten ---------- */
body .inx-detail-list { margin-bottom: 28px; }
body .inx-detail-list__item { padding-top: 9px !important; padding-bottom: 9px; border-bottom: 1px solid #ece8e4; font-size: 16px; }
body .inx-detail-list__title { color: var(--muted); }
body .inx-detail-list__value { font-weight: 600; color: var(--text); }
body .inx-feature-list__item { font-size: 16px; padding-top: 6px; }

/* ---------- Kontaktperson ---------- */
body .inx-single-property__section--type--contact-person { background: var(--beige); padding: 26px 18px 30px; }
body .inx-single-property__section--type--contact-person .inx-detail-list__item { border-bottom-color: #ddd7d0; }
body .inx-single-property__contact-person-name-bio > strong:first-child {
  display: block; margin-bottom: 4px;
  font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 1.15;
}

/* ---------- "Zur Übersicht" ---------- */
body .inx-single-property__footer { background: transparent; padding: 0 !important; }
body .inx-single-property__footer a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; text-transform: uppercase;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
}
body .inx-single-property__footer a:hover { color: var(--accent); }

@media (min-width: 700px) {
  body .inx-single-property { padding: 0 24px 72px; }
  body div.inx-single-property__head { padding: 28px 34px 32px; }
  body .inx-single-property__section--type--contact-person { padding: 32px 34px 36px; }
}
@media (min-width: 1000px) {
  body .inx-page-header { padding-top: 56px; }
  body .inx-page-title { font-size: 64px; }
  body .inx-single-property__head + .inx-gallery { margin-top: 32px !important; }
  body .inx-single-property__head-title, body h1.inx-single-property__head-title { font-size: 64px; }
  body .inx-single-property__head-primary-price { font-size: 44px; }
}
