/*
Theme Name: CD Eisenach Theme
Theme URI: https://ferienwohnung-eisenach-stadtmitte.de/
Author: ChatGPT
Description: Modernes Full-Width WordPress Theme für Ferienwohnung Eisenach Stadtmitte mit dynamischem Glas-Header, frei pflegbaren Menüs, Logo aus dem Customizer und Seiten ohne automatische Page Titles.
Version: 2.1.0
Text Domain: cd-eisenach
*/

:root {
  --cd-gold: var(--cd-theme-button, #7d1f2e);
  --cd-gold-dark: var(--cd-theme-button-dark, #5f1622);
  --cd-ink: #1f2328;
  --cd-muted: #5b6573;
  --cd-soft: #f8f1f2;
  --cd-light: #f7f8fa;
  --cd-white: #fff;
  --cd-shadow: 0 16px 44px rgba(31, 35, 40, 0.12);
  --cd-shadow-strong: 0 24px 70px rgba(31, 35, 40, 0.18);
  --cd-radius: 26px;
  --cd-header-height: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cd-ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
body.admin-bar .cd-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.cd-container,
.alignwide {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}
.alignfull { width: 100%; max-width: none; }

/* THEME LAYOUT: intentionally no boxed page cards and no automatic page titles */
.cd-site-main {
  width: 100%;
  min-height: 55vh;
}
.cd-page-content,
.entry-content {
  width: 100%;
  margin: 0;
}
.cd-page-content > *:first-child,
.entry-content > *:first-child { margin-top: 0; }
.cd-page-content > *:last-child,
.entry-content > *:last-child { margin-bottom: 0; }

/* HEADER */
.cd-site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
  transition: top .25s ease;
}
.cd-header-shell {
  width: min(100% - 32px, 1220px);
  min-height: var(--cd-header-height);
  margin-inline: auto;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 55px rgba(20, 24, 28, .14);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: auto;
  opacity: .96;
  transition: min-height .25s ease, padding .25s ease, opacity .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.cd-site-header.is-scrolled .cd-header-shell {
  min-height: 54px;
  padding: 5px 9px;
  opacity: .78;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 40px rgba(20, 24, 28, .12);
  transform: translateY(-4px);
}
.cd-site-header:hover .cd-header-shell,
.cd-site-header.is-menu-open .cd-header-shell {
  opacity: 1;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 60px rgba(20, 24, 28, .18);
}
.cd-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  color: var(--cd-ink);
  padding: 4px 8px;
  border-radius: 999px;
}
.cd-brand-logo {
  width: auto;
  max-width: 180px;
  max-height: 46px;
  display: block;
  object-fit: contain;
  transition: max-height .25s ease, max-width .25s ease;
}
.cd-site-header.is-scrolled .cd-brand-logo { max-height: 34px; max-width: 150px; }
.cd-brand-text { font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }

.cd-nav-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-primary-nav { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.cd-menu,
.cd-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cd-menu li { position: relative; }
.cd-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  text-decoration: none;
  color: #232a33;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.cd-menu a:hover,
.cd-menu .current-menu-item > a,
.cd-menu .current_page_item > a {
  background: rgba(var(--cd-theme-button-rgb, 125,31,46), .14);
  color: var(--cd-gold-dark);
}
.cd-menu .sub-menu {
  position: absolute;
  top: calc(100% + 11px);
  left: 0;
  min-width: 230px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 46px rgba(20,24,28,.16);
  border: 1px solid rgba(31,35,40,.08);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cd-menu li:hover > .sub-menu,
.cd-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cd-menu .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  min-height: 38px;
}

.cd-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--cd-ink);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cd-menu-toggle span,
.cd-menu-toggle::before,
.cd-menu-toggle::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
}
.cd-menu-toggle { position: relative; }
.cd-menu-toggle::before { transform: translateY(-7px); }
.cd-menu-toggle::after { transform: translateY(7px); }
.cd-site-header.is-menu-open .cd-menu-toggle span { opacity: 0; }
.cd-site-header.is-menu-open .cd-menu-toggle::before { transform: rotate(45deg); }
.cd-site-header.is-menu-open .cd-menu-toggle::after { transform: rotate(-45deg); }

/* CONTENT DESIGN SYSTEM */
.cd-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 20px 84px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.cd-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.68)), linear-gradient(135deg, rgba(var(--cd-theme-button-rgb, 125,31,46), .24), rgba(255,255,255,.04)); }
.cd-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 940px);
  text-align: center;
  color: #fff;
  padding: 34px 26px;
  border-radius: 30px;
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(5px);
}
.cd-hero-logo { width: min(100%, 360px); margin: 0 auto 24px; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.22)); }
.cd-kicker,
.cd-section-kicker { margin: 0 0 12px; color: var(--cd-gold); font-weight: 850; text-transform: uppercase; letter-spacing: .13em; font-size: 13px; }
.cd-hero .cd-kicker { color: var(--cd-theme-kicker, #f3c5cc); }
.cd-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.055em; }
.cd-hero-lead { max-width: 760px; margin: 20px auto 0; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.75; color: rgba(255,255,255,.94); }
.cd-hero-buttons, .cd-button-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 850; text-decoration: none; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.cd-btn-primary { background: var(--cd-gold); color: #fff; box-shadow: 0 10px 30px rgba(var(--cd-theme-button-rgb, 125,31,46), .28); }
.cd-btn-primary:hover { transform: translateY(-2px); background: var(--cd-gold-dark); }
.cd-btn-secondary { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.cd-btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }

.cd-quickfacts { position: relative; z-index: 3; margin-top: -48px; padding-bottom: 42px; }
.cd-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cd-fact { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-fact strong { display: block; font-size: 24px; color: var(--cd-ink); line-height: 1.15; }
.cd-fact span { display: block; margin-top: 7px; color: var(--cd-muted); font-size: 15px; }
.cd-section { padding: 86px 0; }
.cd-section-light { background: var(--cd-light); }
.cd-section-soft { background: linear-gradient(180deg, #fff 0%, var(--cd-soft) 100%); }
.cd-heading { text-align: center; max-width: 780px; margin: 0 auto 42px; }
.cd-heading h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; color: var(--cd-ink); }
.cd-heading p { margin: 0; color: var(--cd-muted); font-size: 17px; line-height: 1.75; }

.cd-sights-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cd-sight-card { position: relative; display: block; border-radius: 22px; overflow: hidden; text-decoration: none; aspect-ratio: 1.15 / 1; box-shadow: 0 12px 34px rgba(31,35,40,.12); transition: transform .25s ease, box-shadow .25s ease; background: #ddd; }
.cd-sight-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(31,35,40,.18); }
.cd-sight-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.cd-sight-card:hover img { transform: scale(1.05); }
.cd-sight-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; display: inline-block; padding: 12px 14px; border-radius: 14px; background: rgba(17,17,17,.58); color: #fff; font-weight: 800; font-size: 16px; backdrop-filter: blur(6px); }

.cd-apartment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cd-apartment-card { background: #fff; border-radius: var(--cd-radius); overflow: hidden; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); transition: transform .25s ease, box-shadow .25s ease; }
.cd-apartment-card:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(31,35,40,.16); }
.cd-main-image img { width: 100%; height: 300px; object-fit: cover; display: block; }
.cd-thumb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px 0; }
.cd-thumb-row img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; display: block; }
.cd-card-content { padding: 24px; }
.cd-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.cd-card-content h3 { margin: 0; font-size: 28px; color: var(--cd-ink); line-height: 1.15; }
.cd-size-badge { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(125,31,46,.12); color: var(--cd-gold-dark); font-weight: 850; font-size: 14px; }
.cd-card-content p { margin: 0 0 18px; color: var(--cd-muted); line-height: 1.7; font-size: 16px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cd-tags span { border-radius: 999px; background: #f4f5f7; color: #4b5563; padding: 7px 10px; font-size: 13px; font-weight: 750; }
.cd-link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--cd-gold); color: #fff; text-decoration: none; font-weight: 850; transition: background .25s ease, transform .25s ease; }
.cd-link-btn:hover { background: var(--cd-gold-dark); transform: translateY(-2px); }
.cd-info-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: stretch; }
.cd-panel, .cd-contact-card { background: #fff; border-radius: var(--cd-radius); padding: 30px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-panel h2, .cd-panel h3, .cd-contact-card h3 { margin: 0 0 14px; line-height: 1.15; letter-spacing: -.02em; }
.cd-panel h2 { font-size: clamp(28px, 4vw, 40px); }
.cd-panel p, .cd-contact-card p { margin: 0 0 16px; color: var(--cd-muted); }
.cd-check-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cd-check-list li { background: #f7f8fa; border-radius: 16px; padding: 12px 14px; color: #374151; font-weight: 750; }
.cd-check-list li::before { content: "✓"; color: var(--cd-gold-dark); font-weight: 900; margin-right: 8px; }
.cd-price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.cd-price-card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-price-card strong { display: block; font-size: 21px; margin-bottom: 6px; }
.cd-price-card span { color: var(--cd-muted); font-size: 15px; }
.cd-reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cd-review { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-stars { color: var(--cd-gold); letter-spacing: .05em; font-size: 18px; margin-bottom: 12px; }
.cd-review blockquote { margin: 0; color: #344054; line-height: 1.75; }
.cd-review cite { display: block; margin-top: 16px; font-style: normal; color: var(--cd-muted); font-weight: 800; }
.cd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cd-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cd-contact-list li { padding: 13px 14px; border-radius: 16px; background: #f7f8fa; color: #374151; }
.cd-contact-list strong { display: block; color: var(--cd-ink); }
.cd-faq { display: grid; gap: 12px; }
details { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(31,35,40,.07); border: 1px solid rgba(31,35,40,.06); }
summary { cursor: pointer; font-weight: 850; color: var(--cd-ink); }
details p { margin: 12px 0 0; color: var(--cd-muted); }

.cd-site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--cd-theme-button-rgb, 125,31,46), .28), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(135deg, #171a1f 0%, #23272f 48%, #111317 100%);
  color: rgba(255,255,255,.84);
  padding: 70px 0 28px;
}
.cd-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  pointer-events: none;
}
.cd-site-footer > .cd-container,
.cd-footer-cta,
.cd-footer-main,
.cd-footer-bottom { position: relative; z-index: 1; }
.cd-footer-cta {
  width: min(100% - 40px, 1180px);
  margin: 0 auto 42px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(125,31,46,.26), rgba(255,255,255,.07));
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cd-footer-cta .cd-section-kicker { color: var(--cd-theme-kicker, #f3c5cc); margin-bottom: 8px; }
.cd-footer-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.cd-footer-cta p { margin: 0; color: rgba(255,255,255,.74); font-size: 17px; max-width: 680px; }
.cd-footer-cta .cd-btn { white-space: nowrap; }
.cd-footer-main {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.cd-footer-brand-block { max-width: 430px; }
.cd-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cd-footer-brand img,
.cd-footer-brand .custom-logo { max-height: 64px; width: auto; filter: drop-shadow(0 8px 22px rgba(0,0,0,.22)); }
.cd-footer-brand-block p,
.cd-footer-widget p { margin: 0 0 12px; color: rgba(255,255,255,.70); line-height: 1.75; }
.cd-footer-title,
.cd-footer-widget h1,
.cd-footer-widget h2,
.cd-footer-widget h3,
.cd-footer-main h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  letter-spacing: .02em;
}
.cd-footer-menu,
.cd-footer-menu ul,
.cd-footer-legal-menu,
.cd-footer-legal-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.cd-site-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s ease, transform .2s ease; }
.cd-site-footer a:hover { color: #fff; text-decoration: none; }
.cd-footer-menu a,
.cd-footer-legal-menu a,
.cd-footer-widget a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.76);
}
.cd-footer-menu a::before,
.cd-footer-legal-menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(125,31,46,.82);
  opacity: .75;
  transition: transform .2s ease, opacity .2s ease;
}
.cd-footer-menu a:hover::before,
.cd-footer-legal-menu a:hover::before { transform: scale(1.45); opacity: 1; }
.cd-footer-bottom {
  width: min(100% - 40px, 1180px);
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}
.cd-footer-legal-nav .cd-footer-legal-menu { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.cd-footer-legal-nav .cd-footer-legal-menu a::before { display: none; }

@media (max-width: 1200px) {
  .cd-sights-grid { grid-template-columns: repeat(3,1fr); }
  .cd-sight-card { aspect-ratio: 1.45 / 1; }
}
@media (max-width: 991px) {
  .cd-footer-cta { grid-template-columns: 1fr; text-align: left; }
  .cd-footer-main { grid-template-columns: 1fr; }
  body.admin-bar .cd-site-header { top: 46px; }
  .cd-site-header { top: 10px; }
  .cd-header-shell { border-radius: 28px; align-items: center; flex-wrap: wrap; }
  .cd-menu-toggle { display: inline-flex; }
  .cd-primary-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 8px 4px 4px;
  }
  .cd-site-header.is-menu-open .cd-primary-nav { display: block; }
  .cd-menu { display: grid; grid-template-columns: 1fr; gap: 6px; justify-content: stretch; }
  .cd-menu a { width: 100%; justify-content: flex-start; min-height: 44px; background: rgba(31,35,40,.04); }
  .cd-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 6px 0 0 14px; }
  .cd-facts-grid, .cd-price-grid { grid-template-columns: repeat(2,1fr); }
  .cd-apartment-grid, .cd-info-layout, .cd-contact-grid { grid-template-columns: 1fr; }
  .cd-reviews { grid-template-columns: 1fr; }
  .cd-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cd-site-footer { padding-top: 54px; }
  .cd-footer-cta, .cd-footer-main, .cd-footer-bottom { width: min(100% - 28px, 1180px); }
  .cd-footer-cta { border-radius: 24px; }
  .cd-footer-cta .cd-btn { width: 100%; }
  .cd-footer-bottom { align-items: flex-start; flex-direction: column; }
  .cd-container, .alignwide { width: min(100% - 28px, 1180px); }
  .cd-brand-logo { max-width: 172px; max-height: 48px; }
  .cd-site-header.is-scrolled .cd-brand-logo { max-width: 145px; max-height: 38px; }
  .cd-hero { min-height: 82vh; padding: 116px 14px 58px; }
  .cd-hero-inner { padding: 24px 16px; }
  .cd-hero-buttons .cd-btn, .cd-button-row .cd-btn { width: 100%; max-width: 340px; }
  .cd-section { padding: 60px 0; }
  .cd-facts-grid, .cd-sights-grid, .cd-price-grid, .cd-check-list { grid-template-columns: 1fr; }
  .cd-sight-card { aspect-ratio: 1.8 / 1; }
  .cd-main-image img { height: 230px; }
  .cd-thumb-row img { height: 112px; }
  .cd-card-topline { align-items: flex-start; flex-direction: column; }
  .cd-card-content h3 { font-size: 24px; }
  .cd-panel, .cd-contact-card { padding: 24px; }
}
@media (max-width: 420px) {
  .cd-header-shell { width: min(100% - 18px, 1220px); padding: 8px; }
  .cd-brand-logo { max-width: 142px; }
  .cd-menu-toggle { width: 42px; height: 42px; }
}

/* v1.5 responsive refinements */
@media (min-width: 1400px) {
  .cd-container, .alignwide { width: min(100% - 72px, 1280px); }
  .cd-sights-layout { grid-template-columns: .74fr 1.26fr; }
}
@media (max-width: 1100px) {
  .cd-feature-strip, .cd-step-grid { grid-template-columns: repeat(2,1fr); }
  .cd-split-highlight, .cd-sights-layout { grid-template-columns: 1fr; }
  .cd-sticky-note { position: relative; top: auto; }
  .cd-sight-card.is-large { grid-column: span 1; aspect-ratio: 1.55/1; }
}
@media (max-width: 991px) {
  body.admin-bar .cd-site-header { top: 46px; }
  .cd-site-header { top: 0; }
  .cd-header-shell,
  .cd-site-header.is-scrolled .cd-header-shell {
    width: min(100% - 20px, 1220px);
    margin-top: 10px;
    border-radius: 28px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    min-height: 66px;
  }
  .cd-site-header:not(.is-menu-open):not(.is-scrolled) .cd-header-shell {
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 24px 24px;
    padding-inline: 18px;
  }
  .cd-menu-toggle { display: inline-flex; }
  .cd-primary-nav { display: none; width: 100%; flex-basis: 100%; padding: 8px 4px 4px; }
  .cd-site-header.is-menu-open .cd-primary-nav { display: block; }
  .cd-menu { display: grid; grid-template-columns: 1fr; gap: 6px; justify-content: stretch; }
  .cd-menu a { width: 100%; justify-content: flex-start; min-height: 44px; background: rgba(31,35,40,.04); }
  .cd-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 6px 0 0 14px; }
}
@media (max-width: 767px) {
  .cd-hero-stats, .cd-feature-strip, .cd-step-grid, .cd-callout { grid-template-columns: 1fr; }
  .cd-hero-stats { max-width: 340px; }
  .cd-image-stack { min-height: 350px; }
  .cd-mini-gallery { grid-template-columns: 1fr; }
  .cd-mini-gallery img, .cd-mini-gallery img:first-child { height: 230px; grid-row: auto; }
  .cd-callout .cd-btn { width: 100%; }
}

/* v1.5 header + startseite design overrides */
.cd-site-header { top: 0; }
body.admin-bar .cd-site-header { top: 32px; }
.cd-header-shell {
  width: 100%; max-width: none; min-height: 84px; margin: 0 auto; padding: 10px clamp(18px, 4vw, 56px);
  border: 0; border-bottom: 1px solid rgba(255,255,255,.50); border-radius: 0 0 30px 30px;
  background: rgba(255,255,255,.74); box-shadow: 0 18px 55px rgba(20,24,28,.10);
}
.cd-site-header.is-scrolled .cd-header-shell {
  width: min(100% - 32px, 1220px); min-height: 62px; margin-top: 14px; padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; opacity: .78;
  background: rgba(255,255,255,.70); box-shadow: 0 14px 42px rgba(20,24,28,.13); transform: translateY(-2px);
}
.cd-site-header:hover .cd-header-shell, .cd-site-header.is-menu-open .cd-header-shell { opacity: 1; background: rgba(255,255,255,.94); box-shadow: 0 22px 66px rgba(20,24,28,.18); }
.cd-site-header.is-scrolled .cd-menu a { min-height: 38px; font-size: 14px; padding-inline: 11px; }
.cd-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; margin: 26px auto 0; }
.cd-hero-stat { border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.10); padding: 12px 14px; backdrop-filter: blur(8px); }
.cd-hero-stat strong { display:block; font-size: 20px; color:#fff; line-height:1.1; }
.cd-hero-stat span { display:block; margin-top:4px; color:rgba(255,255,255,.78); font-size: 13px; font-weight: 700; }
.cd-feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cd-feature-card { position: relative; overflow: hidden; min-height: 260px; border-radius: var(--cd-radius); padding: 26px; background: #fff; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); transition: transform .25s ease, box-shadow .25s ease; }
.cd-feature-card:hover { transform: translateY(-6px); box-shadow: var(--cd-shadow-strong); }
.cd-feature-card::after { content: ""; position: absolute; inset: auto -30% -40% 35%; height: 150px; border-radius: 999px; background: rgba(125,31,46,.12); transform: rotate(-12deg); }
.cd-feature-icon { width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(125,31,46,.12); color: var(--cd-gold-dark); font-weight: 900; font-size: 22px; margin-bottom: 18px; }
.cd-feature-card h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.025em; }
.cd-feature-card p { margin: 0; color: var(--cd-muted); }
.cd-split-highlight { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.cd-image-stack { position: relative; min-height: 460px; }
.cd-image-stack img { position: absolute; object-fit: cover; border-radius: 28px; box-shadow: var(--cd-shadow-strong); }
.cd-image-stack img:nth-child(1) { inset: 0 12% 18% 0; width: 82%; height: 76%; }
.cd-image-stack img:nth-child(2) { right: 0; bottom: 0; width: 58%; height: 52%; border: 8px solid #fff; }
.cd-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: cdstep; }
.cd-step { counter-increment: cdstep; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-step::before { content: counter(cdstep, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; background: rgba(125,31,46,.13); color: var(--cd-gold-dark); font-weight: 900; margin-bottom: 18px; }
.cd-step h3 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.02em; }
.cd-step p { margin: 0; color: var(--cd-muted); }
.cd-sights-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 28px; align-items: start; }
.cd-sticky-note { position: sticky; top: 110px; background: linear-gradient(135deg, #fff, #fbf7f2); border-radius: var(--cd-radius); padding: 30px; box-shadow: var(--cd-shadow); border: 1px solid rgba(31,35,40,.06); }
.cd-sticky-note h2 { margin: 0 0 14px; font-size: clamp(28px,4vw,42px); line-height:1.12; letter-spacing:-.035em; }
.cd-sticky-note p { color: var(--cd-muted); margin: 0 0 18px; }
.cd-sight-card.is-large { grid-column: span 2; aspect-ratio: 2.1 / 1; }
.cd-mini-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.cd-mini-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: 24px; box-shadow: 0 12px 34px rgba(31,35,40,.11); }
.cd-mini-gallery img:first-child { height: 514px; grid-row: span 2; }
.cd-callout { border-radius: 30px; background: linear-gradient(135deg, #171a1f, #2a2f38); color: #fff; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: var(--cd-shadow-strong); overflow: hidden; position: relative; }
.cd-callout::before { content: ""; position: absolute; inset: -30% auto auto -10%; width: 360px; height: 360px; background: rgba(var(--cd-theme-button-rgb, 125,31,46), .24); border-radius: 999px; filter: blur(4px); }
.cd-callout > * { position: relative; z-index: 1; }
.cd-callout h2 { margin: 0 0 10px; font-size: clamp(28px,4vw,46px); line-height:1.08; letter-spacing:-.04em; }
.cd-callout p { margin:0; color:rgba(255,255,255,.74); max-width: 700px; }
@media (min-width: 1400px) { .cd-container, .alignwide { width: min(100% - 72px, 1280px); } .cd-sights-layout { grid-template-columns: .74fr 1.26fr; } }
@media (max-width: 1100px) { .cd-feature-strip, .cd-step-grid { grid-template-columns: repeat(2,1fr); } .cd-split-highlight, .cd-sights-layout { grid-template-columns: 1fr; } .cd-sticky-note { position: relative; top: auto; } .cd-sight-card.is-large { grid-column: span 1; aspect-ratio: 1.55/1; } }
@media (max-width: 991px) { body.admin-bar .cd-site-header { top: 46px; } .cd-site-header { top: 0; } .cd-header-shell, .cd-site-header.is-scrolled .cd-header-shell { width: min(100% - 20px, 1220px); margin-top: 10px; border-radius: 28px; align-items: center; flex-wrap: wrap; padding: 10px 12px; min-height: 66px; } .cd-site-header:not(.is-menu-open):not(.is-scrolled) .cd-header-shell { width: 100%; margin-top: 0; border-radius: 0 0 24px 24px; padding-inline: 18px; } .cd-menu-toggle { display: inline-flex; } .cd-primary-nav { display: none; width: 100%; flex-basis: 100%; padding: 8px 4px 4px; } .cd-site-header.is-menu-open .cd-primary-nav { display: block; } .cd-menu { display: grid; grid-template-columns: 1fr; gap: 6px; justify-content: stretch; } .cd-menu a { width: 100%; justify-content: flex-start; min-height: 44px; background: rgba(31,35,40,.04); } .cd-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 6px 0 0 14px; } }
@media (max-width: 767px) { .cd-hero-stats, .cd-feature-strip, .cd-step-grid, .cd-callout { grid-template-columns: 1fr; } .cd-hero-stats { max-width: 340px; } .cd-image-stack { min-height: 350px; } .cd-mini-gallery { grid-template-columns: 1fr; } .cd-mini-gallery img, .cd-mini-gallery img:first-child { height: 230px; grid-row: auto; } .cd-callout .cd-btn { width: 100%; } }


/* GLOBAL ANFRAGE POPUP */
.cd-floating-inquiry {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cd-gold), var(--cd-gold-dark));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(var(--cd-theme-button-rgb, 125,31,46), .36), 0 8px 24px rgba(31,35,40,.18);
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.cd-floating-inquiry::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
.cd-floating-inquiry:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 24px 55px rgba(var(--cd-theme-button-rgb, 125,31,46), .42), 0 12px 30px rgba(31,35,40,.22);
}
.cd-floating-inquiry:focus-visible {
  outline: 3px solid rgba(125,31,46,.35);
  outline-offset: 4px;
}
.cd-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 34px);
}
.cd-inquiry-modal.is-open {
  display: flex;
}
.cd-inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 22, .68);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.cd-inquiry-modal-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  max-height: min(88vh, 940px);
  overflow: auto;
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.52);
  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}
.cd-inquiry-modal.is-open .cd-inquiry-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cd-inquiry-modal-close {
  position: sticky;
  top: 16px;
  margin-left: auto;
  margin-right: 16px;
  margin-bottom: -54px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(31,35,40,.92);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .2s ease, background .2s ease;
}
.cd-inquiry-modal-close:hover {
  transform: scale(1.06);
  background: var(--cd-theme-button, #7d1f2e);
}
.cd-inquiry-modal-content {
  padding-top: 4px;
}
.cd-inquiry-modal-content .cd-contact-plugin {
  padding: 0;
}
.cd-inquiry-modal-content .cd-contact-plugin-grid {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0;
}
.cd-inquiry-modal-content .cd-contact-plugin-info {
  margin: 20px 20px 0;
  border-radius: 26px;
  min-height: auto;
}
.cd-inquiry-modal-content .cd-contact-mini-facts {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.cd-inquiry-modal-content .cd-contact-form {
  margin: 20px;
  box-shadow: none;
}
body.cd-inquiry-open {
  overflow: hidden;
}
body.cd-inquiry-open .cd-site-header {
  filter: blur(2px);
}
@media (max-width: 900px) {
  .cd-inquiry-modal-panel {
    border-radius: 26px;
  }
  .cd-inquiry-modal-content .cd-contact-mini-facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .cd-floating-inquiry {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }
  .cd-inquiry-modal {
    padding: 10px;
  }
  .cd-inquiry-modal-panel {
    max-height: 92vh;
    border-radius: 22px;
  }
  .cd-inquiry-modal-close {
    top: 12px;
    margin-right: 12px;
    margin-bottom: -50px;
    width: 40px;
    height: 40px;
  }
  .cd-inquiry-modal-content .cd-contact-plugin-info,
  .cd-inquiry-modal-content .cd-contact-form {
    margin: 12px;
  }
}


/* v1.8 Farbwelt: Dunkelrot als Basis + Wohnungsakzente */
:root {
  --cd-red: var(--cd-theme-button, #7d1f2e);
  --cd-red-dark: var(--cd-theme-button-dark, #5f1622);
  --cd-deluxe: var(--cd-theme-deluxe, #16385f);
  --cd-deluxe-dark: var(--cd-theme-deluxe-dark, #0f2948);
  --cd-excellent: var(--cd-theme-excellent, #0f8f8a);
  --cd-excellent-dark: var(--cd-theme-excellent-dark, #0b6f6b);
  --cd-saphir: var(--cd-theme-button, #7d1f2e);
}

.cd-apartment-card#deluxe .cd-size-badge,
#deluxe .cd-size-badge,
#deluxe-card .cd-size-badge { background: rgba(22,56,95,.12) !important; color: var(--cd-deluxe-dark) !important; }
.cd-apartment-card#deluxe .cd-link-btn,
#deluxe .cd-btn-primary,
#deluxe-card .cd-link-btn { background: var(--cd-deluxe) !important; box-shadow: 0 12px 30px rgba(22,56,95,.22) !important; }
.cd-apartment-card#deluxe .cd-link-btn:hover,
#deluxe .cd-btn-primary:hover,
#deluxe-card .cd-link-btn:hover { background: var(--cd-deluxe-dark) !important; }

.cd-apartment-card#excellent .cd-size-badge,
#excellent .cd-size-badge,
#excellent-card .cd-size-badge { background: rgba(15,143,138,.12) !important; color: var(--cd-excellent-dark) !important; }
.cd-apartment-card#excellent .cd-link-btn,
#excellent .cd-btn-primary,
#excellent-card .cd-link-btn { background: var(--cd-excellent) !important; box-shadow: 0 12px 30px rgba(15,143,138,.22) !important; }
.cd-apartment-card#excellent .cd-link-btn:hover,
#excellent .cd-btn-primary:hover,
#excellent-card .cd-link-btn:hover { background: var(--cd-excellent-dark) !important; }

.cd-apartment-card img,
.cd-sight-card img,
.cd-main-image img,
.cd-thumb-row img { opacity: 1 !important; filter: none !important; }


/* Final: Farben aus dem Customizer */
.cd-btn-primary,
.cd-floating-inquiry,
.cd-inquiry-modal-close {
  background: var(--cd-theme-button, #7d1f2e);
  box-shadow: 0 12px 30px rgba(var(--cd-theme-button-rgb, 125,31,46), .26);
}
.cd-btn-primary:hover,
.cd-floating-inquiry:hover,
.cd-inquiry-modal-close:hover {
  background: var(--cd-theme-button-dark, #5f1622);
}
.cd-section-kicker,
.cd-contact-kicker,
.cd-footer-title,
.cd-footer a:hover {
  color: var(--cd-theme-accent, #7d1f2e);
}
.cd-feature-icon,
.cd-contact-icon {
  background: rgba(var(--cd-theme-accent-rgb, 125,31,46), .12);
  color: var(--cd-theme-accent-dark, #5f1622);
}
.cd-footer-cta::before,
.cd-inquiry-modal-panel::before {
  background: rgba(var(--cd-theme-accent-rgb, 125,31,46), .24);
}


/* v2.1: Theme-gesteuerte Mini-Überschriften und Anfrage-Button */
.cd-kicker {
  color: var(--cd-theme-accent, #7d1f2e);
}
.cd-hero .cd-kicker,
.cd-apt-hero .cd-kicker,
.cd-apartment-hero-copy .cd-kicker,
.cd-contact-hero .cd-kicker,
.cd-price-hero .cd-kicker {
  color: var(--cd-theme-kicker, #f3c5cc) !important;
}
.cd-floating-inquiry {
  background: var(--cd-theme-button, #7d1f2e) !important;
  box-shadow: 0 18px 42px rgba(var(--cd-theme-button-rgb, 125,31,46), .36), 0 8px 24px rgba(31,35,40,.18) !important;
}
.cd-floating-inquiry:hover {
  background: var(--cd-theme-button-dark, #5f1622) !important;
  box-shadow: 0 24px 55px rgba(var(--cd-theme-button-rgb, 125,31,46), .42), 0 12px 30px rgba(31,35,40,.22) !important;
}


/* Apartment-spezifische Mini-Überschriften auf dunklem Hero-Hintergrund.
   Dadurch können Deluxe und Excellent ihre eigenen Farben nutzen. */
.cd-ap-detail .cd-apt-hero .cd-kicker {
  color: var(--cd-apartment-kicker, var(--cd-theme-kicker, #f3c5cc)) !important;
}
.cd-ap-detail.cd-ap-ambiente,
.cd-ap-detail[data-apartment="ambiente"] {
  --cd-apartment-kicker: var(--cd-theme-ambiente-kicker, var(--cd-theme-ambiente, #7d1f2e));
}
.cd-ap-detail.cd-ap-deluxe,
.cd-ap-detail[data-apartment="deluxe"] {
  --cd-apartment-kicker: var(--cd-theme-deluxe-kicker, var(--cd-theme-deluxe, #16385f));
}
.cd-ap-detail.cd-ap-excellent,
.cd-ap-detail[data-apartment="excellent"] {
  --cd-apartment-kicker: var(--cd-theme-excellent-kicker, var(--cd-theme-excellent, #0f8f8a));
}
.cd-ap-detail.cd-ap-saphir,
.cd-ap-detail[data-apartment="saphir"] {
  --cd-apartment-kicker: var(--cd-theme-saphir-kicker, var(--cd-theme-saphir, #7d1f2e));
}
.cd-ap-detail.cd-ap-ambiente .cd-apt-hero .cd-kicker,
.cd-ap-detail[data-apartment="ambiente"] .cd-apt-hero .cd-kicker {
  color: var(--cd-theme-ambiente-kicker, var(--cd-theme-ambiente, #7d1f2e)) !important;
}
.cd-ap-detail.cd-ap-deluxe .cd-apt-hero .cd-kicker,
.cd-ap-detail[data-apartment="deluxe"] .cd-apt-hero .cd-kicker {
  color: var(--cd-theme-deluxe-kicker, var(--cd-theme-deluxe, #16385f)) !important;
}
.cd-ap-detail.cd-ap-excellent .cd-apt-hero .cd-kicker,
.cd-ap-detail[data-apartment="excellent"] .cd-apt-hero .cd-kicker {
  color: var(--cd-theme-excellent-kicker, var(--cd-theme-excellent, #0f8f8a)) !important;
}
.cd-ap-detail.cd-ap-saphir .cd-apt-hero .cd-kicker,
.cd-ap-detail[data-apartment="saphir"] .cd-apt-hero .cd-kicker {
  color: var(--cd-theme-saphir-kicker, var(--cd-theme-saphir, #7d1f2e)) !important;
}
