/* Heuser Immobilien: feste Stile neben Elementor. Geladen vom Must-use-Plugin heuser-schriften.php. */
:root { --e-global-color-primary: #2B2926; --e-global-color-secondary: #5F5F5F; --e-global-color-text: #1A1A1A; --e-global-color-accent: #2B2926; }
/* Elementor legt --serif unquotiert als „Source Serif 4“ an; wegen der 4 ist das als font-family ungültig und fällt auf Jost zurück. Hier mit Anführungszeichen überschrieben (html:root schlägt :root). */
html:root { --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif; --sans: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif; }

/* Schriften wie im Prototyp: Source Serif 4 für Überschriften, Jost für alles andere */
h1.e-heading-base, h2.e-heading-base, h3.e-heading-base, .e-default-h1, .e-default-h2, .e-default-h3 { font-family: 'Source Serif 4', 'Iowan Old Style', Georgia, serif !important; font-weight: 400 !important; font-optical-sizing: auto; }
body, p.e-paragraph-base, span.e-paragraph-base, .e-default-p, .e-button-base, button, input, select, textarea, .elementor-widget-theme-post-content { font-family: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif; }

/* Navigation im Header (Farbwelt Grau, 26.10.2026) */
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item, .elementor-widget-nav-menu .elementor-nav-menu a { font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important; font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0.18em !important; text-transform: uppercase; color: #5F5F5F !important; padding: 0 0.85rem; }
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:hover, .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item.elementor-item-active, .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item.highlighted { color: #1A1A1A !important; }
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:after, .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:before { background-color: #2B2926 !important; height: 1px; }
.elementor-widget-nav-menu .elementor-nav-menu .sub-arrow { color: #2B2926; }
.elementor-nav-menu--main .elementor-nav-menu li { white-space: nowrap; }
.elementor-widget-nav-menu .elementor-nav-menu--dropdown { background-color: #FFFFFF; border: 1px solid #CFCFCF; min-width: 15rem; padding: 0.6rem 0; box-shadow: none; }
.elementor-widget-nav-menu .elementor-nav-menu--main .sub-arrow { display: none; }
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-nav-menu--dropdown { margin-top: 0.4rem; }
.elementor-widget-nav-menu .elementor-nav-menu--dropdown .elementor-item, .elementor-widget-nav-menu .elementor-nav-menu--dropdown .elementor-sub-item { font-family: 'Jost', sans-serif !important; font-size: 0.8rem !important; font-weight: 500 !important; letter-spacing: 0.18em; text-transform: uppercase; color: #5F5F5F !important; padding: 0.6rem 1.25rem; }
.elementor-widget-nav-menu .elementor-nav-menu--dropdown .elementor-item:hover, .elementor-widget-nav-menu .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { color: #2B2926 !important; background-color: transparent !important; }
.elementor-widget-nav-menu .elementor-menu-toggle { color: #1A1A1A !important; border: 0; background: transparent; }
.elementor-widget-nav-menu .elementor-menu-toggle:hover { color: #2B2926 !important; }

/* Akkordeon */
details > summary { list-style: none; position: relative; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; font-family: 'Jost', sans-serif; font-size: 1.25rem; font-weight: 300; color: #2B2926; margin-left: auto; padding-left: 1rem; line-height: 1; }
details[open] > summary::after { content: '\2212'; }

/* Formulare */
.e-form input[type=text], .e-form input[type=email], .e-form input[type=tel], .e-form input[type=number], .e-form select, .e-form textarea { width: 100%; font-family: 'Jost', sans-serif; font-size: 1rem; color: #1A1A1A; background: transparent; border: 0; border-bottom: 1px solid #9A9A9A; border-radius: 0; padding: 0.7rem 0; outline: none; }
.e-form input:focus, .e-form select:focus, .e-form textarea:focus { border-bottom-color: #2B2926; }
.e-form input::placeholder, .e-form textarea::placeholder { color: #9A9A9A; }

/* Exposé: Beschreibung und Galerien aus dem onOffice-Inhalt */
.elementor-widget-theme-post-content p { margin: 0 0 1em; font-family: 'Jost', sans-serif; font-size: 1rem; line-height: 1.65; color: #5F5F5F; }
.elementor-widget-theme-post-content h2, .objekt-galerie h2, .objekt-grundrisse h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); color: #1A1A1A; margin: 2.5rem 0 1rem; }
.objekt-galerie, .objekt-grundrisse { margin-top: 1rem; }
.elementor-widget-theme-post-content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; }
.elementor-widget-theme-post-content .gallery .gallery-item { margin: 0; width: auto !important; float: none; }
.elementor-widget-theme-post-content .gallery .gallery-icon { line-height: 0; }
.elementor-widget-theme-post-content .gallery .gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #CFCFCF; display: block; }
.elementor-widget-theme-post-content .gallery .gallery-caption { display: none; }
.elementor-widget-theme-post-content .gallery br { display: none; }
@media (max-width: 1024px) { .elementor-widget-theme-post-content .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .elementor-widget-theme-post-content .gallery { grid-template-columns: 1fr; } }

/* Rechtsseiten (Impressum, Datenschutz): normale WordPress-Seiten im Hello-Theme, Kopfband wie die Elementor-Heros */
body.page:not(.elementor-page) #content.site-main { max-width: none; width: 100%; margin: 0; padding: 0; }
body.page:not(.elementor-page) .page-header { background: var(--anthrazit, #1F1D1A); padding: var(--s-5, 4rem) var(--rand, 2rem) var(--s-4, 2.5rem); margin: 0; text-align: left; }
body.page:not(.elementor-page) .page-header::before { content: 'Rechtliches'; display: block; max-width: var(--container, 72rem); margin: 0 auto 1rem; font-family: 'Jost', sans-serif; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #FFFFFF; }
body.page:not(.elementor-page) .page-header .entry-title { max-width: var(--container, 72rem); margin: 0 auto; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-1, 3rem); letter-spacing: -0.02em; line-height: 1.08; color: #FFFFFF; }
body.page:not(.elementor-page) .page-content { max-width: var(--container, 72rem); margin: 0 auto; padding: var(--sektion, 6rem) var(--rand, 2rem); }
body.page:not(.elementor-page) .page-content > * { max-width: 44rem; }
body.page:not(.elementor-page) .page-content h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-2, 2rem); letter-spacing: -0.015em; line-height: 1.15; color: #1A1A1A; margin: 3rem 0 1rem; }
body.page:not(.elementor-page) .page-content h2:first-child { margin-top: 0; }
body.page:not(.elementor-page) .page-content h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-3, 1.375rem); line-height: 1.3; color: #1A1A1A; margin: 2rem 0 0.75rem; }
body.page:not(.elementor-page) .page-content p, body.page:not(.elementor-page) .page-content li { font-family: 'Jost', sans-serif; font-size: 1.0625rem; line-height: 1.65; color: #5F5F5F; margin: 0 0 1em; overflow-wrap: anywhere; }
body.page:not(.elementor-page) .page-content a { color: #1A1A1A; text-decoration: underline; text-decoration-color: #2B2926; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
body.page:not(.elementor-page) .page-content a:hover { text-decoration-thickness: 2px; }
body.page:not(.elementor-page) .page-content .hinweis { font-style: italic; color: #5F5F5F; border-left: 2px solid #2B2926; padding-left: 1rem; }

/* Sicherheitsnetz gegen horizontales Scrollen */
html, body { overflow-x: clip; }
.e-paragraph-base, .e-heading-base { max-width: 100%; overflow-wrap: break-word; }

/* ==========================================================================
   Bewegung und Startseite (26.10.2026), nach design-claude/js/main.js und css/boutique.css
   ========================================================================== */
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --dauer: 240ms; --dauer-lang: 560ms; }

/* Zahlenband: Serife für die Zahl, kleine Einheit in Jost und Nachtblau */
.zahl { font-family: 'Source Serif 4', 'Iowan Old Style', Georgia, serif !important; font-weight: 400 !important; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem) !important; line-height: 1; letter-spacing: -0.015em; color: #1A1A1A; font-variant-numeric: tabular-nums; }
/* Preisbänder der Stadtteilseiten bleiben kleiner, wie im Prototyp (.zahlen .zahl-block__wert) */
body.page-child .zahl, body.parent-pageid-2642 .zahl { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem) !important; }
.zahl span, .zahl i, .zahl em, .zahl small { font-family: 'Jost', sans-serif; font-style: normal; font-weight: 400; font-size: 0.32em; letter-spacing: 0.12em; text-transform: uppercase; color: #2B2926; margin-left: 0.35em; vertical-align: 0.2em; }
.zahl span:first-child, .zahl i:first-child, .zahl em:first-child, .zahl small:first-child { margin: 0 0.4em 0 0; }

/* Einblenden beim Scrollen (Script setzt .einblenden und .ist-sichtbar) */
html.js .einblenden { opacity: 0; transform: translateY(10px); transition: opacity var(--dauer-lang) var(--ease), transform var(--dauer-lang) var(--ease); }
html.js .einblenden.ist-sichtbar { opacity: 1; transform: none; }
html.js .e-grid-base > .einblenden:nth-child(2) { transition-delay: 120ms; }
html.js .e-grid-base > .einblenden:nth-child(3) { transition-delay: 240ms; }
html.js .e-grid-base > .einblenden:nth-child(4) { transition-delay: 360ms; }
html.js .e-grid-base > .einblenden:nth-child(5) { transition-delay: 480ms; }
html.js .e-grid-base > .einblenden:nth-child(6) { transition-delay: 600ms; }
@media (prefers-reduced-motion: reduce) { html.js .einblenden { opacity: 1; transform: none; transition: none; } }

/* Auftakt der Startseite: Video bleibt stehen, Titel erscheint zeilenweise mit dem Scrollen, Highlights schieben sich darüber */
.auftakt { position: relative; background: #2B2926; color: #FFFFFF; }
.auftakt-buehne { position: sticky !important; top: 0 !important; inset-block-start: 0 !important; height: 100vh !important; height: 100svh !important; min-height: 0 !important; overflow: hidden; justify-content: center; }
.auftakt-buehne::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(31,29,26,var(--abdunkeln, 0.18)); transition: background 200ms linear; pointer-events: none; }
.auftakt-buehne .e-background-video__content { position: relative; z-index: 1; }
.auftakt-titel { opacity: calc(1 - var(--aus, 0)); }
.auftakt-label { display: inline-flex; align-items: center; gap: 0.9rem; opacity: var(--t0, 0); transform: translateY(calc((1 - var(--t0, 0)) * 14px)); }
.auftakt-label::before, .auftakt-label::after { content: ""; width: 2.5rem; height: 1px; background: #FFFFFF; flex: none; }
.auftakt-titel h1 { display: grid; gap: 0.1em; font-size: clamp(2.5rem, 1.2rem + 6vw, 6.5rem); line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; text-shadow: 0 2px 30px rgba(0,0,0,0.3); text-align: center; }
.auftakt-titel h1 > span { display: block; opacity: var(--t1, 0); transform: translateY(calc((1 - var(--t1, 0)) * 28px)); }
.auftakt-titel h1 > span:nth-child(2) { font-style: italic; color: #E4E4E4; opacity: var(--t2, 0); transform: translateY(calc((1 - var(--t2, 0)) * 28px)); }
.auftakt-text { opacity: var(--t3, 0); transform: translateY(calc((1 - var(--t3, 0)) * 18px)); text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.auftakt-inhalt { position: relative !important; z-index: 2; background: transparent !important; padding-top: 55vh !important; }
.hero-scroll { position: absolute !important; left: auto !important; right: var(--rand, 2rem) !important; inset-inline-start: auto !important; inset-inline-end: var(--rand, 2rem) !important; bottom: 2rem !important; top: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; z-index: 2; display: inline-grid; justify-items: center; align-content: end; gap: 0.6rem; color: rgba(255,255,255,0.7); font-family: 'Jost', sans-serif; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; writing-mode: vertical-rl; text-align: center; cursor: pointer; opacity: calc(1 - var(--t1, 0)); }
.hero-scroll::before { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(to bottom, #FFFFFF 0 50%, rgba(255,255,255,0.25) 50% 100%); background-size: 100% 200%; background-position: 0 100%; animation: scrolllinie 2.2s var(--ease) infinite; }
@keyframes scrolllinie { 0% { background-position: 0 100%; } 60%, 100% { background-position: 0 -100%; } }
html:not(.js) .auftakt, html.ruhig .auftakt { --t0: 1; --t1: 1; --t2: 1; --t3: 1; --abdunkeln: 0.5; --aus: 0; }
@media (prefers-reduced-motion: reduce) { .hero-scroll::before { animation: none; } }
@media (max-width: 767px) { .auftakt-inhalt { padding-top: 40vh !important; } }

/* Header: fest am oberen Rand. Elementors Sticky greift nicht, weil der Header-Wrapper nur so hoch ist wie der Header selbst.
   Auf Unterseiten hält der Wrapper den Platz frei, auf der Startseite liegt der Header über dem Video. */
.elementor-location-header > .e-con { position: fixed !important; left: 0; right: 0; top: 0; inset-block-start: 0; z-index: 50; }
.elementor-location-header { height: calc(5.5rem + 1px); }
@media (max-width: 767px) { .elementor-location-header { height: calc(4.5rem + 1px); } }
body.home .elementor-location-header { height: 0; }
/* Header auf der Startseite: transparent über dem Video, grau erst nach dem Auftakt (Script setzt .header--kompakt) */
body.home .elementor-location-header > .e-con { background: linear-gradient(to bottom, rgba(31,29,26,0.5), rgba(31,29,26,0)) !important; border-bottom-color: transparent !important; transition: background var(--dauer) var(--ease), border-color var(--dauer) var(--ease); }
body.home .elementor-location-header > .e-con:not(.header--kompakt) { border-block-end-width: 0 !important; border-bottom-width: 0 !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) img { filter: brightness(0) invert(1); }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item { color: rgba(255,255,255,0.92) !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:hover, body.home .elementor-location-header > .e-con:not(.header--kompakt) .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item.elementor-item-active { color: #FFFFFF !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:after { background-color: #FFFFFF !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .elementor-widget-nav-menu .elementor-menu-toggle { color: #FFFFFF !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .e-button-base { color: #FFFFFF !important; border-color: rgba(255,255,255,0.45) !important; }
body.home .elementor-location-header > .e-con:not(.header--kompakt) .e-button-base:hover { background-color: #FFFFFF !important; color: #1A1A1A !important; border-color: #FFFFFF !important; }
body.home .elementor-location-header > .e-con.header--kompakt { background: #EBEBEB !important; border-bottom-color: #CFCFCF !important; }

/* Schwebender Button „Immobilie verkaufen“ (Script fügt ihn ein) */
.schwebend { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 45; display: inline-flex; align-items: center; gap: 0.75rem; padding: 1em 1.6em; background: #2B2926; color: #FFFFFF; font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--dauer) var(--ease), transform var(--dauer) var(--ease), background var(--dauer) var(--ease); }
.schwebend::before { content: ""; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #FFFFFF; animation: punkt-pendel 1.8s ease-in-out infinite; }
.schwebend.ist-sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.schwebend:hover { background: #3A3733; color: #FFFFFF; }
@keyframes punkt-pendel { 0%, 100% { transform: translateX(0); opacity: 0.75; } 50% { transform: translateX(0.35rem); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .schwebend::before { animation: none; } }
body.page-id-2640 .schwebend, body.single-immobilie .schwebend { display: none; }

/* Immobilienseiten (26.10.2026): Portfolio-Filter, Kachel-Auswahl in Formularen */
.portfolio-filter select { width: 100%; min-height: 2.75rem; border: 0; border-bottom: 1px solid #CFCFCF; border-radius: 0; background: transparent; padding-left: 0; font-family: 'Jost', sans-serif; font-size: 1rem; color: #1A1A1A; }
.portfolio-filter select:focus { outline: none; border-bottom-color: #2B2926; }
.filter-anzahl { margin-left: auto; align-self: center; }
.kachel-wahl .kachel { position: relative; cursor: pointer; transition: border-color var(--dauer) var(--ease), background var(--dauer) var(--ease); }
.kachel-wahl .kachel label { cursor: pointer; }
.kachel-wahl .kachel label::after { content: ""; position: absolute; inset: 0; }
.kachel-wahl .kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.kachel-wahl .kachel:has(input:checked) { border-color: #1A1A1A !important; background: #FFFFFF; }
.kachel-wahl .kachel:has(input:checked) label { color: #2B2926; }
.e-form input[type=number] { -moz-appearance: textfield; }

/* Video-Heros (Über uns, Neubauprojekte): Verlauf über das ganze Video statt eines Rechtecks über dem Inhalt */
.video-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(31,29,26,0.78) 0%, rgba(31,29,26,0.3) 55%, rgba(31,29,26,0.15) 100%); }
.video-hero .e-background-video__content { position: relative; z-index: 1; background-image: none !important; }

/* Objektkarten: Fakten als 2×2-Raster mit Icons (Shortcode [heuser_fakten] aus dem onOffice-Plugin) */
.fakten-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; font-family: 'Jost', sans-serif; font-size: 0.8125rem; color: #5F5F5F; letter-spacing: 0.02em; line-height: 1.4; }
.fakten-raster .fakt { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.fakten-raster svg { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: #2B2926; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.fakten-raster .fakt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Video-Steuerung (Abspielen/Anhalten) ausgeblendet, Wunsch 26.10.2026 */
.e-background-video__controls { display: none !important; }

/* Exposé: Slideshow [heuser_schau] nach design-claude/css/boutique.css (.schau) */
.schau { position: relative; background: #2B2926; overflow: hidden; outline: none; }
.schau__buehne { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
.schau__bild { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.schau__bild.ist-aktiv { opacity: 1; z-index: 1; }
.schau__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.schau__pfeil { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: rgba(255,255,255,0.92); color: #1A1A1A; border: 0; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 1.1rem; transition: background var(--dauer) var(--ease), color var(--dauer) var(--ease); }
.schau__pfeil:hover { background: #2B2926; color: #FFFFFF; }
.schau__pfeil--links { left: 1rem; } .schau__pfeil--rechts { right: 1rem; }
.schau__leiste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: linear-gradient(to top, rgba(31,29,26,0.7), rgba(31,29,26,0)); color: #FFFFFF; font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.schau__spiel { background: none; border: 1px solid rgba(255,255,255,0.6); color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0.5rem 0.9rem; cursor: pointer; }
.schau__spiel:hover { background: #FFFFFF; color: #2B2926; }
.schau__fortschritt { position: absolute; left: 0; bottom: 0; z-index: 4; height: 2px; width: 0; background: #2B2926; }
.schau.laeuft .schau__fortschritt { animation: schau-lauf var(--takt, 4500ms) linear infinite; }
@keyframes schau-lauf { from { width: 0; } to { width: 100%; } }
.schau__daumen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(5.5rem, 1fr); gap: 0.4rem; margin-top: 0.4rem; overflow-x: auto; scrollbar-width: thin; background: #FFFFFF; }
.schau__daumen button { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; opacity: 0.55; transition: opacity var(--dauer) var(--ease); }
.schau__daumen button.ist-aktiv, .schau__daumen button:hover { opacity: 1; }
.schau__daumen img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) { .schau__pfeil { width: 2.5rem; height: 2.5rem; } .schau__buehne { aspect-ratio: 4 / 3; } }

/* Shortcode-Marker bleiben unsichtbar, bis heuser.js sie umgebaut hat */
.e-paragraph-base > del, .e-heading-base > del, .vergleich-platz > del { visibility: hidden; text-decoration: none; }

/* Karten: Bild zoomt leicht beim Überfahren (wie .werk:hover im Prototyp) */
a.e-con img { transition: transform 1200ms var(--ease); }
a.e-con:hover img { transform: scale(1.04); }

/* Lightbox für Exposé-Galerien */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(31,29,26,0.96); display: grid; place-items: center; padding: 2.5rem; opacity: 0; visibility: hidden; transition: opacity var(--dauer) var(--ease), visibility 0s var(--dauer); }
.lightbox.ist-offen { opacity: 1; visibility: visible; transition: opacity var(--dauer) var(--ease); }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.92); color: #1A1A1A; border: 0; cursor: pointer; font-family: 'Jost', sans-serif; }
.lightbox__schliessen { top: 1.5rem; right: 1.5rem; padding: 0.6rem 1rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.lightbox__pfeil { top: 50%; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; font-size: 1.5rem; }
.lightbox__pfeil--links { left: 1.5rem; } .lightbox__pfeil--rechts { right: 1.5rem; }
.lightbox__zaehler { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; }
.objekt-galerie a, .objekt-grundrisse a { cursor: zoom-in; }

/* Stadtteilseiten: Alltagslisten mit Strich-Aufzählung wie im Prototyp */
.alltag-liste ul, .alltag-liste + ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.alltag-liste li { padding: 0.55rem 0; border-bottom: 1px solid #E4E4E4; }
.alltag-liste li:last-child { border-bottom: 0; }

/* Ratgeber-Artikel: normale WordPress-Beiträge im Hello-Theme, Kopfband und Spalte wie die Rechtsseiten */
body.single-post #content.site-main { max-width: none; width: 100%; margin: 0; padding: 0; }
body.single-post .page-header, body.single-post .entry-header { background: var(--anthrazit, #1F1D1A); padding: var(--s-5, 4rem) var(--rand, 2rem) var(--s-4, 2.5rem); margin: 0; text-align: left; }
body.single-post .page-header::before, body.single-post .entry-header::before { content: 'News und Ratgeber'; display: block; max-width: var(--container, 72rem); margin: 0 auto 1rem; font-family: 'Jost', sans-serif; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #FFFFFF; }
body.single-post .entry-title { max-width: var(--container, 72rem); margin: 0 auto; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-1, 3rem); letter-spacing: -0.02em; line-height: 1.08; color: #FFFFFF; }
body.single-post .entry-header .entry-meta, body.single-post .post-meta, body.single-post .entry-footer { max-width: var(--container, 72rem); margin: 0.75rem auto 0; font-family: 'Jost', sans-serif; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
body.single-post .entry-meta a, body.single-post .post-meta a { color: inherit; }
body.single-post .page-content, body.single-post .entry-content { max-width: var(--container, 72rem); margin: 0 auto; padding: var(--sektion, 6rem) var(--rand, 2rem); }
body.single-post .entry-content > * { max-width: 44rem; }
body.single-post .page-content > * { max-width: 44rem; }
body.single-post .entry-content img { width: 100%; height: auto; display: block; margin: 2rem 0; border: 1px solid #CFCFCF; }
body.single-post .page-content img { width: 100%; height: auto; display: block; margin: 2rem 0; border: 1px solid #CFCFCF; }
body.single-post .entry-content h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-2, 2rem); letter-spacing: -0.015em; line-height: 1.15; color: #1A1A1A; margin: 3rem 0 1rem; }
body.single-post .page-content h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-2, 2rem); letter-spacing: -0.015em; line-height: 1.15; color: #1A1A1A; margin: 3rem 0 1rem; }
body.single-post .entry-content h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-3, 1.375rem); line-height: 1.3; color: #1A1A1A; margin: 2rem 0 0.75rem; }
body.single-post .page-content h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-3, 1.375rem); line-height: 1.3; color: #1A1A1A; margin: 2rem 0 0.75rem; }
body.single-post .entry-content p, body.single-post .entry-content li { font-family: 'Jost', sans-serif; font-size: 1.0625rem; line-height: 1.65; color: #5F5F5F; margin: 0 0 1em; }
body.single-post .page-content p, body.single-post .page-content li { font-family: 'Jost', sans-serif; font-size: 1.0625rem; line-height: 1.65; color: #5F5F5F; margin: 0 0 1em; }
body.single-post .entry-content ul { padding-left: 1.2rem; }
body.single-post .page-content ul { padding-left: 1.2rem; }
body.single-post .entry-content blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid #2B2926; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.375rem; line-height: 1.35; color: #1A1A1A; }
body.single-post .page-content blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid #2B2926; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.375rem; line-height: 1.35; color: #1A1A1A; }
body.single-post .entry-content a { color: #1A1A1A; text-decoration: underline; text-decoration-color: #2B2926; text-underline-offset: 0.15em; }
body.single-post .page-content a { color: #1A1A1A; text-decoration: underline; text-decoration-color: #2B2926; text-underline-offset: 0.15em; }
body.single-post .entry-content table { width: 100%; border-collapse: collapse; font-family: 'Jost', sans-serif; font-size: 0.9375rem; margin: 1.5rem 0; }
body.single-post .page-content table { width: 100%; border-collapse: collapse; font-family: 'Jost', sans-serif; font-size: 0.9375rem; margin: 1.5rem 0; }
body.single-post .entry-content td, body.single-post .entry-content th { padding: 0.6rem 0.5rem; border-bottom: 1px solid #CFCFCF; text-align: left; vertical-align: top; }
body.single-post .page-content td, body.single-post .page-content th { padding: 0.6rem 0.5rem; border-bottom: 1px solid #CFCFCF; text-align: left; vertical-align: top; }
body.single-post .post-navigation, body.single-post .comments-area { display: none; }

/* Sektionsüberschriften wie im Clickdummy (.kopf h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem)), Footer-Spaltentitel bleiben klein */
[data-elementor-type="wp-page"] h2.e-heading-base, .elementor-location-single h2.e-heading-base { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem) !important; line-height: 1.15; letter-spacing: -0.012em; }

/* Instagram-Raster auf der Startseite: Kacheln so groß wie im Prototyp (Container 76rem, Lücke 1.9rem, Bildausschnitt 50% 30%) */
/* Gleiches Raster auf Über uns (f31f145), Torben 06.11. */
[data-id="75aa87c5"], [data-id="f31f145"] { width: min(76rem, calc(100vw - 2rem)) !important; max-width: none !important; margin-inline: calc((100% - min(76rem, calc(100vw - 2rem))) / 2) !important; column-gap: 1.9rem !important; row-gap: 1.9rem !important; }
[data-id="75aa87c5"] img, [data-id="f31f145"] img { object-position: 50% 30%; }

/* Stadtteil-Vorlage: Bänder wechseln automatisch, auch wenn Abschnitte ohne Daten wegfallen */
.st-band { background-color: #FFFFFF; }
.st-band:nth-of-type(odd) { background-color: var(--beige); }
.elementor-location-single .st-band a:not(.e-button-base) { text-decoration: underline; text-underline-offset: 2px; }
.elementor-location-single .st-band a.e-con, .elementor-location-single .st-band a.e-flexbox-base, .elementor-location-single .st-band a.e-div-block-base { text-decoration: none; }

/* Inhalts-Platz der Vorlagen (Ratgeber-Artikel, Inhaltsseiten): gleiche Typografie wie Artikel */
.elementor-location-single .elementor-widget-theme-post-content { max-width: var(--container, 72rem); margin: 0 auto; padding: var(--sektion, 6rem) var(--rand, 2rem); }
.elementor-location-single .elementor-widget-theme-post-content > * { max-width: 44rem; }
.elementor-location-single .elementor-widget-theme-post-content img { width: 100%; height: auto; display: block; margin: 2rem 0; border: 1px solid #CFCFCF; }
.elementor-location-single .elementor-widget-theme-post-content h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-2, 2rem); letter-spacing: -0.015em; line-height: 1.15; color: #1A1A1A; margin: 3rem 0 1rem; }
.elementor-location-single .elementor-widget-theme-post-content h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: var(--t-3, 1.375rem); line-height: 1.3; color: #1A1A1A; margin: 2rem 0 0.75rem; }
.elementor-location-single .elementor-widget-theme-post-content p, .elementor-location-single .elementor-widget-theme-post-content li { font-family: 'Jost', sans-serif; font-size: 1.0625rem; line-height: 1.65; color: #5F5F5F; margin: 0 0 1em; }
.elementor-location-single .elementor-widget-theme-post-content ul { padding-left: 1.2rem; }
.elementor-location-single .elementor-widget-theme-post-content blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid #2B2926; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.375rem; line-height: 1.35; color: #1A1A1A; }
.elementor-location-single .elementor-widget-theme-post-content a { color: #1A1A1A; text-decoration: underline; text-decoration-color: #2B2926; text-underline-offset: 0.15em; }
.elementor-location-single .elementor-widget-theme-post-content table { width: 100%; border-collapse: collapse; font-family: 'Jost', sans-serif; font-size: 0.9375rem; margin: 1.5rem 0; }
.elementor-location-single .elementor-widget-theme-post-content td, .elementor-location-single .elementor-widget-theme-post-content th { padding: 0.6rem 0.5rem; border-bottom: 1px solid #CFCFCF; text-align: left; vertical-align: top; }
.elementor-location-single .elementor-widget-theme-post-content details { border-bottom: 1px solid #CFCFCF; padding: 1rem 0; }
.elementor-location-single .elementor-widget-theme-post-content details:first-of-type { border-top: 1px solid #CFCFCF; }
.elementor-location-single .elementor-widget-theme-post-content summary { cursor: pointer; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.125rem; line-height: 1.35; color: #1A1A1A; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.elementor-location-single .elementor-widget-theme-post-content summary::-webkit-details-marker { display: none; }
.elementor-location-single .elementor-widget-theme-post-content summary::after { content: "+"; color: #2B2926; font-family: 'Jost', sans-serif; }
.elementor-location-single .elementor-widget-theme-post-content details[open] summary::after { content: "–"; }
.elementor-location-single .elementor-widget-theme-post-content details > *:not(summary) { margin-top: 0.75rem; }
.elementor-location-single .elementor-widget-theme-post-content figure { margin: 2rem 0; }

/* Loops: Elementors Standard-Einzug (10 px je Ebene) raus, damit Karten bündig mit dem Kopf stehen */
.e-collection-loop-base { padding: 0 !important; }
.e-collection-loop-layout-base > * { padding: 0 !important; }

/* =========================================================================
   Mobil (bis 767 px, wie Elementors Mobil-Umbruch)
   ========================================================================= */
.karussell-nav { display: none; }
@media (max-width: 767px) {
  /* Karussell: globale Klasse „karussell“ auf Raster oder Loop-Layout. Nächste Karte schaut an, Wischen rastet ein. */
  .karussell { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch !important; grid-template-columns: none !important; column-gap: 0.875rem !important; row-gap: 0 !important; gap: 0.875rem !important; width: auto !important; max-width: none !important; margin-inline: calc(var(--rand) * -1) !important; padding-inline: var(--rand) !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .karussell::-webkit-scrollbar { display: none; }
  .karussell > * { flex: 0 0 84% !important; width: 84% !important; max-width: 84% !important; min-width: 0 !important; scroll-snap-align: start; scroll-snap-stop: always; opacity: 1 !important; transform: none !important; }
  .karussell > .e-collection-loop-item > a, .karussell > .e-collection-loop-item > .e-con { height: 100%; }
  .karussell-nav { display: flex; align-items: center; gap: 0.875rem; margin-block-start: 1rem; }
  .karussell-zahl { flex: none; font-family: 'Jost', sans-serif; font-size: 0.75rem; letter-spacing: 0.12em; color: #5F5F5F; font-variant-numeric: tabular-nums; }
  .karussell-balken { flex: 1; height: 2px; background: #CFCFCF; position: relative; overflow: hidden; }
  .karussell-balken i { position: absolute; inset: 0 auto 0 0; background: #2B2926; transition: width 200ms ease; }

  /* Header kompakt: Logo kleiner, Menü mittig */
  .elementor-location-header > .e-con { padding-block: 0.625rem !important; padding-inline: var(--rand) !important; align-items: center !important; min-height: 0 !important; }
  .elementor-location-header img { width: auto !important; max-width: 9.5rem !important; height: 2.75rem !important; object-fit: contain; object-position: left center; }
  .elementor-location-header .elementor-menu-toggle { min-width: 2.75rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; margin: 0; }
  .elementor-location-header .elementor-nav-menu--dropdown a { min-height: 2.75rem; display: flex; align-items: center; }

  /* Tippflächen mindestens 44 px */
  a.e-button-base, button.e-button-base, .e-button-base { min-height: 2.75rem; display: inline-flex !important; align-items: center; }
  .e-accordion-item-header-base, .elementor-widget-theme-post-content summary { min-height: 2.75rem; align-items: center; }
  .elementor-widget-theme-post-content details { padding-block: 0.625rem; }
  input.e-form-checkbox-base { width: 1.25rem; height: 1.25rem; flex: none; }
  select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea { font-size: 1rem !important; min-height: 2.75rem; } /* 16 px verhindert Zoom auf dem iPhone */

  /* Kleine Einheiten in Zahlen lesbar halten */
  .zahl span, .zahl i, .zahl em, .zahl small { font-size: max(0.32em, 0.72rem); }

  /* Fakten in Objektkarten: zwei Spalten, aber Text darf umbrechen */
  .fakten-raster { font-size: 0.75rem; }

  /* Schwebender Button: kleiner, stört nicht beim Lesen */
  .schwebend { right: 0.75rem; bottom: 0.75rem; padding: 0.85em 1.2em; font-size: 0.65rem; }

  /* Instagram-Raster: Desktop-Ausbruch aus dem Container hier aufheben */
  [data-id="75aa87c5"], [data-id="f31f145"] { margin-inline: calc(var(--rand) * -1) !important; }

  /* Lange Listen im Artikel */
  .elementor-widget-theme-post-content table { display: block; overflow-x: auto; }
}

/* Mobiles Menü (bis 1024 px, dort zeigt Elementor den Menü-Schalter): Vollflächig unter dem Header, Untermenüs klappen auf */
@media (max-width: 1024px) {
  .elementor-location-header > .e-con > .e-con { width: 100%; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; flex-wrap: nowrap !important; padding: 0 !important; min-height: 0 !important; }
  .elementor-location-header > .e-con > .e-con > .e-con { position: static !important; height: auto !important; padding: 0 !important; }
  .elementor-location-header .elementor-widget-nav-menu { position: static !important; height: auto !important; }
  .elementor-location-header .elementor-menu-toggle { display: flex !important; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 0 !important; }
  .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { position: fixed !important; top: 4rem !important; left: 0 !important; right: 0 !important; width: 100vw !important; min-width: 0 !important; margin: 0 !important; border: 0 !important; background-color: #FFFFFF !important; transform-origin: top; z-index: 60; }
  .elementor-location-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container { max-height: calc(100vh - 4rem) !important; max-height: calc(100dvh - 4rem) !important; overflow-y: auto !important; padding: 0.5rem 0 5rem !important; box-shadow: 0 1px 0 #CFCFCF inset; }
  .elementor-location-header .elementor-nav-menu--dropdown > ul.elementor-nav-menu { width: 100% !important; padding: 0 var(--rand); }
  .elementor-location-header .elementor-nav-menu--dropdown ul.sub-menu, .elementor-location-header .elementor-nav-menu--dropdown ul.elementor-nav-menu--dropdown { position: static !important; width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 0 0.5rem 1rem !important; border: 0 !important; box-shadow: none !important; background: transparent !important; left: auto !important; top: auto !important; }
  .elementor-location-header .elementor-nav-menu--dropdown li { border-bottom: 1px solid #E4E4E4; }
  .elementor-location-header .elementor-nav-menu--dropdown li li { border-bottom: 0; }
  .elementor-location-header .elementor-nav-menu--dropdown a.elementor-item { min-height: 3.25rem; display: flex !important; align-items: center; justify-content: space-between; padding: 0.5rem 0 !important; font-size: 0.875rem !important; letter-spacing: 0.14em !important; color: #1A1A1A !important; white-space: normal !important; }
  .elementor-location-header .elementor-nav-menu--dropdown a.elementor-sub-item { min-height: 2.75rem; display: flex !important; align-items: center; padding: 0.25rem 0 !important; font-size: 0.875rem !important; letter-spacing: 0.04em !important; text-transform: none !important; color: #5F5F5F !important; white-space: normal !important; }
  .elementor-location-header .elementor-nav-menu--dropdown .sub-arrow { display: flex !important; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 0 -0.75rem 0 0; color: #2B2926; }
  /* Offenes Menü: Header auch auf der Startseite undurchsichtig */
  .elementor-location-header > .e-con:has(.elementor-menu-toggle.elementor-active) { background: #EBEBEB !important; }
  body.home .elementor-location-header > .e-con:has(.elementor-menu-toggle.elementor-active) img { filter: none !important; }
  body.home .elementor-location-header > .e-con:has(.elementor-menu-toggle.elementor-active) .elementor-menu-toggle { color: #1A1A1A !important; }
  html:has(.elementor-menu-toggle.elementor-active) { overflow: hidden; }
}
@media (max-width: 1024px) {
  .elementor-location-header > .e-con { padding-block: 0.625rem !important; padding-inline: var(--rand) !important; min-height: 4rem; align-items: center !important; }
  .elementor-location-header { height: 4rem; }
  body.home .elementor-location-header { height: 0; }
}
@media (max-width: 767px) {
  /* Zahlenbänder kompakt in zwei Spalten */
  .e-grid-base:has(> .e-con > .zahl) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 0 !important; }
  /* Exposé-Galerie als Karussell (Klasse setzt heuser.js) */
  .objekt-galerie .gallery.karussell .gallery-item { margin: 0 !important; float: none !important; }
}
@media (max-width: 1024px) {
  .elementor-location-header > .e-con > .e-con > .e-con { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; justify-content: flex-end !important; }
  .elementor-location-header .elementor-menu-toggle { margin-inline-end: -0.5rem !important; }
  .elementor-location-header .elementor-nav-menu--dropdown a, .elementor-location-header .elementor-nav-menu--dropdown a:hover, .elementor-location-header .elementor-nav-menu--dropdown a:focus, .elementor-location-header .elementor-nav-menu--dropdown a.highlighted, .elementor-location-header .elementor-nav-menu--dropdown a.elementor-item-active { background-color: transparent !important; }
  .elementor-location-header .elementor-nav-menu--dropdown a.highlighted { color: #2B2926 !important; }
}
@media (max-width: 767px) {
  /* Zähler über dem Video auf der Startseite hell */
  .auftakt .karussell-zahl { color: #FFFFFF; }
  .auftakt .karussell-balken { background: rgba(255, 255, 255, 0.35); }
  .auftakt .karussell-balken i { background: #FFFFFF; }
}
@media (max-width: 767px) {
  .schwebend { font-size: 0.7rem; }
  .schau button { min-width: 2.75rem; min-height: 2.75rem; }
}

/* Dropdown-Menü am Desktop (Torben 09.11.: „flüssiger, weniger klobig“):
   Panel ohne Rahmen mit weichem Schatten und leichter Rundung, blendet mit kurzem Gleiten ein.
   Einträge in normaler Schreibweise statt Versalien, Hover als eingerückte Anthrazit-Fläche mit Übergang. */
@media (min-width: 1025px) {
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown { margin-top: 0.75rem !important; padding: 0.5rem !important; min-width: 15.5rem !important; border: 0 !important; border-radius: 0.625rem; background: #FFFFFF !important; box-shadow: 0 24px 48px -18px rgba(26, 26, 26, 0.28), 0 0 0 1px rgba(26, 26, 26, 0.06) !important; transform-origin: top center; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown[style*="display: block"], .elementor-location-header .elementor-nav-menu--main li:hover > .elementor-nav-menu--dropdown { animation: menue-auf 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  /* Unsichtbare Brücke, damit das Menü beim Herunterfahren mit der Maus nicht zuklappt */
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -0.875rem; height: 0.875rem; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a.elementor-sub-item, .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a.elementor-item { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.875rem !important; border-radius: 0.375rem; font-size: 0.9375rem !important; font-weight: 400 !important; letter-spacing: 0.01em !important; text-transform: none !important; color: #1A1A1A !important; border-left: 0 !important; transition: background-color 160ms ease, color 160ms ease, padding 200ms ease; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a.elementor-sub-item::after { content: "\2192"; font-size: 0.875rem; opacity: 0; transform: translateX(-6px); transition: opacity 160ms ease, transform 200ms ease; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a:hover, .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a:focus-visible, .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a.highlighted { background-color: #2B2926 !important; color: #FFFFFF !important; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a:hover::after, .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a:focus-visible::after { opacity: 1; transform: none; }
  /* Aktuelle Seite: ruhig markiert, nicht dunkel gefüllt */
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown a.elementor-item-active:not(:hover) { background-color: #EBEBEB !important; color: #1A1A1A !important; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown .sub-arrow { color: inherit; }
  /* Hauptpunkte: Unterstrich wächst von der Mitte statt hart zu erscheinen */
  .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu > li > a.elementor-item { transition: color 200ms ease !important; }
}
.elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown.ohne-gleiten { animation: none !important; }
@keyframes menue-auf { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .elementor-location-header .elementor-nav-menu--dropdown { animation: none !important; } }

/* Vorher-Nachher-Schieber (Marker VERGLEICH, aufgebaut von heuser.js) */
.vergleich { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #D6D6D6; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.vergleich__nachher { clip-path: inset(0 0 0 var(--pos, 50%)); }
.vergleich__griff { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: #FFFFFF; transform: translateX(-0.5px); pointer-events: none; z-index: 2; }
.vergleich__griff::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; color: #1A1A1A; font-size: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.vergleich input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; -webkit-appearance: none; appearance: none; }
.vergleich__label { position: absolute; top: 1rem; padding: 0.3rem 0.7rem; background: rgba(31,29,26,0.7); color: #FFFFFF; font-family: 'Jost', sans-serif; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none; z-index: 2; }
.vergleich__label--vorher { left: 1rem; }
.vergleich__label--nachher { right: 1rem; }
.vergleich-platz { margin: 2rem 0; }
.vergleich-platz figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: #5F5F5F; }


/* Ratgeber: Inhaltsverzeichnis links, Artikel rechts */
.toc-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid #CFCFCF; }
.toc-liste li { border-bottom: 1px solid #E4E4E4; }
.toc-liste a { display: block; padding: 0.6rem 0 0.6rem 0.9rem; font-size: 0.8125rem; line-height: 1.4; color: #5F5F5F; text-decoration: none; border-left: 2px solid transparent; margin-left: -0.9rem; transition: color 200ms, border-color 200ms; }
.toc-liste a:hover { color: #1A1A1A; }
.toc-liste a.ist-aktiv { color: #1A1A1A; border-left-color: #2B2926; }
.elementor-widget-theme-post-content h2 { scroll-margin-top: 6.5rem; }
.elementor-widget-theme-post-content > .elementor-widget-container > p:first-of-type, .elementor-widget-theme-post-content > p:first-of-type { font-size: 1.1875rem; line-height: 1.6; color: #1A1A1A; }
.elementor-widget-theme-post-content h2 { margin-top: 3rem; }
.elementor-widget-theme-post-content h3 { margin-top: 2rem; }
.elementor-widget-theme-post-content ul li, .elementor-widget-theme-post-content ol li { margin-bottom: 0.5rem; }
.elementor-widget-theme-post-content strong { color: #1A1A1A; }
@media (max-width: 767px) {
  .toc-mobil { border: 1px solid #CFCFCF; padding: 0.75rem 1rem; background: #FFFFFF; }
  .toc-mobil summary { cursor: pointer; font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #1A1A1A; list-style: none; display: flex; justify-content: space-between; }
  .toc-mobil summary::after { content: "+"; color: #2B2926; }
  .toc-mobil[open] summary::after { content: "–"; }
  .toc-mobil .toc-liste { margin-top: 0.75rem; border-top: 0; }
  .toc-mobil .toc-liste a { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Social-Icons im Footer (Marker SOCIAL) */
.social { display: inline-flex; gap: 0.5rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid #CFCFCF; color: #1A1A1A; transition: border-color 200ms, background 200ms, color 200ms; }
.social a:hover { border-color: #2B2926; background: #2B2926; color: #FFFFFF; }
.social svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


/* =========================================================================
   Exposé: Beschreibung eingeklappt (heuser.js), Pause-Knopf der Bildschau ohne Theme-Farbe
   ========================================================================= */
.objekt-text.ist-kurz { max-height: 26rem; overflow: hidden; position: relative; }
.objekt-text.ist-kurz::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF); pointer-events: none; }
.objekt-text-mehr { display: inline-block; margin: 1rem 0 2.5rem; background: none; border: 0; border-bottom: 1px solid #2B2926; border-radius: 0; padding: 0 0 0.25rem; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.75rem; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: #2B2926; cursor: pointer; }
.objekt-text-mehr:hover { color: #1A1A1A; }
.objekt-galerie, .objekt-grundrisse { margin-top: 2.5rem; }
.schau .schau__spiel, .schau .schau__spiel:focus { background: transparent !important; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,0.6) !important; border-radius: 0 !important; box-shadow: none !important; }
.schau .schau__spiel:hover { background: #FFFFFF !important; color: #2B2926 !important; }

/* Mobil: Überschriften silbentrennen statt mitten im Wort zu brechen, große Titel kleiner */
@media (max-width: 767px) {
  /* Design-Tokens des Kits für kleine Bildschirme: Titel kleiner, Sektionsabstände kürzer (Elementor setzt sie in post-6.css auf :root) */
  html:root { --t-1: clamp(1.75rem, 7.5vw, 2.125rem); --t-2: clamp(1.5rem, 6.2vw, 1.75rem); --sektion: 3.25rem; --s-6: 3.25rem; --s-5: 2.75rem; }
  /* Trennen nur bei wirklich langen Wörtern, nie „Born-heim“ */
  h1, h2 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; word-break: normal; }
  h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 17 7 7; -webkit-hyphenate-limit-before: 7; -webkit-hyphenate-limit-after: 7; overflow-wrap: break-word; word-break: normal; }
  h1.e-heading-base { font-size: min(2.125rem, 8.5vw) !important; max-width: 100% !important; }
}

/* Keine einzelnen Wörter in der letzten Zeile (Tim, 03.11.) */
.e-paragraph-base, .elementor-widget-theme-post-content p { text-wrap: pretty; }
.e-heading-base { text-wrap: balance; }
.skip-link { color: #2B2926; }

/* Exposé: Text läuft bündig mit den Kennzahlen über die ganze Spalte; die allgemeine Regel für Inhaltsvorlagen rückt sonst um --rand ein */
body.single-immobilie .elementor-location-single .elementor-widget-theme-post-content { max-width: none; margin: 0; padding: 0; }
body.single-immobilie .elementor-location-single .elementor-widget-theme-post-content > * { max-width: none; }
.objekt-text--klein.ist-kurz { max-height: 11rem; }
.objekt-text--klein.ist-kurz::after { height: 4.5rem; }
.objekt-text-mehr--eng { margin-block-end: 0; }
@media (min-width: 768px) { .objekt-galerie .gallery-item.ist-aus { display: none; } }
@media (max-width: 767px) { .objekt-galerie-mehr { display: none; } }
.objekt-text-mehr { align-self: flex-start; width: auto; }
.kz-symbol { line-height: 0; }
.kz-symbol svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.25; }
.kz-symbol { height: 15.4px; display: flex; align-items: center; overflow: visible; }

/* Objektkarten: gleich hohe Karten, Preis und Fakten stehen je Reihe auf einer Linie, auch bei unterschiedlich langen Titeln (Tim, 04.11.) */
.e-collection-loop-layout-base > .e-con { display: flex; }
.e-collection-loop-layout-base > .e-con > .e-con { width: 100%; height: auto; }
.e-collection-loop-layout-base .e-con:has(> h3) { flex-grow: 1; }
.e-collection-loop-layout-base h3 { flex-grow: 1; }
[data-id="35b653e5"] > .e-con h3, [data-id="35b653e5"] > a h3 { flex-grow: 1; }
[data-id="35b653e5"] > .e-con, [data-id="35b653e5"] > a { height: 100%; }

/* Highlights auf der Startseite */
/* Weicher: Bild randlos oben, Ecken leicht gerundet, Schatten breiter und zarter (Torben, 06.11.) */
[data-id="1e9522c"] a.e-con { border: 0 !important; border-radius: 0.75rem; overflow: hidden; padding: 0 !important; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 350ms ease, box-shadow 350ms ease; }
[data-id="1e9522c"] a.e-con:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); }
[data-id="1e9522c"] .e-div-block-base { aspect-ratio: 3 / 2 !important; width: 100% !important; overflow: hidden; }
[data-id="1e9522c"] .e-div-block-base img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-id="1e9522c"] img { transition: transform 700ms ease; }
[data-id="1e9522c"] a.e-con:hover img { transform: scale(1.04); }
[data-id="1e9522c"] a.e-con > .e-con { padding: 1.5rem 1.75rem 1.5rem !important; gap: 0 !important; }
[data-id="1e9522c"] a.e-con > .e-div-block-base { padding: 0 !important; }
[data-id="1e9522c"] h3 { font-size: 1.25rem !important; line-height: 1.3 !important; margin-block-start: 0.875rem !important; }
[data-id="1e9522c"] h3 + p { font-family: var(--serif) !important; font-size: 1.375rem !important; line-height: 1.2 !important; margin-block-start: 1rem !important; }
[data-id="1e9522c"] h3 ~ *:last-child { margin-block-start: 1rem !important; padding-block-start: 1rem !important; border-block-start: 1px solid #E4E4E4; }

/* Stadtteile-Übersicht (Seite 2642): Karten mit gleichen Bildformaten, Lage als Plakette, Preisspanne mit Icon */
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) { gap: 2.5rem 1.5rem !important; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) > a.e-con { position: relative; height: 100%; display: flex; flex-direction: column; gap: 0 !important; padding: 0 !important; color: #1A1A1A; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) .e-div-block-base { aspect-ratio: 4 / 3 !important; overflow: hidden; border: 0 !important; width: 100%; padding: 0; margin-block-end: 1.125rem; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; transition: transform 700ms ease; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con:hover img { transform: scale(1.04); }
/* Lage-Plakette auf dem Bild */
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:first-of-type { position: absolute; top: 0.875rem; left: 0.875rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.4rem 0.7rem 0.4rem 0.55rem; background: rgba(43, 41, 38, 0.78); color: #FFFFFF !important; font-size: 0.625rem !important; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; backdrop-filter: blur(4px); }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:first-of-type::before { content: ''; width: 0.75rem; height: 0.75rem; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.75'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) h3 { font-size: 1.5rem !important; line-height: 1.2 !important; margin: 0 0 0.5rem !important; }
/* Beschreibung und Preisspanne */
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:last-of-type { flex-grow: 1; margin: 0; font-size: 0.9375rem !important; line-height: 1.5 !important; color: #5F5F5F; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:last-of-type b { display: flex; align-items: center; gap: 0.5rem; margin-block-start: 0.75rem; padding-block-start: 0.75rem; border-block-start: 1px solid #E4E4E4; font-weight: 400; color: #1A1A1A; font-size: 0.875rem; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:last-of-type b::before { content: ''; width: 1rem; height: 1rem; flex: none; background: #2B2926; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3Cpath d='M10 19.5v-5h4v5'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con::after { content: 'Zur Lage \2192'; margin-block-start: 0.875rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #1A1A1A; }
/* Bildaufteilung: Bad Godesberg 2 große und 3 kleine, Region 2 breite */
@media (min-width: 1025px) {
  body.page-id-2642 [data-id="4770fc23"] { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-template-rows: none !important; }
  body.page-id-2642 [data-id="4770fc23"] > a.e-con { grid-column: span 2; }
  body.page-id-2642 [data-id="4770fc23"] > a.e-con:nth-child(-n+2) { grid-column: span 3; }
  body.page-id-2642 [data-id="4770fc23"] > a.e-con:nth-child(-n+2) .e-div-block-base { aspect-ratio: 16 / 10 !important; }
  body.page-id-2642 [data-id="4770fc23"] > a.e-con:nth-child(-n+2) h3 { font-size: 1.875rem !important; }
  body.page-id-2642 [data-id="555fc52a"] .e-div-block-base { aspect-ratio: 16 / 10 !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; }
}
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) .e-div-block-base { position: relative; min-height: 0 !important; height: auto !important; flex: none; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) .e-div-block-base img { position: absolute; inset: 0; }

/* QA 04.11.: Stadtteile-Hero Text unten wie die anderen Hero-Bereiche */
[data-id="4dc73084"] { display: flex !important; flex-direction: column; justify-content: flex-end; flex: 1 1 auto; min-height: clamp(26rem, 58vh, 40rem); top: 0 !important; margin-top: 0 !important; }
[data-id="55ce1c99"] { flex: 0 0 auto !important; }
/* Rechtstexte: Vorlage ohne Beitragsbild, kein leeres Bild, flacher Kopf */
img.e-image-base:not([src]) { display: none !important; }
body:is(.page-id-2787, .page-id-2788) [data-id="1c56b126"] { min-height: clamp(14rem, 32vh, 20rem) !important; }
/* Ratgeber: Netzwerk-Karten ausgeblendet, bis Astrid und Tim echte Partner benennen. Zum Einblenden Regel entfernen und Vorspann 21a84c1d anpassen */
[data-id="673840ac"] { display: none !important; }

/* QA 04.11.: Lange Wörter passen in der 400-px-Spalte nicht auf 56 px und würden mitten im Wort brechen */
@media (min-width: 768px) {
  html body h2.e-heading-base:is([data-id="48c329ef"], [data-id="441cfc61"], [data-id="31ff91ac"], [data-id="e27e15"]) { font-size: clamp(1.75rem, 3.2vw, 2.875rem) !important; }
}
/* Theme-Reset färbt Vorschaubilder sonst pink, auch im Hover */
.schau__daumen button, .schau__daumen button:hover, .schau__daumen button:focus { color: inherit; background: none; }

/* Theme-Reset (Hello Elementor) färbt Buttons bei Hover und nach dem Klick pink (#c36). Eigene Buttons hier festgelegt (16.11.2026):
   Mehr lesen / Weniger anzeigen / Alle Bilder anzeigen, Pfeile der Bildschau, Knöpfe der Lightbox. */
button.objekt-text-mehr:hover, button.objekt-text-mehr:focus { background: none; color: #2B2926; }
@media (hover: hover) { button.objekt-text-mehr:hover { color: #6B6763; border-bottom-color: #6B6763; } }
button.objekt-text-mehr:focus-visible { outline: 2px solid #2B2926; outline-offset: 4px; }
.lightbox button:focus, button.schau__pfeil:focus { background: rgba(255,255,255,0.92); color: #1A1A1A; }
.lightbox button:hover, button.schau__pfeil:hover { background: #2B2926; color: #FFFFFF; }
.lightbox button:focus-visible, button.schau__pfeil:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Bildplatz ohne Bild (25.11.2026): Die Inhaltsvorlage zeigt das Beitragsbild. Seiten ohne Beitragsbild wie das Impressum
   bekamen ein leeres <img> ohne Quelle und ohne Alt-Text. */
img:not([src]):not([srcset]) { display: none; }

/* Mobil-Check nach dem Go-live (25.11.2026) */
@media (max-width: 1024px) {
  /* Offenes Menü füllt die ganze Höhe unter dem Header. Vorher endete die weiße Fläche nach dem letzten Punkt, darunter schien die Seite durch. */
  .elementor-location-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container { min-height: calc(100vh - 4rem) !important; min-height: calc(100dvh - 4rem) !important; }
}
/* Kleinste Beschriftungen auf mindestens 11 px: Vorher/Nachher am Bildvergleich, Ortsmarken auf der Stadtteil-Übersicht */
.vergleich__label { font-size: 0.6875rem; }
body.page-id-2642 :is([data-id="4770fc23"], [data-id="704bd5ac"], [data-id="555fc52a"]) a.e-con > p:first-of-type { font-size: 0.6875rem !important; }
/* „Mehr lesen“ am Exposé: auf Touch-Geräten eine Tippfläche von 44 px Höhe, der Strich bleibt unter dem Wort */
@media (pointer: coarse) { button.objekt-text-mehr { min-height: 2.75rem; padding-top: 1.35rem; margin-top: 0; } }

/* Marke „KI-bearbeitet“ unten rechts auf KI-erzeugten Bildern (25.11.2026). Position setzt heuser.js an die untere rechte Ecke des Bildes. */
.ki-marke { position: absolute; z-index: 3; transform: translate(calc(-100% - 0.5rem), calc(-100% - 0.5rem)); padding: 0.3rem 0.5rem; background: rgba(43, 41, 38, 0.78); color: #FFFFFF; font-family: 'Jost', sans-serif; font-size: 0.6875rem; font-weight: 500; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; }
