/*
Theme Name: ImmoTemplates Studio
Theme URI: https://immotemplates.de/
Author: OFFDRIVE
Author URI: https://offdrive.de/
Description: Stilvoll und ruhig wie ein Magazin: viel Weißraum, große Überschriften mit kursiven Akzenten und Bewegung beim Scrollen.
Version: 0.1.20
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: immotemplates-studio
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 "STUDIO" 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%;
}


/* =========================================================================
 * STUDIO
 * Alles ab hier macht dieses Design aus: ruhig wie ein Magazin, viel
 * Weißraum, große Überschriften in Großbuchstaben mit kursivem Akzent,
 * Bewegung beim Scrollen.
 * Aufbau: 1 Werte, 2 Grundelemente, 3 Header und Menü, 4 Hero,
 * 5 Abschnitte der Seiten, 6 Leistungen, 7 Laufband und Footer,
 * 8 Bewegung, 9 Flach, 10 Mitlaufende Elemente, 11 Alles eckig.
 * ========================================================================= */

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

:root {
  --r-lg: 0px;
  --r-md: 0px;
  --r-sm: 0px;
  --r-ui: 0px;
  --r-pill: 0px;
  --radius: 0px;
  --gap: 28px;
  --wrap: 1360px;
  --shadow: none;
  --shadow-card: none;
  --sh-h: 68px;
  --kopf-h: var(--sh-h);
  --rand: max(var(--gutter), calc(50vw - var(--wrap) / 2));
  --s-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (min-width: 960px) {
  :root {
    --sh-h: 88px;
    --gutter: 48px;
  }
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0;
}

/* Buttons: schmal, weit gesperrt, eckig. */
.it-btn {
  min-height: 54px;
  padding: 14px 34px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--s-ease), color 0.35s var(--s-ease), border-color 0.35s var(--s-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: transparent;
  color: var(--accent);
}

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

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

/* Textlink mit Linie, die beim Überfahren neu gezogen wird. */
.s-link,
.home-section-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.s-link::after,
.home-section-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--s-ease);
}

.s-link:hover::after,
.home-section-link:hover::after {
  transform: scaleX(0);
}

/* Kleine kursive Zeile über Überschriften. */
.it-eyebrow,
.home-hero-eyebrow,
.s-kicker {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 21px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  opacity: 1;
}

.it-eyebrow,
.s-kicker {
  color: var(--accent);
}

/* Abschnitte: viel Luft, Kopf in der Mitte, durchnummeriert. */
.site-main {
  counter-reset: s-abschnitt;
}

/* Abstand über einem Abschnitt, als Variable, damit das Plugin ihn
   in der Editor-Vorschau (Teamfoto) wiederverwenden kann. */
:root {
  --abschnitt-oben: clamp(88px, 12vw, 190px);
}

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

.home-section-head {
  counter-increment: s-abschnitt;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 80px);
  text-align: center;
}

.home-section-head::before {
  content: "N\00B0\00A0" counter(s-abschnitt, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 21px);
  font-style: italic;
  color: var(--accent);
}

.home-section > h2,
.home-section-head h2 {
  font-size: clamp(30px, 6.4vw, 104px);
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
  max-width: 11em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Karten ohne Kasten: Bild, darunter Text. */
.property-card,
.it-service {
  background: none;
  border: 0;
  overflow: visible;
}

a.property-card:hover,
.it-service:hover {
  transform: none;
  box-shadow: none;
}

/* Seit 0.1.11: quadratisch statt Hochformat, die Karten wurden zu hoch. */
.property-photo {
  aspect-ratio: 1;
}

.property-body,
.it-service-body {
  padding: 20px 0 0;
}

.property-title,
.it-service-body h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.it-service-img {
  height: auto;
  aspect-ratio: 4 / 3;
}

@media (min-width: 960px) {
  /* Versetzte Reihe: jede zweite Karte sitzt tiefer. */
  .home-section .property-grid > :nth-child(3n + 2) {
    margin-top: clamp(40px, 6vw, 96px);
  }
}

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

.sh {
  position: relative;
  z-index: 60;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.5s var(--s-ease), background-color 0.4s ease, color 0.4s ease;
}

.js .sh {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

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

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

.js .site-main {
  padding-top: var(--sh-h);
}

/* Beginnt die Seite mit dem Hero, liegt die Leiste durchsichtig darüber. */
.js .site-main:has(> .it-hero-grid:first-child) {
  padding-top: 0;
}

.js body:has(.site-main > .it-hero-grid:first-child) .sh:not(.is-solid):not(.is-open) {
  background: transparent;
  color: #fff;
}

.sh.is-hidden:not(.is-open) {
  transform: translateY(-100%);
}

.sh-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.sh-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--sh-h);
  padding: 0 var(--gutter);
}

.sh-burger {
  justify-self: start;
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.sh-burger-icon {
  position: relative;
  width: 34px;
  height: 9px;
}

.sh-burger-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--s-ease), top 0.4s var(--s-ease);
}

.sh-burger-icon i:first-child { top: 0; }
.sh-burger-icon i:last-child { top: 8px; }

.sh.is-open .sh-burger-icon i:first-child { top: 4px; transform: rotate(20deg); }
.sh.is-open .sh-burger-icon i:last-child { top: 4px; transform: rotate(-20deg); }

.sh-logo {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 28px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

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

/* Seit 0.1.8: Logo über dem Foto im Kopfbereich. */
.sh-logo {
  position: relative;
  isolation: isolate;
}

.sh-logo img.sh-logo-hell {
  display: none;
}

/* Weiche helle Fläche in der Form des Logos: Der Weichzeichner lässt sie
   nach außen ohne Kante auslaufen. */
.sh-logo--flaeche::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px -6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.js body:has(.site-main > .it-hero-grid:first-child) .sh:not(.is-solid):not(.is-open) .sh-logo--flaeche::before {
  opacity: 1;
}

.js body:has(.site-main > .it-hero-grid:first-child) .sh:not(.is-solid):not(.is-open) .sh-logo--zwei img.sh-logo-normal {
  display: none;
}

.js body:has(.site-main > .it-hero-grid:first-child) .sh:not(.is-solid):not(.is-open) .sh-logo--zwei img.sh-logo-hell {
  display: block;
}

.sh-cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sh-cta span {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 699px) {
  .sh-burger-text,
  .sh-cta {
    display: none;
  }
}

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

.js .sh-menu {
  position: fixed;
  inset: var(--sh-h) 0 0 0;
  z-index: -1;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--s-ease), visibility 0s linear 0.8s;
}

.js .sh.is-open .sh-menu {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.8s var(--s-ease);
}

/* Offenes Menü: Die Leiste bleibt hell, damit das Logo unverändert steht. */
.sh.is-open {
  background: var(--bg);
  color: var(--ink);
}

.sh.is-open .sh-cta,
.sh.is-open .sh-progress {
  visibility: hidden;
}

html.sh-lock {
  overflow: hidden;
}

.sh-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) var(--gutter) clamp(48px, 6vw, 96px);
}

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

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

.sh-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s-menu;
}

.sh-item {
  counter-increment: s-menu;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 40px;
  padding: clamp(14px, 1.8vw, 24px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 900px) {
  .sh-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.js .sh-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.9s var(--s-ease);
}

.js .sh.is-open .sh-item {
  opacity: 1;
  transform: none;
}

.js .sh.is-open .sh-item:nth-child(1) { transition-delay: 0.2s; }
.js .sh.is-open .sh-item:nth-child(2) { transition-delay: 0.26s; }
.js .sh.is-open .sh-item:nth-child(3) { transition-delay: 0.32s; }
.js .sh.is-open .sh-item:nth-child(4) { transition-delay: 0.38s; }
.js .sh.is-open .sh-item:nth-child(5) { transition-delay: 0.44s; }
.js .sh.is-open .sh-item:nth-child(n + 6) { transition-delay: 0.5s; }

.sh-title {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.7vw, 54px);
  line-height: 1.05;
  text-transform: uppercase;
}

.sh-title::before {
  content: counter(s-menu, decimal-leading-zero);
  font-size: 15px;
  font-style: italic;
  opacity: 0.6;
}

.sh-title:hover {
  color: color-mix(in srgb, #fff 70%, var(--section-bg));
}

.sh-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-size: 15px;
}

.sh-sub a {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.sh-sub a:hover,
.sh-sub a.is-current {
  color: #fff;
}

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

.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(480px, 74vh, 760px);
  padding: calc(var(--sh-h) + 32px) var(--gutter) clamp(28px, 4vw, 56px);
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4vw, 48px);
  text-align: center;
}

.home .home-hero.it-hero {
  min-height: 100vh;
  min-height: 100svh;
}

.it-hero::before {
  background: linear-gradient(180deg, rgba(14, 16, 15, 0.42) 0%, rgba(14, 16, 15, 0.28) 45%, rgba(14, 16, 15, 0.6) 100%);
}

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

.home-hero-title {
  font-size: clamp(40px, 8.2vw, 136px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero-lead {
  max-width: 520px;
  margin: 28px auto 0;
  font-size: clamp(15px, 1.3vw, 18px);
}

.it-hero .search-card {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  padding: 18px 20px;
  background: var(--bg);
  border: 0;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

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

/* Kennzahlen: große kursive Zahlen zwischen feinen Linien. */
.usp-row {
  margin-top: clamp(56px, 8vw, 120px);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.usp-item {
  padding: clamp(28px, 4vw, 56px) 16px;
  background: none;
  border: 0;
  text-align: center;
}

@media (max-width: 959px) {
  .usp-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .usp-item + .usp-item {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .usp-item + .usp-item {
    border-left: 1px solid var(--line);
  }
}

.usp-number {
  font-size: clamp(30px, 3.4vw, 54px);
  white-space: nowrap;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.usp-label {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Vorteile: drei ruhige Spalten mit kursiver Zahl. */
.why-grid {
  counter-reset: s-vorteil;
  gap: clamp(32px, 4vw, 72px);
}

.why-item {
  counter-increment: s-vorteil;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
  text-align: center;
}

.why-item::before {
  content: counter(s-vorteil, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 20px;
  font-style: italic;
  color: var(--accent);
}

.why-item > svg {
  display: none;
}

.why-title {
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

.why-text {
  max-width: 34ch;
}

/* Bewertung mit Ablauf: flach, Linien statt Schatten. */
.it-bwa-step,
.it-bwa-step.is-active {
  box-shadow: none;
}

/* Regionen: hohe Bilder, versetzt, der Name darunter. */
.it-services.is-bento .it-service.is-wide,
.it-services.is-bento .it-service.is-full {
  grid-column: auto;
}

@media (min-width: 1024px) {
  /* Raster mit vier Spalten nur ohne Slider. Im Slider (ab drei Regionen)
     würden die vier festen Spalten sonst die ersten vier Karten quetschen und
     die fünfte doppelt so breit machen (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 * var(--gap)) / 4);
  }
  .wp-block-immotpl-regionen .it-services > :nth-child(even) {
    margin-top: clamp(40px, 6vw, 96px);
  }
}

.it-region-card .it-service-img {
  height: auto;
  aspect-ratio: 3 / 4;
}

.it-region-card .it-service-body h3,
.it-services.is-bento .it-region-card.is-wide h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  text-transform: uppercase;
  /* Lange Ortsnamen umbrechen statt abschneiden. */
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Kundenstimmen: Gesamtnote ohne Farbfläche. */
.it-rv-auszug-score {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  align-items: center;
}

.it-rv-auszug-score .it-rv-score-label,
.it-rv-auszug-score .it-rv-auszug-more {
  color: inherit;
}

.it-rv-card {
  background: none;
}

.it-rv-auszug-score .it-rv-score-num {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 7vw, 110px);
  line-height: 1;
  color: var(--accent);
}

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

.s-svc {
  position: relative;
}

.s-svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.s-svc-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: clamp(16px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--s-ease), color 0.4s ease;
}

/* Beim Überfahren füllt sich die Zeile von unten mit der Firmenfarbe. */
.s-svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--s-ease);
}

.s-svc-num {
  font-family: var(--font-head);
  font-size: 17px;
  font-style: italic;
  color: var(--accent);
  transition: color 0.4s ease;
}

.s-svc-label {
  font-family: var(--font-head);
  font-size: clamp(26px, 4.6vw, 68px);
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

.s-svc-arrow {
  align-self: center;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.6s var(--s-ease);
}

@media (min-width: 960px) {
  .s-svc-row {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }
}

@media (hover: hover) {
  .s-svc-row:hover {
    padding-left: clamp(16px, 2.4vw, 40px);
    padding-right: clamp(16px, 2.4vw, 40px);
    color: #fff;
  }
  .s-svc-row:hover::before {
    transform: scaleY(1);
  }
  .s-svc-row:hover .s-svc-num {
    color: #fff;
  }
  .s-svc-row:hover .s-svc-arrow {
    opacity: 1;
    transform: none;
  }
}

.s-svc-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- 7 Laufband und Footer ---------- */

.s-band {
  margin-top: clamp(88px, 12vw, 190px);
  padding: clamp(20px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.s-band-track {
  display: flex;
  width: max-content;
  animation: s-band 48s linear infinite;
}

.s-band-set {
  display: flex;
  align-items: center;
  flex: none;
}

.s-band-set span {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.4vw, 84px);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.s-band-set span.is-kursiv {
  font-style: italic;
  text-transform: none;
  color: var(--accent);
}

.s-band-set i {
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 clamp(24px, 3vw, 56px);
  background: var(--accent);
}

@keyframes s-band {
  to {
    transform: translateX(-50%);
  }
}

.sf-cta {
  padding: clamp(88px, 12vw, 190px) var(--gutter);
  text-align: center;
}

.sf-cta h2 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(38px, 7.4vw, 124px);
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

.sf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 36px;
  margin-top: clamp(32px, 4vw, 56px);
}

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

.site-main + .site-footer {
  margin-top: clamp(88px, 12vw, 190px);
}

.footer-logo,
.footer-col-title {
  font-weight: 400;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

/* Der Name des Unternehmens, groß und angeschnitten am unteren Rand. */
.sf-name {
  padding: 0 var(--gutter);
  font-family: var(--font-head);
  font-size: clamp(56px, 13vw, 230px);
  line-height: 0.8;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: color-mix(in srgb, #fff 10%, var(--section-bg));
  transform: translateY(12%);
}

.footer-bottom {
  position: relative;
  border-top-color: rgba(255, 255, 255, 0.14);
  background: var(--section-bg);
}

/* ---------- 8 Bewegung (Klassen setzt assets/js/theme.js) ---------- */

/* Überschriften: Wörter steigen nacheinander auf. */
.s-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.06em 0.14em;
  margin: -0.08em -0.06em -0.14em;
}

.s-w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--s-ease);
}

.is-in > .s-w > span,
.is-in .s-w > span {
  transform: none;
}

/* Bilder: werden von unten aufgezogen. */
.s-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--s-ease);
}

.s-clip.is-in {
  clip-path: inset(0);
}

/* Übriges: sanft von unten. */
.s-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 1.1s var(--s-ease);
}

.s-up.is-in {
  opacity: 1;
  transform: none;
}

/* Hero: Bild fährt beim Laden langsam zurück, Text blendet ein. */
.js .it-hero-media {
  animation: s-hero-bild 2.6s var(--s-ease) both;
}

.js .home-hero-eyebrow,
.js .home-hero-lead,
.js .it-hero .search-card {
  animation: s-hero-text 1.2s ease 0.7s both;
}

@keyframes s-hero-bild {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes s-hero-text {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .s-w > span,
  .s-up {
    transform: none;
    opacity: 1;
  }
  .s-clip {
    clip-path: none;
  }
}

@media print {
  .sh-burger,
  .sh-menu,
  .s-band {
    display: none;
  }
}

/* ---------- 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 Alles eckig: auch Symbole, Punkte und Bilder von Personen ---------- */

.immotpl-social-icon,
.it-faq-icon,
.bx-tabs .bx-tabs-back,
.bx-avatar,
.rg-dot,
.rg-prose ul li::before,
.it-rv-avatar,
.it-danke-num,
.it-form-success-icon,
.it-rv-thanks-icon,
.it-bw-gate-icon,
.it-bw-tile-check,
.it-pt-logo.is-empty span,
.sidebar-agent-avatar,
.immobilien-slider-dot,
.it-slider-dot::before {
  border-radius: 0;
}

/* Die Leiste fährt beim Runterscrollen weg: mitlaufende Elemente rücken nach. */
html.sh-weg body {
  --oben: 24px;
}

html.sh-weg body.admin-bar {
  --oben: 56px;
}

/* ---------- 12 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;
}

/* Artikeltitel sind lang: im Kopfbereich etwas kleiner als auf den Unterseiten. */
body.single-ratgeber .home-hero-title {
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.08;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Einstieg zur Bewertung im Bild: eine kursive Zeile mit feinem Link. */
.it-hero-bewerten {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 26px;
  color: #fff;
}

.it-hero-bewerten span {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 21px);
  font-style: italic;
  opacity: 0.9;
}

.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: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  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, ohne Versatz. */
@media (min-width: 700px) {
  .wp-block-immotpl-regionen .it-services.is-n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-block-immotpl-regionen .it-services.is-n1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .wp-block-immotpl-regionen .it-services.is-n2 > :nth-child(even) {
    margin-top: 0;
  }
  .it-services.is-n2 .it-region-card .it-service-img {
    aspect-ratio: 4 / 3;
  }
  .it-services.is-n1 .it-region-card .it-service-img {
    aspect-ratio: 21 / 9;
  }
  .it-services.is-n1 .it-region-card .it-service-body {
    align-items: center;
    text-align: center;
  }
  .it-services.is-n1 .it-region-card .it-service-body h3 {
    font-size: clamp(30px, 3.6vw, 52px);
  }
  .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;
  }
}

.wp-block-immotpl-vorteile .why-kopf .it-eyebrow {
  display: none;
}

.why-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
