/* ===== Design Tokens ===== */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F3EFE8;
  --surface: #FFFFFF;
  --text: #1C1917;
  --text-muted: #6B6560;
  --accent: #7B3F2E;
  --accent-hover: #5E2F21;
  --accent-light: #C4A882;
  --green: #4A5C3A;
  --border: #E5DDD3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-h: 72px;
  --max-w: 1280px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ===== Utilities ===== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(123,63,46,.3);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(123,63,46,.4);
  transform: translateY(-1px);
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600; color: var(--text); margin-bottom: .5rem;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Navigation ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
#navbar.scrolled {
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .nav-inner { padding: 0 2.5rem; } }

.nav-logo { display: flex; flex-direction: column; gap: 0; line-height: 1.1; }
.logo-main {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  color: var(--surface); transition: color .3s;
  letter-spacing: -.01em;
}
.logo-sub { font-size: .7rem; font-weight: 400; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
#navbar.scrolled .logo-main { color: var(--text); }
#navbar.scrolled .logo-sub { color: var(--text-muted); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.85); transition: color .2s;
  padding: .25rem 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--accent-light); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover, #navbar.scrolled .nav-links a:focus-visible { color: var(--text); }
#navbar.scrolled .nav-links a::after { background: var(--accent); }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: .45rem 1.2rem !important; border-radius: 50px;
  transition: background .2s, transform .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

.lang-switcher { display: flex; gap: .25rem; }
.lang-btn {
  padding: .3rem .5rem; border-radius: 4px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.6); transition: all .2s;
}
.lang-btn:hover, .lang-btn.active {
  color: #fff; background: rgba(255,255,255,.15);
}
#navbar.scrolled .lang-btn { color: var(--text-muted); }
#navbar.scrolled .lang-btn:hover, #navbar.scrolled .lang-btn.active {
  color: var(--accent); background: rgba(123,63,46,.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: all .25s var(--ease);
}
#navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    flex-direction: column; align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  .nav-links a { color: var(--text); font-size: 1.05rem; }
  .nav-links a::after { background: var(--accent); }
  .lang-switcher { flex-wrap: wrap; }
  .lang-btn { color: var(--text-muted); }
  .lang-btn.active, .lang-btn:hover { color: var(--accent); background: rgba(123,63,46,.08); }
}

/* ===== Hero ===== */
#hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/Barr Haus in Abendstimmung.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 0 1.5rem; max-width: 700px;
}
.hero-eyebrow {
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .8s .3s var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700; line-height: 1;
  margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .8s .5s var(--ease) forwards;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300; color: rgba(255,255,255,.85);
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .8s .7s var(--ease) forwards;
}
.hero-cta {
  opacity: 0; animation: fadeUp .8s .9s var(--ease) forwards;
  font-size: 1rem; padding: 1rem 2.5rem;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7);
  animation: bounce 2s 1.5s infinite;
  transition: color .2s;
}
.hero-scroll:hover { color: #fff; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== Highlights ===== */
.highlights {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.highlights-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem;
}
.highlight-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem 1.5rem; min-width: 100px; text-align: center;
  border-right: 1px solid var(--border);
}
.highlight-item:last-child { border-right: none; }
.highlight-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: .1rem; }
.highlight-item strong { font-size: .95rem; font-weight: 600; color: var(--text); }
.highlight-item span { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; }

@media (max-width: 640px) {
  .highlight-item { padding: .75rem 1rem; min-width: 80px; }
  .highlight-item strong { font-size: .85rem; }
}

/* ===== Gallery ===== */
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .45rem 1.1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 500;
  color: var(--text-muted); border: 1.5px solid var(--border);
  transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--accent); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery-grid {
  columns: 3 280px; gap: 1rem;
}
.gallery-item {
  display: block; break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius); overflow: hidden;
  width: 100%;
  cursor: pointer; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item img { width: 100%; display: block; transition: transform .4s var(--ease); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .3s;
  border-radius: var(--radius);
}
.gallery-item:hover::after { background: rgba(0,0,0,.15); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item.hidden { display: none; }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  max-width: min(90vw, 1100px); max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
#lb-img {
  max-width: 100%; max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; z-index: 201;
  color: rgba(255,255,255,.8); transition: color .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-prev svg, .lightbox-next svg { width: 32px; height: 32px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: #fff; transform: translateY(-50%) scale(1.1); }
.lightbox-close:hover { transform: scale(1.1); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
}
.about-text h2 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600; margin-bottom: .5rem;
}
.about-subtitle {
  color: var(--accent); font-size: .9rem; font-weight: 500;
  letter-spacing: .04em; margin-bottom: 1.5rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.75; }

.whirlpool-callout {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface); border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}
.whirlpool-icon { flex-shrink: 0; color: var(--accent); margin-top: .1rem; }
.whirlpool-icon svg { width: 28px; height: 28px; }
.whirlpool-callout h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: .4rem; }
.whirlpool-callout p { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.whirlpool-details { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--text-muted); }
.whirlpool-details strong { color: var(--accent); }

.about-image { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.about-image img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); }
.about-image img:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.about-image img:last-child { aspect-ratio: 1; }
@media (max-width: 500px) { .about-image { grid-template-columns: 1fr; } .about-image img:first-child { grid-column: 1; } }

/* ===== Amenities ===== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.amenity-group {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.amenity-group:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.amenity-group-title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 1rem;
}
.amenity-group-title svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.amenity-group ul { display: flex; flex-direction: column; gap: .45rem; }
.amenity-group li {
  font-size: .88rem; color: var(--text-muted);
  padding-left: 1.1rem; position: relative;
}
.amenity-group li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-light);
}

/* ===== Location ===== */
.location-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 3.5rem; }
}
.location-text h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; margin-bottom: .5rem; }
.location-text > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.75; }
.location-text h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }

.nearby-list { display: flex; flex-direction: column; gap: .7rem; }
.nearby-list li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--text-muted); }
.nearby-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.location-map { display: flex; flex-direction: column; gap: .5rem; }
.location-map iframe {
  width: 100%; height: 400px; border: none;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.location-map small { text-align: right; font-size: .78rem; color: var(--text-muted); }
.location-map small a { color: var(--accent); text-decoration: underline; }

/* ===== Contact ===== */
.contact-container { max-width: 780px; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .85rem; font-weight: 500; color: var(--text);
  letter-spacing: .01em;
}
.form-group input,
.form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  color: var(--text); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,63,46,.12);
}
.form-group input.error, .form-group textarea.error { border-color: #c0392b; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { font-size: .8rem; color: #c0392b; min-height: 1em; }

.btn-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; margin-top: .5rem; }

.form-feedback {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-top: .5rem;
}
.form-feedback[hidden] { display: none; }
.form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-success svg { width: 28px; height: 28px; flex-shrink: 0; margin-top: .1rem; }
.form-success strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.form-success p { font-size: .9rem; }
.form-error-msg { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ===== Footer ===== */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 2.5rem; margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; }
}
.footer-brand .logo-main { font-size: 1.5rem; color: #fff; display: block; margin-bottom: .35rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.55); margin-top: .2rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  font-size: .78rem; color: rgba(255,255,255,.4);
  grid-column: 1 / -1;
}
@media (min-width: 768px) { .footer-legal { grid-column: unset; } }
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ===== Focus styles ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Print ===== */
@media print {
  #navbar, .hero-scroll, .gallery-filters, .lightbox, .lang-switcher { display: none; }
  .fade-in { opacity: 1; transform: none; }
}
