/**
 * Martini Park — Contao 5 Theme
 * Adapted from martini-wohnpark prototype (index.html)
 */

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --navy: #0e3a5f;
  --blue: #1b86c8;
  --blue-d: #136aa1;
  --blue-l: #e8f3fb;
  --sky: #2ea8e0;
  --ink: #1f2a33;
  --muted: #5b6b78;
  --line: #e2e8ee;
  --bg: #f6f8fa;
  --white: #fff;
  --ok: #1f9d57;
  --okbg: #e6f6ed;
  --gray: #8190a0;
  --graybg: #eef1f4;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14, 58, 95, 0.1);
  --shadow-sm: 0 2px 10px rgba(14, 58, 95, 0.07);
  --maxw: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --header-h: 92px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  overflow-x: hidden;
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--blue-d);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.invisible,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   Contao layout overrides
   ========================================================================== */

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
}

#container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1;
  width: 100%;
}

.mod_article {
  width: 100%;
  margin: 0;
  float: none;
  clear: both;
}

/* Kill legacy Contao grid margins inside articles */
.mod_article > [class^="ce_"],
.mod_article > [class*=" ce_"],
.mod_article > [class^="content-"],
.mod_article > [class*=" content-"],
.mod_article > [class^="mod_"],
.mod_article > [class*=" mod_"],
.mod_article > [class^="module-"],
.mod_article > [class*=" module-"] {
  margin-left: 0;
  margin-right: 0;
  float: none;
  width: auto;
  max-width: none;
}

.mod_article .inside {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.ce_text,
.ce_headline,
.content-text,
.content-headline,
.content-hyperlink {
  margin-bottom: 0;
}

.content-text .rte > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button.btn,
input[type="submit"].btn,
.ce_form .submit,
.content-hyperlink.btn a,
.btn.content-hyperlink a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 0.72em 1.25em;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover,
.ce_form .submit:hover,
.content-hyperlink.btn a:hover,
.btn.content-hyperlink a:hover {
  background: var(--blue-d);
  text-decoration: none;
  color: #fff;
}

.content-hyperlink.btn,
.btn.content-hyperlink {
  display: inline-block;
  margin-top: 0.5em;
}

.btn.ghost {
  background: #fff;
  color: var(--blue-d);
  border: 1.5px solid var(--blue);
}

.btn.ghost:hover {
  background: var(--blue-l);
  color: var(--blue-d);
}

.btn.dark {
  background: var(--navy);
}

.btn.dark:hover {
  background: #0a2c47;
}

.btn.sm {
  padding: 0.5em 0.9em;
  font-size: 0.86rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

#header,
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

#header .wrap.bar,
header.site .wrap.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo,
#header .logo {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  display: block;
  height: 46px;
  width: auto;
}

.logo-img,
#header .logo img,
#header img.logo,
.logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: none;
}

.foot-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 14px;
}

/* Nav slot */
.nav-slot,
#mp-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
}

#mp-nav .mod_navigation,
.nav-slot .mod_navigation {
  margin: 0;
}

#mp-nav .mod_navigation .headline,
.nav-slot .mod_navigation .headline {
  display: none;
}

#mp-nav .mod_navigation nav,
.nav-slot .mod_navigation nav,
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

#mp-nav .mod_navigation ul,
.nav-slot .mod_navigation ul,
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mp-nav .mod_navigation ul.level_1,
.nav-slot .mod_navigation ul.level_1,
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

#mp-nav .mod_navigation ul.level_1 > li,
.nav-slot .mod_navigation ul.level_1 > li {
  position: relative;
}

#mp-nav .mod_navigation ul.level_1 > li > a,
#mp-nav .mod_navigation ul.level_1 > li > strong,
.nav a.top,
.nav .drop > button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.6em 0.85em;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
}

#mp-nav .mod_navigation ul.level_1 > li > a:hover,
#mp-nav .mod_navigation ul.level_1 > li > strong:hover,
.nav a.top:hover,
.nav .drop > button:hover {
  background: var(--blue-l);
  color: var(--blue-d);
  text-decoration: none;
}

#mp-nav .mod_navigation ul.level_1 > li.active > a,
#mp-nav .mod_navigation ul.level_1 > li.active > strong,
#mp-nav .mod_navigation ul.level_1 > li.trail > a,
#mp-nav .mod_navigation ul.level_1 > li.trail > strong,
.nav a.top.active,
.nav .drop.active > button {
  color: var(--blue-d);
}

/* Cloud button — specificity must beat ul.level_1 > li > a */
#mp-nav .mod_navigation ul.level_1 > li.cloudbtn > a,
#mp-nav .mod_navigation ul.level_1 > li.cloudbtn > strong,
.nav-slot .mod_navigation ul.level_1 > li.cloudbtn > a,
.nav a.cloudbtn {
  margin-left: 14px;
  background: var(--blue-l) !important;
  color: var(--blue-d) !important;
  border: 1px solid #cfe6f6;
  border-radius: 9px;
  font-weight: 700;
}

#mp-nav .mod_navigation ul.level_1 > li.cloudbtn > a:hover,
.nav-slot .mod_navigation ul.level_1 > li.cloudbtn > a:hover,
.nav a.cloudbtn:hover {
  background: #d9ecf9 !important;
  color: var(--blue-d) !important;
  text-decoration: none;
}

#mp-nav .mod_navigation a.cloudbtn.active,
#mp-nav .mod_navigation ul.level_1 > li.active.cloudbtn > a,
#mp-nav .mod_navigation ul.level_1 > li.active.cloudbtn > strong,
#mp-nav .mod_navigation li.active.cloudbtn > a,
#mp-nav .mod_navigation li.active.cloudbtn > strong,
.nav a.cloudbtn.active {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}

/* Dropdown menus */
.drop {
  position: relative;
}

.drop > button .car {
  font-size: 0.65rem;
  opacity: 0.6;
}

#mp-nav .mod_navigation ul.level_1 > li.submenu > a::after,
#mp-nav .mod_navigation ul.level_1 > li.submenu > strong::after {
  content: "▾";
  display: inline-block;
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 0.25em;
  transition: transform 0.16s;
}

#mp-nav .mod_navigation ul.level_1 > li.submenu.open > a::after,
#mp-nav .mod_navigation ul.level_1 > li.submenu.open > strong::after {
  transform: rotate(180deg);
}

.menu,
#mp-nav .mod_navigation ul.level_2,
#mp-nav .mod_navigation ul.level_3,
.nav-slot .mod_navigation ul.level_2,
.nav-slot .mod_navigation ul.level_3 {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.16s;
  z-index: 60;
  list-style: none;
  margin: 0;
}

#mp-nav .mod_navigation li.submenu:hover > ul.level_2,
#mp-nav .mod_navigation li.submenu:hover > ul.level_3,
#mp-nav .mod_navigation ul.level_2 li.submenu:hover > ul.level_3,
.nav-slot .mod_navigation li.submenu:hover > ul.level_2,
.nav-slot .mod_navigation li.submenu:hover > ul.level_3,
.drop:hover .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu a,
#mp-nav .mod_navigation ul.level_2 a,
#mp-nav .mod_navigation ul.level_3 a,
.nav-slot .mod_navigation ul.level_2 a,
.nav-slot .mod_navigation ul.level_3 a {
  display: block;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.menu a:hover,
#mp-nav .mod_navigation ul.level_2 a:hover,
#mp-nav .mod_navigation ul.level_3 a:hover {
  background: var(--blue-l);
  color: var(--blue-d);
  text-decoration: none;
}

.menu a small,
#mp-nav .mod_navigation .nav-desc {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}

#mp-nav .mod_navigation ul.level_2 > li > strong,
#mp-nav .mod_navigation ul.level_3 > li > strong {
  display: block;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  color: var(--blue-d);
  font-size: 0.92rem;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex: 0 0 auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.2s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */

.hero,
.mod_article.hero,
.ce_mp_page_hero.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.mod_article.hero {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  align-content: start;
  column-gap: 12px;
  row-gap: 0;
  padding: 96px max(22px, calc((100% - var(--maxw)) / 2)) 86px;
  background:
    linear-gradient(105deg, rgba(14, 58, 95, 0.95) 0%, rgba(14, 58, 95, 0.88) 42%, rgba(19, 106, 161, 0.72) 100%),
    url("/files/martini-park/images/cover.jpg") center 38% / cover no-repeat;
}

.hero .ph {
  position: absolute;
  inset: 0;
}

.heroimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}

.hero .ov {
  position: relative;
  z-index: 2;
  padding: 96px 0 86px;
  max-width: 680px;
}

/* Hero typography — must stay white */
.mod_article.hero .content-headline,
.mod_article.hero .content-headline h1,
.mod_article.hero .content-headline h2,
.mod_article.hero .content-headline h3,
.mod_article.hero h1,
.mod_article.hero h2,
.mod_article.hero h3,
.hero h1,
.hero h2,
.hero h3,
.hero .ce_headline h1 {
  color: #fff;
}

.mod_article.hero .content-headline.eyebrow,
.mod_article.hero .eyebrow,
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.3em 0.9em;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #fff;
}

.mod_article.hero > h1.content-headline,
.mod_article.hero > .content-headline:not(.eyebrow):not(.kicker),
.hero h1 {
  font-size: 2.7rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 680px;
}

.mod_article.hero > .content-text,
.hero .content-text,
.hero p {
  font-size: 1.18rem;
  color: #eaf4fc;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.mod_article.hero > .content-text .rte p,
.mod_article.hero .content-text p,
.hero p {
  color: #eaf4fc;
}

.mod_article.hero > .content-headline,
.mod_article.hero > .content-text,
.mod_article.hero > .eyebrow {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 680px;
}

.mod_article.hero > .ce_mp_linkbox {
  width: auto;
  margin-top: 26px;
  max-width: 320px;
}

.mod_article.hero > .ce_mp_linkbox .linkbox {
  min-width: 265px;
}

.hero .cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ==========================================================================
   Linkbox
   ========================================================================== */

.linkbox,
.ce_mp_linkbox .linkbox {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: 12px;
  min-width: 265px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: 0.15s;
  text-decoration: none;
}

.linkbox:hover {
  background: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--navy);
}

.linkbox .lb-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-l);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.linkbox .lb-ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-d);
}

.linkbox b {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
}

.linkbox small {
  color: var(--muted);
  font-size: 0.82rem;
}

.linkbox > svg,
.linkbox .lb-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--blue);
}

.linkbox .lb-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
}

.lb-arrow {
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
}

/* ==========================================================================
   Placeholders & image backgrounds
   ========================================================================== */

.imgbg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.ph {
  background: repeating-linear-gradient(
    45deg,
    #dce7f0 0,
    #dce7f0 14px,
    #d3e1ee 14px,
    #d3e1ee 28px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c93a8;
  position: relative;
}

.ph.blue {
  background: linear-gradient(125deg, var(--navy) 0%, var(--blue-d) 55%, var(--sky) 100%);
}

.ph .tag {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.85);
  color: #5b7184;
  padding: 0.4em 0.8em;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  box-shadow: var(--shadow-sm);
}

.ph.blue .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ph .ico {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.planimg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
  cursor: zoom-in;
}

.gallery .plan {
  background: #fff;
  align-items: stretch;
}

/* ==========================================================================
   Article sections
   Contao always adds class "block" — only use grids when explicitly needed.
   ========================================================================== */

/* Default inner-page articles: single column, content width */
.mod_article:not(.hero) {
  padding: 0 max(22px, calc((100% - var(--maxw)) / 2)) 54px;
}

/* Homepage section bands (explicit layout classes) */
.mod_article.split-block,
.mod_article.feat-block,
.mod_article.grid2 {
  padding: 64px max(22px, calc((100% - var(--maxw)) / 2)) 48px;
  display: grid;
  gap: 22px 26px;
  align-items: start;
}

.mod_article.split-block {
  grid-template-columns: 1fr 1fr;
}

.mod_article.feat-block {
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
}

.mod_article.grid2 {
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

/* Full-width intro elements inside homepage grids */
.mod_article.split-block > .content-headline,
.mod_article.split-block > .content-text,
.mod_article.split-block > .ce_text,
.mod_article.feat-block > .content-headline,
.mod_article.feat-block > .content-text,
.mod_article.feat-block > .ce_text {
  grid-column: 1 / -1;
}

.mod_article.split-block > .content-headline.center,
.mod_article.split-block > .content-text.center,
.mod_article.feat-block > .content-headline.center,
.mod_article.feat-block > .content-text.center,
.mod_article.split-block > .content-text {
  text-align: center;
}

.mod_article.split-block > .content-text .rte p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.12rem;
  color: var(--muted);
}

/* Vermietung (home): prose left, contact right */
.mod_article.grid2 > .ce_mp_kontakt {
  grid-column: 2;
  align-self: start;
}

.mod_article.grid2 > :not(.ce_mp_kontakt) {
  grid-column: 1;
}

/* Equal-height feature cards on homepage */
.mod_article.feat-block {
  align-items: stretch;
}

.mod_article.feat-block > .ce_mp_feature.fcard {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mod_article.feat-block > .ce_mp_feature.fcard p {
  flex: 1;
  margin-bottom: 0;
}

/* Structured inner-page body (matches prototype .content > .wrap) */
.mod_article:has(.mp-page-body) {
  display: block !important;
  padding: 0 0 54px;
  grid-template-columns: none;
}

.mod_article:has(.mp-page-body) > .ce_mp_page_hero.pagehead {
  margin-bottom: 0;
}

.mod_article:has(.mp-page-body) > .ce_mp_kontakt,
.mod_article:has(.mp-page-body) > .content-headline,
.mod_article:has(.mp-page-body) > .content-text,
.mod_article:has(.mp-page-body) > .content-hyperlink {
  grid-column: auto;
  grid-row: auto;
  position: static;
}
.ce_text .mp-page-body,
.content-text .mp-page-body,
.mp-page-body {
  padding: 54px max(22px, calc((100% - var(--maxw)) / 2)) 0;
  max-width: none;
}

.mp-page-body .grid2,
.mp-page-body .grid2.kontakt-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.mp-page-body .mp-grid-spaced {
  margin-top: 34px;
}

.mp-page-body .sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mp-page-body .mp-cover-hero {
  height: 380px;
  border-radius: 14px;
}

.mp-page-body .mp-feat-spaced {
  margin-top: 30px;
}

.mp-page-body .feat {
  align-items: stretch;
}

.mp-page-body .feat .fcard {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.mp-page-body .cloud-hero .steps {
  text-align: left;
  margin-top: 34px;
}

.mp-page-body .cloud-hero .notice {
  text-align: left;
}

.mp-page-body .kontakt-general.align-self-start {
  align-self: start;
}

.contact-card .row-ico .mp-i {
  width: 17px;
  height: 17px;
  background-color: var(--sky);
}

.mp-i-map { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.mp-i-phone { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.6A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

.mod_mp_wohnung_reader .reader-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 64px;
}

.mod_mp_wohnung_reader .gallery {
  margin-top: 0;
}

.mod_mp_wohnung_reader .gallery .ph.imgbg {
  background-size: cover;
  background-position: center;
}

.mod_mp_wohnung_reader .lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.2em;
}

.mod_mp_wohnung_reader .detail-grid h3 {
  margin-top: 1.6em;
}

.mod_mp_wohnung_reader .sticky-cta {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.mod_mp_wohnung_reader .mp-btn-full {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.mod_mp_wohnung_reader .price-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 4px 0 16px;
}

.mod_mp_wohnung_reader .price-sm {
  font-size: 1.25rem;
}

.mod_mp_wohnung_reader .eqlist {
  padding-left: 20px;
}

#mp-nav .mod_navigation ul.level_2 a,
#mp-nav .mod_navigation ul.level_2 strong {
  display: block;
  padding: 0.6em 0.8em;
  border-radius: 8px;
}

.mp-page-body .feat .fcard p {
  flex: 1;
  margin-bottom: 0;
}

.mp-page-body .mp-grid-spaced-lg {
  margin-top: 46px;
}

.mp-page-body .mp-btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mp-page-body .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mp-page-body .btn-row.center-btns {
  justify-content: center;
  margin-top: 24px;
}

.mp-page-body .mp-form-wrap {
  margin-top: 18px;
}

.mp-page-body .mod_mp_gewerbe_liste .units,
.mp-page-body .mod_mp_parkplatz_liste .units {
  grid-template-columns: 1fr 1fr;
}

.mp-page-body .prose h2 {
  margin-top: 0;
}

.mp-page-body .prose ul {
  padding-left: 20px;
}

.mp-page-body .prose li {
  margin: 0.3em 0;
  color: #3a4b58;
}

.mp-page-body .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mp-page-body .kontakt-section.center {
  text-align: center;
  margin-bottom: 34px;
}

.mp-page-body .kontakt-section-spaced {
  margin-top: 48px;
}

.mp-page-body .vtag-wrap {
  margin-bottom: 10px;
}

.mp-page-body .kontakt-general p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0.2em 0 14px;
}

.mp-page-body .dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mp-page-body .dl:last-child {
  border-bottom: 0;
}

.mp-page-body .dl-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-l);
  color: var(--blue-d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.mp-page-body .dl small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.mp-hero-img .tag {
  position: relative;
  z-index: 2;
}

/* Inner pages with page hero + optional contact sidebar */
.mod_article:has(> .ce_mp_page_hero) {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 28px;
  padding-top: 0;
  padding-bottom: 64px;
  align-items: start;
}

.mod_article:has(> .ce_mp_page_hero):not(:has(> .ce_mp_kontakt)) {
  grid-template-columns: 1fr;
}

.mod_article > .ce_mp_page_hero.pagehead {
  grid-column: 1 / -1;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 12px;
}

.mod_article:has(> .ce_mp_page_hero) > .ce_mp_kontakt {
  grid-column: 2;
  grid-row: 2 / span 30;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.mod_article:has(> .ce_mp_page_hero) > :not(.ce_mp_page_hero):not(.ce_mp_kontakt) {
  grid-column: 1;
}

/* Verwaltung: 4 feature tiles in 2×2 grid */
.mod_article.page-tiles > .ce_mp_feature:nth-child(2) { grid-column: 1; grid-row: 2; }
.mod_article.page-tiles > .ce_mp_feature:nth-child(3) { grid-column: 2; grid-row: 2; }
.mod_article.page-tiles > .ce_mp_feature:nth-child(4) { grid-column: 1; grid-row: 3; }
.mod_article.page-tiles > .ce_mp_feature:nth-child(5) { grid-column: 2; grid-row: 3; }

.mod_article.page-tiles > .ce_mp_feature .fi {
  width: 44px;
  height: 44px;
}

.mod_article.page-tiles > .ce_mp_feature h3 {
  font-size: 1.08rem;
}

.mod_article.page-tiles > .ce_mp_feature p {
  font-size: 0.92rem;
}

/* Kontakt page: contact cards in 2 columns */
.mod_article.kontakt-page {
  grid-template-columns: 1fr 1fr;
}

.mod_article.kontakt-page > .ce_mp_kontakt {
  grid-column: auto;
  grid-row: auto;
  position: static;
}

.mod_article.kontakt-page > .content-headline.center {
  grid-column: 1 / -1;
}

.mod_article.kontakt-page > .content-text {
  grid-column: 1 / -1;
}

.content {
  padding: 54px max(22px, calc((100% - var(--maxw)) / 2));
}

/* Typography helpers */
.lead,
.content-text.lead .rte p,
.content-text .rte .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px;
}

.kicker,
.eyebrow:not(.mod_article.hero .eyebrow) {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.center {
  text-align: center;
}

.center .lead,
.center .content-text {
  margin-left: auto;
  margin-right: auto;
}

/* Prototype layout helpers (inner pages) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 40px;
}

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   Big cards (Areal)
   ========================================================================== */

.bigcard,
.ce_mp_areal_card.bigcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.18s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bigcard:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.ce_mp_areal_card .bigcard-link,
.bigcard-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.ce_mp_areal_card .bigcard-link:hover,
.bigcard-link:hover {
  text-decoration: none;
  color: inherit;
}

.bigcard .img {
  height: 210px;
}

.bigcard .body {
  padding: 24px;
}

.bigcard h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.bigcard .card-lead {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.bigcard ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

.bigcard li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.bigcard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.bigcard .more {
  margin-top: 18px;
  font-weight: 600;
  color: var(--blue-d);
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */

.fcard,
.ce_mp_feature.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.fcard .fi,
.ce_mp_feature .fi {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--blue-l);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.fcard .fi svg,
.fcard .fi .mp-i,
.ce_mp_feature .fi svg,
.ce_mp_feature .fi .mp-i {
  width: 24px;
  height: 24px;
}

.fcard h3 {
  font-size: 1.1rem;
}

.fcard p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ==========================================================================
   Page head (inner pages)
   ========================================================================== */

.pagehead,
.ce_mp_page_hero.pagehead {
  background: linear-gradient(120deg, var(--navy), var(--blue-d));
  color: #fff;
  padding: 46px max(22px, calc((100% - var(--maxw)) / 2)) 40px;
  box-sizing: border-box;
}

.pagehead .wrap,
.ce_mp_page_hero.pagehead .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}

.pagehead .crumbs {
  font-size: 0.82rem;
  color: #bcd8ec;
  margin-bottom: 12px;
}

.pagehead .crumbs a {
  color: #bcd8ec;
}

.pagehead h1,
.pagehead .content-headline,
.pagehead .ce_headline h1 {
  color: #fff;
  margin: 0;
}

.pagehead p,
.pagehead .content-text {
  color: #dcecf7;
  margin: 0.5em 0 0;
  max-width: 680px;
}

.pagehead .content-text .rte p {
  color: #dcecf7;
}

/* ==========================================================================
   Prose / content text
   ========================================================================== */

.prose p,
.ce_text.prose p,
.content-text.prose .rte p,
.content-text .rte p {
  color: #3a4b58;
}

.prose h2,
.ce_text.prose h2 {
  margin-top: 1.4em;
}

.prose ul,
.ce_text.prose ul,
.content-text .rte ul {
  padding-left: 20px;
}

.prose li,
.ce_text.prose li,
.content-text .rte li {
  margin: 0.3em 0;
  color: #3a4b58;
}

/* ==========================================================================
   Generic cards & contact
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-card,
.ce_mp_kontakt.contact-card {
  background: var(--navy);
  color: #dff0fb;
  border: 0;
}

.contact-card h3 {
  color: #fff;
}

.contact-card .row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.94rem;
  align-items: flex-start;
}

.contact-card .row svg,
.contact-card .row-ico svg {
  width: 17px;
  height: 17px;
  stroke: var(--sky);
  flex: 0 0 auto;
  margin-top: 3px;
}

.contact-card a {
  color: #fff;
  text-decoration: underline;
}

.contact-card .cta-wrap {
  margin-top: 16px;
}

.contact-card .cta-wrap .btn {
  width: 100%;
  justify-content: center;
}

.staub-mark {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.staub-mark span {
  color: var(--sky);
}

.staub-sub {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9cc4e0;
  margin-bottom: 14px;
}

.staub-logo {
  display: block;
  height: 58px;
  width: auto;
  margin: 2px 0 16px;
}

.foot-staub {
  display: block;
  height: 46px;
  width: auto;
  margin-bottom: 10px;
}

/* ==========================================================================
   CSS icons (Contao strips inline SVG from text elements)
   ========================================================================== */

.mp-i {
  display: inline-block;
  background-color: var(--blue-d);
  -webkit-mask: var(--mp-icon) center / contain no-repeat;
  mask: var(--mp-icon) center / contain no-repeat;
}

.fi .mp-i,
.tile .fi .mp-i,
.cloud-ico .mp-i {
  background-color: var(--blue-d);
}

.mp-i-home { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 11l9-8 9 8M5 9v11h14V9'/%3E%3C/svg%3E"); }
.mp-i-building { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='1'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E"); }
.mp-i-tool { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4l-6 6a2 2 0 1 0 3 0l6-6a4 4 0 0 0 5.4-5.4l-2.6 2.6-2-2z'/%3E%3C/svg%3E"); }
.mp-i-info { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.mp-i-mail { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.mp-i-train { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='6' y='3' width='12' height='16' rx='2'/%3E%3Cpath d='M6 11h12M10 19l-2 2m6-2 2 2M9 7h.01M15 7h.01'/%3E%3C/svg%3E"); }
.mp-i-sun { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.mp-i-cloud { --mp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M18 10a4 4 0 0 0-7.7-1.3A4.5 4.5 0 1 0 7 18h11a3.5 3.5 0 0 0 0-7z'/%3E%3C/svg%3E"); }

/* ==========================================================================
   Tiles
   ========================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.tile .fi {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-l);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tile .fi svg,
.tile .fi .mp-i {
  width: 23px;
  height: 23px;
}

.tile-link {
  cursor: pointer;
  transition: 0.18s;
}

.tile-link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tile-link a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tile-link a:hover {
  color: inherit;
  text-decoration: none;
}

.tile h3 {
  font-size: 1.08rem;
}

.tile p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   Unit listings
   ========================================================================== */

.mod_mp_wohnung_liste .filters,
.mod_mp_gewerbe_liste .filters,
.mod_mp_parkplatz_liste .filters,
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0.45em 1em;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.14s;
  font-family: inherit;
}

.chip:hover {
  border-color: var(--blue);
}

.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* When listing sits beside a contact card, use 2 columns like prototype */
.mod_article:has(> .ce_mp_kontakt) .units,
.mod_article:has(> .ce_mp_kontakt) .mod_mp_wohnung_liste .units,
.mod_article:has(> .ce_mp_kontakt) .mod_mp_gewerbe_liste .units,
.mod_article:has(> .ce_mp_kontakt) .mod_mp_parkplatz_liste .units {
  grid-template-columns: 1fr 1fr;
}

.units,
.mod_mp_wohnung_liste .units,
.mod_mp_gewerbe_liste .units,
.mod_mp_parkplatz_liste .units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.unit,
.mod_mp_wohnung_liste .unit,
.mod_mp_gewerbe_liste .unit,
.mod_mp_parkplatz_liste .unit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.16s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.unit:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.unit .img {
  height: 160px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.unit .img .tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4em 0.8em;
  border-radius: 30px;
}

.mod_mp_gewerbe_liste .unit .img {
  height: 180px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: 30px;
  letter-spacing: 0.03em;
}

.badge.frei,
.badge[data-status="frei"] {
  background: var(--okbg);
  color: var(--ok);
}

.badge.verm,
.badge.vermietet,
.badge[data-status="vermietet"] {
  background: var(--graybg);
  color: var(--gray);
}

.unit .ubody {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.unit h3 {
  font-size: 1.06rem;
  margin-bottom: 2px;
}

.unit .addr {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.unit .specs {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.unit .specs div {
  font-size: 0.82rem;
  color: var(--muted);
}

.unit .specs b {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.mod_mp_wohnung_liste .module-headline,
.mod_mp_gewerbe_liste .module-headline,
.mod_mp_parkplatz_liste .module-headline {
  margin-bottom: 1rem;
}

.mod_mp_wohnung_liste .unit-link,
.mod_mp_gewerbe_liste .unit-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod_mp_wohnung_liste .unit-link:hover,
.mod_mp_gewerbe_liste .unit-link:hover {
  text-decoration: none;
}

.mod_mp_parkplatz_liste .warteliste-card {
  background: var(--blue-l);
  border: 1px solid #cbe3f4;
  border-radius: var(--radius);
  padding: 24px;
}

.mod_mp_parkplatz_liste .warteliste-card p {
  margin: 0 0 14px;
  color: #2a5a7a;
}

/* ==========================================================================
   Unit detail / gallery
   ========================================================================== */

.mod_mp_wohnung_reader .gallery,
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 380px;
}

.mod_mp_wohnung_reader .gallery .g1,
.gallery .g1 {
  grid-row: 1 / 3;
}

.mod_mp_wohnung_reader .gallery .ph,
.gallery .ph {
  border-radius: 12px;
  overflow: hidden;
}

.mod_mp_wohnung_reader {
  padding: 0 max(22px, calc((100% - var(--maxw)) / 2)) 64px;
}

.mod_mp_wohnung_reader .reader-head {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 28px;
  border-radius: 0;
}

.mod_mp_wohnung_reader .reader-head .back {
  color: #bcd8ec;
  margin-bottom: 12px;
}

.mod_mp_wohnung_reader .reader-head .back:hover {
  color: #fff;
}

.mod_mp_wohnung_reader .reader-head .crumbs {
  font-size: 0.82rem;
  color: #bcd8ec;
  margin-bottom: 12px;
}

.mod_mp_wohnung_reader .reader-head .crumbs a {
  color: #bcd8ec;
}

.mod_mp_wohnung_reader .reader-head h1 {
  color: #fff;
}

.mod_mp_wohnung_reader .reader-head p {
  color: #dcecf7;
}

.mod_mp_wohnung_reader .reader-head .badge {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.detail-grid,
.mod_mp_wohnung_reader .detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  margin-top: 34px;
  align-items: start;
}

.spectable {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
}

.spectable td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.spectable td:first-child {
  color: var(--muted);
}

.spectable td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
}

.eqlist {
  columns: 2;
  gap: 24px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.eqlist li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.9rem;
  color: #3a4b58;
  break-inside: avoid;
}

.eqlist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.sticky-cta {
  position: sticky;
  top: calc(var(--header-h) + 4px);
}

.price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
}

.price small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.mod_mp_wohnung_reader .back,
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #cfe3f1;
  font-size: 0.86rem;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
}

.mod_mp_wohnung_reader .back:hover,
.back:hover {
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Downloads
   ========================================================================== */

.dl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 10px;
  background: #fff;
  transition: 0.14s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dl:hover {
  border-color: var(--blue);
  background: var(--blue-l);
  text-decoration: none;
}

.dl .fi {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fde8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 800;
  color: #c0392b;
}

.dl b {
  font-size: 0.92rem;
  color: var(--navy);
  display: block;
}

.dl small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.step {
  position: relative;
  padding-left: 0;
}

.step .n {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Cloud page
   ========================================================================== */

.cloud-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cloud-ico {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--blue-l);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.cloud-ico svg,
.cloud-ico .mp-i {
  width: 42px;
  height: 42px;
}

/* Cloud portal */
.mp-cloud-portal {
  max-width: 1100px;
  margin: 0 auto;
}

.mp-cloud-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.mp-cloud-toolbar h2 {
  margin: 6px 0 8px;
}

.mp-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-cloud-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.mp-cloud-folders ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.mp-cloud-folders li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.mp-cloud-folders li.active a,
.mp-cloud-folders li a:hover {
  background: var(--blue-l);
}

.mp-cloud-files-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mp-cloud-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.mp-cloud-table-wrap {
  overflow-x: auto;
}

.mp-cloud-table {
  width: 100%;
  border-collapse: collapse;
}

.mp-cloud-table th,
.mp-cloud-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mp-cloud-table th:last-child,
.mp-cloud-table td:last-child {
  text-align: right;
}

.mp-cloud-dl .btn.small {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.mp-cloud-empty {
  color: var(--muted);
}

.mp-cloud-request {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.mod_login,
.ce_form.mp-cloud-request,
.ce_form.mp-cloud-anliegen {
  max-width: 420px;
  margin: 0 auto;
}

.ce_form.mp-cloud-anliegen {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.mod_login form,
.ce_form.mp-cloud-request form,
.ce_form.mp-cloud-anliegen form {
  display: grid;
  gap: 14px;
}

.btn .btn-ico {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
}

.cloud-hero .btn-row.center-btns {
  flex-wrap: wrap;
  justify-content: center;
}

.mp-member-logged-in .mp-cloud-login-btn,
.mp-member-logged-in #mp-nav a[href="/login"],
.mp-member-logged-in #mp-nav a[href$="/login"] {
  display: none;
}

@media (max-width: 820px) {
  .mp-cloud-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer,
footer.site,
.mod_mp_footer {
  background: var(--navy);
  color: #a9c6db;
  padding: 54px 0 26px;
  margin-top: 20px;
}

#footer .wrap,
footer.site .wrap,
.mod_mp_footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

#footer .cols,
footer.site .cols,
.mod_mp_footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

#footer h4,
footer.site h4,
.mod_mp_footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#footer a,
footer.site a,
.mod_mp_footer a {
  color: #a9c6db;
  display: block;
  padding: 4px 0;
  font-size: 0.92rem;
}

#footer a:hover,
footer.site a:hover,
.mod_mp_footer a:hover {
  color: #fff;
  text-decoration: none;
}

#footer .small,
footer.site .small,
.mod_mp_footer .small {
  font-size: 0.88rem;
  line-height: 1.7;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.82rem;
  color: #7fa3bf;
  align-items: center;
}

.foot-bottom a {
  display: inline;
}

.foot-bottom > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mod_mp_footer .foot-logo,
.foot-logo {
  background: #fff;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.ce_form,
.mod_form {
  margin: 1rem 0;
}

.ce_form .formbody,
.mod_form .formbody {
  max-width: 100%;
}

.ce_form .widget,
.mod_form .widget {
  margin-bottom: 14px;
}

.ce_form label,
.mod_form label,
.widget label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.ce_form input[type="text"],
.ce_form input[type="email"],
.ce_form input[type="tel"],
.ce_form input[type="url"],
.ce_form input[type="number"],
.ce_form input[type="date"],
.ce_form select,
.ce_form textarea,
.mod_form input[type="text"],
.mod_form input[type="email"],
.mod_form input[type="tel"],
.mod_form input[type="url"],
.mod_form input[type="number"],
.mod_form input[type="date"],
.mod_form select,
.mod_form textarea,
.widget-text input,
.widget-textarea textarea,
.widget-select select {
  width: 100%;
  padding: 0.7em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.14s;
}

.ce_form input:focus,
.ce_form select:focus,
.ce_form textarea:focus,
.mod_form input:focus,
.mod_form select:focus,
.mod_form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 134, 200, 0.12);
}

.ce_form .widget-row,
.mod_form .widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ce_form .widget-submit,
.mod_form .widget-submit {
  margin-top: 8px;
}

.ce_form .error,
.mod_form .error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
}

.ce_form .checkbox,
.ce_form .radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ==========================================================================
   Notice / upload
   ========================================================================== */

.notice {
  background: var(--blue-l);
  border: 1px solid #cbe3f4;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: #2a5a7a;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
}

.notice svg,
.notice-ico .mp-i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.notice-ico {
  display: flex;
  flex: 0 0 auto;
}

.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 18px;
  border: 2px dashed #c7d7e4;
  border-radius: 10px;
  background: #f7fbfe;
  cursor: pointer;
  transition: 0.14s;
}

.upload:hover {
  border-color: var(--blue);
  background: var(--blue-l);
}

.vtag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3em 0.8em;
  border-radius: 30px;
  text-transform: uppercase;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

#mp-lightbox,
.mp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 24, 38, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

#mp-lightbox.open,
.mp-lightbox:not([hidden]) {
  display: flex;
}

#mp-lightbox img,
.mp-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#mp-lightbox .mp-lightbox-close,
.mp-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: #fff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  color: var(--navy);
}

.mp-lightbox[hidden] {
  display: none !important;
}

/* ==========================================================================
   Icon helpers (data-icon fallback)
   ========================================================================== */

.lb-ico,
.fi,
[data-icon] {
  position: relative;
}

.lb-ico svg,
.fi svg,
.row-ico svg {
  display: block;
}

/* ==========================================================================
   Responsive — tablet / mobile
   ========================================================================== */

@media (max-width: 900px) {
  .split,
  .feat,
  .grid2,
  .detail-grid,
  .tiles,
  .units,
  .mod_mp_wohnung_liste .units,
  .mod_mp_gewerbe_liste .units,
  .mod_mp_parkplatz_liste .units,
  .steps,
  #footer .cols,
  footer.site .cols,
  .mod_mp_footer .cols,
  .mod_article.split-block,
  .mod_article.feat-block,
  .mod_article.grid2,
  .mod_article:has(> .ce_mp_page_hero) {
    grid-template-columns: 1fr;
  }

  .mod_article.grid2 > .ce_mp_kontakt,
  .mod_article:has(> .ce_mp_page_hero) > .ce_mp_kontakt {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .mod_article.grid2 > :not(.ce_mp_kontakt),
  .mod_article:has(> .ce_mp_page_hero) > :not(.ce_mp_page_hero):not(.ce_mp_kontakt),
  .mod_article.page-tiles > .ce_mp_feature:nth-child(2),
  .mod_article.page-tiles > .ce_mp_feature:nth-child(3),
  .mod_article.page-tiles > .ce_mp_feature:nth-child(4),
  .mod_article.page-tiles > .ce_mp_feature:nth-child(5),
  .mod_article.kontakt-page > .ce_mp_kontakt {
    grid-column: 1;
  }

  .mod_article:has(> .ce_mp_kontakt) .units,
  .mod_article:has(> .ce_mp_kontakt) .mod_mp_wohnung_liste .units,
  .mod_article:has(> .ce_mp_kontakt) .mod_mp_gewerbe_liste .units,
  .mod_article:has(> .ce_mp_kontakt) .mod_mp_parkplatz_liste .units {
    grid-template-columns: 1fr;
  }

  .mod_mp_wohnung_reader .detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery,
  .mod_mp_wohnung_reader .gallery {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .gallery .g1,
  .mod_mp_wohnung_reader .gallery .g1 {
    grid-row: auto;
  }

  .gallery .ph,
  .mod_mp_wohnung_reader .gallery .ph {
    height: 150px;
  }

  .eqlist {
    columns: 1;
  }

  /* Mobile nav */
  .nav-slot,
  #mp-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow);
    z-index: 45;
  }

  .nav-slot.open,
  #mp-nav.open {
    display: flex;
  }

  #mp-nav .mod_navigation,
  .nav-slot .mod_navigation {
    width: 100%;
  }

  #mp-nav .mod_navigation nav,
  #mp-nav .mod_navigation ul.level_1,
  .nav-slot .mod_navigation nav,
  .nav-slot .mod_navigation ul.level_1,
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  #mp-nav .mod_navigation ul.level_1 > li > a,
  #mp-nav .mod_navigation ul.level_1 > li > strong,
  .nav a.top,
  .nav .drop > button {
    width: 100%;
    justify-content: space-between;
  }

  #mp-nav .mod_navigation a.cloudbtn,
  #mp-nav .mod_navigation li.cloudbtn > a,
  #mp-nav .mod_navigation li.cloudbtn > strong {
    margin-left: 0;
  }

  .menu,
  #mp-nav .mod_navigation ul.level_2,
  #mp-nav .mod_navigation ul.level_3,
  .nav-slot .mod_navigation ul.level_2,
  .nav-slot .mod_navigation ul.level_3 {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--blue-l);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 0;
    display: none;
    min-width: 0;
  }

  #mp-nav .mod_navigation li.submenu.open > ul.level_2,
  #mp-nav .mod_navigation li.submenu.open > ul.level_3,
  .nav-slot .mod_navigation li.submenu.open > ul.level_2,
  .nav-slot .mod_navigation li.submenu.open > ul.level_3,
  .drop.open .menu {
    display: block;
  }

  #mp-nav .mod_navigation li.submenu:hover > ul.level_2,
  #mp-nav .mod_navigation li.submenu:hover > ul.level_3,
  .nav-slot .mod_navigation li.submenu:hover > ul.level_2,
  .nav-slot .mod_navigation li.submenu:hover > ul.level_3 {
    display: none;
  }

  #mp-nav .mod_navigation li.submenu.open:hover > ul.level_2,
  #mp-nav .mod_navigation li.submenu.open:hover > ul.level_3,
  .nav-slot .mod_navigation li.submenu.open:hover > ul.level_2,
  .nav-slot .mod_navigation li.submenu.open:hover > ul.level_3 {
    display: block;
  }

  .burger {
    display: block;
  }

  .mod_article.hero {
    grid-template-columns: 1fr;
  }

  .mod_article.hero > .ce_mp_linkbox {
    max-width: none;
  }

  .mod_article.hero > .ce_mp_linkbox .linkbox {
    min-width: 0;
    width: 100%;
  }

  .logo-img,
  #header .logo img,
  #header img.logo,
  .logo img {
    height: 46px;
  }

  .mod_article.hero > h1.content-headline,
  .mod_article.hero > .content-headline:not(.eyebrow),
  .hero h1,
  .hero .ce_headline h1 {
    font-size: 2rem;
  }

  .mod_article.hero > .ce_mp_linkbox {
    max-width: none;
    width: 100%;
    margin-right: 0;
  }

  .sticky-cta {
    position: static;
  }

  .ce_form .widget-row,
  .mod_form .widget-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .units,
  .mod_mp_wohnung_liste .units,
  .mod_mp_gewerbe_liste .units,
  .feat,
  .mod_article.block:has(> .ce_mp_feature) {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.7rem;
  }
}
