/* ============================================================
   KAUN IMMOBILIEN – Design System
   Farbpalette: Waldgrün × Warm Off-White
   Stil: Quiet Luxury / Minimalistisch
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Farben */
  --color-forest:        #1B3829;   /* Tiefes Waldgrün – Primärfarbe */
  --color-forest-mid:    #254D3A;   /* Mittleres Grün für Hover */
  --color-forest-light:  #3A6B52;   /* Helles Grün für Akzente */
  --color-gold:          #C8A96E;   /* Warmes Gold – Luxus-Akzent */
  --color-gold-light:    #DFC090;   /* Helles Gold */

  --color-bg:            #F5F1EB;   /* Warm Off-White – Haupthintergrund */
  --color-bg-warm:       #EDE8E0;   /* Etwas wärmer – für Sektions-Trennung */
  --color-bg-dark:       #1B3829;   /* Dunkle Sektion */

  --color-text-dark:     #1A1A1A;   /* Haupttext */
  --color-text-mid:      #4A4A4A;   /* Sekundärtext */
  --color-text-light:    #8A8A8A;   /* Ziertext */
  --color-text-white:    #F5F1EB;   /* Text auf dunklem Hintergrund */

  --color-border:        #DDD8D0;   /* Subtile Trennlinien */
  --color-border-dark:   rgba(255,255,255,0.12);

  /* Typografie */
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Schriftgrößen */
  --text-xs:    0.75rem;    /*  12px */
  --text-sm:    0.875rem;   /*  14px */
  --text-base:  1rem;       /*  16px */
  --text-md:    1.125rem;   /*  18px */
  --text-lg:    1.375rem;   /*  22px */
  --text-xl:    1.75rem;    /*  28px */
  --text-2xl:   2.25rem;    /*  36px */
  --text-3xl:   3rem;       /*  48px */
  --text-4xl:   4rem;       /*  64px */
  --text-hero:  5.5rem;     /*  88px */

  /* Abstände */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Effekte */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(27, 56, 41, 0.08);
  --shadow-md:  0 8px 32px rgba(27, 56, 41, 0.12);
  --shadow-lg:  0 24px 64px rgba(27, 56, 41, 0.18);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);

  /* Transitionen */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-24) 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section--warm {
  background-color: var(--color-bg-warm);
}

/* ── Typography Utilities ─────────────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.eyebrow--light {
  color: var(--color-gold-light);
}

.headline-xl {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-3xl));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-md {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  line-height: 1.3;
}

.body-text {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-text-mid);
  line-height: 1.8;
}

.body-text--light {
  color: rgba(245, 241, 235, 0.72);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--color-text-white);
  border: 2px solid var(--color-forest);
}

.btn-primary:hover {
  background-color: var(--color-forest-mid);
  border-color: var(--color-forest-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-forest);
  border: 2px solid var(--color-forest);
}

.btn-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-outline--light {
  color: var(--color-text-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline--light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-forest);
  border: 2px solid var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.35);
}

/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-2) var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-base);
  overflow: visible;
}

.nav--transparent {
  background-color: transparent;
}

.nav--scrolled {
  background-color: rgba(27, 56, 41, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-2) var(--container-pad);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-img {
  height: 180px;
  width: auto;
  display: block;
  margin: -25px 0;
}

.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
}

.nav__logo-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__links a:hover {
  color: white;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: white;
  transition: all var(--transition-base);
}

/* ── Mobile Menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-forest);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-text-white);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--color-gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
}

/* Gradient-Overlay für Lesbarkeit */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 18, 0.55) 0%,
    rgba(10, 25, 18, 0.45) 40%,
    rgba(10, 25, 18, 0.9) 100%
  );
  z-index: 1;
}

/* Eleganter Glanzstreifen, der einmal beim Seitenaufruf von links
   nach rechts über das Hero gleitet (premium "shine sweep"). */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 65%
  );
  transform: translateX(-100%);
  animation: heroShine 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s 1 forwards;
  mix-blend-mode: screen;
}

@keyframes heroShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 var(--container-pad) var(--space-20);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Auf hohen Bildschirmen (z.B. 27"-Monitoren) Hero-Inhalt deutlich anheben.
   Greift erst ab ~1000px Viewport-Höhe – normale Laptop-Bildschirme
   (typisch 700–900px) bleiben unverändert. */
@media (min-height: 1000px) {
  .hero__content {
    padding-bottom: clamp(8rem, 22vh, 22rem);
  }
}
@media (min-height: 1300px) {
  .hero__content {
    padding-bottom: clamp(14rem, 28vh, 30rem);
  }
}

.hero__eyebrow {
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, var(--text-hero));
  font-weight: 500;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}

.hero__subline {
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  line-height: 1.75;
  margin-bottom: var(--space-12);
}

/* ── Hero Search Widget ───────────────────────────────────── */
.search-widget {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-4);
  max-width: 860px;
}

.search-widget__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.search-widget__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.search-widget__select,
.search-widget__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: var(--space-2) 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: white;
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.search-widget__select option {
  color: var(--color-text-dark);
  background: white;
}

.search-widget__select:focus,
.search-widget__input:focus {
  border-color: var(--color-gold);
}

.search-widget__select::placeholder,
.search-widget__input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-widget__btn {
  align-self: flex-end;
  padding: 0.75rem 1.75rem;
}

/* ── Hero Scroll Indicator ────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  right: var(--container-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.5);
}

.hero__scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background-color: var(--color-forest);
  padding: var(--space-8) 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 0;
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.stat {
  text-align: center;
  padding: var(--space-4) var(--space-12);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child {
  border-right: none;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 500;
  color: var(--color-gold);
  display: block;
  line-height: 1.1;
}

.stat__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-2);
  display: block;
}

/* ============================================================
   LEISTUNGEN (Services)
   ============================================================ */
.services {
  padding: var(--space-32) 0;
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-header--centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.section-header__eyebrow {
  margin-bottom: var(--space-4);
}

.section-header__headline {
  margin-bottom: var(--space-6);
}

.section-header__body {
  max-width: 52ch;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.service-card__image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background-color: var(--color-forest);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.service-card__body {
  padding: var(--space-8);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-forest);
  font-size: 1.25rem;
}

.service-card__title {
  margin-bottom: var(--space-3);
  color: var(--color-text-dark);
}

.service-card__text {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-mid);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-base);
}

.service-card__link:hover {
  gap: var(--space-4);
}

.service-card__link::after {
  content: '→';
}

/* ============================================================
   IMMOBILIEN GRID
   ============================================================ */
.properties {
  padding: var(--space-32) 0;
  background-color: var(--color-bg-warm);
}

.properties__filter {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-text-mid);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: white;
}

.properties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Property Card ────────────────────────────────────────── */
.prop-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  position: relative;
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prop-card__image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.prop-card__image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-card:hover .prop-card__image img {
  transform: scale(1.06);
}

.prop-card__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold);
  color: var(--color-forest);
}

.prop-card__tag--new {
  background-color: var(--color-forest);
  color: white;
}

.prop-card__tag--sold {
  background-color: #4A4A4A;
  color: white;
}

/* Diskreter Verkauf – Bild unscharf + Banner */
.prop-card__image--diskret img {
  filter: blur(5px);
  transform: scale(1.06);
}

.prop-card__diskret-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-forest);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  white-space: nowrap;
  pointer-events: none;
}

.prop-card__quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 56, 41, 0.9);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-4);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  cursor: pointer;
}

.prop-card:hover .prop-card__quick-view {
  transform: translateY(0);
}

.prop-card__body {
  padding: var(--space-6);
}

.prop-card__location {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.prop-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.prop-card__specs {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.prop-card__spec {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  font-weight: 400;
}

.prop-card__spec svg {
  color: var(--color-forest-light);
  flex-shrink: 0;
}

.prop-card__price {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-forest);
}

.prop-card__price-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-left: var(--space-2);
}

.properties__cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about {
  padding: var(--space-32) 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-main {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-accent {
  position: absolute;
  width: 220px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  bottom: -2rem;
  right: -2rem;
  box-shadow: var(--shadow-lg);
}

.about__content {
  padding: var(--space-8) 0;
}

.about__eyebrow {
  margin-bottom: var(--space-4);
}

.about__headline {
  margin-bottom: var(--space-6);
}

.about__text {
  margin-bottom: var(--space-8);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.about__value-icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__value-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--space-32) 0;
  background-color: var(--color-forest);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.trustindex-wrapper {
  margin-top: var(--space-12);
  width: 100%;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.testimonial-card__stars {
  color: var(--color-gold);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
  background-color: var(--color-forest-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-gold);
  font-weight: 600;
}

.testimonial-card__name {
  font-weight: 600;
  color: white;
  font-size: var(--text-base);
}

.testimonial-card__meta {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   KONTAKT (Multi-Step Form)
   ============================================================ */
.contact {
  padding: var(--space-32) 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-20);
  align-items: start;
}

.contact__info {
  padding-top: var(--space-4);
}

.contact__info-headline {
  margin-bottom: var(--space-6);
}

.contact__info-text {
  margin-bottom: var(--space-10);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
  flex-shrink: 0;
}

.contact__detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.contact__detail-value {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-dark);
}

/* ── Multi-Step Form ──────────────────────────────────────── */
.form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-steps {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-10);
  gap: 0;
}

.form-step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.form-step-item:last-child {
  flex: 0;
}

.form-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-light);
  background: white;
  flex-shrink: 0;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.form-step-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
  margin: 0 -1px;
  transition: background-color var(--transition-base);
}

.form-step-item.active .form-step-circle {
  border-color: var(--color-forest);
  background-color: var(--color-forest);
  color: white;
}

.form-step-item.completed .form-step-circle {
  border-color: var(--color-gold);
  background-color: var(--color-gold);
  color: var(--color-forest);
}

.form-step-item.completed + .form-step-line {
  background-color: var(--color-gold);
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

.form-panel__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.form-panel__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-row--single {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-mid);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-dark);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(27, 56, 41, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.form-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.form-option:hover {
  border-color: var(--color-forest);
}

.form-option.selected {
  border-color: var(--color-forest);
  background-color: rgba(27, 56, 41, 0.04);
}

.form-option__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.form-option__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
}

.form-nav--right {
  justify-content: flex-end;
}

/* ── Form Success ─────────────────────────────────────────── */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) 0;
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  background-color: rgba(27, 56, 41, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-forest);
  font-size: 1.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #111E18;
  padding: var(--space-20) 0 var(--space-10);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-8);
}

.footer__brand-name {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-2);
}

.footer__brand-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}

.footer__brand-text {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 30ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: white;
}

/* ============================================================
   MODAL (Quick View)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden; /* horizontales Scrollen unterbinden (Mobile) */
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-slow);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal__image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden; /* enthält das vergrößerte/blurred Bild des dritten Modals */
}

/* "Diskreter Verkauf"-Badge im Modal-Bild (3. Referenz) */
.modal__diskret-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 5;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: #4A4A4A;
  color: white;
}

.modal__content {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10; /* immer über dem Bild – auch bei blur/scale-Transformationen */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.modal__close:hover {
  background: rgba(0,0,0,0.8);
}

/* ============================================================
   TEAM / GESCHÄFTSFÜHRUNG
   ============================================================ */
.team {
  background: var(--color-bg);
  padding: var(--space-32) 0;
}

.team__portrait {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-20);
  align-items: center;
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
}

.team__portrait:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.team__portrait--reverse {
  direction: rtl;
}

.team__portrait--reverse > * {
  direction: ltr;
}

.team__photo {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team__photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-warm);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.team__photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.team__text {
  padding: var(--space-8) 0;
}

.team__quote {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-mid);
  line-height: 1.85;
  margin-bottom: var(--space-8);
  font-style: italic;
  border: none;
  padding: 0;
}

.team__name {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}

.team__title {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}

.team__signature {
  width: 160px;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(40%) saturate(600%) hue-rotate(5deg) brightness(0.95);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .team__portrait,
  .team__portrait--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .team__photo {
    height: 220px;
  }

  .about__image-main {
    height: 440px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .modal {
    grid-template-columns: 1fr;
  }

  .modal__image {
    height: 280px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* Logo auf Mobile verkleinern */
  .nav__logo-img {
    height: 95px;
    margin: -12px 0;
  }

  /* Hero */
  .hero {
    height: auto;                    /* Hero wächst mit Inhalt — kein Schrumpfen, wenn Browser-Chrome (Adressleiste, IG-Toolbar) ein-/ausgeblendet wird */
    min-height: 100svh;              /* mindestens viewport-hoch */
    padding-bottom: 60px;            /* fester, stabiler Abstand zwischen Such-Widget und Stats-Balken — unabhängig von Viewport-Schwankungen */
    align-items: center;             /* Fallback für ältere Browser */
    align-items: safe center;        /* zentriert wenn Platz da ist, fällt automatisch auf flex-start zurück wenn der Inhalt nicht in den Viewport passt (z.B. IG In-App-Browser) */
  }

  .hero__content {
    padding-top: 90px;   /* Mindestabstand zur fixen Navi (greift im safe-Fallback-Fall) */
    padding-bottom: 0;
    text-align: center;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subline {
    font-size: var(--text-base);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  /* Such-Widget */
  .search-widget {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .search-widget__btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-bar__inner {
    flex-wrap: wrap;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border-dark);
    padding: var(--space-6) var(--space-4);
  }

  /* Leistungen, Objekte, Testimonials */
  .services__grid,
  .testimonials__grid,
  .properties__grid {
    grid-template-columns: 1fr;
  }

  /* Über uns */
  .about__image-accent {
    display: none;
  }

  .about__values {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team__portrait,
  .team__portrait--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .team__photo {
    height: 260px;
  }

  .team__quote {
    font-size: var(--text-sm);
  }

  /* Kontakt */
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__info {
    text-align: center;
  }

  .contact__detail {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-options {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ── Mobile Horizontal-Scroll Fix ──────────────────────── */
  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-5);
    max-width: 100%;
  }

  .nav {
    max-width: 100%;
    width: 100%;
  }

  .modal-overlay {
    max-width: 100%;
    width: 100%;
    padding: var(--space-4);
  }

  /* Generelle Schutzklausel: nichts darf die Viewport-Breite sprengen */
  .container,
  .section,
  .hero,
  .footer,
  .footer__top,
  .footer__bottom {
    max-width: 100%;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1.25rem;
  }

  /* Logo noch etwas kleiner auf sehr kleinen Geräten */
  .nav__logo-img {
    height: 75px;
    margin: -10px 0;
  }

  .search-widget {
    grid-template-columns: 1fr;
  }

  .hero__scroll {
    display: none;
  }

  .stats-bar__inner {
    flex-wrap: wrap;
  }

  /* Schriftgrößen anpassen */
  .headline-xl {
    font-size: var(--text-xl);
  }

  .form-options {
    grid-template-columns: 1fr;
  }

  /* Team Foto auf kleinen Geräten */
  .team__photo {
    height: 220px;
  }

  /* Testimonials Padding */
  .testimonials {
    padding: var(--space-16) 0;
  }
}

/* ============================================================
   SUCCESS-MODAL (Bestätigung nach Kontaktformular-Versand)
   ============================================================ */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.success-modal[hidden] {
  display: none;
}

.success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.success-modal__dialog {
  position: relative;
  background: var(--color-text-white, #F5F1EB);
  color: var(--color-text-dark, #1A1A1A);
  padding: var(--space-12) var(--space-10) var(--space-10);
  border-radius: var(--radius-md, 12px);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.success-modal.is-open .success-modal__dialog {
  transform: translateY(0) scale(1);
}

.success-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-mid, #4A4A4A);
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.success-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-forest, #1B3829);
}

.success-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.15); /* gold tint */
  color: var(--color-gold, #C8A96E);
}

.success-modal__title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  color: var(--color-forest, #1B3829);
}

.success-modal__text {
  font-size: var(--text-base, 1rem);
  line-height: 1.65;
  color: var(--color-text-mid, #4A4A4A);
  margin: 0 0 var(--space-8);
}

.success-modal__cta {
  min-width: 160px;
}

@media (max-width: 480px) {
  .success-modal__dialog {
    padding: var(--space-10) var(--space-6) var(--space-8);
  }
  .success-modal__icon {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-modal,
  .success-modal__dialog {
    transition: none;
  }
}

/* ============================================================
   MOBILE-SPEZIFISCHE ANPASSUNGEN (gesammelt)
   ============================================================ */

/* (1) Mobile-only Zeilenumbruch in der Hero-Subline */
.br-mobile { display: none; }

@media (max-width: 768px) {
  .br-mobile { display: inline; }

  /* (3) "Über uns"-Bild (Haus_Hochaufloesend) auf Tablet/Mobile kleiner */
  .about__image-main { height: 320px; }

  /* (4) Team-Portraits: oberen Bildausschnitt zeigen, leichte Verschiebung nach
         unten, damit der Kopf nicht direkt an der Oberkante klebt */
  .team__photo img { object-position: center 12%; }

  /* Logo oben links auf Mobile etwas größer */
  .nav__logo-img {
    height: 115px;
    margin: -16px 0;
  }

  /* X-Button im Mobile-Menü etwas tiefer setzen, damit er nicht mit
     dem Burger-Icon der Navigation überlappt */
  #mobileMenuClose {
    position: absolute;
    top: 4.5rem;
    right: 1.5rem;
  }

  /* Abstand zwischen "Persönlich kennenlernen"-Button und "Das Team"
     reduzieren (.team hat global padding: var(--space-32) 0) */
  .team {
    padding-top: var(--space-12);
  }

  /* (Modal) Inhalt sicher innerhalb der Box halten – verhindert, dass
     lange Wörter die rechte Seite ohne Abstand wirken lassen */
  .modal__content {
    box-sizing: border-box;
    padding: var(--space-8);
  }
  .modal__content,
  .modal__content * {
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }
}

@media (max-width: 480px) {
  /* (3) "Über uns"-Bild auf kleinen Mobiles nochmals reduzieren */
  .about__image-main { height: 240px; }

  /* (5) Kontaktdaten linksbündig; Headline + Text bleiben mittig */
  .contact__details {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
  }
  .contact__detail {
    justify-content: flex-start;
  }

  /* Logo auf sehr kleinen Geräten */
  .nav__logo-img {
    height: 92px;
    margin: -14px 0;
  }

  /* X-Button im Mobile-Menü auf sehr kleinen Geräten */
  #mobileMenuClose {
    top: 4rem;
    right: 1.25rem;
  }

  /* Abstand vor "Das Team" auf kleinen Geräten weiter komprimieren */
  .team {
    padding-top: var(--space-10);
  }

  /* Modal-Padding auf sehr schmalen Bildschirmen, links/rechts symmetrisch */
  .modal__content {
    padding: var(--space-6);
  }
}

/* ============================================================
   COOKIE-CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, calc(100% + 2rem));
  width: calc(100% - 2rem);
  max-width: 640px;
  z-index: 1100; /* über fixierter Nav (z-index 100) und unter Modal (1000)/Success (1200) */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-text-dark, #1A1A1A);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(27, 56, 41, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: var(--space-6, 1.5rem) var(--space-7, 1.75rem);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner--visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6, 1.5rem);
  align-items: center;
}

.cookie-banner__title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-forest, #1B3829);
  line-height: 1.25;
}

.cookie-banner__body {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  color: var(--color-text-mid, #4A4A4A);
}

.cookie-banner__body a {
  color: var(--color-gold, #C8A96E);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__body a:hover {
  color: var(--color-forest, #1B3829);
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  align-items: stretch;
  min-width: 180px;
}

.cookie-banner__btn {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.65rem 1.1rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: translate(0, calc(100% + 2rem));
    bottom: 1rem;
    padding: var(--space-5, 1.25rem);
  }
  .cookie-banner--visible {
    transform: translate(0, 0);
  }
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4, 1rem);
  }
  .cookie-banner__actions {
    flex-direction: row;
    min-width: 0;
  }
  .cookie-banner__btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .cookie-banner__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity 0.2s ease;
  }
}
