@font-face {
  font-family: Outfit;
  src: url("brand/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Epilogue;
  src: url("brand/epilogue-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url("brand/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10243f;
  --muted: #52617a;
  --blue: #384a9f;
  --pink: #ef416f;
  --pink-ink: #ba2551;
  --line: #dee3ec;
  --white: #fff;
  --paper: #f3f5fa;
  --heading: Epilogue, "Segoe UI", system-ui, sans-serif;
  --body: Outfit, "Segoe UI", system-ui, sans-serif;
  --script: Caveat, "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.55 var(--body);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.shell { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: absolute; inset: 0 auto auto 0; padding: 1rem; background: white; z-index: 20; transform: translateY(-120%); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.mast-inner {
  min-height: 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.wordmark { display: inline-block; flex-shrink: 0; }
.wordmark img { width: clamp(9.5rem, 17vw, 12.75rem); height: auto; max-height: 3rem; object-fit: contain; object-position: left; }
.mast-end, .back-link, .preview-mark { display: flex; align-items: center; gap: .6rem; }
.mast-end { gap: clamp(.8rem, 3vw, 2.1rem); }
.back-link, .preview-mark { font-size: .87rem; line-height: 1.3; font-weight: 560; }
.back-link { text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.preview-mark { color: var(--muted); }
.preview-mark span { width: .48rem; height: .48rem; border-radius: 50%; background: var(--pink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.08fr);
  gap: clamp(1.6rem, 5.5vw, 6rem);
  padding-block: clamp(3.5rem, 7.5vw, 7.8rem) clamp(3rem, 5.9vw, 5.6rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .56rem;
  color: var(--blue);
  font-weight: 650;
  font-size: .82rem;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.tag-separator { color: var(--pink-ink); }
h1, h2, h3 { margin: 0; font-family: var(--heading); }
h1 {
  margin-top: 1rem;
  font-size: clamp(2.65rem, 5.3vw, 5.2rem);
  font-weight: 790;
  line-height: 1.015;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.handline {
  margin: .72rem 0 .7rem;
  color: var(--pink-ink);
  font: 610 clamp(1.7rem, 3.25vw, 2.9rem)/1.08 var(--script);
  text-wrap: balance;
}
.hero-lead { margin: 1.4rem 0 1.65rem; max-width: 34rem; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.27rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.23rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .62rem;
  min-height: 3.15rem;
  padding: .72rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-size: .94rem;
  font-weight: 630;
  text-decoration: none;
}
.button svg, .plain-link svg { flex-shrink: 0; }
.primary { background: var(--ink); color: var(--white); }
.primary:hover { background: var(--blue); }
.outline { border-color: currentColor; }
.outline:hover { color: var(--blue); background: #fff; }
.plain-link { display: inline-flex; align-items: center; gap: .42rem; color: var(--blue); font-size: .96rem; font-weight: 620; text-underline-offset: .2em; }
.hero-frame { position: relative; margin: 0; }
.hero-picture {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f3f4fa, #e9edfa);
  border-radius: 1.2rem;
  border: 1px solid #e7eaf2;
  overflow: hidden;
  box-shadow: 0 22px 54px -36px #173b7a66;
}
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-frame figcaption { margin-top: .64rem; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.image-fallback {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  text-align: center;
  background: radial-gradient(ellipse at 72% 18%, #fff7f9, transparent 52%), linear-gradient(140deg, #e9edf9, #fff);
  font: 760 clamp(1.75rem, 3.7vw, 3.8rem)/1.12 var(--heading);
  letter-spacing: -.05em;
}
.image-fallback small { letter-spacing: normal; color: var(--muted); font: 440 .88rem/1.3 var(--body); }
.fallback-icon { margin-bottom: .7rem; color: var(--pink-ink); }
.fallback-icon svg { height: 2rem; width: 2rem; }

.place-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); gap: 1.25rem; }
.market, .location { min-width: 0; padding: clamp(1.5rem, 3.05vw, 2.65rem); border-radius: 1rem; }
.market { background: var(--paper); }
.location { background: var(--ink); color: white; }
.market h2, .location h2 { margin: .6rem 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 735; line-height: 1.14; letter-spacing: -.055em; }
.market p, .location p { margin: .53rem 0 .7rem; }
.market p { max-width: 39rem; color: var(--muted); }
.market-source { margin-top: .9rem; color: var(--muted); font-size: .85rem; }
.market-source a { color: var(--blue); text-underline-offset: .18em; }
.market-source svg { width: .8rem; height: .8rem; vertical-align: middle; }
.location .section-tag { color: #ffb1c6; }
.location address { font-style: normal; font-size: 1.05rem; font-weight: 610; }
.location p { color: #dae5f8; }
.location .plain-link { color: #fff; }
.location a:focus-visible { outline-color: #fff; }
.location-links { display: flex; flex-wrap: wrap; gap: .66rem 1.1rem; margin-top: .8rem; }

.services { padding-block: clamp(2.9rem, 6.2vw, 5.5rem) clamp(2.1rem, 4.1vw, 3.8rem); }
.services > h2, .contact-strip h2 { font-size: clamp(1.65rem, 3.5vw, 2.55rem); font-weight: 745; letter-spacing: -.055em; line-height: 1.13; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.6rem; }
.service-card { min-width: 0; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1.05rem, 2vw, 1.6rem); }
.service-card h3 { font-size: 1.1rem; font-weight: 760; line-height: 1.25; letter-spacing: -.03em; }
.service-card p { margin: .6rem 0 0; color: var(--muted); }
.service-card .plain-link { margin-top: .65rem; }
.check-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-bottom: .8rem; border-radius: 50%; background: #fce7ee; color: var(--pink-ink); }
.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  margin-bottom: clamp(2.65rem, 5vw, 4.4rem);
  padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid #e5e8f2;
  border-radius: .9rem;
  background: #f8f9fd;
}
.contact-strip h2 { font-size: clamp(1.28rem, 2.2vw, 1.7rem); }
.contact-strip p { margin: .45rem 0 0; color: var(--muted); }
.page-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.1rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .87rem; }
.footer-inner p { margin: .5rem 0; }
.footer-inner p span { padding-inline: .35rem; }
.footer-inner a { display: inline-flex; align-items: center; gap: .4rem; text-underline-offset: .2em; }

.theme-makler .location { background: #25377d; }
.theme-immobilienbewertung .market { background: #f8f3f6; }
.hub-heading { padding-block: clamp(2.95rem, 7vw, 5.8rem) clamp(1.6rem, 3.4vw, 2.8rem); }
.hub-heading h1 { font-size: clamp(3rem, 8vw, 7.5rem); text-wrap: initial; }
.hub-count { margin: 1.24rem 0 0; color: var(--muted); font-size: 1.08rem; }
.catalog-review { margin-block-start: 1.2rem; max-width: 67ch; }
.catalog-review summary { color: var(--ink); cursor: pointer; font-weight: 650; }
.catalog-review p { color: var(--muted); margin-block: 0.65rem; }
.catalog { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: .55rem 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem clamp(1rem, 2vw, 1.55rem) .75rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
}
.search-label { grid-column: 1 / -1; color: var(--ink); font-size: .86rem; font-weight: 670; }
#city-search { width: 100%; padding: .63rem .8rem; border: 1px solid #cbd2e3; border-radius: .5rem; color: var(--ink); background: #fff; min-height: 2.7rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: end; }
.filters button { min-height: 2.5rem; border: 1px solid #cbd2e3; padding: .38rem .86rem; border-radius: 10rem; background: #fff; color: var(--ink); font-size: .91rem; }
.filters button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
#filter-result { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .86rem; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.1rem; }
.city-card { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; }
.city-thumbnail { aspect-ratio: 4 / 2.4; overflow: hidden; background: var(--paper); }
.city-thumbnail img { height: 100%; width: 100%; object-fit: cover; }
.city-card-inner { padding: 1.22rem 1.26rem; }
.city-card h2 { font-size: clamp(1.1rem, 2.05vw, 1.6rem); font-weight: 790; letter-spacing: -.05em; overflow-wrap: anywhere; }
.city-card ul { padding: 0; margin: .7rem 0 0; list-style: none; }
.city-card li { border-top: 1px solid var(--line); }
.city-card li a { display: flex; padding: .48rem 0; align-items: center; justify-content: space-between; gap: .5rem; color: var(--blue); font-size: .93rem; font-weight: 580; text-decoration: none; }
.city-card li a:hover span { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 920px) {
  .shell { width: min(100% - 3rem, 76rem); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.6rem 2.3rem; }
  .hero h1, .hero .handline { text-wrap: initial; }
  .hero-picture { max-height: 31rem; }
  .place-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: .65rem; }
  .service-card { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .25rem .9rem; align-items: center; }
  .service-card .check-mark { margin: 0; grid-column: 1; }
  .service-card h3, .service-card p, .service-card .plain-link { grid-column: 2; margin: 0; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 2.15rem, 76rem); }
  .mast-inner { min-height: 4.45rem; gap: .7rem; }
  .mast-end { gap: .55rem; }
  .mast-end .preview-mark { font-size: .72rem; }
  .mast-end .back-link span { display: none; }
  .mast-end .back-link { display: inline-grid; place-items: center; min-width: 2.1rem; min-height: 2.3rem; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); letter-spacing: -.058em; }
  .theme-immobilienbewertung .hero h1 { font-size: clamp(1.85rem, 7.65vw, 2.75rem); }
  .catalog-tools { grid-template-columns: 1fr; }
  .filters { justify-content: start; }
  .city-grid { grid-template-columns: 1fr; }
  .hub-count { font-size: 1rem; }
  .footer-inner { align-items: start; justify-content: center; padding-block: .9rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
