/* =========================================================================
   Görner – Immobilien & Hausverwaltung
   Küstenlicht · Farb- und Formwelt aus dem Logo (Navy · Sand · Meer)
   Reines CSS, kein Build-Schritt. Hell- und Dunkelmodus über Tokens.
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS */
:root {
  /* Marken-Rohfarben (fix, themenunabhängig) */
  --navy:        #1c2f4e;
  --navy-deep:   #15243c;
  --navy-mid:    #26436e;
  --sand:        #b1936c;
  --sand-deep:   #8f7452;
  --sun:         #e6b877;
  --water:       #6f93b0;
  --navy-fixed:  #15243c;   /* immer dunkle Bänder (Kontakt/Footer) */

  /* Semantische Tokens – Hell (warmes Off-White) */
  --bg:          #fbf8f3;
  --bg-tint:     #f3ebdd;
  --surface:     #ffffff;
  --surface-2:   #f7f1e6;
  --text:        #27313d;
  --text-muted:  #5d6b7a;
  --heading:     #1c2f4e;
  --wordmark:    #1c2f4e;
  --line:        #e4dbca;
  --line-strong: #ddd0b8;
  --accent:      #8f7452;   /* Sand als Text/Linie (kontraststark) */
  --accent-soft: #b1936c;
  --ring:        #26436e;

  --btn-bg:       #1c2f4e;
  --btn-fg:       #fbf8f3;
  --btn-bg-hover: #15243c;

  --header-bg:   rgba(251, 248, 243, .9);

  --shadow-sm: 0 1px 2px rgba(21, 36, 60, .05), 0 6px 16px -10px rgba(21, 36, 60, .20);
  --shadow:    0 1px 2px rgba(21, 36, 60, .05), 0 16px 36px -16px rgba(21, 36, 60, .26);

  /* Maße & Schrift */
  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 72px;

  --serif:  "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans:   "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Parisienne", "Segoe Script", "Brush Script MT", cursive;
}

/* Diese Seite ist bewusst einheitlich HELL gehalten (warmes Off-White) –
   unabhängig von der System-Einstellung des Besuchers. Kein Dunkelmodus. */

/* ----------------------------------------------------------------- RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-mid); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  color: var(--heading);
  letter-spacing: .01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
ul { padding-left: 1.15rem; }
strong, b { font-weight: 700; }
::selection { background: rgba(230, 184, 119, .38); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 3px; }

/* Scroll-Reveal – nur mit JS aktiv, bleibt sonst sichtbar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------- LAYOUT */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; }
:where(section[id], [id].anchor) { scroll-margin-top: calc(var(--header-h) + 14px); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-fixed); color: #e8ecf3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #cfe0ef; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--sun); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head h2 { font-size: clamp(1.95rem, 4.4vw, 2.9rem); }
.section__head p { margin-top: .9rem; color: var(--text-muted); font-size: 1.075rem; }
.section--navy .section__head p { color: #c3cdda; }

/* --------------------------------------------------------------- BUTTONS */
.btn {
  --bg: var(--btn-bg);
  --fg: var(--btn-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95em 1.7em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.btn--sm { padding: .6em 1.1em; font-size: .78rem; }

.section--navy .btn { --bg: var(--sun); --fg: var(--navy-deep); --btn-bg-hover: #f0c98d; border-color: var(--sun); }
.section--navy .btn:hover { color: var(--navy-deep); }
.section--navy .btn--ghost { --bg: transparent; color: #eef3f8; border-color: rgba(255, 255, 255, .4); }
.section--navy .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------------------------------------------------------------- PARTNER BAR */
.partner-bar {
  background: var(--navy-fixed);
  border-bottom: 1px solid rgba(230, 184, 119, .2);
  padding: 8px 1.25rem;
  font-size: .75rem;
}
.partner-bar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.partner-bar__label {
  background: rgba(230, 184, 119, .15);
  color: var(--sun);
  border: 1px solid rgba(230, 184, 119, .35);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.partner-bar__text { color: #9baec6; }
.partner-bar__link {
  color: var(--sun);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .15s;
  text-decoration: none;
}
.partner-bar__link:hover { opacity: .8; }

/* ---------------------------------------------------------------- HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(9px);
  backdrop-filter: saturate(180%) blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: .6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--wordmark); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: .24em; color: var(--wordmark); }
.brand__sub { font-size: .57rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--heading); background: var(--surface-2); }
.nav a.nav__cta { color: var(--heading); border: 1px solid var(--accent-soft); margin-left: .5rem; }
.nav a.nav__cta:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(4px); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: .9rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.nav__cta { margin: .8rem 0 0; text-align: center; border: 1px solid var(--accent-soft); border-radius: var(--radius); }
  .site-header.is-open .nav-toggle__bars { transform: rotate(45deg); }
  .site-header.is-open .nav-toggle__bars::before { transform: translateY(0); opacity: 0; }
  .site-header.is-open .nav-toggle__bars::after { transform: translateY(-2px) rotate(-90deg); }
}

/* ------------------------------------------------------------------ HERO */
.hero { position: relative; overflow: hidden; background: var(--bg); text-align: center; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 4%, rgba(230, 184, 119, .32), rgba(230, 184, 119, 0) 70%),
    radial-gradient(70% 55% at 88% -8%, rgba(230, 184, 119, .10), transparent 62%),
    radial-gradient(70% 55% at 8% -6%, rgba(177, 147, 108, .10), transparent 62%);
}
.hero__sun {
  position: absolute; z-index: -1; left: 50%; top: clamp(1.6rem, 6vw, 3.2rem);
  width: clamp(150px, 34vw, 260px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(230, 184, 119, .55), rgba(230, 184, 119, .12) 60%, transparent 72%);
  filter: blur(2px);
  opacity: 0; animation: sunrise 1.6s ease .15s forwards;
}
@keyframes sunrise { from { opacity: 0; transform: translate(-50%, 14px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__sun { opacity: 1; animation: none; transform: translateX(-50%); } }

.hero__inner { max-width: 52rem; margin-inline: auto; padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad) clamp(4.5rem, 11vw, 7rem); }
.hero__crest { width: clamp(78px, 14vw, 112px); height: auto; margin: 0 auto 1.6rem; }
.hero__wordmark {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.7rem, 8.5vw, 4.8rem);
  letter-spacing: .2em; color: var(--wordmark); line-height: 1;
  text-indent: .2em; /* optischer Ausgleich für das Tracking */
}
.hero__kicker { margin-top: 1.2rem; font-weight: 700; font-size: clamp(.72rem, 2.4vw, .84rem); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.hero__anchor-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; color: var(--accent-soft); }
.hero__anchor-row span { height: 1px; width: min(72px, 18vw); background: currentColor; opacity: .7; }
.hero__anchor-row svg { width: 20px; height: 22px; flex: none; }
.hero__slogan { font-family: var(--script); font-size: clamp(1.9rem, 5.5vw, 3rem); color: var(--heading); margin-top: 1.1rem; line-height: 1.1; }
.hero__lead { margin: 1.4rem auto 0; max-width: 34rem; color: var(--text-muted); font-size: 1.1rem; }
.hero .btn-row { justify-content: center; margin-top: 2.2rem; }
.hero__trust { margin-top: 2.6rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* ------------------------------------------------------- WELLEN-TRENNER */
.wave { line-height: 0; background: var(--wave-top, transparent); }
.wave svg { width: 100%; height: clamp(30px, 5vw, 58px); display: block; fill: var(--wave-bottom, var(--bg)); }
.wave.to-tint { --wave-top: var(--bg);      --wave-bottom: var(--bg-tint); }
.wave.to-bg   { --wave-top: var(--bg-tint); --wave-bottom: var(--bg); }
.wave.to-navy { --wave-top: var(--bg);      --wave-bottom: var(--navy-fixed); }

/* ----------------------------------------------------------------- ÜBER */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: start;
}
.about__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-tint));
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.about__photo img { display: block; width: 100%; height: auto; }
.about__photo-ph { padding: 1.5rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.about__photo-ph svg { width: 48px; height: 48px; margin: 0 auto .7rem; color: var(--accent-soft); }
.about__body h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.about__body > p { margin-top: 1rem; color: var(--text); max-width: 42rem; }
.about__facts { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: .65rem; }
.about__facts li { position: relative; padding-left: 1.8rem; color: var(--text); }
.about__facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .72rem; height: .72rem; border: 2px solid var(--accent-soft); border-radius: 50%;
}
.about__sign { font-family: var(--script); font-size: 2rem; color: var(--heading); margin-top: 1.6rem; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
}

/* ------------------------------------------------------------ LEISTUNGEN */
.svc-lead { font-family: var(--serif); font-size: 1.55rem; color: var(--heading); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.svc-card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2); color: var(--heading);
  margin-bottom: 1rem; border: 1px solid var(--line);
}
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.06rem; color: var(--heading); letter-spacing: 0; line-height: 1.3; }
.svc-card p { margin-top: .4rem; font-size: .95rem; color: var(--text-muted); }

.svc-split { margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.3rem); background: var(--surface); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.panel--accent { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border-color: var(--line-strong); }
.panel h3 { font-size: 1.5rem; }
.panel p { margin-top: .7rem; color: var(--text-muted); }
.panel .price {
  display: inline-flex; align-items: baseline; gap: .45rem; margin-top: auto; padding-top: 1.1rem;
  font-family: var(--serif); font-size: 2.15rem; font-weight: 700; color: var(--heading);
}
.panel .price small { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 700px) { .svc-split { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- ANGEBOTE */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: .5rem; }
.listing {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.listing:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing__media {
  aspect-ratio: 3 / 2; min-height: 180px; position: relative;
  background: linear-gradient(150deg, var(--sand) -10%, var(--water) 120%);
  display: grid; place-items: center; color: rgba(255, 255, 255, .92);
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.listing__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  background: var(--navy-fixed); color: #f6f3ec;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 3px;
}
.listing__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.listing__body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--heading); }
.listing__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .9rem; color: var(--text-muted); }
.listing__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.listing__meta svg { width: 15px; height: 15px; color: var(--accent-soft); flex: none; }
.listing__note { font-size: .95rem; color: var(--text-muted); }
.listing__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); }
.listing__price { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--heading); }

/* --------------------------------------------------------------- KONTAKT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.2rem); }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: .15rem; }
.contact-list a { color: #eaf1f8; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-list .label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); font-weight: 700; margin-bottom: .15rem; }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cdd8e4; }
.form input, .form textarea {
  font: inherit; color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  padding: .8rem .9rem; text-transform: none; letter-spacing: normal; width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.form__hint { font-size: .8rem; font-weight: 400; letter-spacing: normal; text-transform: none; color: #aab7c6; }
.form__status { font-size: .9rem; color: #d7f0d9; min-height: 1.2em; }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { background: var(--navy-deep); color: #b9c4d3; padding-block: 3rem 2rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: .7rem; }
.site-footer__brand svg { width: 36px; height: 36px; }
.site-footer__brand b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .2em; color: #fff; font-weight: 700; }
.site-footer__slogan { font-family: var(--script); font-size: 1.35rem; color: #dbe4ef; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { color: #b9c4d3; text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #8695a8; }

/* ------------------------------------------------------------ RECHTSSEITEN */
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3.5rem, 9vw, 6rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .4rem; }
.legal .lede { color: var(--text-muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; margin-bottom: .5rem; }
.legal h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 700; margin-top: 1.4rem; margin-bottom: .3rem; color: var(--heading); }
.legal p, .legal ul { margin-top: .6rem; color: var(--text); }
.legal address { font-style: normal; line-height: 1.9; }
.legal a { word-break: break-word; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 3rem; font-weight: 700; text-decoration: none; color: var(--heading); }
.legal .back:hover { gap: .7rem; }
mark.todo { background: #fff2cf; color: #6b4e00; padding: .05em .35em; border-radius: 3px; font-weight: 600; }

/* -------------------------------------------------------------- UTILITIES */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media print {
  .site-header, .site-footer, .hero .btn-row, .nav-toggle, .wave, .hero__sun, .hero__sky { display: none !important; }
  body { background: #fff; color: #000; }
  .section--navy { background: #fff; color: #000; }
  .section--navy h2, .section--navy h3, .section--navy .eyebrow, .contact-list .label { color: #000; }
  a { color: #000; }
}

/* =========================================================================
   Objekte: Slider, Karten, Galerie, Detailseite  (dynamischer Teil)
   ========================================================================= */

.empty-note {
  max-width: 40rem; margin-inline: auto; text-align: center;
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--text-muted);
}
.empty-note .btn { margin-top: 1.2rem; }

/* ---- Slider ------------------------------------------------------------ */
.slider { margin-top: .5rem; }
.slider__viewport { position: relative; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.slider__track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .6rem .2rem 1.2rem; scroll-padding-left: .2rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; list-style: none; margin: 0;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: clamp(258px, 78vw, 328px); scroll-snap-align: start; }

.slider__btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--heading); color: var(--surface); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn--prev { left: calc(var(--pad) - 22px); }
.slider__btn--next { right: calc(var(--pad) - 22px); }
@media (max-width: 720px) {
  .slider__btn--prev { left: 2px; }
  .slider__btn--next { right: 2px; }
}
.slider__dots { display: flex; gap: .5rem; justify-content: center; margin-top: .4rem; }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--line-strong); }
.slider__dot[aria-current="true"] { background: var(--accent-soft); transform: scale(1.25); }

/* ---- Objektkarte (Slider + Raster) ------------------------------------ */
.listing-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--text); }
.listing-card__media {
  position: relative; aspect-ratio: 3 / 2; min-height: 170px;
  background: linear-gradient(150deg, var(--sand) -10%, var(--water) 120%);
  display: grid; place-items: center;
}
.listing-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-card__ph { color: rgba(255,255,255,.92); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.listing-card__badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  background: var(--navy-fixed); color: #f6f3ec; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 3px;
}
.listing-card__ribbon {
  position: absolute; top: .8rem; right: .8rem; z-index: 1;
  background: var(--sun); color: var(--navy-deep); font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 3px;
}
.listing-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.listing-card__body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; color: var(--heading); line-height: 1.3; }
.listing-card__meta { color: var(--text-muted); font-size: .92rem; }
.listing-card__foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); }
.listing-card__price { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--heading); }
.listing-card__more { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.listing-card__more svg { width: 15px; height: 15px; }

/* ---- Raster (objekte.php) --------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }

/* ---- Filterleiste ------------------------------------------------------ */
.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filterbar__chip {
  text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); background: var(--surface);
}
.filterbar__chip:hover { border-color: var(--accent-soft); color: var(--heading); }
.filterbar__chip.is-active { background: var(--heading); color: var(--surface); border-color: var(--heading); }

/* ---- Detailseite ------------------------------------------------------- */
.listing-detail { padding-block: clamp(1.6rem, 5vw, 2.6rem) clamp(3rem, 8vw, 5rem); }
.crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--heading); text-decoration: underline; }

.listing-detail__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line);
}
.listing-detail__head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.listing-detail__loc { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-muted); margin-top: .5rem; }
.listing-detail__loc svg { color: var(--accent-soft); }
.listing-detail__price { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--heading); white-space: nowrap; }

.listing-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: start; }
@media (max-width: 860px) { .listing-detail__grid { grid-template-columns: minmax(0, 1fr); } }

.listing-detail__desc { margin-top: 2rem; }
.listing-detail__desc h2 { font-size: 1.5rem; margin-bottom: .6rem; margin-top: 1.8rem; }
.listing-detail__desc h2:first-child { margin-top: 0; }
.prose { color: var(--text); line-height: 1.8; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem .9rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .55rem; color: var(--text); }
.feature-list svg { color: var(--accent-soft); margin-top: .28rem; flex: none; }

/* Faktbox (rechte Spalte, klebrig) */
.listing-detail__side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 860px) { .listing-detail__side { position: static; } }
.factbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem 1.4rem 1.6rem; }
.factbox__price { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--heading); }
.factbox__facts { margin: 1.1rem 0 1.3rem; display: grid; gap: 0; }
.factbox__facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.factbox__facts > div:last-child { border-bottom: 0; }
.factbox__facts dt { color: var(--text-muted); }
.factbox__facts dd { font-weight: 700; color: var(--heading); text-align: right; }
.factbox .btn { width: 100%; justify-content: center; }
.factbox__note { margin-top: .9rem; font-size: .85rem; color: var(--text-muted); }
.listing-detail__back { margin-top: 2.5rem; }
.listing-detail__back a { font-weight: 700; text-decoration: none; color: var(--heading); }
.listing-detail__back a:hover { text-decoration: underline; }

/* ---- Galerie ----------------------------------------------------------- */
.gallery__stage {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
}
.gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(251,248,243,.9); color: var(--heading); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav:hover { background: var(--heading); color: var(--surface); }
.gallery__nav--prev { left: .7rem; }
.gallery__nav--next { right: .7rem; }
.gallery__count {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 2;
  background: rgba(20,35,59,.72); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px;
}
.gallery__thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: .8rem .1rem 0; scrollbar-width: thin; min-width: 0; }
.gallery__thumb { flex: 0 0 auto; width: 92px; height: 66px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent-soft); }
.gallery__empty { padding: 3rem 1rem; text-align: center; color: var(--text-muted); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,26,43,.94); display: grid; place-items: center; padding: 3rem 1rem; }
.lightbox__img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
