/* ============================================================
   JANTKE Immobilien – Stylesheet
   Design: Luxury Refined / Dunkelgrün + Gold + Creme
   Fonts: Cormorant Garamond + Lato (Google Fonts)
   ============================================================ */

@import url('../fonts/fonts.css');

/* ── CSS Variables ── */
:root {
  --green-dark:    #1c3a2a;
  --green-mid:     #2a5040;
  --green-light:   #3d6b55;
  --gold:          #c9a255;
  --gold-light:    #e0c07a;
  --creme:         #faf8f4;
  --creme-mid:     #f0ece3;
  --creme-dark:    #e4ddd0;
  --text-dark:     #1e1e1e;
  --text-mid:      #4a4a4a;
  --text-light:    #7a7a7a;
  --white:         #ffffff;
  --shadow-sm:     0 2px 12px rgba(28,58,42,.08);
  --shadow-md:     0 6px 30px rgba(28,58,42,.14);
  --shadow-lg:     0 16px 60px rgba(28,58,42,.18);
  --radius:        4px;
  --radius-lg:     12px;
  --transition:    .3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* iOS safe area für Notch / Dynamic Island */
  padding-top: env(safe-area-inset-top);
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--creme);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Kein blauer Tap-Flash auf iOS/Android */
  -webkit-tap-highlight-color: transparent;
  /* Verhindert ungewolltes Text-Highlighting beim Tippen */
  -webkit-touch-callout: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Focus-visible: keyboard navigation (WCAG 2.1 AA) ──────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── iOS input zoom prevention (font-size must be ≥ 16px) ───── */
input, select, textarea {
  font-size: 16px;
}

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  font-weight: 600;
  color: var(--green-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--text-dark); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.section { padding: clamp(48px, 8vw, 80px) 0; }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.8); }
.section--mid { background: var(--creme-mid); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__header h2 { margin-bottom: 2px; }
.section__header .gold-line { margin-bottom: 20px; }
.section__header p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* Einheitlicher Eyebrow-Text oberhalb von Section-Headings */
.section-eyebrow {
  display: block;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ── Gold-Linie: Konzept ───────────────────────────────────────────
   .gold-line            → zentriert  (nur in .section__header oder
                           vollbreiten CTA-Blöcken mit zentriertem Text)
   .gold-line--left      → linksbündig (überall sonst: Karten, Spalten,
                           Seitenheader, 2-Spalten-Layouts)
─────────────────────────────────────────────────────────────────── */
.gold-line {
  width: 56px; height: 2px; background: var(--gold);
  margin: 14px auto 24px;
}
.gold-line--left { margin-left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: 'Lato', sans-serif; font-size: .9rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn--primary {
  background: var(--green-dark); color: var(--white);
}
.btn--primary:hover {
  background: var(--green-mid); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--gold {
  background: var(--gold); color: var(--white);
}
.btn--gold:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,85,.35);
}
.btn--outline {
  background: transparent; color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn--outline:hover {
  background: var(--green-dark); color: var(--white);
}
.btn--outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1); border-color: var(--white);
}

/* ── Skip-Link (Barrierefreiheit / Keyboard-Navigation) ── */
.skip-link {
  position: absolute; top: -100%; left: 24px;
  background: var(--green-dark); color: var(--white);
  padding: 10px 20px; border-radius: 0 0 8px 8px;
  font-size: .9rem; font-weight: 700; z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ── Top Bar ── */
.topbar {
  background: var(--green-dark);
  padding: 9px 0;
  font-size: .82rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.75);
}
.topbar__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.topbar__contacts {
  display: flex; align-items: center; gap: 20px;
}
.topbar a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.75); transition: color var(--transition);
}
.topbar a:hover { color: var(--gold); }
.topbar svg { flex-shrink: 0; }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--creme-dark);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  /* Safe area für iPhone Notch wenn Seite nach oben scrollt */
  padding-top: env(safe-area-inset-top, 0px);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1160px; margin: 0 auto;
}
.navbar__logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.navbar__logo img {
  height: clamp(32px, 4vw, 44px); width: auto;
}
.navbar__logo-text {
  display: flex; flex-direction: column;
}
.navbar__logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--green-dark); line-height: 1;
}
.navbar__logo-sub {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light);
}
.navbar__nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.navbar__item { position: relative; white-space: nowrap; }
.navbar__link {
  display: block; padding: 10px 11px;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-dark);
  transition: color var(--transition); border-radius: var(--radius);
  white-space: nowrap;
}
.navbar__link:hover, .navbar__link.active { color: var(--green-mid); }
.navbar__link.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.navbar__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); min-width: 220px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--creme-dark);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); padding: 8px 0;
}
.navbar__item:hover .navbar__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.navbar__dropdown-link {
  display: block; padding: 10px 20px;
  font-size: .88rem; color: var(--text-mid);
  transition: all var(--transition);
}
.navbar__dropdown-link:hover {
  background: var(--creme-mid); color: var(--green-dark);
  padding-left: 26px;
}
.navbar__chevron {
  display: inline-block; margin-left: 4px;
  font-size: .65rem; transition: transform var(--transition);
}
.navbar__item:hover .navbar__chevron { transform: rotate(180deg); }
.navbar__cta { margin-left: 16px; }
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: transparent;
  z-index: 1200; position: relative;
}
.navbar__hamburger span {
  display: block; width: 24px; height: 2px; background: var(--green-dark);
  border-radius: 2px; transition: all .3s ease;
  transform-origin: center;
}
/* When open: button floats above the nav panel, clearly visible */
.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 999;
  opacity: 0; transition: opacity var(--transition);
}
.nav-overlay.visible { opacity: 1; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 86vh;
  display: flex; flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--green-dark);
}

/* Verlauf: links dunkel → rechts transparent → Slideshow sichtbar */
.hero__overlay {
  /* Nicht mehr benötigt – Überblendung läuft über slideshow mask-image */
  display: none;
}

/* Slideshow: rechte Seite, volle Hero-Höhe */
.hero__slideshow {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72%;
  overflow: hidden;
  /* Bild blendet links sanft ein – keine Einfärbung, keine sichtbare Kante */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent  0%,
    transparent  4%,
    rgba(0,0,0,.08) 10%,
    rgba(0,0,0,.30) 16%,
    rgba(0,0,0,.60) 22%,
    rgba(0,0,0,.82) 28%,
    rgba(0,0,0,.95) 34%,
    black        42%,
    black       100%
  );
  mask-image: linear-gradient(
    to right,
    transparent  0%,
    transparent  4%,
    rgba(0,0,0,.08) 10%,
    rgba(0,0,0,.30) 16%,
    rgba(0,0,0,.60) 22%,
    rgba(0,0,0,.82) 28%,
    rgba(0,0,0,.95) 34%,
    black        42%,
    black       100%
  );
}
}

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide--active { opacity: 1; }

.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  display: block;
}

/* Content: obere 70% – Text mittig in diesem Bereich */
.hero__content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 24px 40px;
  padding-left: max(24px, calc((100vw - 1160px)/2));
  max-width: 700px;
  animation: fadeUp .9s ease both;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__sub {
  font-size: 1.15rem; color: rgba(255,255,255,.85);
  max-width: 520px; margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }

/* Badges-Bar: unten angedockt, bei ~70% */
.hero__badges {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; gap: 16px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(20,44,32,.92);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero__badge {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.75); font-size: .85rem;
}
.hero__badge img { height: 28px; width: auto; opacity: .85; filter: brightness(2); }

/* Mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .hero__slideshow { height: 280px; }
  .hero__slideshow {
    position: relative;
    width: 100%; height: clamp(200px, 38vw, 340px);
    top: auto; right: auto; bottom: auto;
    order: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__content {
    order: 2;
    max-width: 100%;
    background: var(--green-dark);
    position: relative; z-index: 2;
    padding: 24px 20px 28px;
  }
  .hero__badges {
    order: 3;
  }
}

/* ── Leistungen Cards ── */
.leistungen { padding: 80px 0; }
.leistungen__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 0 24px;
}
.leistung-card {
  display: block;
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; text-decoration: none; color: inherit;
  border-radius: var(--radius-lg);
}
.leistung-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
  filter: grayscale(0);
}
.leistung-card:hover .leistung-card__img {
  transform: scale(1.07);
  filter: grayscale(1);
}
.leistung-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,28,18,.95) 0%, rgba(10,28,18,.6) 40%, rgba(10,28,18,.15) 70%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: all var(--transition);
}
.leistung-card:hover .leistung-card__overlay {
  background: linear-gradient(to top, rgba(10,28,18,.98) 0%, rgba(10,28,18,.7) 45%, rgba(10,28,18,.2) 75%, transparent 100%);
}
.leistung-card h3 { color: var(--white); margin-bottom: 8px; }
.leistung-card p {
  color: rgba(255,255,255,.75); font-size: .9rem;
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}
.leistung-card:hover p { max-height: 100px; opacity: 1; }
.leistung-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-top: 12px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease .1s;
}
.leistung-card:hover .leistung-card__link { max-height: 40px; opacity: 1; }

/* ── USP Strip ── */
.usp-strip { background: var(--creme-mid); padding: clamp(40px, 6vw, 56px) 0; }
.usp-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.usp-item { text-align: center; }
.usp-item__icon {
  width: 52px; height: 52px;
  background: var(--green-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.usp-item h4 { color: var(--green-dark); margin-bottom: 6px; font-size: 1rem; }
.usp-item p { font-size: .88rem; margin: 0; }

/* ── Bewertung / Rezension ── */
.rezension-section { background: var(--green-dark); padding: 80px 0; }
.rezension-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.stars { font-size: 1.4rem; margin-bottom: 24px; letter-spacing: 4px; }
.rezension-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic; color: rgba(255,255,255,.9);
  line-height: 1.6; margin-bottom: 24px;
}
.rezension-quote::before { content: '"'; color: var(--gold); }
.rezension-quote::after  { content: '"'; color: var(--gold); }
.rezension-author { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 32px; }
.rezension-cta { color: var(--gold) !important; }

/* ── Partner Logos ── */
.partner-section { padding: 64px 0; background: var(--white); }
.partner-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 40px 56px; flex-wrap: wrap;
}
.partner-grid img {
  height: 36px; width: auto; max-width: 140px;
  opacity: .55; transition: opacity var(--transition);
  filter: grayscale(1);
}
.partner-grid img:hover { opacity: 1; filter: none; }

/* ── Kontakt CTA Section ── */
.kontakt-cta { background: var(--creme-mid); padding: 80px 0; }
.kontakt-cta__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.kontakt-cta__kacheln {
  display: flex; flex-direction: column; gap: 12px;
}
.kontakt-kachel {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); padding: 18px 24px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: all var(--transition); border-left: 3px solid transparent;
}
.kontakt-kachel:hover {
  transform: translateX(6px); border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.kontakt-kachel__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--creme-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.kontakt-kachel__label { font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.kontakt-kachel__value { font-weight: 700; color: var(--green-dark); font-size: .95rem; }

/* ── Öffnungszeiten ── */
.oeffnungszeiten { background: var(--green-dark); padding: 48px 0; }
.oz-inner { display: flex; align-items: center; justify-content: flex-start; gap: 24px; flex-wrap: nowrap; }
.oz-item { color: rgba(255,255,255,.8); font-size: .9rem; text-align: center; }
.oz-item strong { display: block; color: var(--gold); font-size: 1.1rem; margin-bottom: 4px; }

/* ── Footer ── */
footer {
  background: #111e17;
  color: rgba(255,255,255,.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { height: 48px; margin-bottom: 20px; }
.footer-about { font-size: .88rem; line-height: 1.7; }
.footer-col h5 {
  font-family: 'Lato', sans-serif; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .88rem;
  color: rgba(255,255,255,.55); margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,.28);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── Page Header (Unterseiten) ── */
.page-header {
  background: var(--green-dark); padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -40px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,162,85,.12) 0%, transparent 70%);
}
.page-header__eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header__sub { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 640px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }

/* ── Content Cards ── */
.content-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--creme-dark);
  transition: box-shadow var(--transition);
}
.content-card:hover { box-shadow: var(--shadow-md); }

/* ── Service List ── */
.service-block { border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 28px; }
.service-block h4 { color: var(--green-dark); margin-bottom: 6px; }
.service-block ul { padding-left: 4px; }
.service-block li { font-size: .9rem; color: var(--text-mid); padding: 3px 0; }
.service-block li::before { content: '→ '; color: var(--gold); font-size: .85em; }

/* ── Provision Box ── */
.provision-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  border-radius: var(--radius-lg); padding: 36px 40px; color: var(--white);
}
.provision-box h3 { color: var(--white); margin-bottom: 20px; }
.provision-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.provision-item:last-child { border-bottom: none; margin-bottom: 0; }
.provision-label { color: var(--gold); font-weight: 700; min-width: 90px; font-size: .88rem; }
.provision-value { color: rgba(255,255,255,.85); font-size: .88rem; }

/* ── Lexikon ── */
.lexikon-search-wrap { max-width: 480px; position: relative; margin-bottom: 48px; }
.lexikon-search {
  width: 100%; padding: 14px 48px 14px 18px;
  border: 2px solid var(--creme-dark); border-radius: var(--radius-lg);
  font-size: 1rem; font-family: 'Lato', sans-serif;
  background: var(--white); color: var(--text-dark);
  transition: border-color var(--transition);
}
.lexikon-search:focus { outline: none; border-color: var(--green-mid); }
.lexikon-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; color: var(--green-dark);
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
  margin-bottom: 16px; margin-top: 32px;
}
.lexikon-term strong { color: var(--green-dark); }
.lexikon-term { margin-bottom: 10px; font-size: .92rem; padding: 8px 0; border-bottom: 1px solid var(--creme-dark); }
.lexikon-term:last-child { border-bottom: none; }
.lexikon-hidden { display: none; }

/* ── Finanzierung Rechner ── */
.rechner-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--creme-dark);
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--green-dark); margin-bottom: 8px;
}
.form-group input[type="range"] { width: 100%; accent-color: var(--green-dark); }
.form-group .value-display {
  text-align: right; font-size: 1.1rem; font-weight: 700;
  color: var(--green-dark); font-family: 'Cormorant Garamond', serif;
}
.result-box {
  background: var(--green-dark); color: var(--white);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 32px;
}
.result-box h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.result-box .amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; color: var(--white); line-height: 1;
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.result-sub h5 { color: rgba(255,255,255,.55); font-size: .78rem; text-transform: uppercase; margin-bottom: 4px; }
.result-sub span { font-size: 1.2rem; color: var(--gold); font-weight: 700; }

/* ── Referenzen (Zertifikate) ── */
.referenz-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.referenz-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); width: 160px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.referenz-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.referenz-img img { width: 100%; }

/* ── Google Maps ── */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; }

/* ── Immoscout Galerie ── */
.gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-grid img {
  flex: 0 0 auto;
  width: clamp(100px, 13vw, 183px);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  transition: transform var(--transition), opacity var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); opacity: .9; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .usp-strip__grid { grid-template-columns: repeat(2, 1fr); }
}



@media (max-width: 1100px) {
  .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-card { aspect-ratio: 16/9; }
  .kontakt-cta__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .result-grid { grid-template-columns: 1fr; }

  /* ── Mobile Nav ── */
  .nav-overlay { display: block; }
  .navbar__nav {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: min(300px, 85vw); background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 72px 0 32px; gap: 0;
    box-shadow: -8px 0 40px rgba(0,0,0,.25);
    transition: right .35s ease; overflow-y: auto;
    z-index: 1000;
  }
  .navbar__nav.open { right: 0; }
  /* Hamburger sits inside the nav panel header when open */
  .navbar__hamburger.is-open {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
  }
  .navbar__item { width: 100%; white-space: normal; }
  .navbar__link {
    padding: 14px 24px; border-bottom: 1px solid var(--creme-dark);
    font-size: .9rem; letter-spacing: .04em;
    display: flex; justify-content: space-between; align-items: center;
  }
  .navbar__link:hover { background: none; }  /* kein Hover auf Touch */
  .navbar__link.active { background: var(--creme-mid); }
  .navbar__link.active::after { display: none; }
  /* Open dropdown parent: dark green to distinguish from child items */
  .navbar__item.open > .navbar__link {
    background: var(--green-dark);
    color: var(--white);
    border-bottom-color: rgba(201,162,85,.3);
  }
  .navbar__item.open > .navbar__link .navbar__chevron {
    color: var(--gold);
    transform: rotate(180deg);
  }
  .navbar__dropdown {
    position: static; box-shadow: none; border: none;
    opacity: 1; visibility: visible; transform: none;
    background: var(--creme-dark); border-radius: 0;
    padding: 0; min-width: unset;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .navbar__item.open .navbar__dropdown { max-height: 400px; }
  .navbar__dropdown-link {
    padding: 12px 24px 12px 36px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .88rem; color: var(--text-dark);
  }
  .navbar__dropdown-link:hover { background: var(--creme-mid); padding-left: 42px; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile-social { display: block; border-top: 2px solid var(--creme-dark); padding-top: 8px; margin-top: 8px; }
}

@media (max-width: 900px) {
  /* Leistungen: 1-col at tablet portrait */
  .leistungen__grid { grid-template-columns: 1fr; }
  /* USP: 2-col */
  .usp-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  /* Section padding tighter */
  .usp-strip { padding: 48px 0; }
  /* Partner grid smaller gap */
  .partner-grid { gap: 24px 36px; }
  .partner-grid img { height: 28px; }
  /* Content cards in 2-col grids */
  .grid-2col { grid-template-columns: 1fr; }
  /* Kontakt CTA */
  .kontakt-cta { padding: 56px 0; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Navbar logo tighter */
  .navbar__inner { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; }
  .usp-strip__grid { grid-template-columns: 1fr; }
  .oz-inner { flex-direction: row; align-items: center; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr !important; }
  /* Premium-Vermarktung: Bildkarten auf Mobile kürzer */
  .grid-2col [style*="height:340px"] { height: 220px !important; }
  /* CTA-Buttons: volle Breite auf Mobile */
  .btn--gold,
  .btn--primary,
  .btn--outline,
  .btn--outline-white {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  /* Ausnahme: Navbar-Button bleibt kompakt */
  .navbar__cta .btn--gold,
  .navbar__cta .btn--primary,
  .navbar__cta .btn--outline { width: auto; }
  /* CTA-Gruppen auf Mobile untereinander */
  .cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Unterseiten 2-col Layouts */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:3fr 2fr"],
  [style*="grid-template-columns: 3fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Reviews Slider ── */
.reviews-section { background: var(--green-dark); padding: 80px 0; }

.rv-summary {
  text-align: center; margin-bottom: 48px;
}
.rv-summary__score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.rv-summary__stars {
  display: block; font-size: 1.6rem;
  color: var(--gold); letter-spacing: 4px; margin: 8px 0;
}
.rv-summary__count {
  font-size: .85rem; color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}

.rv-slider {
  padding: 0 52px;
  position: relative; max-width: 760px; margin: 0 auto;
  padding: 0 64px;
}
.rv-track {
  overflow: hidden; position: relative; min-height: 220px;
}
.rv-card {
  display: none; animation: rvFadeIn .4s ease;
}
.rv-card--active { display: block; }

@keyframes rvFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rv-card__header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.rv-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700;
}
.rv-card__author {
  font-weight: 700; color: var(--white); font-size: .95rem;
}
.rv-card__meta { display: flex; align-items: center; gap: 10px; }
.rv-card__stars { color: var(--gold); font-size: .95rem; letter-spacing: 2px; }
.rv-card__date  { color: rgba(255,255,255,.4); font-size: .78rem; }
.rv-card__google { margin-left: auto; flex-shrink: 0; opacity: .7; }

.rv-card__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic;
  color: rgba(255,255,255,.88); line-height: 1.65;
  margin: 0;
}
.rv-card__text::before { content: '„'; color: var(--gold); }
.rv-card__text-short::after { content: '"'; color: var(--gold); }
.rv-card__text-full::after  { content: '"'; color: var(--gold); }

.rv-card__more {
  background: none; border: none; cursor: pointer;
  color: var(--gold); font-size: .82rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 0; display: block; margin-top: 8px;
  font-family: 'Lato', sans-serif;
  transition: color var(--transition);
}
.rv-card__more:hover { color: var(--gold-light); }

/* ── Nav Arrows ── */
.rv-prev, .rv-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); font-size: 1.1rem;
  z-index: 2;
}
.rv-prev { left: -2px; }
.rv-next { right: -2px; }
.rv-prev:hover, .rv-next:hover { background: rgba(255,255,255,.2); }

/* ── Dots ── */
.rv-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.rv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.25);
  transition: all .3s ease;
}
.rv-dot--active { background: var(--gold); }

/* ── Google CTA ── */
.rv-cta { text-align: center; margin-top: 36px; }

@media (max-width: 600px) {
  .rv-slider { padding: 0 48px; }
  .rv-card__text { font-size: 1rem; }
}

/* ── Sprach-Switcher (in Topbar) ── */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  margin-right: 4px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.lang-switcher__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45); margin-right: 6px; white-space: nowrap;
}
.lang-btn {
  padding: 3px 9px; border-radius: 12px; border: none;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; background: transparent; color: rgba(255,255,255,.55);
  transition: all .2s ease; font-family: 'Lato', sans-serif;
}
.lang-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.lang-btn--active { background: rgba(255,255,255,.18); color: var(--white); }
.lang-btn--active:hover { background: rgba(255,255,255,.25); }

/* ── 1300px: email gets tight — hide it, keep phone + WA + Instagram ── */
@media (max-width: 1300px) {
  .topbar__contact--email { display: none; }
}

/* ── 1100px: two-row topbar — switcher above, contacts below ─────────── */
@media (max-width: 1100px) {
  .topbar { padding: 0; }
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: none;
    padding: 0;
  }
  .lang-switcher {
    justify-content: center;
    border-right: none;
    background: #0f2318;
    padding: 7px clamp(16px, 4vw, 24px);
    margin: 0;
  }
  .topbar__contacts {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 7px clamp(16px, 4vw, 24px);
  }
}


/* ── Responsive Grid-Klassen (ersetzt Inline-Styles auf Unterseiten) ── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.grid-aside {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.grid-2col-sm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
  .grid-2col,
  .grid-aside,
  .grid-3col   { grid-template-columns: 1fr; gap: 32px; }
  .grid-4col   { grid-template-columns: repeat(2, 1fr); }
  .grid-2col-sm{ grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4col   { grid-template-columns: 1fr; }
}

/* ── Mobile & iOS Fixes ── */

/* Verhindert Rubber-Band bei section-internem Scroll */
.rv-slider,
.gallery-grid,
.navbar__nav {
  overscroll-behavior: contain;
}

/* iOS: Input-Zoom verhindern (mind. 16px) */
input, select, textarea {
  font-size: max(16px, 1rem);
}

/* Mindestgröße für Touch-Targets (Apple HIG: 44×44pt) */
.btn        { min-height: 44px; }
.lang-btn   { min-height: 36px; min-width: 36px; }
.rv-prev,
.rv-next    { min-width: 44px; min-height: 44px; }
.rv-dot     { min-width: 20px; min-height: 20px; }
.navbar__link { min-height: 44px; display: flex; align-items: center; }

/* Body scroll lock beim geöffneten Mobile-Menü: via Klasse statt JS inline-style */
body.menu-open { overflow: hidden; }

/* Kein Text-Select auf Buttons / Nav */
button,
.btn,
.navbar__link,
.navbar__dropdown-link {
  user-select: none;
  -webkit-user-select: none;
}

/* iOS Safari: verhindert automatische Schrift-Größenanpassung */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Landscape-Modus Phones: Hero etwas kompakter */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__content { padding: 20px 24px 24px; }
}

/* Kleine Phones (iPhone SE: 375px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.9rem; }
  .hero__badges { gap: 10px; font-size: .78rem; }
  .usp-strip__grid { grid-template-columns: 1fr; }
}
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-dark); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Sticky Sidebar: nur auf Desktop ── */
@media (max-width: 900px) {
  [style*="position:sticky"], [style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }
}

/* ── Mobile Nav Social Footer ── */
.navbar__mobile-social {
  display: none;
  width: 100%;
}
.navbar__social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: .84rem; color: var(--text-mid);
  border-bottom: 1px solid var(--creme-dark);
  text-decoration: none;
  transition: background var(--transition);
}
.navbar__social-link:hover { background: var(--creme-mid); }
.navbar__social-link svg { flex-shrink: 0; color: var(--green-dark); }
