/* ============================================================
   K2 Project Immobilien – Haupt-Stylesheet
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --color-primary:      #111111;
  --color-primary-dark: #000000;
  --color-secondary:    #1c1c1c;
  --color-accent:       #AA7B5F;
  --color-accent-dark:  #8a6048;
  --color-accent-light: #c49880;
  --color-bg:           #0a0a0a;
  --color-bg-dark:      #000000;
  --color-bg-section:   #161616;
  --color-text:         #e8e8e8;
  --color-text-light:   #999999;
  --color-text-muted:   #555555;
  --color-white:        #ffffff;
  --color-border:       #2c2c2c;
  --color-success:      #4caf50;
  --color-error:        #e57373;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:  0 16px 56px rgba(0,0,0,.18);

  --transition: 0.25s ease;

  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

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

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

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

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline-dark:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ── Header & Navigation ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}

.site-logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-left: 0.75rem;
  white-space: nowrap;
  transition: font-size var(--transition), color var(--transition);
}

.site-header.scrolled .site-logo img {
  height: 44px;
}

.site-header.scrolled .site-logo-name {
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover { color: var(--color-accent); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::before {
  content: '▾';
  margin-left: 4px;
  font-size: 0.75em;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  transform: translateX(-50%) translateY(-8px);
  border-top: 3px solid var(--color-accent);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light) !important;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
  background: var(--color-primary);
  color: var(--color-accent) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  border: 1px solid var(--color-accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ── Page Hero (Unterseiten) ─────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
}

/* ── Apartment Cards ─────────────────────────────────────────── */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.apartment-card {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.card-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.card-slideshow .slide.active {
  opacity: 1;
}

.apartment-card:hover .card-slideshow .slide.active {
  transform: scale(1.05);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.apartment-card:hover .slide-btn { opacity: 1; }
.slide-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slide-btn--prev { left: 0.5rem; }
.slide-btn--next { right: 0.5rem; }

.slide-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.apartment-card:hover .slide-counter { opacity: 1; }

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Feature Blocks (Startseite) ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-block {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-accent);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-block h3 { margin-bottom: 0.75rem; }

.feature-block p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-accent);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.stat-item .label {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 0.35rem;
  opacity: 0.8;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-bg-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: '⤢';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Amenities List ──────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.amenity-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── Apartment Detail ────────────────────────────────────────── */
.apt-description-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.apt-detail-hero {
  padding-top: var(--header-height);
  background: var(--color-primary);
}

.apt-detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.apt-detail-gallery {
  position: relative;
  overflow: hidden;
}

.apt-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apt-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--color-white);
}

.apt-detail-info h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.apt-detail-info .apt-subtitle { color: var(--color-accent); margin-bottom: 1.5rem; font-size: 1.1rem; }

.apt-specs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.apt-spec {
  text-align: center;
}

.apt-spec .value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.apt-spec .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Über uns Layout ─────────────────────────────────────────── */
.ueber-uns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Buchen Detail Layout ────────────────────────────────────── */
.buchen-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* ── Booking Widget ──────────────────────────────────────────── */
.booking-widget-wrapper {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.smoobu-placeholder {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--color-bg-section);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.smoobu-placeholder h3 { margin-bottom: 0.5rem; }
.smoobu-placeholder p { color: var(--color-text-light); font-size: 0.9rem; }

/* ── Contact Form ────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info-text strong { display: block; margin-bottom: 0.2rem; }
.contact-info-text a:hover { color: var(--color-accent); }

.form-card {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group label .required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(170,123,95,0.25);
}

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

select.form-control { cursor: pointer; }

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

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  margin-top: 2px;
  cursor: pointer;
}

.form-check a { color: var(--color-accent); }
.form-check a:hover { text-decoration: underline; }

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-feedback.success {
  display: block;
  background: rgba(45,106,79,0.1);
  color: var(--color-success);
  border: 1px solid rgba(45,106,79,0.25);
}
.form-feedback.error {
  display: block;
  background: rgba(192,57,43,0.1);
  color: var(--color-error);
  border: 1px solid rgba(192,57,43,0.25);
}

/* ── Cookie Banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.4s ease;
  border-top: 3px solid var(--color-accent);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-text { flex: 1; min-width: 250px; }
.cookie-banner-text p { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 0; }
.cookie-banner-text a { color: var(--color-accent); }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.social-link:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer-legal-links a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--color-accent); }

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li { margin-bottom: 0.4rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.error-page h1 {
  color: var(--color-accent);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--color-secondary);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(170,123,95,0.15) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.25rem auto;
  border-radius: 2px;
}

.divider--left { margin-left: 0; }

/* ── Map placeholder ─────────────────────────────────────────── */
.map-placeholder {
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  border: 2px dashed var(--color-border);
  cursor: pointer;
  transition: background var(--transition);
}

.map-placeholder:hover { background: var(--color-border); }

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  border: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .apartments-grid { grid-template-columns: 1fr 1fr; }
  .apt-detail-hero-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-primary);
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.open a { font-size: 1.1rem; padding: 0.5rem 0; }

  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    padding: 0.5rem;
  }

  .nav-dropdown.open .dropdown-menu { display: block; }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu { transform: none; }

  .dropdown-menu a { color: rgba(255,255,255,0.8) !important; }

  .apartments-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
  .apt-detail-hero-inner { grid-template-columns: 1fr; }
  .apt-detail-gallery { height: 50vw; min-height: 250px; }
  .apt-description-grid { grid-template-columns: 1fr; }
  .apt-description-aside { order: -1; position: static !important; }
  .ueber-uns-grid { grid-template-columns: 1fr; gap: 2rem; }
  .buchen-detail-grid { grid-template-columns: 1fr; }
  .buchen-detail-main { order: -1; }
  .buchen-detail-aside { order: 1; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Buchen Suchleiste ──────────────────────────────────────── */
.buchen-search-bar {
  background: var(--color-accent);
  padding: 1.25rem 2rem;
}

.bsb-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
}

.bsb-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  min-width: 0;
}

.bsb-field--sm { flex: 0 0 110px; }

.bsb-field label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.3rem;
}

.bsb-input {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  color: #111;
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 100%;
  cursor: pointer;
  outline: none;
}

.bsb-input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }

.bsb-sep {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.bsb-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1.25rem;
  flex-shrink: 0;
}

#bsb-result-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  white-space: nowrap;
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 700px) {
  .bsb-inner { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .bsb-field { flex: 1 1 160px; padding: 0; }
  .bsb-field--sm { flex: 0 0 90px; }
  .bsb-sep { display: none; }
  .bsb-actions { width: 100%; justify-content: flex-end; padding-left: 0; }
}

@media (max-width: 480px) {
  .bsb-field, .bsb-field--sm { flex: 1 1 100%; }
}

/* ── Buchen View Toggle ─────────────────────────────────────── */
.buchen-view-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
}

.buchen-view-toggle {
  display: flex;
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.bvt-btn {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.bvt-btn--active {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ── Buchen Map Layout ──────────────────────────────────────── */
.buchen-map-section { background: var(--color-bg); }

.buchen-layout {
  display: flex;
  align-items: flex-start;
}

.buchen-list {
  flex: 0 0 540px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-height));
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--color-border);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #000;
}
.buchen-list::-webkit-scrollbar {
  width: 4px;
}
.buchen-list::-webkit-scrollbar-track {
  background: #000;
  border-radius: 2px;
}
.buchen-list::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 2px;
}

.buchen-list-header { margin-bottom: 1.75rem; }

.buchen-list-header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.buchen-list-header p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.buchen-list-item {
  display: flex;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-secondary);
  margin-bottom: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.buchen-list-item:last-child { margin-bottom: 0; }

.buchen-list-item:hover,
.buchen-list-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md);
}

.buchen-list-item.active { background: rgba(170, 123, 95, 0.07); }

.bli-image {
  flex: 0 0 110px;
  height: 82px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-dark);
}

.bli-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bli-body { flex: 1; min-width: 0; }

.bli-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}

.bli-header h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.bli-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  background: rgba(170, 123, 95, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(170, 123, 95, 0.3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.bli-district {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem !important;
}

.bli-meta {
  display: flex;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.bli-meta span { margin-right: 0.75rem; }

.buchen-map-panel {
  flex: 1;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-dark);
  overflow: hidden;
}

#buchen-map { display: none; width: 100%; height: 100%; }

.buchen-map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-section);
}

.buchen-map-consent-inner {
  text-align: center;
  max-width: 300px;
  padding: 2rem;
}

.buchen-map-consent-inner h3 { margin-bottom: 0.75rem; }
.buchen-map-consent-inner p { color: var(--color-text-light); font-size: 0.9rem; }

/* ── Buchen Listen-Modus (Karte ausgeblendet) ───────────────── */
.buchen-layout--list-only .buchen-map-panel {
  display: none;
}

.buchen-layout--list-only .buchen-list {
  flex: 1;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  border-right: none;
  padding: 2rem;
}

.buchen-layout--list-only .buchen-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.buchen-layout--list-only .buchen-list-item {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.buchen-layout--list-only .bli-image {
  flex: none;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.buchen-layout--list-only .bli-body {
  padding: 1.25rem;
}

.buchen-layout--list-only .bli-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.buchen-layout--list-only .bli-district {
  font-size: 0.85rem;
  margin-bottom: 0.5rem !important;
}

.buchen-layout--list-only .bli-meta {
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────── */
/* ── Verfügbarkeit & Preise ─────────────────────────────────── */
.bli-price { margin-bottom: 0.5rem; line-height: 1.3; }

.bli-price-night {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
}

.bli-price-total {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.bli-unavailable {
  opacity: 0.4;
  pointer-events: none;
}

/* Karten-Preismarker */
.k2-price-marker {
  background: #AA7B5F;
  color: #fff;
  border-radius: 12px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.k2-price-marker--active {
  background: #fff;
  color: #AA7B5F;
  border-color: #AA7B5F;
  transform: scale(1.1);
  box-shadow: 0 3px 14px rgba(170,123,95,0.5);
}

.k2-marker--unavailable {
  background: #555;
  border-color: #888;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────── */
.k2-marker {
  width: 26px;
  height: 26px;
  background: #AA7B5F;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.k2-marker--active {
  background: #fff;
  border-color: #AA7B5F;
  transform: scale(1.4);
  box-shadow: 0 3px 14px rgba(170,123,95,0.5);
}

.leaflet-popup-content-wrapper {
  background: #1c1c1c !important;
  color: #e8e8e8 !important;
  border: 1px solid #2c2c2c !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.5 !important;
}

.leaflet-popup-tip { background: #1c1c1c !important; }
.leaflet-popup-close-button { color: #666 !important; top: 6px !important; right: 8px !important; }
.leaflet-popup-close-button:hover { color: #AA7B5F !important; }

@media (max-width: 900px) {
  .buchen-layout { flex-direction: column; }

  .buchen-map-panel {
    order: 1;
    position: relative;
    top: 0;
    width: 100%;
    height: 45vw;
    min-height: 260px;
    max-height: 380px;
    flex: none;
  }

  .buchen-list {
    order: 2;
    flex: none;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    padding: 1.5rem 1rem;
  }

  .buchen-layout--list-only .buchen-list {
    padding: 1.5rem 1rem;
  }

  .buchen-layout--list-only .buchen-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .buchen-map-panel { height: 55vw; max-height: 300px; }
  .bli-image { flex: 0 0 90px; height: 68px; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .site-header, .cookie-banner, .site-footer { display: none; }
  .hero { height: auto; padding: 2rem 0; }
}
