/*
Theme Name: SPINNWERK Child
Description: SPINNWERK Chemnitz – bereinigte Elementor-first Architektur (Testbuild).
Template: blocksy
Version: 0.5.47
Text Domain: spinnwerk-child
*/
/* Globale Designfarben: WordPress > Design > Anpassen > SPINNWERK – Farben & Schrift.
   Die folgenden Werte dienen nur als sichere Ausgangswerte. Keine Elementor-Widget-Typografie überschreiben. */
:root{--sw-red:#D81C28;--sw-ink:#111111;--sw-cream:#F7F6F2;--sw-beige:#F2E4BD;--sw-content:1290px}
body.sw-site{margin:0;background:#fff;color:var(--sw-ink);font-family:Inter,Arial,sans-serif}
body.sw-site .sw-main,body.sw-site .entry-content{width:100%;max-width:none;margin:0;padding:0}
body.sw-site .entry-content>.elementor{width:100%;max-width:none}
/* Header und Footer: nur Positionen/Abstände. Farben und Schrift kommen aus dem WordPress-Customizer.
   Einzelne Elementor-Inhalte werden weiterhin in Elementor bearbeitet. */
.sw-header{height:86px;background:#fff;position:relative;z-index:30;box-shadow:0 1px 8px #00000010}
.sw-header-inner{max-width:var(--sw-content);padding:0 22px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}
/* LOGO: Größe und Position werden im WordPress-Customizer eingestellt.
   Hier stehen nur Darstellungsregeln, KEINE festen Pixelgrößen. */
.sw-brand{display:flex;align-items:center;text-decoration:none;position:relative;z-index:2}
.sw-brand img{width:auto;max-width:none;object-fit:contain;display:block}
.sw-nav{display:flex;align-items:center;gap:27px}.sw-nav a{color:#222;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap}
.sw-nav a:hover,.sw-nav a[aria-current=page]{color:var(--sw-red)}.sw-nav a.sw-nav-contact{background:var(--sw-red);color:#fff;padding:13px 22px}
.sw-menu-toggle{display:none;background:#fff;border:1px solid #ddd;padding:9px 12px;color:#111;font-size:21px}
.sw-footer{background:var(--sw-red);color:#fff;padding:42px 22px}.sw-footer-inner{max-width:var(--sw-content);margin:auto;display:grid;grid-template-columns:1.25fr 1.15fr .8fr 1.3fr;gap:36px}
.sw-footer h3,.sw-footer p,.sw-footer a{color:#fff}.sw-footer h3{font-size:17px;margin:0 0 14px}.sw-footer p{font-size:13px;line-height:1.65;margin:0}
.sw-footer img{max-width:140px;width:100%;height:auto}.sw-footer a{text-decoration:underline}.sw-footer-bottom{max-width:var(--sw-content);margin:30px auto 0;padding-top:15px;border-top:1px solid #ffffff55;font-size:12px}
/* Structural classes only: no font-size, font-weight, line-height or font-family on Elementor widgets */
.sw-e-page .sw-e-hero{position:relative;isolation:isolate;background-size:cover;background-position:center;min-height:420px}
.sw-e-page .sw-e-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.4) 58%,transparent);z-index:-1;pointer-events:none}
.sw-e-page .sw-e-hero>.e-con-inner{max-width:var(--sw-content);width:100%}
.sw-e-page .sw-e-home-hero>.elementor-widget-heading{flex:0 0 100%;width:100%}
.sw-e-page .sw-e-home-hero>.elementor-widget-text-editor{flex:0 0 100%;max-width:480px}
.sw-e-page .sw-e-home-hero>.elementor-widget-button{flex:0 0 auto;width:auto}
.sw-e-page .sw-e-home-hero .sw-master-cta-primary .elementor-button{background-color:var(--sw-red);border-color:var(--sw-red);color:#fff}
.sw-e-page .sw-e-home-hero .sw-master-cta-outline .elementor-button{background-color:transparent;border:1px solid #fff;color:#fff}
.sw-e-page .sw-e-card{background:#fff;border:1px solid #ebe9e6;box-shadow:0 8px 28px #0000000d;overflow:hidden}
.sw-e-page .sw-e-card img{width:100%;height:225px;object-fit:cover;display:block}
.sw-e-page .sw-e-card .elementor-widget-heading,.sw-e-page .sw-e-card .elementor-widget-text-editor,.sw-e-page .sw-e-card .elementor-widget-button{padding-inline:20px}
.sw-e-page .sw-e-card .elementor-widget-button{padding-bottom:20px}
.sw-e-page .sw-e-home-rentals .sw-e-card .elementor-button{background:transparent;border:0;color:var(--sw-red);padding:0}
.sw-e-page .sw-e-band,.sw-e-page .sw-e-soft{background:var(--sw-cream)}
.sw-e-page .sw-e-home-benefits{background:var(--sw-beige)}
.sw-e-page .sw-e-home-benefits .sw-e-benefits-grid{display:flex;gap:22px}
.sw-e-page .sw-e-home-benefits .sw-e-benefit{flex:1 1 0;display:flex;align-items:center;gap:8px}
.sw-e-page .sw-e-home-benefits .sw-e-benefit img{width:30px;height:30px;object-fit:contain}
.sw-e-page .sw-e-home-history .sw-e-history-grid{display:flex;gap:26px;align-items:center}
.sw-e-page .sw-e-home-history .sw-e-history-grid>.elementor-widget-image{flex:0 0 36%}
.sw-e-page .sw-e-home-history .sw-e-history-grid>.e-con{flex:1;min-width:0}
.sw-e-page .sw-e-rental-filters{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 24px}
.sw-e-page .sw-e-rental-filters button{border:1px solid #ddd;background:var(--sw-cream);color:var(--sw-ink);padding:10px 14px;cursor:pointer}
.sw-e-page .sw-e-rental-filters button[aria-pressed=true]{background:var(--sw-red);color:#fff;border-color:var(--sw-red)}
.sw-e-page .sw-e-rental-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.sw-e-page .sw-e-object{border:1px solid #e9e9e9;background:#fff;box-shadow:0 8px 24px #0000000e;overflow:hidden}
.sw-e-page .sw-e-object img{width:100%;height:205px;object-fit:cover;display:block}
.sw-e-page .sw-e-object-content{padding:18px}.sw-e-page .sw-e-object summary{cursor:pointer;color:var(--sw-red);margin-top:12px}
.sw-e-page .sw-e-object-details{background:var(--sw-cream);padding:16px;margin-top:14px}
.sw-e-page .sw-e-object-details a{display:inline-block;background:var(--sw-red);color:white;padding:10px 16px;text-decoration:none;margin-top:12px}
.sw-e-page .sw-e-object[hidden],.sw-e-page .sw-e-expose[hidden],.sw-e-page .sw-e-gallery-lightbox[hidden]{display:none!important}
.sw-e-page .sw-e-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sw-e-page .sw-e-gallery img{width:100%;height:100%;object-fit:cover}
.sw-e-page .sw-e-gallery-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(12,13,14,.95);display:flex;align-items:center;justify-content:center;padding:54px 62px 68px;box-sizing:border-box}
.sw-e-page .sw-e-tenants{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.sw-e-page .sw-e-tenant{padding:20px;border:1px solid #eaeaea}
.sw-e-page a:focus-visible,.sw-e-page button:focus-visible{outline:3px solid #111;outline-offset:3px}
@media(max-width:1024px){.sw-e-page .sw-e-rental-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-e-page .sw-e-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.sw-header{height:74px}/* Mobile Logogröße kommt ebenfalls aus dem Customizer. */.sw-menu-toggle{display:block}.sw-nav{display:none;position:absolute;top:74px;left:0;right:0;background:#fff;padding:20px;box-shadow:0 8px 16px #0002;flex-direction:column;align-items:stretch;gap:15px}.sw-nav.is-open{display:flex}.sw-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sw-e-page .sw-e-rental-grid,.sw-e-page .sw-e-gallery{grid-template-columns:1fr}.sw-e-page .sw-e-home-benefits .sw-e-benefits-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sw-e-page .sw-e-home-history .sw-e-history-grid{flex-direction:column}.sw-footer-inner{grid-template-columns:1fr}}

/* v0.5.1: scoped layout refinements, no Elementor typography overrides */
.sw-e-page .sw-e-object{display:flex;flex-direction:column;min-width:0}
.sw-e-page .sw-e-object-content{display:flex;flex-direction:column;flex:1;gap:12px;padding:20px}
.sw-e-page .sw-e-object-content h3,.sw-e-page .sw-e-object-content p{margin:0}
.sw-e-page .sw-e-object-content .sw-e-details-trigger{align-self:flex-start;margin-top:auto}
.sw-e-page .sw-e-home-history .sw-e-history-grid{background:#fff;border:1px solid #ebe9e6;box-shadow:0 8px 28px #0000000d;overflow:hidden}
.sw-e-page .sw-e-home-history .sw-e-history-grid>.elementor-widget-image img{display:block}
.sw-e-page .sw-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.sw-e-page .sw-listing-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e9e9e9;min-width:0}
.sw-e-page .sw-listing-card>img{width:100%;height:205px;object-fit:cover}
.sw-e-page .sw-listing-body{padding:20px;display:flex;flex:1;flex-direction:column;gap:12px}
.sw-e-page .sw-listing-body h3,.sw-e-page .sw-listing-body p{margin:0}
.sw-e-page .sw-listing-details{margin-top:auto}
.sw-e-page .sw-listing-details summary{display:inline-block;cursor:pointer;background:var(--sw-red);color:#fff;padding:11px 18px;list-style:none}
.sw-e-page .sw-listing-details summary::-webkit-details-marker{display:none}
.sw-e-page .sw-listing-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.sw-e-page .sw-listing-facts div{background:#f7f6f2;padding:12px}
.sw-e-page .sw-listing-facts dt{font-size:12px;color:#555}.sw-e-page .sw-listing-facts dd{margin:5px 0 0;font-weight:600}
.sw-e-page .sw-listing-description{margin-top:14px}
@media(max-width:1024px){.sw-e-page .sw-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sw-e-page .sw-listing-grid{grid-template-columns:1fr}.sw-e-page .sw-listing-facts{grid-template-columns:1fr}}

/* v0.5.2: shared page rhythm; deliberately no widget typography overrides. */
.sw-e-page>.elementor .sw-e-hero,.sw-e-page .sw-e-hero{box-sizing:border-box}
.sw-e-page .sw-e-intro,.sw-e-page .sw-e-band{box-sizing:border-box}
/* Footer: preserve four columns and separate copyright; align ONLY the legal line. */
.sw-footer-legal{max-width:var(--sw-content);margin:26px auto 0;display:flex;flex-wrap:wrap;align-items:center;column-gap:22px;row-gap:9px;font-size:13px;line-height:1.5}
.sw-footer-legal a{display:inline-block}
.sw-footer-legal span{display:inline-block}
/* Rental cards: equal height and fixed bottom action. */
.sw-e-page .sw-listing-grid{align-items:stretch}
.sw-e-page .sw-listing-card{box-shadow:0 8px 24px #0000000d}
.sw-e-page .sw-listing-card>img{display:block}
.sw-e-page .sw-listing-body{min-height:205px}
.sw-e-page .sw-listing-open{align-self:flex-start;margin-top:auto;border:0;border-radius:2px;background:var(--sw-red);color:#fff;padding:11px 18px;cursor:pointer;font:inherit;font-weight:600}
.sw-e-page .sw-listing-open:hover{filter:brightness(.9)}
/* Full-width, structured details below the grid; not stretched inside a card. */
.sw-e-page .sw-listing-detail{grid-column:1/-1;background:#fff;border:1px solid #e6e4e1;box-shadow:0 12px 34px #00000010;padding:28px;min-width:0}
.sw-e-page .sw-listing-detail[hidden]{display:none!important}
.sw-e-page .sw-listing-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border-bottom:1px solid #e6e4e1;padding-bottom:18px;margin-bottom:22px}
.sw-e-page .sw-listing-detail-head h3{margin:5px 0 0}
.sw-e-page .sw-listing-detail-kicker{color:var(--sw-red);font-size:12px;font-weight:700;letter-spacing:.05em}
.sw-e-page .sw-listing-close{border:1px solid #ddd;background:#fff;color:var(--sw-ink);padding:8px 12px;cursor:pointer}
.sw-e-page .sw-listing-detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:32px}
.sw-e-page .sw-listing-detail-layout h4{margin:22px 0 10px}
.sw-e-page .sw-listing-detail-layout h4:first-child{margin-top:0}
.sw-e-page .sw-listing-facts{grid-template-columns:1fr;gap:0;margin:0}
.sw-e-page .sw-listing-facts div{display:grid;grid-template-columns:42% 58%;gap:10px;border-bottom:1px solid #e6e4e1;padding:11px 12px;background:#f7f6f2}
.sw-e-page .sw-listing-facts dd{margin:0}
.sw-e-page .sw-listing-detail-photo{width:100%;max-height:340px;object-fit:cover;display:block;margin-bottom:18px}
.sw-e-page .sw-listing-detail-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:20px}
.sw-e-page .sw-listing-detail-actions a{display:inline-block;padding:11px 18px;background:var(--sw-red);color:#fff;text-decoration:none}
.sw-e-page .sw-listing-detail-actions a.sw-listing-document{background:#fff;color:var(--sw-red);border:1px solid var(--sw-red)}
@media(max-width:767px){.sw-e-page .sw-listing-detail{padding:18px}.sw-e-page .sw-listing-detail-layout{grid-template-columns:1fr}.sw-e-page .sw-listing-detail-head{flex-wrap:wrap}}

/* v0.5.3 – Rental detail repair. All rules scoped to the shortcode roots;
   they do not touch Elementor headings, page templates, or the footer. */
.sw-e-rentals, .sw-listing-grid {font-family:var(--theme-font-family,inherit);font-size:15px;line-height:1.55;color:var(--sw-ink);width:100%;min-width:0;box-sizing:border-box}
.sw-e-rentals *, .sw-listing-grid * {box-sizing:border-box}
/* Legacy category detail: missing layout rules in 0.5.2 caused full-size stacked photos. */
.sw-e-rentals .sw-e-expose[hidden],.sw-listing-grid .sw-listing-detail[hidden]{display:none!important}
.sw-e-rentals .sw-e-expose{width:100%;min-width:0;margin:28px 0 0;padding:28px;background:#fff;border:1px solid #e7e4df;box-shadow:0 10px 30px rgba(0,0,0,.07);font-size:15px;line-height:1.6}
.sw-e-rentals .sw-e-expose-top,.sw-listing-grid .sw-listing-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding-bottom:18px;margin-bottom:24px;border-bottom:1px solid #e7e4df}
.sw-e-rentals .sw-e-eyebrow,.sw-listing-grid .sw-listing-detail-kicker{display:block;font-size:12px;letter-spacing:.07em;color:var(--sw-red);font-weight:700}
.sw-e-rentals .sw-e-expose-top h2,.sw-listing-grid .sw-listing-detail-head h3{font-size:clamp(24px,2.5vw,32px);line-height:1.2;margin:8px 0 10px}
.sw-e-rentals .sw-e-expose-subtitle{margin:0;color:#555}
.sw-e-rentals .sw-e-close,.sw-listing-grid .sw-listing-close{flex:none;background:#fff;border:1px solid #ddd;padding:10px 14px;color:var(--sw-ink);cursor:pointer;font-size:14px}
.sw-e-rentals .sw-e-expose-columns,.sw-listing-grid .sw-listing-detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(275px,1fr);gap:32px;align-items:start}
.sw-e-rentals .sw-e-expose-main,.sw-e-rentals .sw-e-expose-facts,.sw-listing-grid .sw-listing-detail-layout>div,.sw-listing-grid .sw-listing-detail-layout>aside{min-width:0}
.sw-e-rentals .sw-e-expose-gallery{max-width:100%;margin:0 0 24px;overflow:hidden}
.sw-e-rentals .sw-e-expose-primary,.sw-listing-grid .sw-listing-detail-photo{display:block;width:100%;max-width:100%;height:320px;max-height:320px;object-fit:cover;object-position:center;margin:0 0 12px}
.sw-e-rentals .sw-e-expose-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.sw-e-rentals .sw-e-expose-thumbs img{width:76px;height:56px;object-fit:cover;display:block;cursor:pointer}
.sw-e-rentals .sw-e-expose-main h3,.sw-listing-grid .sw-listing-detail-layout h4{font-size:18px;line-height:1.35;margin:24px 0 10px;font-weight:700}
.sw-e-rentals .sw-e-expose-main p,.sw-e-rentals .sw-e-expose-main li,.sw-listing-grid .sw-listing-detail-layout p{font-size:15px;line-height:1.65}
.sw-e-rentals .sw-e-expose-main ul{padding-left:22px}
.sw-e-rentals .sw-e-expose-facts,.sw-listing-grid .sw-listing-detail-layout>aside{background:#f7f6f2;border:1px solid #e7e4df;padding:22px}
.sw-e-rentals .sw-e-expose-facts h3,.sw-listing-grid .sw-listing-detail-layout>aside h4{font-size:20px;line-height:1.3;margin:0 0 15px}
.sw-e-rentals .sw-e-expose-facts dl,.sw-listing-grid .sw-listing-facts{margin:0;display:block}
.sw-e-rentals .sw-e-expose-facts dl>div,.sw-listing-grid .sw-listing-facts>div{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);gap:10px;padding:12px 0;border-bottom:1px solid #ddd;background:transparent}
.sw-e-rentals .sw-e-expose-facts dt,.sw-listing-grid .sw-listing-facts dt{font-size:13px;font-weight:600;color:#555}
.sw-e-rentals .sw-e-expose-facts dd,.sw-listing-grid .sw-listing-facts dd{font-size:14px;margin:0;overflow-wrap:anywhere}
.sw-e-rentals .sw-e-expose-notice{font-size:13px;line-height:1.55;margin:18px 0;color:#555}
.sw-e-rentals .sw-e-cta,.sw-listing-grid .sw-listing-detail-actions a{display:inline-block;background:var(--sw-red);color:#fff;text-decoration:none;padding:12px 18px;font-weight:600;font-size:14px;margin-top:18px}
/* CMS listings: detail is a full-width sibling of the cards. */
.sw-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.sw-listing-grid .sw-listing-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e7e4df}
.sw-listing-grid .sw-listing-card>img{width:100%;height:205px;object-fit:cover}
.sw-listing-grid .sw-listing-body{padding:20px;display:flex;flex:1;flex-direction:column;gap:12px;min-height:190px}
.sw-listing-grid .sw-listing-body h3,.sw-listing-grid .sw-listing-body p{margin:0}
.sw-listing-grid .sw-listing-open{align-self:flex-start;margin-top:auto;background:var(--sw-red);color:#fff;border:0;padding:11px 18px;font-size:14px;font-weight:600;cursor:pointer}
.sw-listing-grid .sw-listing-detail{grid-column:1/-1;min-width:0;background:#fff;border:1px solid #e7e4df;padding:28px;box-shadow:0 10px 30px rgba(0,0,0,.07)}
.sw-listing-grid .sw-listing-detail-actions{display:flex;flex-wrap:wrap;gap:10px}
.sw-listing-grid .sw-listing-detail-actions a.sw-listing-document{background:transparent;color:var(--sw-red);border:1px solid var(--sw-red)}
@media(max-width:1024px){.sw-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sw-e-rentals .sw-e-expose,.sw-listing-grid .sw-listing-detail{padding:18px}.sw-e-rentals .sw-e-expose-columns,.sw-listing-grid .sw-listing-detail-layout{grid-template-columns:1fr;gap:20px}.sw-e-rentals .sw-e-expose-top,.sw-listing-grid .sw-listing-detail-head{flex-wrap:wrap}.sw-e-rentals .sw-e-expose-primary,.sw-listing-grid .sw-listing-detail-photo{height:240px}.sw-listing-grid{grid-template-columns:1fr}}

/* 0.5.4: Detailansicht scoped typography, independent of Elementor global typography. */
.sw-listing-grid :is(button,input,textarea){font-family:inherit}
.sw-listing-grid .sw-listing-detail{font-size:15px;line-height:1.6}
.sw-listing-grid .sw-listing-detail-layout>div>div{font-size:15px;line-height:1.65}
.sw-listing-grid .sw-listing-detail-layout>div>h4{font-family:Inter,Arial,sans-serif;font-weight:700}
.sw-listing-grid .sw-listing-detail-photo{object-fit:cover}

/* v0.5.6: approved rental detail layout; scoped only to the CMS rental shortcode. */

.sw-listing-grid .sw-rental-main-image{width:100%;margin:0 0 18px;overflow:hidden}
.sw-listing-grid .sw-rental-main-image img{display:block;width:100%;height:320px;object-fit:cover}
.sw-listing-grid .sw-listing-detail-layout>aside{align-self:start}
.sw-listing-grid .sw-rental-file{color:var(--sw-red);font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){.sw-listing-grid .sw-rental-main-image img{height:240px}}
/* v0.5.8: CMS gallery only; existing approved detail layout remains unchanged. */
.sw-listing-grid .sw-rental-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}
.sw-listing-grid .sw-rental-thumb{padding:3px;border:2px solid transparent;background:#fff;cursor:pointer;width:84px;height:68px}
.sw-listing-grid .sw-rental-thumb.is-active,.sw-listing-grid .sw-rental-thumb:focus-visible{border-color:var(--sw-red,#d0021b)}
.sw-listing-grid .sw-rental-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* v0.5.9: group heading occupies a full row in the existing rental grid */
.sw-listing-grid>.sw-rental-group-heading{grid-column:1/-1;margin:24px 0 0;font:700 26px/1.3 Inter,Arial,sans-serif;color:var(--sw-ink)}

/* v0.5.11: visually separate usage categories and their individual published objects. */
.sw-listing-grid>.sw-rental-group-heading{grid-column:1/-1;margin:30px 0 0;padding:13px 0 10px;border-bottom:2px solid #e8e1d8;display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sw-listing-grid>.sw-rental-group-heading h3{font:700 25px/1.3 Inter,Arial,sans-serif;margin:0;color:var(--sw-ink)}
.sw-listing-grid>.sw-rental-group-heading p{font:400 13px/1.5 Inter,Arial,sans-serif;margin:0;color:#666}
.sw-listing-grid>.sw-rental-group-heading:first-child{margin-top:0}

/* v0.5.12: category > filtered objects > existing detail view. */
.sw-rental-hierarchy .sw-category-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.sw-rental-hierarchy .sw-category-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e7e4df;min-width:0}
.sw-rental-hierarchy .sw-category-card>img{height:145px;width:100%;object-fit:cover}
.sw-rental-hierarchy .sw-category-body{display:flex;flex:1;flex-direction:column;gap:12px;padding:16px}
.sw-rental-hierarchy .sw-category-body h3{font-size:19px;line-height:1.3;margin:0;color:#14253a}
.sw-rental-hierarchy .sw-category-body p{font-size:13px;line-height:1.5;margin:0}
.sw-rental-hierarchy .sw-category-open{background:var(--sw-red,#d0021b);border:0;color:#fff;padding:11px 12px;margin-top:auto;cursor:pointer;font-weight:600;text-align:left}
.sw-rental-hierarchy .sw-category-open[aria-expanded="true"]{background:#2E3135;outline:none;box-shadow:none}
.sw-rental-hierarchy .sw-category-panel{grid-column:1/-1;padding:24px;background:#faf9f7;border:1px solid #ded8cf;min-width:0}
.sw-rental-hierarchy .sw-category-panel[hidden],.sw-rental-hierarchy .sw-listing-detail[hidden],.sw-rental-hierarchy .sw-listing-card[hidden],.sw-rental-hierarchy .sw-filter-empty[hidden]{display:none!important}
.sw-rental-hierarchy .sw-category-panel-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px}
.sw-rental-hierarchy .sw-category-panel-head h3{font-size:27px;margin:0 0 6px;color:#14253a}
.sw-rental-hierarchy .sw-category-panel-head p{margin:0;font-size:14px}
.sw-rental-hierarchy .sw-category-collapse,.sw-rental-hierarchy .sw-filter-reset{border:1px solid var(--sw-red,#d0021b);background:transparent;color:var(--sw-red,#d0021b);padding:10px 14px;cursor:pointer}
.sw-rental-hierarchy .sw-rental-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 22px}
.sw-rental-hierarchy .sw-rental-filters label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:5px}
.sw-rental-hierarchy .sw-rental-filters select{background:#fff;border:1px solid #ddd;padding:10px;min-width:150px;max-width:230px;font-size:13px}
.sw-rental-hierarchy .sw-category-listings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sw-rental-hierarchy .sw-card-fact{font-size:var(--theme-font-size,inherit);margin:0!important}
.sw-rental-hierarchy .sw-card-fact strong{font-weight:700}
.sw-rental-hierarchy .sw-development-heading{grid-column:1/-1;margin:22px 0 0}
.sw-rental-hierarchy .sw-filter-empty{font-size:14px;padding:15px}
@media(max-width:1100px){.sw-rental-hierarchy .sw-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.sw-rental-hierarchy .sw-category-grid,.sw-rental-hierarchy .sw-category-listings{grid-template-columns:1fr}.sw-rental-hierarchy .sw-category-panel{padding:15px}.sw-rental-hierarchy .sw-category-card>img{height:180px}}

/* v0.5.13: six equal category cards and clear contextual panels */
.sw-rental-hierarchy .sw-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sw-rental-hierarchy .sw-category-card>img{height:170px}
.sw-rental-hierarchy .sw-category-open{width:auto;min-height:44px;text-align:center;white-space:normal}
.sw-rental-hierarchy .sw-category-panel{scroll-margin-top:110px}
.sw-rental-hierarchy .sw-category-listings .sw-listing-card>img{display:block;width:100%;height:190px;object-fit:cover}
.sw-rental-hierarchy .sw-category-listings h3{overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.sw-rental-hierarchy .sw-listing-breadcrumb{font-size:13px;color:#a31a24;font-weight:600}
@media(max-width:850px){.sw-rental-hierarchy .sw-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.sw-rental-hierarchy .sw-category-grid{grid-template-columns:1fr}}

/* v0.5.16: accessible, visible dropdown affordance, scoped to rental filters */
.sw-rental-hierarchy .sw-rental-filters select{appearance:none;-webkit-appearance:none;padding-right:38px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838a91' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}
.sw-rental-hierarchy .sw-rental-filters select:focus-visible{outline:2px solid #d0021b;outline-offset:2px}
.sw-rental-hierarchy .sw-listing-detail-actions .sw-listing-document{display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px}


/* v0.5.20: Elementor-native editable category cards, same visual master. */
.sw-e-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important;width:100%}
.sw-e-category-grid>.e-con{width:100%;min-width:0;display:flex;flex-direction:column}
.sw-e-rental-photo img{width:100%;height:170px;object-fit:cover;display:block}
.sw-e-rental-card-body{flex:1;display:flex;flex-direction:column}
.sw-e-rental-card-body .elementor-widget-button{margin-top:auto}
.sw-e-rental-card-body .elementor-button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;font-weight:600}
.sw-e-rental-card-body .elementor-widget-heading h3{overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:850px){.sw-e-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.sw-e-category-grid{grid-template-columns:1fr}}

/* SPINNWERK Aktuelles: scoped layout helpers; Elementor inline settings take precedence. */
.sw-e-page .sw-news-hero-master .sw-master-hero-title {max-width:920px;}
.sw-e-page .sw-news-icons {display:flex;flex-wrap:wrap;align-items:stretch;}
.sw-e-page .sw-news-compare-card {min-width:0;}
.sw-e-page .sw-news-compare-card .elementor-widget-bfas_before_after {width:100%;max-width:100%;}
.sw-e-page .sw-news-feature img {max-width:100%;height:auto;}
@media(max-width:767px){.sw-e-page .sw-news-compare-card{width:100%;}}

/* SPINNWERK Aktuelles v1.3: scoped defaults; Elementor editor controls retain priority. */
.sw-news-v13-intro,.sw-news-v13-card,.sw-news-v13-icons,.sw-news-v13-section-head,.sw-news-v13-gallery,.sw-news-v13-article {font-family:Inter,sans-serif;}
.sw-news-v13-card{margin-bottom:16px;box-shadow:0 8px 24px rgba(25,39,58,.055);align-items:center;}
.sw-news-v13-card .elementor-widget-image img{width:100%;height:auto;display:block;object-fit:cover;}
.sw-news-v13-card .elementor-widget-button .elementor-button{border-radius:3px;}
.sw-news-v13-icons{align-items:center;background:#f5f6f7;}
.sw-news-v13-comparisons{align-items:start;}
.sw-news-v13-compare{min-width:0;}
.sw-news-v13-compare .elementor-widget-bfas_before_after{max-width:100%;}
.sw-news-v13-cta{color:#fff;}
@media(max-width:767px){.sw-news-v13-card{gap:16px;}.sw-news-v13-compare{width:100%;}}

/* v0.5.26 Aktuelles: layout-only rules. All editorial content and typography remain Elementor-editable. */
@media (min-width: 1025px) {
 .sw-e-page .sw-news-v13-icons.elementor-element {display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;}
 .sw-e-page .sw-news-v13-icons > .e-con {flex:1 1 0;min-width:0;width:auto;max-width:none;}
}
@media (min-width: 768px) and (max-width:1024px) {
 .sw-e-page .sw-news-v13-icons.elementor-element {display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;}
 .sw-e-page .sw-news-v13-icons > .e-con {flex:0 1 calc(50% - 8px);min-width:0;}
}
@media (max-width:767px) {
 .sw-e-page .sw-news-v13-icons.elementor-element {display:flex;flex-direction:column;gap:12px;}
 .sw-e-page .sw-news-v13-icons > .e-con {width:100%;}
}
/* All three comparisons occupy equal grid cells, without altering the slider widget. */
.sw-e-page .sw-news-v13-comparisons.elementor-element {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px;}
.sw-e-page .sw-news-v13-comparisons > .e-con {width:100%;max-width:100%;min-width:0;align-self:stretch;}
.sw-e-page .sw-news-v13-comparisons .elementor-widget-bfas_before_after {width:100%;min-width:0;}
.sw-e-page .sw-news-v13-comparisons .elementor-widget-bfas_before_after img {width:100%;height:100%;object-fit:cover;}
@media(max-width:767px){.sw-e-page .sw-news-v13-comparisons.elementor-element{grid-template-columns:1fr;}}
/* Matching project preview cards; editable Elementor images and text remain untouched. */
.sw-e-page .sw-news-v13-card.elementor-element {display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;}
.sw-e-page .sw-news-v13-card .sw-news-v13-card-media img {width:100%;aspect-ratio:3/2;object-fit:cover;display:block;}
@media(max-width:767px){.sw-e-page .sw-news-v13-card.elementor-element{flex-direction:column;align-items:stretch;}}

/* v0.5.27: Aktuelles only; Elementor controls remain editable. */
@media (min-width:1025px) {
 .sw-e-page .sw-news-v13-icons.e-con {display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;}
 .sw-e-page .sw-news-v13-icons.e-con > .e-con {flex:1 1 0;min-width:0;width:auto;}
}
@media (min-width:768px) and (max-width:1024px) {
 .sw-e-page .sw-news-v13-icons.e-con {display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;}
 .sw-e-page .sw-news-v13-icons.e-con > .e-con {flex:0 1 calc(50% - 6px);min-width:0;}
}
/* Normalize the actual 2FOX4 slider viewport, not just its Elementor columns. */
.sw-e-page .sw-news-v13-comparisons .bfas-container {width:100%;aspect-ratio:3/2;overflow:hidden;}
.sw-e-page .sw-news-v13-comparisons .bfas-after {height:100%;}
.sw-e-page .sw-news-v13-comparisons .bfas-after img,
.sw-e-page .sw-news-v13-comparisons .bfas-before img {width:100%;height:100%;object-fit:cover;}
@media (min-width:768px) { .sw-e-page .sw-news-v13-comparisons.e-con {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;} }
@media (max-width:767px) { .sw-e-page .sw-news-v13-comparisons.e-con {display:grid;grid-template-columns:1fr;gap:16px;} }
.sw-e-page .sw-news-v13-comparisons.e-con > .e-con {width:100%;min-width:0;max-width:100%;}
/* Both article previews use the same image crop; no editorial text styling overridden. */
.sw-e-page .sw-news-v13-card .sw-news-v13-card-media img {width:100%;aspect-ratio:3/2;object-fit:cover;display:block;}

/* v0.5.28 – editorial detail pages: scoped, editable Elementor content. */
.sw-news-v16-detail-hero {background-position:center center;}
.sw-news-v16-detail {background:#fff;}
/* Keep widget typography, media, sizes and responsive controls under Elementor control. */

/* SPINNWERK Navigation: WordPress-Menü wird als einfache horizontale Liste angezeigt.
   Die Menüpunkte selbst werden unter Design > Menüs geändert, nicht hier. */
.sw-nav .sw-nav-items{display:flex;align-items:center;gap:27px;list-style:none;margin:0;padding:0}
.sw-nav .sw-nav-items li{list-style:none;margin:0;padding:0}
.sw-nav .sw-nav-items .current-menu-item>a{color:var(--sw-red)}
/* Mobil: Menüpunkte untereinander, wenn das Menü geöffnet wird. */
@media(max-width:820px){.sw-nav .sw-nav-items{display:flex;flex-direction:column;align-items:stretch;gap:15px}}

/* v0.5.33 – Blocksy-Builder-Umstellung:
   Header, Footer, Logo, Navigation und Typografie werden im nativen Modus
   ausschließlich von Blocksy ausgegeben. Die alten .sw-header/.sw-footer-
   Regeln bleiben nur als Rückfall für das bisherige, freigegebene Layout.
   Keine zusätzlichen Header/Footer per CSS erzeugen. */

/* v0.5.34 – Blocksy-Builder-Modus: keine eigenen globalen Schriften/Farben erzwingen.
   Gilt ausschließlich für Designseiten mit aktiviertem Blocksy-Header/Footer.
   Die Gestaltung der Seiteninhalte bleibt weiterhin in Elementor editierbar. */
body.sw-site.sw-blocksy-chrome{font-family:inherit;font-size:inherit;color:inherit;background:inherit}
body.sw-site.sw-blocksy-chrome .sw-main{font-family:inherit}

/* v0.5.35 — CMS rental cards: structural responsive fallback. Elementor widget's
   responsive column controls remain authoritative when users set their own values.
   No typography, button or image styling is forced here. */
.sw-rental-hierarchy .sw-category-listings > .sw-listing-card { min-width:0; max-width:100%; }
.sw-rental-hierarchy .sw-category-listings .sw-listing-body { min-width:0; overflow-wrap:anywhere; }
@media (max-width:1024px) and (min-width:768px) {
  .sw-rental-hierarchy .sw-category-listings { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .sw-rental-hierarchy .sw-category-listings { grid-template-columns:minmax(0,1fr); }
  .sw-rental-hierarchy .sw-category-listings > .sw-listing-card { width:100%; }
}

/* v0.5.36: Panelkopf auf schmalen Viewports ohne überlaufenden Schließen-Button. */
.sw-rental-hierarchy .sw-category-panel-head > div { min-width:0; }
.sw-rental-hierarchy .sw-category-panel-head .sw-category-collapse { box-sizing:border-box; max-width:100%; min-width:0; flex:0 0 auto; white-space:nowrap; }
@media (max-width:767px) {
 .sw-rental-hierarchy .sw-category-panel-head { flex-direction:column; align-items:flex-start; gap:12px; }
 .sw-rental-hierarchy .sw-category-panel-head .sw-category-collapse { align-self:flex-start; }
}

/* v0.5.38: extra CMS facts expand rental cards naturally; typography remains Elementor-controlled. */
.sw-rental-hierarchy .sw-category-listings .sw-listing-card{height:auto;min-height:0;}
.sw-rental-hierarchy .sw-category-listings .sw-listing-body{height:auto;min-height:0;}
.sw-rental-hierarchy .sw-card-extra{white-space:normal;overflow-wrap:break-word;}

/* v0.5.42: Only CMS gallery thumbnails: no inherited dark button background/frame.
   One thin red border marks the selected thumbnail and keyboard focus. */
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb,
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb:hover,
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb:active,
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb:focus {
  background:#fff;
  background-color:#fff;
  background-image:none;
  box-shadow:none;
  outline:none;
  border:1px solid transparent;
  padding:4px;
}
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb.is-active,
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb:focus-visible {
  border-color:var(--sw-red,#d81c28);
}
.sw-listing-grid .sw-rental-thumbs button.sw-rental-thumb img {
  opacity:1;
  filter:none;
}

/* v0.5.43: Einziger Design-Abgleich: Mietflächen-CMS-Buttons haben 3 px Eckenradius.
   Keine Änderungen an Galerie-Vorschaubildern, Panorama-Viewer oder Elementor-Buttons. */
.sw-rental-hierarchy .sw-category-open,
.sw-rental-hierarchy .sw-category-collapse,
.sw-rental-hierarchy .sw-filter-reset,
.sw-rental-hierarchy .sw-listing-open,
.sw-rental-hierarchy .sw-listing-detail-actions a {
  border-radius: 3px;
}

/* v0.5.44: Panorama-Button aligns vertically and matches the existing
   "Mietanfrage stellen" button size; limited to rental detail only. */
.sw-listing-grid .sw-rental-panorama .sw-panorama-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:12px 18px;
  font-size:14px;
  font-weight:600;
  line-height:1.6;
  border-radius:3px;
}

/* v0.5.45: Only the six rental-category "Angebote anzeigen" buttons.
   No red focus/expanded outline on pointer interaction; dark hover and open state.
   Keyboard focus retains a visible text underline without a surrounding frame. */
.sw-rental-hierarchy button.sw-category-open:hover,
.sw-rental-hierarchy button.sw-category-open:active,
.sw-rental-hierarchy button.sw-category-open:focus,
.sw-rental-hierarchy button.sw-category-open[aria-expanded="true"] {
  background:#2E3135;
  background-color:#2E3135;
  color:#fff;
  border:0;
  outline:none;
  box-shadow:none;
}
.sw-rental-hierarchy button.sw-category-open:focus-visible {
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Give standard Elementor headings the Blocksy line height. */
body .elementor :is(h1,h2,h5).elementor-heading-title{line-height:var(--theme-line-height,1.2)}

/* DiziPro article layout. */
.elementor-921 .elementor-element.elementor-element-1c2db358.elementor-widget-text-editor {
  padding-inline: 0;
}

@media (min-width: 768px) {
  .elementor-921 .elementor-element-b4fee65 > .e-con-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .elementor-921 .elementor-element-b4fee65 > .e-con-inner > .elementor-element {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .elementor-921 .elementor-element.elementor-element-25604a6.e-con {
    --margin-left: 0px;
    --margin-right: 0px;
    width: 100%;
  }

  .elementor-921 .elementor-element.elementor-element-1c2db358.elementor-widget-text-editor {
    padding-top: 10px;
  }

  .elementor-921 .elementor-element.elementor-element-983939f.e-con,
  .elementor-921 .elementor-element.elementor-element-3853c9f.e-con {
    --padding-left: 0px;
    --padding-right: 0px;
  }

  .elementor-921 .elementor-element-4f855cba .elementor-heading-title {
    font-size: clamp(17px, 5.25vw, 22px);
    text-wrap: balance;
  }
}

/* Editorial typography for narrow Blocksy and Elementor layouts. */
@media (max-width: 1023px) {
  main :is(.entry-content, .elementor-widget-text-editor, .elementor-widget-theme-post-content)
    :is(p, ul, ol):not(.has-text-align-center, .has-text-align-right) {
    text-align: start;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  main :is(.entry-content, .elementor-widget-text-editor, .elementor-widget-theme-post-content)
    :is(p, ul, ol)[style*="text-align" i][style*="justify" i] {
    text-align: start !important;
  }

  main :is(.entry-content, .elementor) :is(h1, h2, h3, h4, h5, h6) {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

@media (max-width: 767px) {
  .elementor-921 .elementor-element.elementor-element-622cb8b.e-con {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
  }

  .elementor-921 .elementor-element-622cb8b > hr.e-divider-base {
    width: 100%;
    align-self: start;
    margin: 9.5px 0 0 !important;
  }

  .elementor-921 .elementor-element-622cb8b > .elementor-widget-heading {
    width: 100%;
    min-width: 0;
  }

  .elementor-921 .elementor-element-622cb8b .elementor-heading-title {
    line-height: 21px;
    text-wrap: wrap;
  }
}

/* DiziPro editorial typography follows the Blocksy body settings. */
.elementor-921 .sw-news-v16-detail .elementor-widget-text-editor p {
  font-family: var(--theme-font-family);
  font-size: var(--theme-font-size);
  line-height: var(--theme-line-height);
  color: inherit;
}

.elementor-921 .sw-news-v16-detail .elementor-element.elementor-element-17aeb516 {
  color: inherit;
}

/* Override the legacy magenta rule in WordPress Additional CSS. */
#main hr.e-divider-base + .elementor-widget-heading .elementor-heading-title {
  color: var(--theme-text-color, currentColor) !important;
}

/* DiziPro tablet article layout. */
@media (768px <= width < 1024px) {
  .elementor-921 .elementor-element-b4fee65 > .e-con-inner,
  .elementor-921 .elementor-element.elementor-element-4dd0af7.e-con,
  .elementor-921 .elementor-element.elementor-element-e1bc809.e-con,
  .elementor-921 .elementor-element.elementor-element-fbdddb1.e-con {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .elementor-921 :is(.elementor-element-76dc55c, .elementor-element-25604a6,
    .elementor-element-fbb68d1, .elementor-element-9839fe5,
    .elementor-element-c7cd1ee, .elementor-element-983939f,
    .elementor-element-06bc140, .elementor-element-38501da).e-con {
    width: 100%;
    min-width: 0;
    --margin-left: 0px;
    --margin-right: 0px;
  }

  .elementor-921 :is(.elementor-element-983939f, .elementor-element-3853c9f).e-con {
    --padding-left: 0px;
    --padding-right: 0px;
  }

  .elementor-921 .elementor-element-4dd0af7 > .elementor-element-fbb68d1 {
    display: contents;
  }

  .elementor-921 .elementor-element-4dd0af7 > .elementor-element-9839fe5 {
    --margin-top: 0px;
    order: 1;
  }

  .elementor-921 .elementor-element-4dd0af7 .elementor-element-767a2ea0 {
    order: 2;
  }

  .elementor-921 .elementor-element-38501da {
    grid-row: 1;
  }
}

/* Hero image credit. The Elementor text widget may be left empty for photos. */
.sw-e-hero.e-con {
  position: relative;
}

.sw-e-hero > .sw-hero-credit {
  position: absolute;
  inset: auto clamp(16px, 4vw, 64px) 12px auto;
  z-index: 2;
  width: auto;
  max-width: calc(100% - 32px);
  color: #fff;
  text-align: end;
  text-shadow: 0 1px 3px #000;
}

.sw-e-hero > .sw-hero-credit p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: end;
}

body:not(.elementor-editor-active) .sw-e-hero > .sw-hero-credit:not(:has(p:not(:empty))) {
  display: none;
}

@media (max-width: 767px) {
  .sw-e-hero.e-con:has(> .sw-hero-credit p:not(:empty)) {
    margin-block-end: 27px !important;
    overflow: visible;
  }

  .sw-e-hero.e-con > .sw-hero-credit {
    inset: auto 0 -27px 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 5px 16px;
    background-color: #fff;
    text-shadow: none;
  }

  .sw-e-hero.e-con > .sw-hero-credit p {
    text-align: right !important;
    padding-inline-end: 10px;
  }

  .sw-e-hero.e-con > .sw-hero-credit :is(p, p *) {
    color: #2E3135 !important;
  }
}

/* Align the Gewerbepark gallery label with the following contact section. */
.elementor-367 .elementor-element.elementor-element-66aa34f.e-con {
  --padding-left: 30px;
}

/* The desktop header already provides its own Contact button. */
#header [data-device="desktop"] .sw-menu-mobile-contact {
  display: none;
}

#offcanvas .mobile-menu .ct-menu-link {
  color: #fff;
}

#offcanvas .mobile-menu .ct-menu-link[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 767px) {
  /* Stack divider labels while keeping the Gewerbepark location marker inline. */
  #main .e-con:has(> hr.e-divider-base + .elementor-widget-heading > p.elementor-heading-title):not(.elementor-element-4b0104b) {
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    gap: 8px;
    --padding-left: 0px;
    --padding-right: 0px;
  }

  #main .e-con:not(.elementor-element-4b0104b) > hr.e-divider-base:has(+ .elementor-widget-heading > p.elementor-heading-title) {
    flex: none;
    width: 40px;
    align-self: flex-start;
    justify-self: start;
    margin: 0 auto 0 0 !important;
  }

  #main .e-con:not(.elementor-element-4b0104b) > hr.e-divider-base + .elementor-widget-heading:has(> p.elementor-heading-title) {
    width: 100%;
  }

}

/* Shared mobile content gutter. Hero backgrounds remain full bleed. */
@media (max-width: 767px) {
  #main .elementor {
    --sw-mobile-content-gutter: 24px;
  }

  #main .elementor > .e-con:not(.sw-e-hero) {
    --padding-left: var(--sw-mobile-content-gutter);
    --padding-right: var(--sw-mobile-content-gutter);
  }

  /* These containers only wrap content already inset by their section. */
  #main :is(.elementor-element-2190040c, .elementor-element-e21b07fe,
    .elementor-element-9d3cd81, .elementor-element-66aa34f,
    .elementor-element-2fe10c4, .elementor-element-fe5474c,
    .elementor-element-587b62d, .elementor-element-4b0104b,
    .elementor-element-e394bb7, .elementor-element-3ffcf64d,
    .elementor-element-d79ed3a, .elementor-element-5ea14373,
    .elementor-element-81b23a9, .elementor-element-b096bf7,
    .elementor-element-cc55e8a, .elementor-element-658db21,
    .elementor-element-520646b, .elementor-element-39a8fa4,
    .elementor-element-240a123, .elementor-element-37e19480,
    .elementor-element-99188f5, .elementor-element-1370175, .elementor-element-4f7cb2ad,
    .elementor-element-2b8db0fc, .elementor-element-5b685be, .elementor-element-10595e9,
    .elementor-element-e02f20a, .elementor-element-2bba502, .elementor-element-c8f70ba,
    .elementor-element-bb69a68, .elementor-element-49d408d, .elementor-element-2518c21f,
    .elementor-element-9ed26368, .elementor-element-fddcb2b5,
    .elementor-element-498bfa4f, .elementor-element-c6562004, .elementor-element-677241da,
    .elementor-element-6b80bccd, .elementor-element-9e7c7ef5, .elementor-element-95a1a7e7,
    .elementor-element-0f83ae00, .elementor-element-46f9145, .elementor-element-b5abc19,
    .elementor-element-042e3d8, .elementor-element-0698844).e-con {
    --padding-left: 0px;
    --padding-right: 0px;
  }

  /* Article cards own the inset, so it is applied once. */
  #main .elementor-921 > .elementor-element-236b7adf.e-con {
    --padding-left: 0px;
    --padding-right: 0px;
  }

  #main .elementor-921 :is(.elementor-element-aa8308c, .elementor-element-3a85e87,
    .elementor-element-feaed90, .elementor-element-5f40db5).e-con {
    --padding-left: var(--sw-mobile-content-gutter);
    --padding-right: var(--sw-mobile-content-gutter);
  }

  #main :is(.elementor-element-1b379dc, .elementor-element-d5fbb7f,
    .elementor-element-3742b18, .elementor-element-4067f4cb, .elementor-element-c8c0acf1).elementor-widget {
    padding-inline: 0;
  }

  #main .elementor-element-1673dee.e-con {
    --margin-left: 0px;
    --margin-right: 0px;
  }

  #main .elementor-element-06bc140 > :is(.elementor-element-5b8bcd90,
    .elementor-element-19acb905, .elementor-element-4e28541a,
    .elementor-element-33ba78a4),
  #main .elementor-element-042e3d8 .elementor-element-2db34f29 {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  #main .elementor-367 .elementor-element-1cd0537 :is(
    .elementor-element-1b379dc, .elementor-element-5cdb557) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

/* Flat editorial sections on small screens. Listing and tenant cards keep their frames. */
@media (max-width: 767px) {
  #main .elementor :is(
    .elementor-element-498bfa4f, .elementor-element-c6562004, .elementor-element-677241da,
    .elementor-element-37e19480, .elementor-element-e21b07fe, .elementor-element-fe5474c,
    .elementor-element-9ed26368, .elementor-element-fddcb2b5,
    .elementor-element-5ea14373, .elementor-element-81b23a9,
    .elementor-element-aa8308c, .elementor-element-3a85e87,
    .elementor-element-feaed90, .elementor-element-5f40db5,
    .elementor-element-99188f5, .elementor-element-1370175
  ).e-con {
    border-width: 0;
    box-shadow: none;
  }
}

/* Optional text widget directly below an inline illustration. */
#main .sw-image-credit p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

/* Home history and tablet headings. */
@media (768px <= width < 1024px) {
  #main .elementor h2 {
    font-size: calc(var(--theme-font-size, 40px) - 2px);
  }

  #main .elementor-365 .elementor-element-37e19480.e-con {
    --flex-direction: column;
  }

  #main .elementor-365 .elementor-element-37e19480 :is(
    .elementor-element-f3c383c3, .elementor-element-6b80bccd) {
    --width: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  #main .elementor-365 :is(.elementor-element-9e7c7ef5,
    .elementor-element-95a1a7e7, .elementor-element-0f83ae00).e-con {
    border-left-width: 0;
  }

  #main .elementor-365 .elementor-element-37e19480 :is(
    .elementor-element-f3c383c3, .elementor-element-6b80bccd) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  #main .elementor-365 .elementor-element-f3c383c3 img {
    width: 100%;
    display: block;
  }
}

/* Home rental cards: a copied credit container overlays the preceding image. */
#main .elementor-365 .sw-e-card {
  --sw-credit-card-gap: var(--row-gap, 0px);
}

#main .elementor-365 :is(.sw-e-card, .sw-e-card > .e-con-inner) > .elementor-widget-image + .e-con:has(> .sw-image-credit) {
  position: relative;
  flex: none;
  width: 100%;
  height: 0;
  min-height: 0;
  margin-block-start: calc(-1 * var(--sw-credit-card-gap));
  padding: 0;
  overflow: visible;
}

#main .elementor-365 :is(.sw-e-card, .sw-e-card > .e-con-inner) > .elementor-widget-image + .e-con:has(> .sw-image-credit) > .sw-image-credit {
  position: absolute;
  z-index: 2;
  inset: auto 8px 4px auto;
  width: auto;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 0;
}

.sw-rental-hierarchy .sw-category-credit {
  min-height: 24px;
  padding: 4px 10px;
  color: #30343a;
  font: 400 12px/16px var(--theme-font-family, Inter, sans-serif);
  text-align: right;
}

@media (max-width: 767px) {
  .sw-rental-hierarchy .sw-category-credit--empty {
    display: none;
  }
}
