:root {
  --gold: #FFC100;
  --gold-dark: #E0A800;
  --black: #111111;
  --grey-dark: #333333;
  --grey: #6b6b6b;
  --grey-light: #f5f4f0;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--grey-dark);
  line-height: 1.65;
  background: var(--white);
}
h1, h2, h3 { font-weight: 600; color: var(--black); line-height: 1.25; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--black); color: #ddd; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #ddd; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .sep { color: var(--gold); margin: 0 10px; }

/* ---------- Header / Nav ---------- */
header { background: var(--white); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 50; }
header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.logo img { height: 52px; display: block; }
nav ul { display: flex; list-style: none; gap: 28px; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--black); letter-spacing: 0.02em; padding-bottom: 4px; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { border-bottom-color: var(--gold); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; color: var(--white); text-align: left;
  background:
    linear-gradient(rgba(10,10,10,.38), rgba(10,10,10,.48)),
    url('../images/hero_hafen.jpg') center 60% / cover no-repeat;
  min-height: 560px; display: flex; align-items: center;
}
.hero .inner { max-width: 640px; padding: 60px 0; }
.hero h1 { color: var(--white); font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 19px; color: #eee; margin-bottom: 30px; }

/* ---------- Kleiner Seitenkopf (Unterseiten) ---------- */
.page-hero {
  background:
    linear-gradient(rgba(10,10,10,.55), rgba(10,10,10,.55)),
    url('../images/band_altstadt.jpg') center 40% / cover no-repeat;
  color: var(--white); padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); }
.page-hero .kicker { color: var(--gold); }
.page-hero p { color: #eee; font-size: 17.5px; max-width: 640px; margin-top: 8px; }

.btn {
  display: inline-block; background: var(--gold); color: var(--black);
  font-weight: 700; text-decoration: none; padding: 14px 30px; font-size: 16px;
  border: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 12px; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

section { padding: 80px 0; }
.kicker { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; margin-bottom: 10px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }

/* ---------- Willkommen ---------- */
.welcome .wrap { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.portrait { aspect-ratio: 4/5; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 3px solid var(--gold); z-index: -1; }
.welcome blockquote { border-left: 4px solid var(--gold); padding-left: 18px; margin: 22px 0; font-size: 17px; font-style: italic; color: var(--black); }

/* ---------- Team ---------- */
.team { background: var(--grey-light); }
.team .wrap { display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: center; }
.team figure { margin: 0; position: relative; }
.team img { width: 100%; display: block; box-shadow: 0 3px 16px rgba(0,0,0,.12); }
.team figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--gold); z-index: -1; }
@media (max-width: 900px) { .team .wrap { grid-template-columns: 1fr; } }

/* ---------- Leistungen ---------- */
.services { background: var(--grey-light); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.card { background: var(--white); border-top: 4px solid var(--gold); padding: 30px 26px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--grey); margin-bottom: 16px; }
.card a.more { color: var(--black); font-weight: 700; text-decoration: none; font-size: 15px; }
.card a.more::after { content: " →"; color: var(--gold-dark); }

/* ---------- Bildband ---------- */
.band {
  background:
    linear-gradient(90deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.15) 100%),
    url('../images/band_altstadt.jpg') center 65% / cover no-repeat;
  min-height: 340px; display: flex; align-items: center; color: var(--white);
}
.band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); }
.band p { color: #eee; font-size: 17px; max-width: 560px; }
.band .kicker { color: var(--gold); }

/* ---------- Immobilien ---------- */
.estates .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.estate { border: 1px solid #e7e4dc; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.estate .img { aspect-ratio: 3/2; background: repeating-linear-gradient(45deg, #ece9e1 0 22px, #f5f3ec 22px 44px); display: flex; align-items: center; justify-content: center; color: var(--grey); font-size: 13.5px; position: relative; }
.estate .tag { position: absolute; top: 12px; left: 0; background: var(--gold); color: var(--black); font-size: 12.5px; font-weight: 700; padding: 5px 12px; text-transform: uppercase; letter-spacing: .05em; }
.estate .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.estate h3 { font-size: 17.5px; }
.estate .loc { color: var(--grey); font-size: 14.5px; }
.facts { display: flex; gap: 18px; border-top: 1px solid #eee9de; margin-top: auto; padding-top: 14px; font-size: 14.5px; color: var(--grey-dark); }
.facts b { display: block; color: var(--black); font-size: 16px; }
.estates .all { text-align: center; margin-top: 40px; }

/* ---------- Suchleiste (Immobilien-Seite) ---------- */
.filter-bar { background: var(--black); padding: 26px 0; }
.filter-bar .wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input {
  padding: 12px 14px; border: none; font-size: 15px; min-width: 160px;
  background: var(--white); color: var(--grey-dark);
}
.filter-bar .btn { padding: 12px 26px; }

/* ---------- Prozess-Liste (Leistungen) ---------- */
.steps { counter-reset: step; list-style: none; max-width: 780px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; background: var(--gold); color: var(--black);
  font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 4px; width: 2px; background: #eadfbf; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 17.5px; margin-bottom: 4px; }
.steps p { font-size: 15.5px; color: var(--grey); }

/* ---------- Wertermittlung: Objekttyp-Auswahl ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.type {
  border: 2px solid #e7e4dc; background: var(--white); text-align: center; padding: 34px 20px 28px;
  text-decoration: none; transition: border-color .15s, transform .15s; display: block;
}
.type:hover { border-color: var(--gold); transform: translateY(-3px); }
.type .icon { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.type h3 { font-size: 17px; }
.type p { font-size: 14px; color: var(--grey); margin-top: 6px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin-bottom: 14px; }
.contact-info strong { color: var(--black); }
form.mock label { display: block; font-weight: 600; font-size: 14.5px; color: var(--black); margin: 16px 0 6px; }
form.mock input, form.mock textarea, form.mock select {
  width: 100%; padding: 12px 14px; border: 1px solid #d9d4c8; font-size: 15px; font-family: inherit; background: var(--white);
}
form.mock textarea { min-height: 130px; resize: vertical; }
form.mock .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--grey); }
form.mock .consent input { width: auto; margin-top: 3px; }
form.mock .btn { margin-top: 20px; }

/* ---------- Rechtstexte ---------- */
.legal-text { max-width: 820px; }
.legal-text h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-text h3 { font-size: 17.5px; margin: 22px 0 6px; }
.legal-text p, .legal-text li { font-size: 15.5px; }
.legal-text ul { padding-left: 22px; }

/* ---------- FAQ ---------- */
.faq { background: var(--black); color: #ddd; }
.faq h2, .faq .kicker { color: var(--white); }
.faq .kicker { color: var(--gold); }
.faq details { border-bottom: 1px solid #2e2e2e; padding: 16px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-top: 10px; max-width: 700px; }

/* ---------- Kontakt-Band ---------- */
.cta { background: var(--gold); text-align: center; padding: 56px 0; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta p { margin-bottom: 24px; color: #4a3d00; }
.cta .btn { background: var(--black); color: var(--gold); }
.cta .btn:hover { background: #2a2a2a; }

/* ---------- Footer ---------- */
footer { background: #181818; color: #bbb; font-size: 14.5px; padding: 56px 0 30px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
footer h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
footer a { color: #bbb; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer ul { list-style: none; } footer li { margin-bottom: 8px; }
.legal { border-top: 1px solid #2c2c2c; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .welcome .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
}

/* ============================================================
   Joomla-spezifische Anpassungen (Template fairimmo)
   ============================================================ */

/* Navigation aus Joomla-Menümodul (mod_menu, style none) */
nav ul.mod-menu { display: flex; list-style: none; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; }
nav ul.mod-menu li { margin: 0; }
nav ul.mod-menu a,
nav ul.mod-menu > li > span {
  text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--black);
  letter-spacing: 0.02em; padding-bottom: 4px; border-bottom: 2px solid transparent; display: inline-block;
}
nav ul.mod-menu a:hover,
nav ul.mod-menu .current > a,
nav ul.mod-menu .active > a { border-bottom-color: var(--gold); }

/* Unterseiten: Inhaltsbereich (Joomla-Komponente) */
.component-wrap { padding: 0 0 80px; }
.component-wrap .wrap.has-side { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.component-main { min-width: 0; }
.component-side { }

/* Joomla-Artikel-Grundstyling */
.component-main { padding-top: 40px; }
.item-page > h1, .blog h1, .com-content-article__title { font-size: clamp(26px,3.2vw,36px); margin-bottom: 18px; }
.item-page h2 { font-size: 22px; margin: 28px 0 10px; }
.item-page h3 { font-size: 18px; margin: 20px 0 8px; }
.item-page p, .item-page li { font-size: 16px; }
.item-page ul, .item-page ol { padding-left: 22px; margin: 10px 0; }
.item-page img { max-width: 100%; height: auto; }

/* System-Meldungen */
#system-message-container { max-width: 1200px; margin: 0 auto; padding: 12px 24px 0; }
.alert { padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--grey-light); margin-bottom: 12px; }

@media (max-width: 860px) {
  .component-wrap .wrap.has-side { grid-template-columns: 1fr; }
}

/* Startseite: Artikel-Inhalt volle Breite (Hero/Sektionen randlos) */
#content .item-page,
#content .com-content-article,
#content article { max-width: none; margin: 0; padding: 0; }
.is-home .page-header, .is-home .item-page > h1 { display: none; }
.is-home .component-main { padding-top: 0; }

/* Joomla-Artikel-Metadaten (Written by / Hits / Category) global ausblenden */
.article-info, dl.article-info, .com-content-article__info,
.page-header .createdby, .article-info__term { display: none !important; }
/* Auf der Startseite auch den Artikel-Titel ausblenden (Hero übernimmt) */
/* Joomla-Seitentitel global ausblenden (Seiten bringen eigene Überschrift mit) */
.page-header, .com-content-article__title { display: none; }
/* Hero-Überschrift immer sichtbar */
.hero h1 { display: block !important; }

/* Joomla "Vorheriger/Nächster Artikel"-Navigation ausblenden (Blog-Feature, hier unerwünscht) */
.pager.pagenav, ul.pagenav, .com-content-article__navigation,
.article-navigation, nav.pagination { display: none !important; }

/* ============================================================
   Kontaktseite (Joomla com_contact) ans Design anpassen
   ============================================================ */
.com-contact, #contact, .contact {
  max-width: 900px; margin: 0 auto; padding: 64px 24px 80px;
}
/* Überschriften */
.com-contact h1, .com-contact h2, .contact > h2, .contact-header h2 {
  font-size: clamp(26px,3.2vw,34px); margin-bottom: 8px;
}
.com-contact h3, .contact-form h3 {
  font-size: 22px; margin: 40px 0 6px; padding-top: 30px; border-top: 1px solid #e7e4dc;
}
/* Adressblock */
.com-contact dl.contact-address, .contact-address { margin: 0 0 10px; }
.com-contact dt, .contact-address dt {
  color: var(--gold-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 13px; margin-top: 12px;
}
.com-contact dd, .contact-address dd { margin: 2px 0 0; font-size: 16px; color: var(--grey-dark); }
.com-contact address { font-style: normal; }
/* "Benötigtes Feld"-Hinweis */
.com-contact .required, .com-contact .form-text, span.star { color: var(--gold-dark); }

/* Formularfelder */
.com-contact input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.com-contact textarea, .com-contact select,
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #d9d4c8;
  font-size: 15px; font-family: inherit; background: var(--white); box-sizing: border-box;
}
.com-contact textarea, .contact-form textarea { min-height: 160px; resize: vertical; }
.com-contact label, .contact-form label {
  display: block; font-weight: 600; font-size: 14.5px; color: var(--black); margin: 16px 0 6px;
}
.com-contact .control-group, .com-contact .controls { margin-bottom: 4px; }
.com-contact fieldset { border: 0; padding: 0; margin: 0; }

/* Absende-Button (unser btn-Stil) */
.com-contact button, .com-contact .btn, .contact-form button {
  display: inline-block; background: var(--gold); color: var(--black);
  font-weight: 700; text-decoration: none; padding: 14px 30px; font-size: 16px;
  border: none; cursor: pointer; margin-top: 22px; transition: background .15s;
}
.com-contact button:hover, .com-contact .btn:hover { background: var(--gold-dark); }

/* Erfolgs-/Hinweismeldung */
.com-contact .alert, #system-message .alert-success {
  border-left: 4px solid var(--gold); background: var(--grey-light); padding: 12px 16px;
}

/* ============================================================
   BSDimmo (Immobilien) — Gold/Schwarz-Anpassung
   ============================================================ */
/* Preisbox: blau -> gold, schwarzer Text */
.cat-price { background: var(--gold) !important; color: var(--black) !important; font-weight: 700; border-radius: 0 !important; }
.cat-price .name, .price .name { color: var(--black) !important; font-weight: 700; }
.price .value { color: var(--black) !important; }
/* Bildmaske + MIETEN/KAUFEN-Badge */
.property-mask { background: var(--black) !important; }
.property-mask h4, .feat-thumb h4 { background: var(--black) !important; color: #fff !important; }
.property-mask h4.featured, .property-mask h4.os-featured, .feat-thumb h4.featured { background: var(--gold) !important; color: var(--black) !important; }
/* rote/graue Bildrahmen entfernen */
.property-mask, .property-image, .pimage, .pimage img, .ospitem-imgborder, .cs-style-3 figure img { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
/* Fakten-/Icon-Leiste ans Design */
.property-info, .property-list-page .property-info-agent { background: var(--grey-light) !important; }
.property-info span { color: var(--grey-dark) !important; }
.bsdimmo-room, .bsdimmo-bed, .bsdimmo-bath, .bsdimmo-car, .bsdimmo-link { color: var(--black) !important; }
/* Karten-Grundlook */
.agent-properties .well, .property-list .well { background: #fff !important; border: 1px solid #e7e4dc !important; border-radius: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.05) !important; }
.property-desc { padding: 4px 8px; }
/* Buttons ans Design */
.bsdimmo-noticelnk, .bsdimmo-overview-more .btn { background: var(--gold) !important; color: var(--black) !important; border: 0 !important; border-radius: 0 !important; }
/* Roh-Text-Sortierleiste (COM_CONTENT_LIST_*) ausblenden */
.js-stools, .js-stools-container { display: none !important; }
/* ShareThis-Buttons (Detailseite) ausblenden */
.sharethis, .row.sharethis, .st_sharethis, span[class*=st_] { display: none !important; }

/* ---------- BSDimmo Kachel-Override (echte Objektfotos) ---------- */
.bsd-estates { padding-top: 8px; }
.bsd-estates .estates-title { font-size: clamp(26px,3.2vw,36px); margin-bottom: 6px; }
.bsd-estates .section-head { margin-bottom: 26px; }
.bsd-estates .section-head p { color: var(--grey-dark); }
.estate .img-link { display: block; }
.estate .img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0; }
.estate .img { overflow: hidden; }
.estate h3 a { color: inherit; text-decoration: none; }
.estate h3 a:hover { color: var(--gold-dark); }
.estate .tag { z-index: 2; }
.bsd-estates .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; justify-content: center; margin-top: 36px; padding: 0; }
.bsd-estates .pagination a, .bsd-estates .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #e7e4dc; text-decoration: none; color: var(--black); }
.bsd-estates .pagination .active span, .bsd-estates .pagination a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ---------- BSDimmo Detailseite (Objekt-Exposé) ---------- */
[id^="bsdimmo-details-wrapper"] { max-width: 1200px; margin: 0 auto; padding: 36px 24px 80px; }
[id^="bsdimmo-details-wrapper"] h1 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 26px; }
[id^="bsdimmo-details-wrapper"] h2 { font-size: 20px; margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); display: inline-block; }
[id^="bsdimmo-details-wrapper"] h3 { font-size: 17px; margin: 24px 0 10px; }
/* Name/Wert-Zeilen der Datenblöcke */
[id^="bsdimmo-details-wrapper"] .name { color: var(--grey); padding: 7px 0; border-bottom: 1px solid #f0ede5; font-size: 15px; }
[id^="bsdimmo-details-wrapper"] .value { color: var(--black); font-weight: 600; padding: 7px 0; border-bottom: 1px solid #f0ede5; font-size: 15px; }
/* Interne Verwaltungsdaten (GUID, OIOBID, FlowFact-Kennung) verbergen */
.bsdimmo-techn, div[class*="details-verwaltung_techn"] { display: none !important; }
/* Google-Maps-Block ohne Koordinaten (No Coordinations found) ausblenden */
div[class*="details-googlemaps"], [id^="bsdimmo-details-wrapper"] span.error { display: none !important; }
/* Galerie */
[id^="bsdimmo-details-wrapper"] .fotorama { margin-bottom: 14px; }
/* Buttons im Exposé (Anfrage etc.) */
[id^="bsdimmo-details-wrapper"] .btn,
[id^="bsdimmo-details-wrapper"] button[type=submit] { background: var(--gold); color: var(--black); font-weight: 700; border: 0; border-radius: 0; padding: 12px 26px; }
[id^="bsdimmo-details-wrapper"] .btn:hover { background: var(--gold-dark); }
/* Kontaktformular-Felder im Exposé */
[id^="bsdimmo-details-wrapper"] input[type=text],
[id^="bsdimmo-details-wrapper"] input[type=email],
[id^="bsdimmo-details-wrapper"] textarea,
[id^="bsdimmo-details-wrapper"] select { border: 1px solid #d9d4c8; border-radius: 0; padding: 10px 12px; font-family: inherit; }
/* BlueStone-Copyrightzeile der Komponente ausblenden */
[id^="bsdimmo-details-wrapper"] + hr, .copyright a[href*="bluestonedesign"] { display: none !important; }

/* Merkzettel-Knopf (Funktion ungenutzt, Icon-Font fehlt) ausblenden */
.bsdimmo-noticelnk { display: none !important; }
/* PDF-Knopf ausblenden (BSDimmo-PDF ist Joomla-3-Technik, in J5 defekt; Druckansicht ersetzt ihn) */
a[href*="format=pdf"] { display: none !important; }

/* Zurück-Link auf der Objekt-Detailseite */
[id^="bsdimmo-details-wrapper"] .bsd-back {
  display: inline-block; margin: 0 0 20px; font-weight: 700; font-size: 15px;
  color: var(--black); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
[id^="bsdimmo-details-wrapper"] .bsd-back:hover { color: var(--gold-dark); }

/* ============================================================
   Wertermittlungs-Assistent (mehrstufiges Formular)
   ============================================================ */
.wm { max-width: 820px; margin: 0 auto; }
.wm-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
/* Fortschritt */
.wm-progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 34px; counter-reset: none; }
.wm-progress li { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--grey); border-top: 3px solid #e7e4dc; padding-top: 12px; }
.wm-progress li span { width: 26px; height: 26px; flex: 0 0 26px; background: #e7e4dc; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wm-progress li.active { color: var(--black); border-top-color: var(--gold); }
.wm-progress li.active span { background: var(--gold); color: var(--black); }
.wm-progress li.done { border-top-color: var(--gold); }
.wm-progress li.done span { background: var(--gold); color: var(--black); }
@media (max-width: 620px){ .wm-progress li { font-size: 0; gap: 0; } .wm-progress li span { font-size: 14px; } }
/* Schritt 1: Objektart-Buttons (Reset des <button>) */
.wm-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.wm-types .type { font: inherit; cursor: pointer; background: var(--white); border: 2px solid #e7e4dc; text-align: center; padding: 30px 18px 24px; transition: border-color .15s, transform .15s; }
.wm-types .type:hover { border-color: var(--gold); transform: translateY(-3px); }
.wm-types .type.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,193,0,.25); }
.wm-types .type .icon { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.wm-types .type h3 { font-size: 17px; }
.wm-types .type p { font-size: 14px; color: var(--grey); margin-top: 6px; }
/* Felder-Raster */
.wm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
@media (max-width: 620px){ .wm-grid { grid-template-columns: 1fr; } }
.wm-field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--black); margin: 0 0 6px; }
.wm-field input, .wm-field select, .wm-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9d4c8; font-size: 15px; font-family: inherit; background: var(--white); box-sizing: border-box; }
.wm-field textarea { resize: vertical; }
.wm-chosen { margin: 0 0 20px; color: var(--grey-dark); }
.wm-chosen strong { color: var(--black); }
.wm-change { background: none; border: none; color: var(--gold-dark); font-weight: 700; cursor: pointer; font-size: 14px; text-decoration: underline; padding: 0 0 0 6px; }
/* Zustimmung */
.wm-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--grey-dark); }
.wm-consent input { margin-top: 3px; flex: 0 0 auto; }
.wm-consent a { color: var(--gold-dark); font-weight: 600; }
/* Navigation */
.wm-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.btn.ghost-dark { background: transparent; color: var(--black); border: 2px solid #cfc9bb; }
.btn.ghost-dark:hover { border-color: var(--black); background: transparent; }
/* Fehler */
.wm-error { margin-top: 20px; padding: 12px 16px; border-left: 4px solid #c0392b; background: #fdecea; color: #922; font-size: 14.5px; }
/* Erfolg */
.wm-done { text-align: center; padding: 30px 10px; }
.wm-check { width: 64px; height: 64px; margin: 0 auto 18px; background: var(--gold); color: var(--black); border-radius: 50%; font-size: 34px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wm-done h3 { font-size: 22px; margin-bottom: 10px; }
.wm-done p { color: var(--grey-dark); max-width: 520px; margin: 0 auto; }
