/* ---------- Diamant: Grundlagen ---------- */
:root { --ease: cubic-bezier(.2,.7,.2,1); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
em { font-style: italic; color: var(--wp--preset--color--copper); }
img { display: block; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main > .entry-content > * { margin-block: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgb(71 105 102 / .7); outline-offset: 2px; }

/* Kicker, Lead, Chips */
.is-style-kicker:not(.has-text-color) { color: var(--wp--preset--color--sage); }
.is-style-kicker { font-size: .75rem !important; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.1rem !important; }
.is-style-lead { font-size: 1.125rem; color: var(--wp--preset--color--mute); max-width: 35rem; }
.is-style-chips { gap: 10px !important; }
.is-style-chip { border: 1px solid rgb(255 255 255 / .7); background: rgb(8 14 14 / .35); padding: 10px 20px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); margin: 0 !important; }

/* Buttons */
.wp-block-button .wp-block-button__link { transition: background .25s, color .25s, border-color .25s; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-textlink .wp-block-button__link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; min-height: 24px; color: inherit; }
.wp-block-button.is-style-textlink .wp-block-button__link:hover { color: var(--wp--preset--color--sage); }

/* ---------- Kopfzeile ---------- */
.dm-header { position: sticky; top: 0; z-index: 80; transition: background .3s, box-shadow .3s, color .3s; background: rgb(255 255 255 / .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.is-hero-page .dm-header { position: fixed; inset: 0 0 auto; background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
.is-hero-page .dm-header.is-solid, .is-hero-page.has-open-menu .dm-header { background: rgb(255 255 255 / .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--wp--preset--color--ink); box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.admin-bar.is-hero-page .dm-header { top: var(--wp-admin--admin-bar--height, 32px); }
.dm-bar { min-height: 76px; }
.dm-brand { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 1.375rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.dm-brand a { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.dm-brand a::before { content: ""; width: 30px; height: 30px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M8 4h16l6 8-14 16L2 12z'/%3E%3Cpath d='M2 12h28M11 4l5 8 5-8M16 12v16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M8 4h16l6 8-14 16L2 12z'/%3E%3Cpath d='M2 12h28M11 4l5 8 5-8M16 12v16'/%3E%3C/svg%3E") center/contain no-repeat; }
.dm-nav .wp-block-navigation__container { gap: 34px; }
.dm-nav .wp-block-navigation-item__content { min-height: 48px; display: inline-flex; align-items: center; position: relative; }
.dm-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.dm-nav .wp-block-navigation-item__content:hover::after, .dm-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.dm-tel { margin: 0; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.dm-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 6rem 1.75rem 2rem !important; }
.dm-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1rem; min-height: 56px; border-bottom: 1px solid var(--wp--preset--color--line); width: 100%; }
@media (max-width: 1000px) { .dm-tel { display: none; } }
@media (max-width: 600px) { .dm-brand { font-size: 1rem; letter-spacing: .12em; } .dm-brand a { gap: 8px; } .dm-brand a::before { width: 24px; height: 24px; } .dm-bar { flex-wrap: nowrap; } .dm-nav { flex-shrink: 0; } }

/* ---------- Hero ---------- */
.dm-hero { min-height: 100svh !important; padding-bottom: 70px !important; padding-top: 140px !important; }
.dm-hero h1 { max-width: 900px; text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.dm-hero h1 em { color: var(--wp--preset--color--peach); }
.dm-hero .dm-sub { font-size: 1.1875rem; max-width: 35rem; text-shadow: 0 1px 14px rgb(0 0 0 / .6); margin: 1.4rem 0 2.4rem !important; }
@media (max-width: 768px) { .dm-hero { padding-bottom: 30px !important; } .dm-hero .dm-sub { font-size: 1.0625rem; } }

/* Such-Box (Block diamant/suche) */
.dms { background: #fff; color: var(--wp--preset--color--ink); max-width: 980px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .45); }
.dms-tabs { display: flex; border-bottom: 1px solid var(--wp--preset--color--line); }
.dms-tab { min-height: 54px; padding: 0 30px; background: none; border: 0; font: 600 .78rem/1 var(--wp--preset--font-family--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--mute); cursor: pointer; position: relative; }
.dms-tab[aria-selected=true] { color: var(--wp--preset--color--ink); }
.dms-tab[aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wp--preset--color--copper); }
.dms-form { display: none; grid-template-columns: 1.1fr 1.3fr 1fr auto; }
.dms-form.show { display: grid; }
.dms-f { padding: 14px 22px; border-right: 1px solid var(--wp--preset--color--line); display: flex; flex-direction: column; justify-content: center; min-height: 78px; }
.dms-f label { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--mute); margin-bottom: 2px; }
.dms-f select, .dms-f input { border: 0; background: transparent; font: inherit; font-size: 1.0625rem; padding: 4px 0; min-height: 32px; width: 100%; color: inherit; }
.dms-btn, .dmf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 1px solid var(--wp--preset--color--ink); background: var(--wp--preset--color--ink); color: #fff; font: 600 .8125rem/1 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .25s, border-color .25s; }
.dms-btn:hover, .dmf-btn:hover { background: var(--wp--preset--color--sage); border-color: var(--wp--preset--color--sage); }
.dms-btn { min-height: 78px; border: 0; }
@media (max-width: 768px) {
  .dms-tab { padding: 0 16px; flex: 1; }
  .dms-form.show { grid-template-columns: 1fr 1fr; }
  .dms-f { border-bottom: 1px solid var(--wp--preset--color--line); min-height: 72px; padding: 12px 16px; }
  .dms-f:nth-child(1) { grid-column: span 2; } .dms-f:nth-child(2) { border-right: 0; }
  .dms-btn { grid-column: span 2; min-height: 58px; }
}

/* ---------- Vertrauensleiste ---------- */
.is-style-trust { gap: 0 !important; }
.is-style-trust > * { padding: 30px 18px; text-align: center; border-right: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.is-style-trust > *:last-child { border-right: 0; }
.is-style-trust strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 2.375rem; font-weight: 500; line-height: 1.1; }
.is-style-trust .dm-stars { color: #a8730f; letter-spacing: 2px; font-size: .8125rem; }
.is-style-trust span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--mute); }
@media (max-width: 1000px) { .is-style-trust > * { border-bottom: 1px solid var(--wp--preset--color--line); } }

/* ---------- Objektart-Kacheln ---------- */
.wp-block-cover.is-style-kachel { overflow: hidden; aspect-ratio: 4 / 5; min-height: 0 !important; padding: 26px 28px !important; align-items: flex-end; }
.wp-block-cover.is-style-kachel.dm-wide { aspect-ratio: auto; }
.wp-block-cover.is-style-kachel .wp-block-cover__image-background { transition: transform 1.1s var(--ease); }
.wp-block-cover.is-style-kachel:hover .wp-block-cover__image-background { transform: scale(1.06); }
.wp-block-cover.is-style-kachel h3 { font-size: 2.125rem; margin: 0; }
.wp-block-cover.is-style-kachel h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* ganze Kachel klickbar */
.wp-block-cover.is-style-kachel p { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-block; margin-top: 8px; border-bottom: 1px solid rgb(255 255 255 / .6); padding-bottom: 2px; }
.wp-block-cover.is-style-kachel .wp-block-cover__inner-container { width: 100%; }
@media (max-width: 768px) { .wp-block-cover.is-style-kachel, .wp-block-cover.is-style-kachel.dm-wide { aspect-ratio: 4 / 3.4; } }

/* ---------- Verkaufen ---------- */
.is-style-nummeriert { list-style: none; padding: 0 !important; display: grid; gap: 18px; counter-reset: dm; margin: 2rem 0 2.5rem; }
.is-style-nummeriert > li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; counter-increment: dm; color: var(--wp--preset--color--mute); font-size: .97rem; }
.is-style-nummeriert > li::before { content: counter(dm); width: 34px; height: 34px; border: 1px solid var(--wp--preset--color--sage); border-radius: 50%; display: grid; place-items: center; color: var(--wp--preset--color--sage); font-weight: 600; font-size: .8125rem; grid-row: span 2; }
.is-style-nummeriert > li strong { display: block; color: var(--wp--preset--color--ink); font-weight: 600; font-size: 1.0625rem; }
.is-style-karte { background: #fff; padding: 30px !important; box-shadow: 0 20px 50px -28px rgb(0 0 0 / .3); }
.is-style-karte h3 { font-size: 1.75rem; margin-bottom: 4px; }
.dm-split-img img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }

/* Schritte */
.is-style-schritte { gap: 0 !important; border-top: 1px solid rgb(255 255 255 / .2); margin-top: 3.75rem !important; }
.is-style-schritte > .wp-block-column { padding: 38px 36px 0 0; }
.is-style-schritte > .wp-block-column + .wp-block-column { padding-left: 36px; border-left: 1px solid rgb(255 255 255 / .2); }
.is-style-schritte p { color: #b9bdbd; }
.is-style-step-no { font-family: var(--wp--preset--font-family--serif); font-size: 4.375rem !important; color: var(--wp--preset--color--copper) !important; line-height: 1; font-style: italic; margin: 0 !important; }
@media (max-width: 781px) { .is-style-schritte > .wp-block-column + .wp-block-column { padding-left: 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); margin-top: 30px; } }

/* Team */
.dm-team-img img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 30%; width: 100%; }
@media (max-width: 768px) { .dm-team-img img { aspect-ratio: 4 / 3; } }
.is-style-person { background: var(--wp--preset--color--sand); gap: 0 !important; }
.is-style-person .wp-block-image { margin: 0; }
.is-style-person .wp-block-image img { aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 18%; width: 100%; }
.is-style-person > :not(.wp-block-image) { padding-inline: 22px; }
.is-style-person h3 { font-size: 1.75rem; padding-top: 22px; margin: 0; }
.is-style-person .dm-role { color: var(--wp--preset--color--mute); font-size: .84rem; line-height: 1.45; margin: 6px 0 16px; }
.is-style-person .dm-reach { font-size: .9rem; font-weight: 500; padding-bottom: 26px; margin: 0; }

/* Region */
.wp-block-cover.dm-hero .wp-block-cover__inner-container, .wp-block-cover.dm-region .wp-block-cover__inner-container { width: 100% !important; max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; }
.dm-hero .wp-block-cover__inner-container > *, .dm-region .wp-block-cover__inner-container > * { margin-left: 0 !important; }
.dm-region .wp-block-cover__inner-container > * { max-width: 640px; }
.dm-region em, .dm-hero em { color: var(--wp--preset--color--peach); }

/* FAQ */
.wp-block-details.is-style-faq { border-top: 1px solid var(--wp--preset--color--line); margin-block: 0 !important; }
.wp-block-details.is-style-faq:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-details.is-style-faq summary { list-style: none; cursor: pointer; min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--wp--preset--font-family--serif); font-size: 1.625rem; font-weight: 500; }
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--sans); font-weight: 300; font-size: 1.875rem; color: var(--wp--preset--color--copper); transition: transform .3s; }
.wp-block-details.is-style-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.is-style-faq > p { color: var(--wp--preset--color--mute); padding: 0 50px 26px 0; margin: 0; }
@media (max-width: 768px) { .wp-block-details.is-style-faq summary { font-size: 1.375rem; } }

/* Kontaktliste */
.is-style-kontakt { list-style: none; padding: 0 !important; margin-top: 2.1rem; border-top: 1px solid var(--wp--preset--color--line); }
.is-style-kontakt > li { padding: 18px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 1.1875rem; font-weight: 500; }
.is-style-kontakt > li a { display: block; }
.is-style-kontakt small { display: block; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--mute); font-weight: 400; }

/* ---------- Formulare (Block diamant/formular) ---------- */
.dmf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dmf-msg { padding: 14px 18px; margin: 0 0 18px; font-weight: 500; }
.dmf-msg--ok { background: #eef4f3; color: var(--wp--preset--color--sage-dark); border-left: 3px solid var(--wp--preset--color--sage); }
.dmf-msg--err { background: #fbeceb; color: #b3261e; border-left: 3px solid #b3261e; }
.dmf--kontakt .dmf-form { background: #fff; padding: 40px; box-shadow: 0 30px 60px -36px rgb(0 0 0 / .3); }
.dmf fieldset { border: 0; padding: 0; margin: 0; }
.dmf-steps.is-js .dmf-pane { display: none; }
.dmf-steps.is-js .dmf-pane.show { display: block; animation: dmIn .4s ease; }
.dmf-steps:not(.is-js) .dmf-pane + .dmf-pane { margin-top: 2rem; }
.dmf-steps:not(.is-js) [data-next], .dmf-steps:not(.is-js) [data-prev], .dmf-steps:not(.is-js) .dmf-prog { display: none; }
@keyframes dmIn { from { opacity: 0; transform: translateY(8px); } }
.dmf-prog { display: flex; gap: 6px; margin-bottom: 28px; }
.dmf-prog i { flex: 1; height: 2px; background: #ddd7cb; }
.dmf-prog i.on { background: var(--wp--preset--color--copper); }
.dmf-q { font-family: var(--wp--preset--font-family--serif); font-size: 2rem; margin-bottom: 20px; line-height: 1.1; padding: 0; }
.dmf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dmf-opt { position: relative; }
.dmf-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dmf-opt span { display: flex; align-items: center; min-height: 56px; padding: 0 18px; border: 1px solid #d5cfc3; font-weight: 500; transition: all .2s; }
.dmf-opt input:checked + span { border-color: var(--wp--preset--color--sage); background: #eef4f3; color: var(--wp--preset--color--sage-dark); }
.dmf-opt input:focus-visible + span { outline: 3px solid rgb(93 127 124 / .55); }
.dmf-field { display: grid; gap: 12px; }
.dmf input:not([type=radio]):not([type=checkbox]), .dmf textarea, .dmf select { width: 100%; box-sizing: border-box; min-height: 54px; padding: 14px 16px; border: 1px solid #d5cfc3; font: inherit; font-size: 1rem; background: #fff; border-radius: 0; color: var(--wp--preset--color--ink); }
.dmf textarea { min-height: 100px; resize: vertical; }
.dmf input:focus, .dmf textarea:focus, .dmf select:focus { border-color: var(--wp--preset--color--sage); outline: none; }
.dmf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 10px; }
.dmf-back { background: none; border: 0; cursor: pointer; font: 600 .8125rem/1 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--mute); min-height: 48px; }
.dmf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--wp--preset--color--mute); margin-top: 14px; line-height: 1.5; }
.dmf-consent input { margin-top: 3px; accent-color: var(--wp--preset--color--sage); }
.dmf-consent a { text-decoration: underline; }
.dmf-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dmf-row--2 { grid-template-columns: 1fr 1fr; }
.dmf-span { grid-column: span 2; }
.dmf-btn--full { width: 100%; }
.dmf--suchauftrag .dmf-consent { color: rgb(255 255 255 / .85); }
.dmf--suchauftrag .dmf-consent a { color: #fff; }
.dmf--suchauftrag input:not([type=checkbox]), .dmf--suchauftrag select { border: 0 !important; min-height: 56px; }
.dmf-btn--ink { margin-top: 14px; }
.dmf-btn--ink:hover { background: #000; border-color: #000; }
@media (max-width: 768px) { .dmf-row, .dmf-row--2, .dmf-opts { grid-template-columns: 1fr; } .dmf-span { grid-column: auto; } .dmf--kontakt .dmf-form { padding: 26px; } }

/* ---------- Immobilien-Archiv und Objekt ---------- */
.dm-objekte { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .dm-objekte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dm-objekte { grid-template-columns: 1fr; } }
.dm-objekte .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.dm-fakten { gap: 8px 22px !important; font-size: .875rem; color: var(--wp--preset--color--mute); }
.dm-fakten p { margin: 0; }
.dm-preis { font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; color: var(--wp--preset--color--ink); margin: 0; }
.dm-leer { background: var(--wp--preset--color--sand); padding: 48px !important; text-align: center; }

/* ---------- Fußzeile ---------- */
.dm-footer a { display: block; padding: 5px 0; color: #d4d7d7; }
.dm-footer a:hover { color: #fff; }
.dm-footer .wp-block-navigation { gap: 0; }
.dm-footer .wp-block-navigation-item__content { padding: 5px 0; font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.dm-fh { font-size: .72rem !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px !important; }
.dm-footer .dm-brand { color: #fff; margin-bottom: 18px; }
.dm-footer-bottom { border-top: 1px solid rgb(255 255 255 / .14); }
.dm-mbar { display: none !important; }
@media (max-width: 768px) {
  .dm-mbar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; box-shadow: 0 -6px 24px rgb(0 0 0 / .14); padding-bottom: env(safe-area-inset-bottom); margin: 0 !important; }
  .dm-mbar .wp-block-button__link { width: 100%; min-height: 56px; border: 0; background: #fff; color: var(--wp--preset--color--ink); }
  .dm-mbar .wp-block-button:last-child .wp-block-button__link { background: var(--wp--preset--color--ink); color: #fff; }
  .dm-footer { padding-bottom: 100px !important; }
}

/* Einblenden beim Scrollen (JS setzt .is-in) */
.has-js .dm-rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.has-js .dm-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .has-js .dm-rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Rechtliches */
.dm-legal h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.dm-legal p, .dm-legal li { color: var(--wp--preset--color--mute); }
