/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --beige:      #F5F0EB;
  --sand:       #E8D5B7;
  --terra:      #C8704A;
  --terra-dark: #A85A38;
  --stone:      #8B7B6B;
  --dark:       #2C2C2C;
  --mid:        #6B6B6B;
  --white:      #FFFFFF;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     8px;
  --nav-h:      72px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; letter-spacing: -0.01em; }

h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }

h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.75rem; }

p { color: var(--mid); max-width: 65ch; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-stone {
  background-color: var(--beige);
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 55ch;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
}

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

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

.btn-full { width: 100%; text-align: center; padding: 1rem; font-size: 1rem; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

#navbar.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

#navbar.scrolled .nav-links a { color: var(--mid); }
#navbar.scrolled .nav-links a:hover { color: var(--dark); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.lang-sep { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
#navbar.scrolled .lang-sep { color: var(--sand); }

.lang-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0.1rem;
  transition: color var(--transition);
  letter-spacing: 0.05em;
}

.lang-btn:hover,
.lang-btn.active { color: var(--white); }

#navbar.scrolled .lang-btn { color: var(--mid); }
#navbar.scrolled .lang-btn:hover,
#navbar.scrolled .lang-btn.active { color: var(--terra); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

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

#navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,15,10,0.5) 0%,
    rgba(20,15,10,0.3) 50%,
    rgba(20,15,10,0.6) 100%
  );
}

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

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  max-width: none;
}

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

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.hero-scroll:hover { color: var(--white); }

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

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text h2 { margin-bottom: 1.25rem; }

.about-text p { font-size: 1.05rem; line-height: 1.8; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--beige);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.highlight-item:hover { box-shadow: var(--shadow); }

.highlight-item i {
  font-size: 1.3rem;
  color: var(--terra);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.highlight-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.highlight-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font-body);
}

.highlight-item span {
  font-size: 0.8rem;
  color: var(--stone);
  max-width: none;
}

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
}

.gallery-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-item {
  position: relative;
  flex: 0 0 320px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-10%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
  z-index: 2;
}

.gallery-nav:hover { background: var(--sand); }

.gallery-nav-prev { left: 0; }

.gallery-nav-next { right: 0; }

@media (max-width: 640px) {
  .gallery-nav { display: none; }
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,20,10,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}

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

/* ─── VIDEO ──────────────────────────────────────────────── */
.video-wrapper {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-wrapper video {
  width: 100%;
  display: block;
  max-height: 600px;
  object-fit: contain;
}

/* ─── AMENITIES ──────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.amenity-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.amenity-item i {
  font-size: 1.1rem;
  color: var(--terra);
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

.amenity-item span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark);
  max-width: none;
}

/* ─── LOCATION ───────────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.location-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.loc-block { margin-bottom: 1.75rem; }

.loc-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.loc-block h3 i { color: var(--terra); font-size: 0.9rem; }

.loc-list { display: flex; flex-direction: column; gap: 0.5rem; }

.loc-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--mid);
}

.loc-list li i {
  color: var(--terra);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.location-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 500px;
}

.location-map iframe { display: block; height: 100%; min-height: 500px; }

/* ─── CONTACT FORM ───────────────────────────────────────── */
#kontakt .section-title { margin-bottom: 0.5rem; }
#kontakt .section-subtitle { margin-bottom: 2.5rem; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-row .form-group { margin-bottom: 0; }

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(200,112,74,0.12);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: #e05454;
}

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

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-success { background: #ecf7ed; color: #2d6a31; }
.form-error   { background: #fdf0f0; color: #c0392b; }
.hidden       { display: none !important; }

/* ─── FOOTER ─────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: none;
}

.footer-address {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  max-width: none;
}

.footer-address i { color: var(--terra); margin-right: 0.4rem; }

.footer-links {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  max-width: none;
}

.footer-links a { color: rgba(255,255,255,0.7); transition: color var(--transition); }

.footer-links a:hover { color: var(--terra); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: none;
}

/* ─── LEGAL PAGES (Impressum / Datenschutz) ─────────────────── */
.legal-page { padding-top: calc(var(--nav-h) + 4rem); }

.legal-block { margin-bottom: 2.5rem; }

.legal-block h3 { margin-bottom: 0.5rem; }

.legal-block p { max-width: none; margin-bottom: 0.75rem; }

.legal-block a { color: var(--terra); text-decoration: underline; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15,10,5,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-caption {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  max-width: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: none; }
.lightbox-prev:hover  { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover  { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 360px; }
  .location-map iframe { min-height: 360px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--dark);
    padding: 0.85rem 2rem;
    border-bottom: 1px solid var(--beige);
    display: block;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .lang-switcher { margin-left: 1rem; }

  .about-highlights { grid-template-columns: 1fr; }

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

  .gallery-item { flex-basis: 260px; }
  .gallery-item img { height: 210px; }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

@media (max-width: 480px) {
  .gallery-carousel { padding: 0 1rem 1.5rem; }
  .gallery-item { flex-basis: 220px; }
  .gallery-item img { height: 180px; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
}
