/* Seiten-CSS: nur was das Kit nicht hat (Wortmarke, Galerie, Rechner, Formular-Schritte, Kalender). */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/caveat-latin-600-normal.woff2) format("woff2"); }

:root { --terra: #da7756; --terra-ink: #b4532f; --teal-tint: #eef3f3; }

/* Wortmarke (Kundenlogo) */
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; line-height: 1; color: var(--ink); font-size: 22px; }
.brand__get { font-weight: 300; font-size: .82em; letter-spacing: .005em; }
.brand__vis { font-weight: 500; color: #236c6c; letter-spacing: -.015em; }
.brand__by { font: 600 .82em/1 "Caveat", cursive; color: #a8482a; margin-left: .3em; }
.brand__imm { font-size: .62em; font-weight: 500; color: var(--muted); margin-left: .55em; padding-left: .55em; border-left: 1px solid var(--line); }
.brand--big { font-size: 32px; }
.ground-inverse .brand__vis { color: #6cc3c3; }
.ground-inverse .brand__by { color: var(--terra); }
@media (max-width: 639px) { .brand { font-size: 18px; } .brand--big { font-size: 26px; } .brand__imm { display: none; } }

/* Status auf Kacheln (verkauft, reserviert, Beispiel) */
.tile__media { position: relative; }
.status-pill { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--p-surface); color: var(--p-ink); font: 500 13px/1 var(--font-text); }

/* Demo-Hinweis im Footer: deutlich, nicht versteckt */
.demo-note { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.demo-note strong { color: var(--terra); font-weight: 500; }

/* picture-develops: das eine Foto der Käufer-Spalte */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, var(--ly-fit, 600px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* handschriftliche Notiz (Marke: Caveat, immer Terracotta) */
.hand { font: 600 26px/1.1 "Caveat", cursive; color: var(--terra-ink); }

/* Objektseite: Pfad über dem h1 */
.hero-kicker { margin: 0 0 var(--s-4); font-size: var(--t-small); }

/* Eckdaten: vier Zahlen in einer Reihe */
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); margin: 0; }
.keyfacts > div { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.keyfacts dt { font-size: 13px; color: var(--muted); }
.keyfacts dd { margin: var(--s-1) 0 0; font: var(--display-weight) 28px/1.15 var(--font-display); letter-spacing: -0.02em; }

/* Galerie: Bento oben, Raster darunter; jedes Foto ein Knopf zur Lightbox */
.gallery { display: grid; gap: var(--s-3); }
.gallery--lead { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); }
.gallery--lead > :first-child { grid-column: span 2; grid-row: span 2; }
.gallery--rest { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 216px; }
.gallery__item, .gallery__more { position: relative; display: block; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; background: var(--surface); }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: scale(1.03); } }
.gallery__more { display: grid; place-content: center; gap: var(--s-1); background: var(--p-ink); color: var(--p-bg); font: 500 16px/1.3 var(--font-text); cursor: pointer; }
.gallery__count { font: var(--display-weight) 48px/1 var(--font-display); letter-spacing: -0.03em; }
.link--btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; }
@media (max-width: 1023px) {
  .gallery--lead { grid-template-rows: repeat(2, 180px); }
  .gallery--rest { grid-auto-rows: 200px; }
}
@media (max-width: 639px) {
  .gallery--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px repeat(2, 120px); }
  .gallery--lead > :first-child { grid-row: span 1; }
  .gallery--rest { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .gallery__more { grid-column: 1 / -1; }
}

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f0f0f; color: #f3f1ec; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox__count { margin: 0; font: 500 15px/1 var(--font-text); }
.lightbox__stage { margin: 0; display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(243,241,236,.25); background: rgba(20,20,20,.6); color: inherit; cursor: pointer; }
.lightbox__btn:hover { background: rgba(243,241,236,.15); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
.lightbox__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.lightbox__thumbs button { flex: none; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #222; opacity: .6; }
.lightbox__thumbs button[aria-current] { border-color: #6cc3c3; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) { .lightbox__stage { padding: 0 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 96px; transform: none; } .lightbox__thumbs button { width: 64px; height: 44px; } }

/* Rechner und Formulare in einer Karte */
.calc, .form-card, .wizard { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); align-self: start; }
.calc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.calc__out { border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-2); }
.calc__rate { margin: var(--s-1) 0 var(--s-4); font: var(--display-weight) 48px/1 var(--font-display); letter-spacing: -0.03em; color: var(--p-accent); }
.calc__list { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); }
.calc__list > div { display: flex; justify-content: space-between; gap: var(--s-4); }
.calc__list dt { color: var(--muted); } .calc__list dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .calc, .form-card, .wizard { padding: var(--s-5); } .calc__fields { grid-template-columns: 1fr; } .calc__rate { font-size: 38px; } }
.form-photo { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 639px) { .form-photo { display: none; } }
.form__status.is-demo { color: var(--ink); background: color-mix(in srgb, var(--terra) 14%, transparent); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.demo-inline { color: var(--ink); background: color-mix(in srgb, var(--terra) 14%, transparent); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: 15px; }

/* Ansprechpartner ohne Foto: Monogramm */
.contact-person { display: flex; align-items: center; gap: var(--s-4); }
.contact-person .person__name { display: block; font-weight: 500; }
.contact-person .person__role { display: block; color: var(--muted); font-size: var(--t-small); }
.monogram { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--teal-tint); color: var(--p-accent); font: 500 18px/1 var(--font-text); }
.monotile { display: grid; place-items: center; background: var(--teal-tint); }
.monotile span { font: var(--display-weight) 96px/1 var(--font-display); letter-spacing: -0.04em; color: var(--p-accent); }

/* Chips: Filter und Terminart */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 15px/1 var(--font-text); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip:is([aria-pressed="true"], [aria-checked="true"]) { background: var(--p-ink); border-color: var(--p-ink); color: var(--p-bg); }
.sub-h { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0 0 var(--s-5); }
.tile__price-line { font: 500 var(--t-card)/1.3 var(--font-text); margin-top: calc(-1 * var(--s-2)); }
[data-filter-list] > [hidden] { display: none; }

/* Bewertungs-Assistent */
.wizard__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: var(--s-4); }
.wizard__bar > span { display: block; height: 100%; width: 20%; background: var(--p-accent); transition: width 400ms var(--ease); }
.wizard__count { margin: 0 0 var(--s-4); }
.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard__step legend { font: var(--display-weight) 28px/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: var(--s-5); padding: 0; }
.wizard__nav { margin-top: var(--s-6); }
.wizard__value { font: var(--display-weight) 40px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--p-accent); margin: var(--s-2) 0 var(--s-3); }
.wizard__result:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 4px; border-radius: 4px; }
.choices { display: grid; gap: var(--s-3); }
.choices--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-2); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: grid; gap: 2px; min-height: 56px; align-content: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, background .2s; }
.choice__box strong { font-weight: 500; }
.choice__box span { color: var(--muted); font-size: var(--t-small); }
.choice:hover .choice__box { border-color: var(--ink); }
.choice input:checked + .choice__box { border-color: var(--p-accent); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--p-accent); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); counter-reset: st; }
.steps-list li { counter-increment: st; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; color: var(--muted); }
.steps-list li::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; flex: none; }
.steps-list li.is-on { color: var(--ink); font-weight: 500; }
.steps-list li.is-on::before { border-color: var(--p-accent); color: var(--p-accent); }
.steps-list li.is-done::before { content: "✓"; background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
@media (max-width: 639px) { .choices--row { grid-template-columns: 1fr; } .steps-list { display: none; } }

/* Terminwahl */
.booking__label { margin: 0 0 var(--s-3); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.day, .slot { min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--p-surface); color: var(--ink); font: 400 15px/1.2 var(--font-text); cursor: pointer; transition: border-color .2s, background .2s; }
.day { display: grid; gap: 2px; padding: var(--s-2) 0; }
.day span { color: var(--muted); font-size: 13px; } .day strong { font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.day:hover, .slot:hover:not(:disabled) { border-color: var(--ink); }
.day[aria-checked="true"], .slot[aria-checked="true"] { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.day[aria-checked="true"] span { color: rgba(255,255,255,.8); }
.slot:disabled { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.booking__summary { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--teal-tint); border-radius: var(--r-md); font-weight: 500; }
@media (max-width: 639px) { .days { grid-template-columns: repeat(5, minmax(0, 1fr)); } .day { font-size: 13px; } }
.buero-photo { min-height: 480px; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1023px) { .buero-photo { min-height: 300px; } }

/* Rechtstexte */
.legal__body h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; margin-top: var(--s-5); }
.credit-list { columns: 2; gap: var(--s-6); padding-left: 1.1em; font-size: 14px; }
.credit-list a { color: var(--muted); }

/* Peek-Foto: auf Tablet und Handy eine feste Form, damit es nicht einklappt */
@media (max-width: 1023px) { .grid.fill[data-peek] > .frame--fill { position: relative; flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* Referenzen: ein großes Beispiel, drei als Liste */
.sold-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); align-content: start; }
.sold-list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-5); align-items: start; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.sold-list__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.sold-list__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sold-list h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0 0 var(--s-2); }
.sold-list .tile__facts { margin: 0 0 var(--s-2); }
.sold-list__state { margin: 0; display: flex; align-items: center; gap: var(--s-2); font-size: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--terra); flex: none; }
@media (max-width: 639px) { .sold-list li { grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-4); } }
.faq-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s-5); }

@media (max-width: 639px) { #objekte .grid > .tile, #angebote .grid > a.tile { grid-column: 1 / -1; } }

.rows--spec > li { grid-template-columns: auto minmax(0, 1fr); }
.rows--spec .rows__value { white-space: normal; text-align: right; text-wrap: balance; }
@media (max-width: 639px) { .keyfacts dd { font-size: 24px; } }
@media (min-width: 640px) and (max-width: 1023px) { #eigentuemer { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .grid.fill[data-peek] > .frame--fill { aspect-ratio: 1 / 1; } }
@media (max-width: 639px) { .grid.fill[data-peek] > .frame--fill { aspect-ratio: 4 / 5; } }

.section-head--row > .filter { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: none; }
@media (max-width: 639px) { .hero-kicker { display: none; } }
@media (min-width: 1024px) and (max-height: 820px) {
  .gallery--lead { grid-template-rows: repeat(2, 170px); }
  .gallery--rest { grid-auto-rows: 160px; }
}
#suchauftrag .form-photo { aspect-ratio: 4 / 3; }
@media (min-width: 640px) and (max-width: 1023px) {
  #angebote .grid > .tile.span-4 { grid-column: auto / span 4; }
  #angebote .grid > .tile.span-3 { grid-column: auto / span 3; }
  #angebote .tile__facts { display: none; }
}
@media (max-width: 639px) { #angebote .grid > a.tile { --tile-ratio: 16 / 9; } #angebote .sub-h { margin-top: var(--s-5); } }
@media (max-width: 639px) { #angebote article.tile .tile__facts { display: none; } #angebote .grid > a.tile .tile__facts { margin-bottom: 0; } }
@media (max-width: 639px) { main > section#angebote.g2 { --hm: 3; } main > section#angebote.g2 > .wrap { display: block; } #angebote .group + .group { margin-top: var(--s-8); } }
@media (max-width: 639px) { main > section#angebote.g2 { --hm: 2; } #angebote .section-head p { display: none; } #angebote .grid > a.tile { --tile-ratio: 2 / 1; } #angebote .group + .group { margin-top: var(--s-6); } }

.calc__rate, .wizard__value, .monotile span { color: #236c6c; }
.tile__head > h3, .sold-list h3 { hyphens: manual; }
@media (max-width: 639px) { #vor-ort .grid > .tile { grid-column: 1 / -1; } }
