/* ========================================
   Haus Brückenkopf – Modern Theme
   Inspired by: hey-beachvilla.de,
   lieblingsbleiben.de aesthetics
   ======================================== */

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

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

  /* Brick facade palette (rot-gelb Klinker) */
  --color-primary: #8b3a2a;       /* Backsteinrot */
  --color-primary-light: #a34e3c; /* Helles Backsteinrot */
  --color-accent: #c8a84e;        /* Warmes Klinkergelb/Sand */
  --color-accent-light: #d4b96a;  /* Helles Sandgelb */
  --color-bg: #faf8f5;            /* Warmes Weiß */
  --color-bg-alt: #f2ede6;        /* Sandstein-Beige */
  --color-card: #ffffff;
  --color-text: #2d2520;          /* Dunkles Warmbraun */
  --color-text-light: #6b5e56;    /* Mittleres Warmbraun */
  --color-text-muted: #99897d;    /* Gedämpft */
  --color-border: #e0d5c8;        /* Heller Sand */
  --color-dark: #3d2017;          /* Dunkles Backstein */

  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 300;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }

/* ==================
   HEADER
   ================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.site-header.scrolled .main-nav a {
  color: var(--color-primary);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  color: var(--color-accent);
  background: rgba(139, 58, 42, 0.08);
}

.site-header.scrolled .nav-toggle {
  color: var(--color-primary);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--color-primary);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  background: rgba(139, 58, 42, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==================
   HERO
   ================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ==================
   SECTION
   ================== */
.section {
  padding: 5rem 2rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ==================
   PROPERTY CARDS
   ================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.property-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.property-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card-image img {
  transform: scale(1.05);
}

.property-card-body {
  padding: 1.5rem;
}

.property-card-body h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

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

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.feature-tag {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-accent:hover {
  background: var(--color-accent-light);
}

/* ==================
   PROPERTY DETAIL
   ================== */
.property-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.property-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.property-hero-content {
  position: relative;
  padding: 3rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.property-hero-content h1 {
  font-size: 2.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.property-hero-content .subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.property-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.property-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.property-description {
  font-size: 1.05rem;
  line-height: 1.9;
}

.amenities-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.amenities-box h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.amenities-list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==================
   GALLERY
   ================== */
.gallery-section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

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

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ==================
   CONTACT SECTION
   ================== */
.contact-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 550px;
}

.contact-card p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.contact-card strong {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-card .min-stay {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==================
   DOWNLOADS
   ================== */
.download-list {
  list-style: none;
  max-width: 500px;
}

.download-list li {
  border-bottom: 1px solid var(--color-border);
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  font-weight: 400;
  transition: all var(--transition);
}

.download-list a:hover {
  padding-left: 0.5rem;
}

.download-list .icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ==================
   FOOTER
   ================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner span {
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  margin-left: 2rem;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

/* ==================
   BACK LINK
   ================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.back-link:hover { color: var(--color-primary); }

/* ==================
   CTA BAR (mobile)
   ================== */
.cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 0.75rem 1.5rem;
  z-index: 99;
  text-align: center;
}

.cta-bar a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 900px) {
  .property-info-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
  }

  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 0.9rem 2rem; }

  .hero { height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .section { padding: 3rem 1.25rem; }
  .section-header h2 { font-size: 1.8rem; }

  .property-hero-content h1 { font-size: 2rem; }
  .property-content { padding: 2rem 1.25rem; }

  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a { margin: 0 1rem; }

  .cta-bar { display: block; }
  .site-footer { padding-bottom: 5rem; }
}
