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

:root {
  --color-foreground: #582A2F;
  --color-background: #FBEBE1;
  --color-primary: #212023;
  --color-secondary: #744F39;
  --color-tertiary: #F9F8F1;
  --color-foreground-alt: #4C3B35;
  --color-white: #ffffff;
  --color-success: #4a7c59;
  --color-blocked: #c0392b;
  --color-available: #27ae60;
  --color-past: #bdc3c7;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-foreground); line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; margin-bottom: 0.5rem; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-background);
  border-bottom: 1px solid rgba(88, 42, 47, 0.15);
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-foreground);
}

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

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-foreground);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === Main Content === */
#app { flex: 1; }

/* === Entry Hero (Startseite – helles Bild mit abgerundeten Ecken) === */
.entry-hero {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.entry-hero-image {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.entry-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.entry-intro h1 { margin-bottom: 1rem; }
.entry-intro p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--color-secondary); margin-bottom: 2rem; }

/* === Hero (Unterseiten – mit Overlay) === */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(33,32,35,0.3), rgba(33,32,35,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.3rem); opacity: 0.9; }

@media (max-width: 768px) {
  .entry-hero { padding: 0 1rem; margin-top: 1rem; }
  .entry-hero-image { border-radius: 12px; }
  .entry-intro { padding: 2rem 1.5rem; }
}

/* === Sections === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.section-title p {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* === Button === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-primary);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--color-foreground); color: var(--color-white); }

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

.btn-outline:hover {
  background: var(--color-foreground);
  color: var(--color-white);
}

/* === Image Grid === */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.image-grid img {
  border-radius: 8px;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.image-grid img:hover { transform: scale(1.03); }

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.75rem; }
.card-body p { color: var(--color-foreground-alt); font-size: 0.95rem; }

/* === Feature Cards (ohne Bild) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-tertiary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

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

/* === Preistabelle === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.price-table thead { background: var(--color-foreground); color: var(--color-white); }
.price-table th, .price-table td { padding: 1rem 1.5rem; text-align: left; }
.price-table tbody tr:nth-child(even) { background: var(--color-tertiary); }
.price-table tbody tr:hover { background: rgba(88,42,47,0.08); }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid rgba(88,42,47,0.15);
  padding: 1.5rem 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-foreground-alt);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* === Kalender === */
.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calendar-nav button {
  background: var(--color-foreground);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.calendar-nav button:hover { background: var(--color-secondary); }

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

.calendar-month {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calendar-month h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-grid .day-header {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-secondary);
  padding: 0.3rem;
}

.calendar-grid .day {
  padding: 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: default;
}

.calendar-grid .day.available {
  background: rgba(39, 174, 96, 0.15);
  color: var(--color-success);
}

.calendar-grid .day.blocked {
  background: rgba(192, 57, 43, 0.15);
  color: var(--color-blocked);
  text-decoration: line-through;
}

.calendar-grid .day.past {
  color: var(--color-past);
}

.calendar-grid .day.empty {
  visibility: hidden;
}

.calendar-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-dot.available { background: rgba(39, 174, 96, 0.3); }
.legend-dot.blocked { background: rgba(192, 57, 43, 0.3); }
.legend-dot.past { background: var(--color-past); }

/* === Kontaktformular === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(88,42,47,0.25);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-foreground);
}

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

/* === Zwei-Spalten Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  border-radius: 12px;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* === Info Boxes === */
.info-box {
  background: var(--color-tertiary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.info-box h3 { margin-bottom: 0.75rem; }
.info-box ul { padding-left: 1.5rem; }
.info-box li { margin-bottom: 0.4rem; color: var(--color-foreground-alt); }

/* === Footer === */
.site-footer {
  background: var(--color-primary);
  color: var(--color-background);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  color: var(--color-background);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(251,235,225,0.7);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--color-background); }
.footer-col p { color: rgba(251,235,225,0.7); font-size: 0.95rem; }

.footer-version {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom {
  border-top: 1px solid rgba(251,235,225,0.15);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: rgba(251,235,225,0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(88,42,47,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

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

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

  .footer-inner { grid-template-columns: 1fr; }

  .hero { height: 50vh; min-height: 300px; }

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

  .calendar-months { grid-template-columns: 1fr; }
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* === Sync Status === */
.sync-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

/* === Booking Form on Calendar Page === */
.booking-form {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.booking-form h3 { margin-bottom: 1.5rem; text-align: center; }

/* === Language Switcher === */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(88,42,47,0.25);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--color-foreground);
  background: rgba(88,42,47,0.05);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--color-white);
  border: 1px solid rgba(88,42,47,0.15);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1100;
  min-width: 160px;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--color-tertiary);
}

.lang-option.active {
  background: rgba(88,42,47,0.08);
  font-weight: 700;
  color: var(--color-foreground);
}

@media (max-width: 768px) {
  .lang-switcher { width: 100%; }
  .lang-btn { width: 100%; text-align: center; }
  .lang-dropdown { right: auto; left: 0; width: 100%; }
}

/* === Page transition === */
.page-enter {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Cookie Consent Banner === */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-white);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  border-top: 3px solid var(--color-foreground);
}

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

.cc-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.cc-content > p {
  color: var(--color-foreground-alt);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cc-details {
  margin-bottom: 1.25rem;
}

.cc-category {
  background: var(--color-tertiary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.cc-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-category-header label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cc-category-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-foreground);
}

.cc-always {
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 600;
}

.cc-category-desc {
  font-size: 0.85rem;
  color: var(--color-foreground-alt);
  margin-top: 0.4rem;
}

.cc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cc-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cc-btn-accept {
  background: var(--color-foreground);
  color: var(--color-white);
}

.cc-btn-accept:hover { background: var(--color-secondary); }

.cc-btn-reject {
  background: var(--color-tertiary);
  color: var(--color-primary);
  border: 1px solid rgba(88,42,47,0.2);
}

.cc-btn-reject:hover { background: rgba(88,42,47,0.08); }

.cc-btn-settings {
  background: none;
  color: var(--color-foreground);
  text-decoration: underline;
  padding: 0.7rem 0.5rem;
}

.cc-btn-save {
  background: var(--color-foreground);
  color: var(--color-white);
}

.cc-btn-save:hover { background: var(--color-secondary); }

.cc-links {
  font-size: 0.85rem;
}

.cc-links a {
  color: var(--color-foreground);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
}
