/* Gitta Paulat Immobilien — seitenspezifische Ergänzungen zu components.css.
   Werte ausschließlich über Tokens aus tokens.css. Keine Schatten, keine Rundungen, keine Verläufe. */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-16)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; }
body.gp-root { font-size: 18px; line-height: 1.65; font-weight: 400; }
[hidden] { display: none !important; }
main { display: block; }
main:focus { outline: none; }
.gp-root p { margin: 0 0 var(--space-16); }
.gp-root .gm-eyebrow, .gp-root .gm-small, .gp-root .gm-lead, .gp-root .gm-quote { margin-bottom: 0; }
.gp-root .gm-eyebrow { margin-bottom: var(--space-16); }

/* Sprunglink */
.skip-link { position: absolute; left: var(--space-16); top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: var(--space-12) var(--space-16); text-decoration: none; font-size: 15px; }
.skip-link:focus { top: var(--space-16); }

/* Header: Burger-Icons tauschen, Drawer-Kontakt */
.gm-burger .icon-close { display: none; }
.gm-burger[aria-expanded="true"] .icon-menu { display: none; }
.gm-burger[aria-expanded="true"] .icon-close { display: block; }
.gm-drawer .drawer-contact { margin-top: var(--space-24); }
.gm-drawer .drawer-contact a { font-family: var(--font-body); font-size: 16px; line-height: 1.8; display: inline; }
.gm-drawer a[aria-current="page"] { color: var(--bordeaux); }
@media (min-width: 1081px) { .gm-drawer { display: none !important; } }
@media (max-width: 1180px) and (min-width: 1081px) { .gm-header-nav ul { gap: var(--space-16); } .gm-header-phone span { display: none; } }

/* Hero: kein horizontales Scrollen auf schmalen Geräten */
.gm-hero .gm-display { overflow-wrap: anywhere; hyphens: manual; }

/* Statusetiketten (StatusRibbon) */
.gp-ribbon.is-sold { background: var(--ink); }
.gp-ribbon.is-reserved { background: var(--warning); }
.gp-ribbon.is-new { background: var(--bordeaux); }

/* Seitenkopf der Unterseiten */
.page-head { padding: clamp(var(--space-48), 7vw, var(--space-96)) 0 0; }
.page-head .gm-lead { max-width: 40em; }

/* Leistungsseiten: Text + Stimmungsbild im Logo-Rahmen */
.svc-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(var(--space-32), 6vw, var(--space-96)); align-items: start; }
.svc-text h2:not(.gm-h2) { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; margin: var(--space-48) 0 var(--space-16); }
.svc-text h2:not(.gm-h2):first-child { margin-top: 0; }
.svc-text p { max-width: 38em; }
.svc-text ul { margin: 0 0 var(--space-24); padding: 0; list-style: none; display: grid; gap: var(--space-8); }
.svc-text ul li { padding-left: var(--space-32); position: relative; }
.svc-text ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 16px; height: 1px; background: var(--bordeaux); }
.svc-media { position: sticky; top: calc(var(--header-height) + var(--space-32)); }
.svc-media .gm-frame { aspect-ratio: 4 / 5; }
.svc-media .gm-frame-content img { width: 100%; height: 100%; object-fit: cover; }
.svc-cta { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } .svc-media { position: static; max-width: 420px; } }

/* Über mich */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(var(--space-32), 6vw, var(--space-96)); align-items: start; }
.about-portrait .gm-frame { aspect-ratio: 638 / 797; }
.about-sign { width: 280px; max-width: 70%; margin-top: var(--space-32); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-portrait { max-width: 380px; order: -1; } }

/* Rechtstexte */
.legal { max-width: var(--text-width); }
.legal h1 { margin-bottom: var(--space-32); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.35; margin: var(--space-48) 0 var(--space-12); }
.legal h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: var(--space-32) 0 var(--space-8); }
.legal p, .legal li { font-size: 17px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--bordeaux); }
.todo { background: var(--warning); color: var(--paper); padding: 0 var(--space-4); font-size: 14px; }

/* Objekte-Seite */
.prop-filter-wrap { margin-bottom: var(--space-48); }
.gm-prow[data-hidden] { display: none; }
.prop-empty { padding: var(--space-48) 0; border-top: var(--border-hairline) solid var(--ink); color: var(--grey-700); }
.gm-prow-media img, .gm-prow-media .gm-placetile { width: 100%; height: 100%; }
.gm-prow .gm-prop-title a { overflow-wrap: anywhere; }
.prow-quick { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.prow-quick:hover { color: var(--bordeaux); }

/* Exposé-Seite */
.expose { padding-top: clamp(var(--space-32), 5vw, var(--space-64)); }
.expose .gp-detail-title { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 400; }
.expose .gp-detail-price { font-size: 26px; }
.expose-place { margin-bottom: var(--space-8); }
.expose-rich p { margin: 0 0 var(--space-16); }
.expose-rich ul { padding-left: var(--space-24); margin: 0 0 var(--space-16); }
.expose-rich h4 { font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: var(--space-24) 0 var(--space-8); }
.expose .gp-detail-columns .h3-like { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-700); }
.expose .gp-share a { text-underline-offset: 3px; }
.expose .gp-share a:hover { color: var(--bordeaux); }
.expose-energy { margin-top: var(--space-48); max-width: 560px; }
.expose-gallery-empty { aspect-ratio: 4 / 3; }
.expose .gp-gallery-stage img { cursor: zoom-in; }
.gp-gallery-nav:hover { color: var(--bordeaux); }
@media (max-width: 600px) { .gp-gallery.is-vertical { flex-direction: column; } .gp-gallery.is-vertical .gp-gallery-thumbs { flex-direction: row; width: auto; } }

/* Lightbox (Vollbild-Galerie auf der Exposé-Seite) */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(21, 19, 19, .94); display: flex; align-items: center; justify-content: center; padding: var(--space-48) var(--space-64); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); width: 56px; height: 56px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .lb-close { top: var(--space-8); right: var(--space-8); }
.lightbox .lb-prev { left: var(--space-8); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--space-8); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: var(--space-16); left: 50%; transform: translateX(-50%); color: var(--paper); font-size: 14px; }
.lightbox button:focus-visible { outline: var(--border-focus) solid var(--focus-ring-on-dark); }
@media (max-width: 600px) { .lightbox { padding: var(--space-64) var(--space-8); } }

/* Schnellansicht */
.gp-modal-body .gp-facts { margin-top: var(--space-8); }
.gp-modal-body .gp-btn { align-self: flex-start; margin-top: var(--space-8); }
.gp-modal-media .gm-placetile { min-height: 320px; }
body.has-modal { overflow: hidden; }

/* Bewertungsstrecke: Schritte ohne JS sichtbar halten wäre unübersichtlich – JS blendet um */
.gm-val-card .gp-field.is-wide, .gm-val-card .gp-form-consent.is-wide { grid-column: 1 / -1; }
.gm-val-step[hidden] { display: none; }

/* Formularstatus */
.gp-form-status.is-ok { color: var(--success); }

/* Schnellkontakt nur mobil */
.gp-quick-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-8); }
@media (min-width: 861px) { .gp-quick { display: none; } }

/* Referenzen ohne Einträge ausblenden */
.gm-refs:has(.gm-ref-list:empty) { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Drei kleine Kundenstimmen nebeneinander */
@media (min-width: 761px) { .gm-quote-row { grid-template-columns: repeat(3, 1fr); } }
.gm-refs-grid > .gm-heading { align-self: start; }
