/*
Theme Name: ImmoTemplates Modern
Theme URI: https://immotemplates.de/
Author: OFFDRIVE
Author URI: https://offdrive.de/
Description: Modern und plakativ: große Bilder über die volle Breite, kräftige Überschriften, klare Kanten und Farbflächen.
Version: 0.1.20
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: immotemplates-modern
Tags: immotemplates-design
*/

/*
 * Aufbau dieser Datei:
 * 1. Grundlage: Layout und Bausteine (Stand "ImmoTemplates Code" 0.19.1,
 *    ohne dessen Header und Menü unten). Sie sorgt dafür, dass jeder
 *    Baustein des Plugins vollständig gestaltet ist.
 * 2. Ab "MODERN" am Ende der Datei: alles, was dieses Design ausmacht.
 *    Dort wird gearbeitet. Kanten, Schatten und Abstände kommen aus den
 *    Variablen (--r-lg, --shadow, --gap ...), deshalb reicht für vieles
 *    ein anderer Wert.
 */


/*
 * Seit 0.6.0 im Bento-Design: Inhalte liegen in weißen, runden Kacheln auf
 * der Hintergrundfarbe. Farben und Schriften kommen aus dem Plugin
 * (ImmoTemplates > Einstellungen > Design) als CSS-Variablen:
 * --accent, --bg, --section-bg, --line, --font-head, --font-text.
 * Das Plugin-CSS (assets/frontend.css) wird vor dieser Datei geladen, die
 * Regeln hier gewinnen deshalb bei gleicher Spezifität.
 */

:root {
  --accent: #4B6355;
  --bg: #F7F4EE;
  --section-bg: #3B4A3D;
  --line: #E6E1D7;
  --ink: #1F2420;
  --muted: #5B6259;
  --card: #FFFFFF;
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gap: 16px;
  --wrap: 1200px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(31, 36, 32, 0.04), 0 10px 30px rgba(31, 36, 32, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-blur: saturate(180%) blur(24px);
  --radius: var(--r-sm);
}

@media (min-width: 700px) {
  :root {
    --gutter: 24px;
  }
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: inherit;
}

a,
a:where(:not(.wp-element-button)) {
  color: inherit;
  text-decoration: none;
}

/* Hinweis: Regeln für Inhalte direkt auf der Seite (.site-main > ...) gelten
   jeweils auch im Editor (.editor-styles-wrapper .is-root-container ... > ...),
   damit die Seitenbearbeitung so aussieht wie die Website. */

/* Links im Fließtext bleiben als Links erkennbar. */
.bx-text a,
.legal-content p a,
.legal-content li a,
.site-main > p a,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.wrap,
.site-main .wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Bausteine: Kachel, Glas, Augenbraue, Pillen-Buttons */

.it-tile,
.card,
.immotpl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.it-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .it-glass {
    background: rgba(255, 255, 255, 0.92);
  }
}

.it-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.it-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.it-btn:hover {
  opacity: 0.9;
}

.it-btn:active {
  transform: scale(0.98);
}

.it-btn--accent {
  background: var(--accent);
  color: #fff;
}

.it-btn--dark {
  background: var(--ink);
  color: #fff;
}

.it-btn--light {
  background: #fff;
  color: var(--ink);
}

.it-btn--line {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.it-btn svg {
  flex: 0 0 auto;
}

/* ---------- Seiteninhalt ---------- */

.site-main {
  padding-top: 20px;
  min-height: 40vh;
}

/* Normale WordPress-Blöcke (Absatz, Überschrift, Liste, Bild, Buttons,
   Trenner) direkt auf einer Seite: auf Inhaltsbreite begrenzt. */
.site-main > :where(p, h1, h2, h3, h4, ul, ol, hr, figure, .wp-block-buttons, .wp-block-image, .wp-block-separator),
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > :where(p, h1, h2, h3, h4, ul, ol, hr, figure, .wp-block-buttons, .wp-block-image, .wp-block-separator) {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-main > :where(h2, h3),
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > :where(h2, h3) {
  margin-top: 56px;
  margin-bottom: 16px;
}

.site-main > h2,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.site-main > p,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > p,
.site-main > ul,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > ul,
.site-main > ol,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > ol {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 16px;
}

.site-main > p,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > p,
.site-main > ul,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > ul,
.site-main > ol,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > ol,
.site-main > h3,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > h3 {
  max-width: calc(760px + 2 * var(--gutter));
  margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

.wp-block-button__link,
.wp-element-button {
  border-radius: var(--r-pill);
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
}

.wp-block-separator,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px auto;
}

/* Gruppen-Block mit Text (z. B. "Über uns") als Kachel */
.site-main > .wp-block-group.home-section,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .wp-block-group.home-section {
  padding-top: 0;
  margin-top: 16px;
}

.site-main > .wp-block-group.home-section > *,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .wp-block-group.home-section > * {
  max-width: 760px;
}

.legal-content,
.site-main > .wp-block-group.legal-content,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .wp-block-group.legal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.site-main > .wp-block-group.legal-content,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .wp-block-group.legal-content {
  width: calc(100% - 2 * var(--gutter));
}

.legal-content h2,
.legal-content h3 {
  margin: 28px 0 10px;
}

.legal-content > :first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

/* ---------- Bento-Raster ---------- */

.it-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 960px) {
  .it-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .it-span-4 { grid-column: span 4; }
  .it-span-6 { grid-column: span 6; }
  .it-span-8 { grid-column: span 8; }
  .it-span-12 { grid-column: span 12; }
}

/* ---------- Hero ---------- */

.it-hero-grid {
  margin-top: 0;
}

.home-hero.it-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--r-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(140deg, var(--section-bg) 0%, var(--accent) 100%);
  isolation: isolate;
}

.it-hero.has-search {
  min-height: 560px;
}

@media (min-width: 960px) {
  .it-hero.has-search {
    min-height: 620px;
  }
}

.it-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.it-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 26, 22, 0.42) 0%, rgba(20, 26, 22, 0.08) 50%, rgba(20, 26, 22, 0.3) 100%);
}

.it-hero:not(.has-image)::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

.home-hero-inner {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px) 0;
  max-width: 680px;
}

.it-hero:not(.has-search) .home-hero-inner {
  padding-bottom: clamp(28px, 5vw, 56px);
  margin-top: auto;
}

.home-hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 14px;
}

.home-hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.home-hero-lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-hero-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 16px 0 0;
  opacity: 0.92;
  max-width: 560px;
}

.it-hero .search-card {
  margin: 24px;
}

@media (max-width: 599px) {
  .it-hero .search-card {
    margin: 16px;
  }
}

.it-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.it-side-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--section-bg);
  color: #fff;
}

.it-side-cta .it-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.it-side-cta h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  margin: 12px 0 10px;
}

.it-side-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.it-side-cta .it-btn {
  align-self: flex-start;
}

.it-side-contact {
  padding: 28px;
}

.it-side-contact .it-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  margin: 8px 0 4px;
}

.it-side-contact .it-address {
  color: var(--muted);
  font-size: 15px;
}

.it-side-contact .it-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* Platzhalter-Hinweis, falls kein Bild gesetzt ist (nur im Editor) */
.hero-photo-note {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Suchleiste (im Hero als Glas, allein als Kachel) ---------- */

.search-card {
  position: relative;
  padding: 18px;
  border-radius: var(--r-sm);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-main > .search-card,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .search-card,
.wp-block-immotpl-search-card {
  max-width: var(--wrap);
  margin: var(--gap) auto 0;
  width: calc(100% - 2 * var(--gutter));
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-toggle {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(31, 36, 32, 0.07);
}

.search-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.search-toggle label {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.search-toggle input:checked + label {
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 36, 32, 0.12);
}

.search-toggle input:focus-visible + label {
  outline: 2px solid var(--accent);
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

@media (min-width: 600px) {
  .search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .search-fields {
    grid-template-columns: 1.3fr 1fr 1fr auto;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.search-field label {
  font-size: 13px;
  color: var(--muted);
  padding-left: 4px;
}

.search-field input,
.search-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(31, 36, 32, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 15px;
}

.search-submit {
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 600px) and (max-width: 959px) {
  .search-submit {
    grid-column: 1 / -1;
  }
}

/* ---------- Abschnitte ---------- */

.home-section {
  padding-top: clamp(56px, 7vw, 88px);
}

.home-section > h2,
.home-section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.home-section-head h2 {
  margin-bottom: 0;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Kennzahlen ---------- */

.usp-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

@media (min-width: 960px) {
  .usp-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.usp-item {
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.usp-number {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: var(--accent);
}

.usp-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Immobilienkarten (Markup aus dem Plugin) ---------- */

.property-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 700px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(31, 36, 32, 0.05), 0 18px 40px rgba(31, 36, 32, 0.1);
}

.property-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  height: auto;
  background-size: cover;
  background-position: center;
}

.property-badge,
.property-badge.is-miete {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.property-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.property-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.property-meta {
  font-size: 14px;
  color: var(--muted);
}

.property-meta-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eckdaten-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eckdaten-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
}

.property-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.no-results {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Leistungen (Bento-Kacheln, seit 0.7.0) ---------- */

.it-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 700px) {
  .it-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .it-services.is-bento .it-service.is-wide,
  .it-services.is-bento .it-service.is-full {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .it-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .it-services.is-bento .it-service.is-full {
    grid-column: span 3;
  }
}

.it-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.it-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(31, 36, 32, 0.05), 0 18px 40px rgba(31, 36, 32, 0.1);
}

.it-service-img {
  height: clamp(190px, 18vw, 240px);
  background-size: cover;
  background-position: center;
  background-color: var(--line);
}

.it-service-img.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--section-bg), var(--accent));
  color: rgba(255, 255, 255, 0.5);
}

.it-service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}

.it-service-body h3 {
  font-size: 21px;
  line-height: 1.2;
}

.it-service-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.it-service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

/* Breite Kacheln: gleiche Bildhöhe, dadurch bleiben die Reihen ruhig. */
@media (min-width: 700px) {
  .it-services.is-bento .it-service.is-wide h3,
  .it-services.is-bento .it-service.is-full h3 {
    font-size: 24px;
  }
}

/* Leistungen als Slider: Kacheln zum Wischen, Punkte darunter. */
.it-slider-track.it-services {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 84%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
  margin: -4px -2px 0;
  cursor: grab;
}

.it-slider-track::-webkit-scrollbar {
  display: none;
}

.it-slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.it-slider-track .it-service {
  scroll-snap-align: start;
}

.it-slider-track .it-service:hover {
  transform: none;
}

@media (min-width: 700px) {
  .it-slider-track.it-services {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
}

@media (min-width: 1024px) {
  .it-slider-track.it-services {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }
}

.it-slider-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.it-slider-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.it-slider-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.it-slider-dot.is-active::before {
  width: 24px;
  background: var(--accent);
}

/* ---------- Vorteile ("Warum wir") ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.why-item > svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: var(--r-sm);
  background: var(--bg);
  margin-bottom: 8px;
}

.why-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.why-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- CTA-Band als dunkle Kachel ---------- */

.cta-band {
  max-width: var(--wrap);
  width: calc(100% - 2 * var(--gutter));
  margin: clamp(56px, 7vw, 88px) auto 0;
  border-radius: var(--r-lg);
  background: var(--section-bg);
  color: #fff;
  overflow: hidden;
}

.cta-band-inner {
  max-width: none;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 900px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-band-text h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  color: #fff;
}

.cta-band-text p {
  margin: 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-band-social-note {
  font-size: 12px;
  font-style: italic;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Kundenstimmen ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 3vw, 32px);
}

.testimonial-text {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.testimonial-author {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.team-photo,
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg);
}

.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px 24px;
}

.team-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
}

.team-contact-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-contact-icon {
  flex: 0 0 auto;
  color: var(--accent);
}

.team-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 10px;
}

/* Seit 0.1.6: Die Beschreibung steht unter der Position, über den Kontaktdaten. */
.team-card-body .team-text {
  margin: 0 0 14px;
}

.team-card-body .team-text:last-child {
  margin-bottom: 0;
}

.team-card-empty {
  padding: 24px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Kontakt-Sektion ---------- */

.contact-section {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: clamp(56px, 7vw, 88px) auto 0;
  padding: 0 var(--gutter);
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .contact-section .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
}

.contact-intro {
  padding: 0;
  background: none;
  color: inherit;
}

.contact-intro h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 14px;
  color: inherit;
}

.contact-intro p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 440px;
}

.contact-intro-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.contact-intro-details a {
  color: var(--accent);
  font-weight: 500;
}

.contact-intro-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.contact-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-section .contact-intro h2,
.contact-section .contact-intro-details a,
.contact-section .contact-intro .immotpl-social-icon {
  color: inherit;
}

.contact-section .contact-intro-details a {
  color: var(--accent);
}

/* Freie Textabschnitte im HTML-Block (z. B. "Verkaufen"), die die Klasse
   contact-section ohne Kachel nutzen: als Kachel darstellen. */
.contact-section.search-intro,
.contact-section.steps-section {
  padding: clamp(24px, 5vw, 56px);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  margin-top: var(--gap);
}

.contact-section.search-intro h2,
.contact-section.steps-section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.contact-section.search-intro p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-item {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--bg);
}

.step-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Formulare (eigenes und JetFormBuilder) ---------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label,
.jet-form-builder__label-text {
  font-size: 13px;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select,
.jet-form-builder__field:not(.hidden-field):not(.checkradio-field):not(.checkboxes-field):not(.radio-field) {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  box-shadow: none;
}

.form-field textarea,
.jet-form-builder__field.textarea-field {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.jet-form-builder__field:not(.hidden-field):not(.checkradio-field):focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.jet-form-builder__field-wrap.checkradio-wrap span {
  display: inline !important;
}

.jet-form-builder__field-wrap.checkradio-wrap span::before {
  margin-right: 8px;
}

.contact-form button[type="submit"],
.contact-form .btn-primary,
.jet-form-builder button[type="submit"],
.jet-form-builder__submit button,
.jet-form-builder__action-button {
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  align-self: flex-start;
}

/* ---------- Social-Icons ---------- */

.immotpl-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.immotpl-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Footer (volle Breite, dunkel) ---------- */

.site-footer {
  margin-top: clamp(64px, 8vw, 104px);
  background: var(--section-bg);
  color: #fff;
}

.footer-grid {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  font-size: 15px;
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

/* Seit 0.10.0: alle Spalten in einer Reihe, egal wie viele Bereiche es gibt. */
@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.3fr;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 24px;
  }
}

.footer-logo {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

@media (min-width: 1000px) {
  .footer-logo {
    grid-column: auto;
  }
}

.footer-address {
  margin-top: 10px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-line;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .footer-col-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Vermerk unten rechts, auf dem Handy unter dem Copyright. */
.footer-made {
  margin-left: auto;
  color: inherit;
  text-decoration: none;
}

/* ---------- Übersicht und Referenzen (Markup aus dem Plugin) ---------- */

.immotpl-core-page-pad {
  padding-top: 0;
}

.archive-intro {
  padding-top: 8px;
}

.archive-intro h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.filter-bar {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto var(--gap);
  padding: 0 var(--gutter);
  background: none;
  border: 0;
}

.filter-bar .filter-form {
  max-width: none;
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .filter-bar .filter-form {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  }
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-field label {
  font-size: 13px;
  color: var(--muted);
  padding-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.filter-field input,
.filter-field select,
.sort-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}

.filter-submit,
.immotpl-core-page-pad .filter-submit {
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .filter-submit,
  .immotpl-core-page-pad .filter-submit {
    grid-column: auto;
  }
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--gap);
}

.sort-form select {
  height: 44px;
  width: auto;
  background: var(--card);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
}

.page-link.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Inhaltsblöcke (seit 0.8.0) ---------- */

.it-block:not(.home-section) {
  margin-top: clamp(40px, 5vw, 64px);
}

.it-intro {
  max-width: 720px;
  margin: -8px 0 22px;
  color: var(--muted);
}

/* Text mit Bild */
.it-textimg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

@media (min-width: 900px) {
  .it-textimg:not(.is-text-only) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .it-textimg.is-image-right .it-textimg-media {
    order: 2;
  }
}

.it-textimg-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 560px;
  object-fit: cover;
}

.it-textimg-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 56px);
}

.it-textimg.is-text-only .it-textimg-body {
  max-width: 860px;
}

.it-textimg-body h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.it-textimg-text {
  color: var(--muted);
  line-height: 1.75;
}

.it-textimg-text p {
  margin: 0 0 12px;
}

.it-textimg-text p:last-child {
  margin-bottom: 0;
}

.it-textimg-body .it-btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* Schritte */
.it-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 640px) {
  .it-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .it-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .it-steps.is-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .it-steps.is-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.it-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.it-step-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}

.it-step h3 {
  font-size: 19px;
  line-height: 1.25;
}

.it-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* Checkliste */
.it-checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(26px, 4vw, 52px);
}

@media (min-width: 900px) {
  .it-checklist {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
  }
}

.it-checklist-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.it-checklist-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}

.it-checklist-text {
  color: var(--muted);
  line-height: 1.7;
}

.it-checklist-text p {
  margin: 0 0 10px;
}

.it-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .it-checklist-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.it-checklist-items li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

.it-checklist-items svg,
.it-ed-check {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

/* Häufige Fragen */
.it-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.it-faq-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.it-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.it-faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
}

.it-faq-icon::before,
.it-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.it-faq-icon::after {
  transform: rotate(90deg);
}

.it-faq-item[open]:not(.is-closing) .it-faq-icon::after {
  transform: rotate(0deg);
}

.it-faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.it-faq-answer p {
  margin: 0 0 10px;
}

.it-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Editor-Hilfen für die Listen-Blöcke */
.it-ed-remove {
  position: absolute !important;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 18px !important;
}

.it-ed-add {
  margin-top: 14px;
}

.it-faq-item.is-editing {
  padding: 18px 48px 4px 22px;
}

.it-faq-item.is-editing .it-faq-answer {
  padding: 8px 0 16px;
}

.it-ed-q {
  font-weight: 600;
  font-size: 17px;
}

.it-ed-hint {
  margin-top: 8px;
}

.it-checklist-items li .it-ed-remove {
  top: 4px;
  right: 4px;
}

/* ---------- Exposé (immotemplates/single-immobilien.php) ---------- */

.bx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bx-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.bx-badge--reserved {
  background: #B7791F;
}

.bx-location {
  font-size: 15px;
  color: var(--muted);
}

.bx-title,
.home-hero-title {
  overflow-wrap: break-word;
}

@media (max-width: 599px) {
  .bx-title,
  .home-hero-title {
    hyphens: auto;
  }
}

.bx-head {
  padding-top: 16px;
}

.bx-title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  max-width: 940px;
}

/* Galerie als Bento */
.bx-gallery {
  position: relative;
  display: grid;
  gap: var(--gap);
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr);
}

.bx-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}

.bx-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bx-photo:hover img {
  transform: scale(1.025);
}

.bx-photo--main {
  aspect-ratio: 4 / 3;
}

.bx-photo--side {
  display: none;
}

@media (min-width: 800px) {
  .bx-gallery--2,
  .bx-gallery--3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: clamp(420px, 44vw, 560px);
  }
  .bx-gallery--1 .bx-photo--main {
    aspect-ratio: 21 / 9;
  }
  .bx-gallery--2 .bx-photo--main,
  .bx-gallery--3 .bx-photo--main {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .bx-gallery--2 .bx-photo--side {
    grid-row: span 2;
  }
  .bx-photo--side {
    display: block;
  }
}

.bx-all-photos {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

/* Eckdaten-Kacheln */
.bx-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
  scroll-margin-top: 90px;
}

@media (min-width: 800px) {
  .bx-facts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.bx-fact {
  min-width: 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.bx-fact--price {
  background: var(--section-bg);
  border-color: transparent;
  color: #fff;
  grid-column: 1 / -1;
}

/* Seit Bento 0.20.5 / Modern und Studio 0.1.20: Die Preis-Kachel ist doppelt
   so breit. "1.640 € / Monat" und Millionenpreise liefen sonst über den Rand. */
@media (min-width: 800px) {
  .bx-fact--price {
    grid-column: span 2;
  }
}

.bx-fact--price .it-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.bx-fact-value {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Abschnitts-Navigation (Glas, bleibt oben stehen) */
.bx-tabs {
  position: sticky;
  top: 12px;
  z-index: 1050;
  display: flex;
  justify-content: center;
  margin: 28px 0 20px;
}

body.admin-bar .bx-tabs {
  top: 44px;
}

.bx-tabs-inner {
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 5px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(31, 36, 32, 0.1);
}

/* Zurück-Button bleibt immer sichtbar, nur die Abschnitte scrollen
   (auf dem Handy wischt man durch die Liste). */
.bx-tabs .bx-tabs-back {
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
}

.bx-tabs .bx-tabs-back:hover {
  background: rgba(255, 255, 255, 0.7);
}

.bx-tabs-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 20px;
  margin: 0 6px 0 4px;
  background: rgba(31, 36, 32, 0.22);
}

.bx-tabs-list {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--r-pill);
}

.bx-tabs-list::-webkit-scrollbar {
  display: none;
}

@media (max-width: 699px) {
  .bx-tabs-inner {
    width: 100%;
  }
  /* Weicher Rand rechts als Hinweis, dass man wischen kann. */
  .bx-tabs-list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 85%, transparent);
    padding-right: 24px;
  }
}

.bx-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.bx-tabs a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.bx-tabs a.is-active {
  background: var(--ink);
  color: #fff;
}

/* Inhalt und Ansprechpartner */
.bx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

@media (min-width: 960px) {
  .bx-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.bx-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.bx-tile {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.bx-tile h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 16px;
}

.bx-text {
  color: var(--muted);
  line-height: 1.75;
}

.bx-text p {
  margin: 0 0 12px;
}

.bx-text p:last-child {
  margin-bottom: 0;
}

.bx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.bx-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 14px;
}

.bx-chips svg {
  color: var(--accent);
}

.bx-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 4px;
}

@media (min-width: 600px) {
  .bx-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bx-data > div {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg);
}

.bx-data dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bx-data dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.bx-data + .bx-text {
  margin-top: 16px;
}

.bx-energy {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-top: 22px;
}

.bx-energy span {
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.45;
}

.bx-energy span.is-current {
  opacity: 1;
  transform: scaleY(1.15);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.bx-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bx-plan {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: zoom-in;
}

.bx-plan img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.bx-map {
  margin-top: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.bx-map .lage-map,
.bx-map .immotpl-osm-map {
  border-radius: var(--r-md);
  min-height: 300px;
}

.bx-side {
  align-self: stretch;
}

/* Rechte Karte scrollt mit, Abstand nach oben so groß, dass sie unter der
   Abschnitts-Navigation bleibt (12px + 50px Leiste + Luft). */
@media (min-width: 960px) {
  .bx-sticky {
    position: sticky;
    top: 82px;
  }
  body.admin-bar .bx-sticky {
    top: 114px;
  }
}

.bx-agent-price {
  margin: 6px 0 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.bx-agent-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bx-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.bx-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.bx-agent-name {
  font-weight: 600;
}

.bx-agent-role {
  font-size: 14px;
  color: var(--muted);
}

.bx-agent-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.bx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  overflow: hidden;
}

.bx-row svg {
  color: var(--accent);
  flex: 0 0 auto;
}

.bx-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bx-agent-cta {
  width: 100%;
}

.bx .contact-section {
  scroll-margin-top: 90px;
}

.bx-form-missing {
  color: var(--muted);
}

.bx-form-missing a {
  color: var(--accent);
}

.lightbox-open {
  overflow: hidden;
}

/* ---------- Block-Editor ---------- */

/* InnerBlocks-Wrapper im Editor dürfen die Raster nicht unterbrechen. */
.usp-row > .block-editor-inner-blocks,
.usp-row > .block-editor-inner-blocks > .block-editor-block-list__layout,
.why-grid > .block-editor-inner-blocks,
.why-grid > .block-editor-inner-blocks > .block-editor-block-list__layout,
.testimonial-grid > .block-editor-inner-blocks,
.testimonial-grid > .block-editor-inner-blocks > .block-editor-block-list__layout,
.team-grid > .block-editor-inner-blocks,
.team-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: contents;
}

.editor-styles-wrapper {
  background: var(--bg);
  font-family: var(--font-text);
  color: var(--ink);
}

/* Nur für Elemente ohne die Klasse "wrap": mit "wrap" gilt im Editor
   dieselbe Breite wie auf der Website. */
.editor-styles-wrapper .it-hero-grid:not(.wrap),
.editor-styles-wrapper .usp-row:not(.wrap),
.editor-styles-wrapper .home-section:not(.wrap) {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

/* Absätze, Listen und kleine Überschriften stehen wie auf der Website
   linksbündig an der Inhaltskante. Der Editor zentriert Blöcke sonst mit
   "!important", deshalb hier ebenso. */
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > :is(p, ul, ol, h3) {
  margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)) !important;
}

.editor-styles-wrapper .it-hero-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Ratgeber (seit 0.9.0) ---------- */

/* Kacheln: Thema als Glas-Chip auf dem Bild, Lesezeit unten. */
.it-rg-card .it-service-img {
  position: relative;
}

.it-rg-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.it-rg-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Artikel: Kopf aus zwei Kacheln */
.rg-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 960px) {
  .rg-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.rg-head-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4.5vw, 56px);
}

.rg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rg-crumbs a:hover {
  color: var(--accent);
}

.rg-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
}

.rg-lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 640px;
}

.rg-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
}

.rg-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.rg-head-media {
  position: relative;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--line);
}

.rg-head-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--section-bg), var(--accent));
  color: rgba(255, 255, 255, 0.5);
}

.rg-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink);
}

/* Artikel: Lesespalte und mitlaufende Seitenleiste */
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: start;
}

@media (min-width: 1024px) {
  .rg-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
  .rg-aside {
    position: sticky;
    top: 24px;
  }
}

.rg-body {
  padding: clamp(24px, 5vw, 64px);
}

.rg-prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.rg-prose > * {
  margin-top: 0;
  margin-bottom: 18px;
}

.rg-prose > :last-child {
  margin-bottom: 0;
}

.rg-prose h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 48px;
  margin-bottom: 14px;
  scroll-margin-top: 24px;
}

.rg-prose > h2:first-child {
  margin-top: 0;
}

.rg-prose h3 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 8px;
}

.rg-prose p,
.rg-prose li {
  color: #3a4039;
}

.rg-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rg-prose ul,
.rg-prose ol {
  padding-left: 0;
  list-style: none;
}

.rg-prose ul li,
.rg-prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.rg-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.rg-prose ol {
  counter-reset: rg;
}

.rg-prose ol li {
  counter-increment: rg;
}

.rg-prose ol li::before {
  content: counter(rg) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent);
}

.rg-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.rg-prose figure,
.rg-prose img {
  border-radius: var(--r-md);
  overflow: hidden;
}

.rg-prose .it-note,
.rg-prose p.it-note {
  margin-top: 40px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.rg-prose .it-note em {
  font-style: normal;
}

/* Inhaltsblöcke aus 0.8.0 im Artikel: ohne eigene Außenabstände/Breite */
.rg-prose .wrap {
  padding-left: 0;
  padding-right: 0;
}

.rg-aside {
  display: grid;
  gap: var(--gap);
}

.rg-toc {
  padding: 24px 26px;
}

.rg-toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.rg-toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line);
}

.rg-toc li:first-child {
  border-top: 0;
}

.rg-toc a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.15s ease;
}

.rg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  padding-top: 2px;
  color: var(--line);
  transition: color 0.15s ease;
}

.rg-toc a:hover,
.rg-toc a.is-active {
  color: var(--ink);
}

.rg-toc a:hover::before,
.rg-toc a.is-active::before {
  color: var(--accent);
}

@media (max-width: 1023px) {
  .rg-toc {
    display: none;
  }
}

.rg-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 26px;
  background: var(--section-bg);
  border-color: transparent;
  color: #fff;
}

.rg-cta .it-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.rg-cta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.rg-cta .it-btn--accent {
  background: #fff;
  color: var(--ink);
}

.rg-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* Übersicht: Themen-Pillen und Seitenzahlen */
.rg-archive {
  padding-top: var(--gap);
}

.rg-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rg-filter::-webkit-scrollbar {
  display: none;
}

.rg-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.rg-pill:hover {
  border-color: var(--ink);
}

.rg-pill.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.rg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.rg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
}

.rg-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Regionen (seit 0.10.0) ---------- */

.it-region-facts {
  margin-top: var(--gap);
}

.it-region-layout {
  margin-top: var(--gap);
}

.it-region-orte {
  padding: 24px 26px;
}

.it-region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.it-region-chips .rg-pill {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  background: var(--bg);
}

.it-region-chips .rg-pill:hover {
  border-color: var(--line);
}

/* Telefon im Header: zwischen 1180 und 1499 px nur als Symbol. */
@media (min-width: 1180px) and (max-width: 1499px) {
  .header-phone {
    width: 46px;
    padding: 0;
  }
  .header-phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }
}

/* ---------- Kundenstimmen (seit 0.11.0) ---------- */

.it-rv-section {
  padding-top: var(--gap);
}

.it-rv-summary-cta .it-btn {
  white-space: nowrap;
}

.wp-block-immotpl-bewertung-formular {
  scroll-margin-top: 24px;
}

/* Auszug: Notenkachel links, Bewertungen daneben */
.it-rv-auszug {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

@media (min-width: 900px) {
  .it-rv-auszug {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.it-rv-auszug-score {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--section-bg);
  color: #fff;
  min-height: 100%;
}

@media (min-width: 900px) {
  .it-rv-auszug-score {
    position: sticky;
    top: 24px;
    min-height: 0;
  }
}

.it-rv-auszug-score .it-rv-score-label {
  color: rgba(255, 255, 255, 0.75);
}

.it-rv-auszug-score .it-rv-stars-bg svg {
  fill: rgba(255, 255, 255, 0.22);
}

.it-rv-auszug-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
}

.it-rv-auszug-list {
  columns: 1;
  column-gap: var(--gap);
}

@media (min-width: 700px) {
  .it-rv-auszug-list {
    columns: 2;
  }
}

.it-rv-badge-wrap {
  margin-top: var(--gap);
}

/* Team-Kachel: Note des Ansprechpartners */
.team-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Partner und Siegel (seit 0.12.0) ---------- */

.footer-siegel {
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
}

.footer-siegel .it-siegel-item {
  height: 76px;
  border-color: transparent;
}

.footer-siegel .it-siegel-img {
  max-height: 52px;
}

.wp-block-immotpl-siegel .it-siegel-list {
  gap: var(--gap);
}

/* =========================================================================
 * Immobilienbewertung (seit 0.14.0)
 * ========================================================================= */

.it-bw-intro {
	max-width: 640px;
	margin: 0 auto clamp(24px, 4vw, 40px);
	text-align: center;
}

.it-bw-intro h2 {
	margin: 0 0 10px;
}

.it-bw-intro p {
	margin: 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
}

/* =========================================================================
 * Seit 0.16.0: Einleitung mit Vorteilen, Seiten-Teaser, Immobilien-Slider
 * ========================================================================= */

/* Überschrift über Bewertung und Suchanfrage so groß wie die übrigen H2. */
.it-bw-intro h2 {
	font-size: clamp(28px, 4vw, 40px);
}

/* Seiten-Teaser */
.wp-block-immotpl-seiten-teaser {
	margin-top: clamp(56px, 7vw, 88px);
}

.it-teaser .it-textimg-media {
	position: relative;
}

.it-teaser .it-textimg-media.is-art {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	background:
		radial-gradient(circle at 30% 25%, color-mix(in srgb, #fff 18%, transparent), transparent 55%),
		linear-gradient(135deg, var(--accent), var(--section-bg));
	color: #fff;
}

.it-teaser-art {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	border-radius: var(--r-sm);
	background: color-mix(in srgb, #fff 14%, transparent);
	border: 1px solid color-mix(in srgb, #fff 25%, transparent);
	backdrop-filter: blur(6px);
}

.it-teaser-points {
	list-style: none;
	margin: 2px 0 4px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.it-teaser-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}

.it-teaser-points svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent);
	margin-top: 1px;
}

/* Aktuelle Immobilien als Slider */
.property-grid.it-slider-track.is-slider {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: 86%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 2px 18px;
	margin: -4px -2px 0;
	cursor: grab;
}

.property-grid.it-slider-track.is-slider > * {
	scroll-snap-align: start;
}

.property-grid.it-slider-track.is-slider a.property-card:hover {
	transform: none;
}

@media (min-width: 700px) {
	.property-grid.it-slider-track.is-slider {
		grid-auto-columns: calc((100% - var(--gap)) / 2);
	}
}

@media (min-width: 1024px) {
	.property-grid.it-slider-track.is-slider {
		grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
	}
}

/* Seit 0.16.1: Fragen über die volle Inhaltsbreite, Antworttext bleibt
   für bessere Lesbarkeit etwas schmaler. */
.it-faq-answer > * {
	max-width: 880px;
}

/* Seit 0.17.0: Beitragsbild als Hero. Etwas kräftiger abdunkeln, damit
   Überschrift und Text auf jedem Foto gut lesbar bleiben. */
.it-hero.is-page-image::before {
	background:
		linear-gradient(90deg, rgba(20, 26, 22, 0.72) 0%, rgba(20, 26, 22, 0.42) 50%, rgba(20, 26, 22, 0.12) 100%),
		linear-gradient(180deg, rgba(20, 26, 22, 0.25) 0%, rgba(20, 26, 22, 0) 45%, rgba(20, 26, 22, 0.3) 100%);
}

@media (max-width: 699px) {
	.it-hero.is-page-image::before {
		background: linear-gradient(180deg, rgba(20, 26, 22, 0.55) 0%, rgba(20, 26, 22, 0.45) 60%, rgba(20, 26, 22, 0.6) 100%);
	}
}

/* =========================================================================
 * Seit 0.18.0: Social-Icons in der Akzentfarbe (aus den Design-Einstellungen)
 * ========================================================================= */
.immotpl-social-icon,
.contact-section .contact-intro .immotpl-social-icon,
.contact-intro .immotpl-social-icon {
	background: var(--accent);
	color: #fff;
	opacity: 1;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.immotpl-social-icon svg,
.contact-intro .immotpl-social-icon svg,
.contact-intro .immotpl-social-icon:hover svg {
	color: inherit;
	fill: none;
	stroke: currentColor;
}

.immotpl-social-icon:hover,
.immotpl-social-icon:focus-visible,
.contact-intro .immotpl-social-icon:hover,
.contact-intro .immotpl-social-icon:focus {
	background: color-mix(in srgb, var(--accent) 82%, #000);
	color: #fff;
	opacity: 1;
	transform: translateY(-1px);
}

/* Referenzen sind nicht klickbar: kein Anheben beim Darüberfahren. */
.property-grid > div.property-card {
	cursor: default;
}

/* =========================================================================
 * Seit 0.18.0: Bewertung mit Ablauf (Startseite)
 * ========================================================================= */
.it-bwa {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
	align-items: start;
}

@media (min-width: 1024px) {
	.it-bwa {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: clamp(20px, 3vw, 40px);
	}
	.it-bwa-tool {
		position: sticky;
		top: 24px;
	}
}

.it-bwa-card {
	padding: clamp(24px, 4vw, 44px);
}

.it-bwa-card h2 {
	font-size: clamp(28px, 4vw, 40px);
	margin: 6px 0 10px;
}

.it-bwa-lead {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
}

/* Das Formular sitzt in der Kachel: keine eigene Karte, volle Breite. */
.it-bwa-card .it-bw,
.it-bwa-card .it-bw-card,
.it-bwa-card .it-bw-embed {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.it-bwa-steps-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 8px 0 14px;
}

.it-bwa-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--gap);
}

.it-bwa-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(24px, 3vw, 36px);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
	transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 1024px) {
	.it-bwa-step {
		min-height: 300px;
		justify-content: flex-end;
	}
	.it-bwa-step-top {
		margin-bottom: auto;
	}
}

.it-bwa-step-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.it-bwa-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--r-sm);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--accent);
	transition: background-color 0.4s ease, color 0.4s ease;
}

.it-bwa-num {
	font-size: clamp(44px, 5vw, 64px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: color-mix(in srgb, var(--ink) 10%, transparent);
	transition: color 0.4s ease;
}

.it-bwa-step h4 {
	margin: 0;
	font-size: 22px;
}

.it-bwa-step p {
	margin: 0;
	color: var(--muted);
	line-height: 1.65;
	transition: color 0.4s ease;
}

/* Die Kachel in der Bildschirmmitte wird hervorgehoben. */
.it-bwa-step.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent);
}

.it-bwa-step.is-active .it-bwa-icon {
	background: color-mix(in srgb, #fff 16%, transparent);
	color: #fff;
}

.it-bwa-step.is-active .it-bwa-num {
	color: color-mix(in srgb, #fff 28%, transparent);
}

.it-bwa-step.is-active p {
	color: color-mix(in srgb, #fff 82%, transparent);
}

@media (max-width: 1023px) {
	.it-bwa-steps {
		margin-top: 8px;
	}
	.it-bwa-list {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.it-bwa-step,
	.it-bwa-icon,
	.it-bwa-num,
	.it-bwa-step p {
		transition: none;
	}
}

/* =========================================================================
 * Seit 0.18.1: Hero-Überschrift mit mehr Platz nach rechts. Lange Wörter wie
 * "Immobilienfinanzierung" werden nicht mehr mitten im Wort abgeschnitten,
 * sondern, nur wenn es gar nicht anders geht, sauber mit Trennstrich getrennt.
 * ========================================================================= */
.home-hero-inner {
	max-width: min(100%, 980px);
}

.home-hero-lead {
	max-width: 620px;
}

.home-hero-title {
	/* Erst sauber trennen (hyphens), nur als letzte Rettung umbrechen. */
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	text-wrap: balance;
}

/* Hero mit Seitenspalte (z. B. Regionen): dort bleibt es bei der Kachelbreite. */
.it-hero.it-span-8 .home-hero-inner {
	max-width: 100%;
}


/* =========================================================================
 * MODERN
 * Alles ab hier macht dieses Design aus: klare Kanten, keine Schatten,
 * Bilder und Farbflächen über die volle Breite, große Serifen-Überschriften.
 * Aufbau: 1 Werte, 2 Grundelemente, 3 Header und Menü, 4 Hero,
 * 5 Abschnitte der Seiten, 6 Leistungsliste, 7 Footer und Reiter,
 * 8 Einblenden, 9 Flach, 10 Mitlaufende Elemente.
 * ========================================================================= */

/* ---------- 1 Werte ---------- */

:root {
  --r-lg: 0px;
  --r-md: 0px;
  --r-sm: 0px;
  --r-pill: 0px;
  --r-ui: 0px;
  --radius: 0px;
  --shadow-card: none;
  --gap: 24px;
  --wrap: 1320px;
  --shadow: none;
  --mh-h: 68px;
  --kopf-h: var(--mh-h);
  /* Seitenrand für Flächen über die volle Breite: Inhalt bleibt in der Spur. */
  --rand: max(var(--gutter), calc(50vw - var(--wrap) / 2));
}

@media (min-width: 960px) {
  :root {
    --mh-h: 84px;
    --gutter: 40px;
  }
}

/* ---------- 2 Grundelemente ---------- */

html {
  scroll-padding-top: calc(var(--mh-h) + 16px);
}

body {
  overflow-x: clip;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Buttons: eckig, Großbuchstaben, mit Rahmen. */
.it-btn {
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.it-btn:hover {
  opacity: 1;
}

.it-btn:active {
  transform: none;
}

.it-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.it-btn--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.it-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.it-btn--light:hover {
  background: transparent;
  color: #fff;
}

/* Kleine Zeile über Überschriften: als Farbmarke. */
.it-eyebrow,
.home-hero-eyebrow,
.m-label {
  display: inline-block;
  padding: 7px 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 1;
  align-self: flex-start;
  width: fit-content;
}

/* Abschnitte: mehr Luft, größere Überschriften, Linie unter dem Kopf. */
/* Abstand über einem Abschnitt, als Variable, damit das Plugin ihn
   in der Editor-Vorschau (Teamfoto) wiederverwenden kann. */
:root {
  --abschnitt-oben: clamp(72px, 9vw, 136px);
}

.home-section {
  padding-top: var(--abschnitt-oben);
}

.home-section > h2,
.home-section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  max-width: 16ch;
}

.home-section-head {
  align-items: flex-end;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}

.home-section-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 699px) {
  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Karten: flach, nur eine Linie. Bilder zoomen leicht. */
.card,
.it-tile,
.immotpl-card,
.it-service {
  box-shadow: none;
}

.property-card .property-photo,
.it-service .it-service-img {
  overflow: hidden;
}

.property-card .property-photo img,
.it-service .it-service-img img {
  transition: transform 0.6s ease;
}

.property-card:hover .property-photo img,
.it-service:hover .it-service-img img {
  transform: scale(1.04);
}

/* ---------- 3 Header und Menü ---------- */

.mh {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.admin-bar .mh {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .mh {
    top: 46px;
  }
}

.mh.is-scrolled {
  border-bottom-color: var(--line);
}

.mh-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--mh-h);
}

.mh-logo {
  margin-right: auto;
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.1;
}

.mh-logo img {
  display: block;
  max-height: calc(var(--mh-h) - 28px);
  width: auto;
}

.mh-quick {
  display: none;
  gap: 32px;
  margin-right: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mh-quick a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.mh-quick a:hover,
.mh-quick a.is-current {
  border-bottom-color: var(--accent);
}

.mh-cta {
  display: none;
  min-height: 46px;
  padding: 10px 20px;
}

@media (min-width: 1000px) {
  .mh-quick {
    display: flex;
  }
  .mh-cta {
    display: inline-flex;
  }
}

.mh-burger {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 0 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.js .mh-burger {
  display: inline-flex;
}

.mh-burger-icon {
  position: relative;
  width: 30px;
  height: 14px;
}

.mh-burger-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.mh-burger-icon i:first-child { top: 0; }
.mh-burger-icon i:last-child { top: 12px; }

.mh.is-open .mh-burger-icon i:first-child { top: 6px; transform: rotate(45deg); }
.mh.is-open .mh-burger-icon i:last-child { top: 6px; transform: rotate(-45deg); }

/* Menü: ohne JavaScript eine einfache Liste, mit JavaScript bildschirmfüllend. */
.mh-menu {
  background: var(--section-bg);
  color: #fff;
}

.js .mh-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--mh-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.js body.admin-bar .mh-menu {
  top: calc(var(--mh-h) + 32px);
}

@media (max-width: 782px) {
  .js body.admin-bar .mh-menu {
    top: calc(var(--mh-h) + 46px);
  }
}

.js .mh.is-open .mh-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Offenes Menü: Die Leiste bleibt hell, damit das Logo unverändert steht. */
.mh.is-open {
  border-bottom-color: var(--line);
}

.mh.is-open .mh-quick,
.mh.is-open .mh-cta {
  visibility: hidden;
}

html.mh-lock {
  overflow: hidden;
}

.mh-menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 40px;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

@media (min-width: 700px) {
  .mh-menu-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mh-menu-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 48px;
  }
}

.mh-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.mh-col-title {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.mh-link {
  padding: 6px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.mh-col-title:hover,
.mh-link:hover,
.mh-link.is-current {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.mh-col .it-btn {
  margin-top: 20px;
  max-width: 100%;
  white-space: normal;
}

/* ---------- 4 Hero ---------- */

/* Der Hero läuft über die volle Breite, die Seitenspalte entfällt. */
.it-hero-grid.wrap,
.site-main .it-hero-grid.wrap,
.editor-styles-wrapper .is-root-container .it-hero-grid {
  display: block;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.it-hero-grid .it-hero-side {
  display: none;
}

.home-hero.it-hero {
  min-height: clamp(420px, 62vh, 640px);
  padding: clamp(40px, 6vw, 88px) var(--rand) clamp(32px, 4vw, 56px);
  justify-content: flex-end;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 960px) {
  .home .home-hero.it-hero {
    min-height: calc(100vh - var(--mh-h));
    min-height: calc(100svh - var(--mh-h));
  }
}

.it-hero::before {
  background: linear-gradient(180deg, rgba(14, 18, 16, 0.25) 0%, rgba(14, 18, 16, 0.2) 40%, rgba(14, 18, 16, 0.72) 100%);
}

.home-hero-inner,
.it-hero.it-span-8 .home-hero-inner {
  max-width: min(100%, 1100px);
  padding: 0;
}

.home-hero-eyebrow {
  margin-bottom: 22px;
}

.home-hero-title {
  font-size: clamp(42px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.home-hero-lead {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
}

/* Die Suche liegt als weiße Leiste unten im Bild. */
.it-hero .search-card {
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (min-width: 960px) {
  .it-hero .search-card {
    max-width: 1100px;
    padding: 24px 28px;
  }
}

/* ---------- 5 Abschnitte der Seiten ---------- */

/* Kennzahlen: dunkles Band über die volle Breite direkt am Hero. */
.usp-row.wrap,
.site-main .usp-row.wrap,
.editor-styles-wrapper .is-root-container .usp-row {
  max-width: none;
  margin-top: 0;
  padding: 0 var(--rand);
  gap: 0;
  background: var(--section-bg);
  color: #fff;
}

.usp-item {
  padding: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 32px) clamp(28px, 4vw, 56px) 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 960px) {
  .usp-item {
    border-top: 0;
    padding-left: clamp(20px, 3vw, 48px);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .usp-item:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* Seit 0.1.13: kleiner und einzeilig. Vorher brachen Werte wie "15 Jahre"
   um und standen neben einzeiligen, das wirkte unruhig. */
.usp-number {
  font-size: clamp(26px, 3.1vw, 50px);
  white-space: nowrap;
  font-weight: 500;
  color: #fff;
}

.usp-label {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Vorteile: nummerierte Felder mit Linie, ohne Kachel. */
.why-grid {
  counter-reset: m-why;
  gap: 0;
  border-top: 1px solid var(--line);
}

.why-item {
  counter-increment: m-why;
  padding: 32px 0 36px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.why-item::before {
  content: counter(m-why, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  color: var(--accent);
}

.why-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
}

@media (min-width: 960px) {
  .why-item {
    padding: 40px clamp(24px, 3vw, 48px) 44px;
    border-left: 1px solid var(--line);
  }
  .why-item:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Bewertung mit Ablauf: helle Farbfläche über die volle Breite. */
.wp-block-immotpl-bewertung-ablauf.home-section.wrap {
  max-width: none;
  margin-top: clamp(72px, 9vw, 136px);
  padding: clamp(56px, 7vw, 112px) var(--rand);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}

/* Kundenstimmen: Gesamtnote als Farbfläche. */
.it-rv-auszug-score {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.it-rv-auszug-score .it-rv-score-label,
.it-rv-auszug-score .it-rv-auszug-more,
.it-rv-auszug-score .it-rv-stars {
  color: #fff;
}

.it-bwa-step,
.it-bwa-step.is-active {
  box-shadow: none;
}

/* Regionen: hohe Bilder, der Name steht groß im Bild. */
.it-services.is-bento .it-service.is-wide,
.it-services.is-bento .it-service.is-full {
  grid-column: auto;
}

@media (min-width: 1024px) {
  .wp-block-immotpl-regionen .it-services {
    gap: 2px;
  }
  /* Raster mit vier Spalten nur ohne Slider. Im Slider (ab drei Regionen)
     quetschten die vier festen Spalten sonst die ersten Karten auf wenige
     Pixel zusammen (Fehler bis 0.1.16). */
  .wp-block-immotpl-regionen .it-services:not(.it-slider-track) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  /* Im Slider: vier gleich breite Karten nebeneinander, der Rest zum Wischen. */
  .wp-block-immotpl-regionen .it-slider-track.it-services {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 3 * 2px) / 4);
  }
}

.it-region-card {
  position: relative;
  border: 0;
  background: var(--section-bg);
  color: #fff;
  isolation: isolate;
}

.it-region-card .it-service-img {
  height: clamp(320px, 34vw, 460px);
  aspect-ratio: auto;
}

.it-region-card .it-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-region-card .it-service-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 24px 24px;
  background: linear-gradient(180deg, rgba(14, 18, 16, 0) 0%, rgba(14, 18, 16, 0.78) 100%);
  color: #fff;
}

.it-region-card .it-service-body h3,
.it-services.is-bento .it-region-card.is-wide h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  color: #fff;
}

.it-region-card .it-service-body * {
  color: inherit;
}

/* ---------- 6 Leistungsliste (immotemplates/blocks/leistungen.php) ---------- */

/* Seit 0.1.9: Leistungen in zwei Spalten, ohne Hintergrundbild. Links die
   Liste, rechts ein Bild mit Teaser, das zum Eintrag wechselt. */
.m-exp {
  margin-top: clamp(72px, 9vw, 136px);
}

.m-exp-bild {
  display: none;
}

@media (min-width: 960px) {
  .m-exp-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: stretch;
  }

  .m-exp-bild {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
    background: var(--section-bg);
    color: #fff;
  }
}

.m-exp-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease, transform 0.8s ease;
}

.m-exp-bild:hover .m-exp-media {
  transform: scale(1.03);
}

.m-exp-bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 18, 16, 0.18) 0%, rgba(14, 18, 16, 0.45) 45%, rgba(14, 18, 16, 0.86) 100%);
}

.m-exp-teaser {
  display: block;
  max-width: 34ch;
  padding: clamp(24px, 3vw, 44px);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  transition: opacity 0.25s ease;
}

.m-exp-teaser.is-wechsel {
  opacity: 0;
}

.m-label {
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.m-exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-exp-list a {
  display: inline-flex;
  align-items: baseline;
  padding: 0.14em 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 3.3vw, 50px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
  color: var(--ink);
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.3s ease;
}

@media (hover: hover) and (min-width: 960px) {
  .m-exp-list a {
    opacity: 0.38;
  }
  .m-exp-list a.is-active,
  .m-exp-list a:hover {
    opacity: 1;
    transform: translateX(14px);
  }
}

.m-exp-list a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  opacity: 1;
}

.m-exp-more {
  margin-top: clamp(32px, 4vw, 56px);
}

/* ---------- 7 Footer und Reiter ---------- */

.mf-cta {
  margin-top: clamp(72px, 9vw, 136px);
  padding: clamp(56px, 8vw, 120px) 0;
  background: var(--accent);
  color: #fff;
}

.mf-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mf-cta h2 {
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1;
  max-width: 14ch;
}

.mf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.mf-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-size: 18px;
  font-weight: 600;
}

@media (min-width: 960px) {
  .mf-cta-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.site-footer {
  margin-top: 0;
}

/* Wo kein Farbband vor dem Footer steht (Kontaktseite), bleibt der Abstand. */
.site-main + .site-footer {
  margin-top: clamp(72px, 9vw, 136px);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 20px;
}

/* Feste Reiter: am Handy als Leiste unten, sonst hochkant am rechten Rand. */
.m-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.m-tabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.m-tabs a + a {
  background: var(--section-bg);
}

.m-tabs a:hover {
  background: var(--ink);
}

@media (max-width: 999px) {
  /* Platz für die Leiste, damit sie nichts vom Footer verdeckt. */
  body {
    padding-bottom: 52px;
  }
}

@media (min-width: 1000px) {
  .m-tabs {
    left: auto;
    right: 0;
    bottom: auto;
    top: 50%;
    flex-direction: column;
    gap: 2px;
    border: 0;
    transform: translateY(-50%);
  }
  .m-tabs a {
    flex: none;
    min-height: 0;
    padding: 20px 12px;
    font-size: 12px;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
}

.mh-lock .m-tabs {
  display: none;
}

@media print {
  .m-tabs,
  .mh-burger,
  .mh-menu {
    display: none;
  }
}

/* ---------- 8 Einblenden ---------- */

.m-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.m-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 9 Flach: kein Glas, nichts Milchiges oder Durchscheinendes ---------- */

:root {
  --glass-bg: var(--card);
  --glass-blur: none;
}

.it-glass,
.property-badge,
.property-badge.is-miete {
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-photo-note {
  background: var(--section-bg);
  color: #fff;
}

.search-toggle {
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
}

.search-field select {
  background: var(--card);
}

.bx-tabs .bx-tabs-back:hover,
.bx-tabs a:hover {
  background: var(--bg);
}

.bx-tabs-sep {
  background: var(--line);
}

.bx-tabs-inner {
  box-shadow: none;
}

.it-teaser-art {
  background: color-mix(in srgb, #fff 14%, var(--section-bg));
  border-color: color-mix(in srgb, #fff 25%, var(--section-bg));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.it-teaser-points svg,
.it-bwa-icon {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

.it-bwa-step.is-active .it-bwa-icon {
  background: color-mix(in srgb, #fff 16%, var(--accent));
}

.it-slider-dot::before {
  background: color-mix(in srgb, var(--ink) 22%, var(--bg));
}

/* ---------- 10 Mitlaufende Elemente: Abstand zur Leiste oben ---------- */

body {
  --oben: calc(var(--kopf-h) + 24px);
}

body.admin-bar {
  --oben: calc(var(--kopf-h) + 56px);
}

/* Abschnitts-Navigation im Exposé: unter der Leiste, nie über dem Menü. */
body .bx-tabs,
body.admin-bar .bx-tabs {
  top: var(--oben);
  z-index: 40;
  transition: top 0.5s ease;
}

@media (min-width: 960px) {
  body .bx-sticky,
  body.admin-bar .bx-sticky {
    top: calc(var(--oben) + 74px);
    transition: top 0.5s ease;
  }
}

.rg-aside,
.it-rv-auszug-score,
.it-bwa-tool {
  top: var(--oben);
  transition: top 0.5s ease;
}

/* ---------- 11 Rechtstext-Seiten und Siegel im Footer ---------- */

.site-main > .legal-content.wrap,
.editor-styles-wrapper .is-root-container.block-editor-block-list__layout > .legal-content.wrap {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  margin-top: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 56px);
}

.legal-content h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Siegel im Footer: in der Spur des Footers, nicht am Bildschirmrand. */
.footer-siegel {
  box-sizing: border-box;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 32px auto 0;
  padding: 28px var(--gutter) 8px;
}

/* Seit Plugin 1.36.0: Ratgeber-Artikel mit Kopfbereich wie die Unterseiten.
   Darunter eine schmale Zeile mit Brotkrümeln, Datum und Lesezeit. */
.rg-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(18px, 2.4vw, 30px);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.rg-leiste .rg-meta {
  margin-top: 0;
  flex-wrap: wrap;
}

/* Die Suche geht über die ganze Bildbreite, rechts so weit wie links. */
@media (min-width: 960px) {
  .it-hero .search-card {
    max-width: none;
  }
}

/* Einstieg zur Bewertung im Bild: eine ruhige Zeile unter der Einleitung. */
.it-hero-bewerten {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  color: #fff;
  font-size: 15px;
}

.it-hero-bewerten span {
  opacity: 0.86;
}

.it-hero-bewerten strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.it-hero-bewerten:hover strong {
  gap: 12px;
  border-color: #fff;
}

/* Eine oder zwei Regionen füllen die Breite. */
@media (min-width: 700px) {
  .wp-block-immotpl-regionen .it-services.is-n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .wp-block-immotpl-regionen .it-services.is-n1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .it-services.is-n1 .it-region-card .it-service-body {
    padding: 120px clamp(24px, 4vw, 56px) clamp(24px, 3vw, 44px);
  }
  .it-services.is-n1 .it-region-card .it-service-body h3 {
    font-size: clamp(34px, 4vw, 56px);
  }
  .it-services.is-n1 .it-region-card .it-service-body p {
    max-width: 60ch;
  }
}

/* ---------- Vorteile: Einleitung und Teamfoto (Plugin ab 1.38.0) ---------- */
.why-kopf .it-eyebrow {
  margin: 0 0 10px;
}

.why-lead {
  max-width: 62ch;
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Das Foto steht als breites Bild über den Punkten. */
.why-foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0 0 clamp(24px, 3vw, 40px);
  background: var(--line);
}

.why-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 700px) {
  .why-foto {
    aspect-ratio: 21 / 9;
  }
}
