/* ============================================================
   Immo Jungkind — shared styles
   Design system: see ../design.md  (RealAgent-structure clone)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:         #FCFCFC;
  --ink:        #0C0D0E;
  --ink-soft:   #4E5257;
  --gray:       #8D9499;
  --gray-light: #F0F2F3;
  --dark:       #151819;
  --dark-card:  #1E2224;
  --dark-deep:  #0B0D0E;
  --paper:      #FDFDFD;
  --line:       rgba(12, 13, 14, .12);
  --line-dark:  rgba(255, 255, 255, .14);
  --green:      #45AA3E;
  --error:      #B3401F;

  --radius:   8px;
  --radius-s: 4px;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 160px);
  --gap: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);

  --track-tight: -0.05em;
  --track: -0.04em;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Mea Culpa", cursive;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--track);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.on-dark :focus-visible, .footer :focus-visible, .menu-overlay :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--track-tight);
}
.display-page {
  font-size: clamp(40px, 5.8vw, 83px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--track-tight);
}
.h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: var(--track-tight); }
.body-l { font-size: 18px; line-height: 1.55; }
.small { font-size: 14px; line-height: 1.4; }
.label { font-size: 14px; font-weight: 500; color: var(--gray); }
.muted { color: var(--gray); }
.soft { color: var(--ink-soft); }

p { max-width: 64ch; }

.measure-none { max-width: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }
.section--top-line { border-top: 1px solid var(--line); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head__title { grid-column: 1 / 6; }
.section-head__title .label { display: block; margin-bottom: 20px; }
.section-head__body { grid-column: 7 / 13; }
.section-head__body .lead { margin-bottom: 28px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head__title, .section-head__body { grid-column: 1 / -1; }
}

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-block: 28px;
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.site-header__brand {
  font-size: 17px; font-weight: 800; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 7px;
}
.site-header__brand .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.site-header__contact .label { display: block; font-size: 13px; margin-bottom: 2px; }
.site-header__contact a { font-size: 14px; font-weight: 600; }
.site-header__stat { display: flex; align-items: baseline; gap: 10px; }
.site-header__stat strong { font-size: 24px; font-weight: 600; letter-spacing: var(--track-tight); }
.site-header__stat strong sup { font-size: 14px; font-weight: 600; }
.site-header__stat span { font-size: 12.5px; line-height: 1.25; max-width: 80px; }
.site-header__menu { justify-self: end; }

.header--light { color: #fff; }
.header--light .label, .header--light .site-header__stat span { color: rgba(255,255,255,.64); }
.header--dark  { color: var(--ink); }
.header--dark .label, .header--dark .site-header__stat span { color: var(--gray); }

@media (max-width: 860px) {
  .site-header__contact, .site-header__stat { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
}

/* ---------- Links ---------- */
.link-dots {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: var(--track);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.link-dots .dots { display: inline-flex; gap: 4px; transition: transform .45s var(--ease); }
.link-dots .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; }
.link-dots:hover .dots { transform: translateX(4px); }
.link-dots:active { transform: scale(.98); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 600;
}
.link-arrow .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.link-arrow .ring svg { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.link-arrow:hover .ring { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.on-dark .link-arrow:hover .ring, .footer .link-arrow:hover .ring { background: #fff; border-color: #fff; color: var(--dark-deep); }
.link-arrow:hover .ring svg { transform: translateX(2px); }
.link-arrow:active { transform: scale(.98); }

/* ---------- Overlay menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in oklab, var(--dark-deep) 96%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 28px var(--gutter) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-overlay__top { display: flex; justify-content: space-between; align-items: center; }
.menu-overlay__nav { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.menu-overlay__nav a {
  font-size: clamp(36px, 5vw, 60px); font-weight: 500; letter-spacing: var(--track-tight); line-height: 1.15;
  display: inline-flex; align-items: baseline; gap: 18px; width: fit-content;
  opacity: 0; transform: translateY(48px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .3s var(--ease);
}
.menu-overlay__nav a sup { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: 0; }
.menu-overlay__nav a:hover { color: rgba(255,255,255,.55); }
.menu-overlay__nav a[aria-current="page"] { color: rgba(255,255,255,.45); }
.menu-overlay.is-open .menu-overlay__nav a { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(1) { transition-delay: .10s; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(2) { transition-delay: .19s; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(3) { transition-delay: .28s; }
.menu-overlay.is-open .menu-overlay__nav a:nth-child(4) { transition-delay: .37s; }
.menu-overlay__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  color: rgba(255,255,255,.64); font-size: 14px;
}
.menu-overlay__foot a:hover { color: #fff; }
.menu-overlay__close { color: #fff; }

/* ---------- Hero (home slider) ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--dark);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,13,14,.62) 0%, rgba(11,13,14,.18) 38%, rgba(11,13,14,.10) 100%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: clamp(40px, 6vh, 72px);
}
.hero__listing .badge { margin-bottom: 20px; }
.hero__title { margin-bottom: 18px; max-width: 12ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 26px; }
.hero__meta strong { color: #fff; font-weight: 600; font-size: 17px; }
.hero__nav { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hero__count { font-size: 14px; color: rgba(255,255,255,.7); min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.hero__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .2s var(--ease);
}
.hero__btn svg { width: 15px; height: 15px; }
.hero__btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero__btn:active { transform: scale(.94); }

@media (max-width: 760px) {
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__nav { align-self: flex-end; }
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.5vw, 32px); row-gap: clamp(40px, 4vw, 56px); }
.prop-card { display: block; grid-column: span 4; }
.prop-card--featured { grid-column: span 6; }
.prop-card__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--gray-light); margin-bottom: 18px;
}
.prop-card--featured .prop-card__media { aspect-ratio: 3 / 2; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .9s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.045); }
.prop-card__media .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.prop-card__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.prop-card__meta { font-size: 14px; color: var(--gray); margin-bottom: 6px; }
.prop-card__price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) { .prop-card, .prop-card--featured { grid-column: span 6; } }
@media (max-width: 660px) { .prop-card, .prop-card--featured { grid-column: span 12; } }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.about-teaser__text { grid-column: 1 / 6; }
.about-teaser__text .label { display: block; margin-bottom: 20px; }
.about-teaser__text .h2 { margin-bottom: 8px; }
.signature { font-family: var(--font-script); font-size: 52px; line-height: 1; color: var(--ink-soft); letter-spacing: 0; margin: 4px 0 24px; }
.about-teaser__text > p { color: var(--ink-soft); margin-bottom: 32px; }
.contact-rows { display: grid; gap: 14px; margin-bottom: 36px; }
.contact-rows > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; font-size: 14px; }
.contact-rows dt { color: var(--gray); font-weight: 500; }
.contact-rows dd { font-weight: 600; }
.about-teaser__collage {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-teaser__collage figure { border-radius: var(--radius); overflow: hidden; background: var(--gray-light); }
.about-teaser__collage figure:nth-child(1) { aspect-ratio: 3 / 4; }
.about-teaser__collage figure:nth-child(2) { aspect-ratio: 1 / 1; margin-top: 48px; }
.about-teaser__collage figure:nth-child(3) { aspect-ratio: 1 / 1; margin-top: -48px; }
.about-teaser__collage figure:nth-child(4) { aspect-ratio: 3 / 4; }
.about-teaser__collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.about-teaser__collage figure:hover img { transform: scale(1.045); }

@media (max-width: 980px) {
  .about-teaser__text, .about-teaser__collage { grid-column: 1 / 13; }
  .about-teaser__collage figure:nth-child(2) { margin-top: 24px; }
  .about-teaser__collage figure:nth-child(3) { margin-top: -24px; }
}

/* ---------- Dark band / bento ---------- */
.band-dark { background: var(--dark); color: #fff; }
.band-dark .label { color: rgba(255,255,255,.5); }
.band-dark .muted { color: var(--gray); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { border-radius: var(--radius); min-height: 200px; position: relative; overflow: hidden; }
.bento-text { background: var(--dark-card); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.bento-text .h3 { max-width: 12ch; }
.bento-text p { font-size: 14px; color: var(--gray); }
.bento-text .icon { position: absolute; top: 22px; right: 22px; width: 22px; height: 22px; color: rgba(255,255,255,.55); }
.bento-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-stat { background: var(--dark-card); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.bento-stat--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-stat--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,13,14,.72), rgba(11,13,14,.12)); }
.bento-stat__inner { position: relative; z-index: 2; margin-top: auto; }
.stat-num { font-size: clamp(40px, 4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: var(--track-tight); font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: .45em; font-weight: 600; }
.bento-stat__label { font-size: 14px; color: rgba(255,255,255,.66); margin-top: 8px; max-width: 18ch; }
.bento-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px;
  font-size: 22px; font-weight: 500; letter-spacing: var(--track-tight);
  background: linear-gradient(to top, rgba(11,13,14,.7), transparent);
}
.avatar-row { display: flex; }
.avatar-row img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--dark-card); object-fit: cover; }
.avatar-row img + img { margin-left: -10px; }

.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-5 { grid-column: span 5; }
.bento .span-6 { grid-column: span 6; }
.bento .span-8 { grid-column: span 8; }
.bento .row-2 { grid-row: span 2; min-height: 416px; }

@media (max-width: 980px) {
  .bento .span-3, .bento .span-4, .bento .span-5, .bento .span-8 { grid-column: span 6; }
  .bento .row-2 { min-height: 320px; }
}
@media (max-width: 620px) {
  .bento .span-3, .bento .span-4, .bento .span-5, .bento .span-6, .bento .span-8 { grid-column: span 12; }
}

/* ---------- FAQ ---------- */
.faq { columns: 2; column-gap: clamp(32px, 4vw, 64px); }
.faq-item { break-inside: avoid; border-top: 1px solid var(--line); }
.faq-item__q {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 24px 0; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.4;
}
.faq-item__q .plus { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; transition: transform .45s var(--ease); color: var(--ink); }
.faq-item.is-open .faq-item__q .plus { transform: rotate(45deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { color: var(--ink-soft); font-size: 15px; padding-bottom: 24px; }
.faq__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); }
.faq__cta-note { display: flex; align-items: flex-start; gap: 12px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 7px; position: relative; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 70% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) { .faq { columns: 1; } }

/* ---------- Testimonials ---------- */
.band-light { background: var(--gray-light); }
.quotes { columns: 3; column-gap: 20px; }
.quote-card, .profile-card {
  break-inside: avoid; background: var(--paper); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(12, 13, 14, .05);
}
.quote-card blockquote { font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: var(--track-tight); margin-bottom: 32px; }
.quote-card footer, .profile-card header { display: flex; align-items: center; gap: 12px; }
.quote-card footer img, .profile-card header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.quote-card footer strong { display: block; font-size: 14px; font-weight: 600; }
.quote-card footer span { font-size: 13.5px; color: var(--gray); }
.profile-card header { margin-bottom: 14px; }
.profile-card header strong { font-size: 15px; font-weight: 600; }
.profile-card p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 980px) { .quotes { columns: 2; } }
@media (max-width: 640px) { .quotes { columns: 1; } }

/* ---------- Posts (Ratgeber) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.post-grid--wide { grid-template-columns: repeat(2, 1fr); row-gap: clamp(48px, 5vw, 72px); }
.post-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--gray-light); margin-bottom: 18px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; max-width: 30ch; }
.post-card__date { font-size: 14px; color: var(--gray); }

@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid, .post-grid--wide { grid-template-columns: 1fr; } }

/* ---------- Page hero (dark band, inner pages) ---------- */
.page-hero { position: relative; min-height: 78dvh; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--dark); overflow: hidden; padding-top: 120px; }
.page-hero__img { position: absolute; inset: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,13,14,.55), rgba(11,13,14,.2) 45%, rgba(11,13,14,.6)); }
.page-hero__intro { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.page-hero__intro-inner { grid-column: 7 / 13; display: flex; gap: 18px; align-items: flex-start; }
.page-hero__intro-inner img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.page-hero__intro-inner .lead { color: rgba(255,255,255,.92); }
.page-hero__bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(36px, 5vh, 64px); }

@media (max-width: 860px) {
  .page-hero__intro-inner { grid-column: 1 / 13; }
  .page-hero__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Filter pills ---------- */
.filter-pills { display: inline-flex; gap: 8px; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px; border-radius: 999px; }
.filter-pills button { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; color: rgba(255,255,255,.8); transition: background .35s var(--ease), color .35s var(--ease); }
.filter-pills button:hover { color: #fff; }
.filter-pills button.is-active { background: var(--bg); color: var(--ink); }

/* ---------- Spec tables (detail) ---------- */
.spec h3 { font-size: 20px; font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.spec dl { display: grid; }
.spec dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 13px 0; }
.spec dt { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); align-self: center; }
.spec dd { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 36px; }
.form-field label { display: block; font-size: 14px; color: var(--gray); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; font-size: 20px; font-weight: 500; letter-spacing: var(--track-tight);
  color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 0 14px; border-radius: 0; transition: border-color .35s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field .error-msg { display: none; font-size: 14px; color: var(--error); margin-top: 8px; }
.form-field.has-error input, .form-field.has-error textarea { border-bottom-color: var(--error); }
.form-field.has-error .error-msg { display: block; }
.form-consent { display: flex; gap: 14px; align-items: flex-start; }
.form-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.form-consent label { font-size: 13.5px; color: var(--gray); line-height: 1.5; max-width: 56ch; }
.form-success { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--dark-deep); color: #fff; overflow: hidden; }
.footer__bg { position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent); mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent); }
.footer__inner { position: relative; z-index: 2; padding-block: 56px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 14px; font-weight: 600; }
.footer__nav a { color: rgba(255,255,255,.78); transition: color .3s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.footer__social a:hover { background: #fff; color: var(--dark-deep); border-color: #fff; }
.footer__social svg { width: 15px; height: 15px; }
.footer__contact { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; align-items: flex-start; padding-block: 44px; }
.footer__contact .label { color: rgba(255,255,255,.5); display: block; margin-bottom: 4px; }
.footer__contact strong { font-size: 15px; font-weight: 600; }
.footer__contact address { font-style: normal; font-size: 15px; font-weight: 600; line-height: 1.5; }
.footer__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-left: auto; }
.footer__cta { padding-block: clamp(40px, 7vh, 88px) clamp(56px, 8vh, 104px); }
.footer__cta .label { color: rgba(255,255,255,.6); display: block; margin-bottom: 16px; }
.footer__cta .display { margin-bottom: 36px; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,255,255,.5); }
.footer__legal a:hover { color: #fff; }
.footer__legal nav { display: flex; gap: 24px; }
.footer__stars { position: absolute; left: 18px; top: 50%; z-index: 2; transform: rotate(180deg) translateY(50%); writing-mode: vertical-rl; font-size: 11.5px; letter-spacing: .14em; color: rgba(255,255,255,.55); display: none; }
@media (min-width: 1480px) { .footer__stars { display: block; } }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: transform, opacity, filter;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); will-change: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(11,13,14,.94);
  display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 80px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); object-fit: contain; }
.lightbox__close { position: absolute; top: 24px; right: 24px; color: #fff; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; }
.lightbox__btn--prev { left: 24px; }
.lightbox__btn--next { right: 24px; }
.lightbox__btn:hover, .lightbox__close:hover { background: #fff; color: var(--ink); }

/* ---------- Platzhalter (Inhalte werden nachgereicht) ---------- */
.ph { font-weight: 600; color: inherit; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-xl { margin-top: clamp(48px, 6vw, 80px); }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.no-scroll { overflow: hidden; }

/* ---------- WhatsApp floating widget ----------
   Round contact FAB in the Quiet Ledger style: a solid ink circle with a
   white glyph and a small green availability signal (the one sanctioned
   use of green). Inverts to paper-on-ink on hover like the site's other
   circular buttons. Sits below the menu overlay (z 50) and lightbox (z 60),
   so it hides when either is open. Brand-faithful exception: a soft drop
   shadow is allowed here because a floating element must lift off scrolling
   content; a faint inset hairline keeps the circle defined over dark imagery. */
.wa-fab {
  position: fixed; z-index: 40;
  right: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 32px);
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 20px -6px rgba(11, 13, 14, .4), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover {
  background: #fff; color: var(--ink); transform: scale(1.06);
  box-shadow: 0 10px 26px -8px rgba(11, 13, 14, .45), inset 0 0 0 1px var(--line);
}
.wa-fab:active { transform: scale(.97); }

.wa-fab__dot {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--ink);
}
.wa-fab:hover .wa-fab__dot { border-color: #fff; }
.wa-fab__dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--green); opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

.wa-fab__label {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); white-space: nowrap; pointer-events: none;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: var(--track);
  padding: 9px 14px; border-radius: 999px;
  opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
@media (pointer: fine) {
  .wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: translate(0, -50%); }
}
@media (pointer: coarse) { .wa-fab__label { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__slide img, .prop-card__media img, .post-card__media img { transition: none; transform: none; }
  .pulse-dot::after, .wa-fab__dot::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Touch / coarse-pointer adaptation ----------
   Phone-first for an older audience: guarantee comfortable 44px tap
   targets on touch devices without altering the pointer/desktop layout.
   The visual size of each element is unchanged; only the hit area grows. */
@media (pointer: coarse) {
  .link-dots,
  .link-arrow { min-height: 44px; }
  .filter-pills button { min-height: 44px; }
  .footer__social a { width: 44px; height: 44px; }
  .form-consent input { width: 20px; height: 20px; margin-top: 2px; }
}

/* ---------- Small-screen readability (<= 480px) ----------
   Nudge the smallest functional text up one step for older eyes on phones.
   Body, lead, and headings are already comfortable and left untouched. */
@media (max-width: 480px) {
  .prop-card__meta,
  .post-card__date,
  .bento-text p { font-size: 15px; }
  .faq-item__a p { font-size: 15px; line-height: 1.55; }
}

/* ---------- Landscape phones / short viewports ----------
   The full-height menu overlay vertically centers a large nav with
   margin:auto, which overflows when the viewport is short (landscape
   phones). Let it scroll and tighten the type so every link stays reachable. */
@media (orientation: landscape) and (max-height: 560px) {
  .menu-overlay { overflow-y: auto; padding-block: 20px 28px; }
  .menu-overlay__nav { margin: 24px 0; gap: 2px; }
  .menu-overlay__nav a { font-size: clamp(26px, 6vh, 40px); }
}
