/* Modernes, minimalistisches Grundlayout */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --primary: #28a6aa;
  --secondary: #F8FAFC;
  --accent: #F7B32B;
  --text: #23272F;
  --muted: #F1F3F7;
  --card: #fff;
  --footer-bg: #23272F;
  --footer-text: #F8FAFC;
}

html {
  scroll-behavior: smooth;
  background: var(--secondary);
  scroll-padding-top: 80px; /* Abstand für fixierte Navigation */
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--secondary);
  min-height: 100vh;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 1rem 0 0.5rem 0;
}

.logo {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 0.7rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1000px;
  background: var(--card);
  border-radius: 2rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
  padding: 0.7rem 2rem;
  position: sticky;
  top: 10px;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  width: 100%;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: var(--accent);
  color: #fff;
}

.hero {
  text-align: center;
  margin: 1.5rem auto 3rem auto;
  max-width: 700px;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(58,90,152,0.09);
  margin: 0 auto 2rem auto;
  display: block;
}

.hero-keywords {
  color: #fff;
  display: none;
}

main {
  max-width: 1100px;
  margin: 0 auto 0 auto;
  padding: 0 1.5rem;
}

section {
  margin-bottom: 3rem;
}

.gallery-section h2,
.about-section h2,
.contact-section h2,
.calendar-section h2,
.faq-section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* Galerie als horizontales Karussell */
.gallery {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--muted);
}
.gallery::-webkit-scrollbar {
  height: 8px;
}
.gallery::-webkit-scrollbar-track {
  background: var(--muted);
  border-radius: 10px;
}
.gallery::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
}
.gallery-img {
  flex: 0 0 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(58,90,152,0.07);
  background: var(--muted);
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(58,90,152,0.13);
}
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.gallery-pagination button {
  background: var(--muted);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gallery-pagination button.active,
.gallery-pagination button:hover {
  background: var(--accent);
  color: #fff;
}

/* Cards für About & Kontakt */
.card-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: var(--card);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
  padding: 2rem 1.5rem;
  flex: 1 1 320px;
  max-width: 400px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.card p {
  color: var(--text);
  font-size: 1.05rem;
  text-align: center;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2rem 0 1.2rem 0;
  font-size: 1.05rem;
  margin-top: 4rem;
}
footer a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--primary);
}

/* Mobile Navigation Styles */
.nav-toggle {
  display: none;
  position: absolute;
  right: 2rem;
  top: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 2rem;
  height: 0.23rem;
  margin: 0.3rem 0;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 700px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    border-radius: 0;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 150;
  }
  nav.open {
    transform: translateX(0);
    box-shadow: 0 0 32px rgba(58,90,152,0.13);
  }
  .nav-toggle {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    gap: 2.2rem;
    width: 100%;
    align-items: flex-start;
    margin-top: 2rem;
  }
  nav a {
    font-size: 1.2rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
    border-radius: 0.7rem;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* Hamburger Animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Galerie mobile optimieren */
@media (max-width: 700px) {
  .gallery {
    gap: 0.7rem;
    padding-bottom: 0.5rem;
  }
  .gallery-img {
    flex: 0 0 90vw;
    height: 38vw;
    min-height: 160px;
    max-width: 95vw;
    border-radius: 1rem;
  }
}

@media (max-width: 500px) {
  .gallery-img {
    min-height: 120px;
    height: 32vw;
  }
}

/* Allgemeine mobile Layout-Optimierungen */
@media (max-width: 700px) {
  main {
    padding: 0 0.3rem;
  }
  .about-content {
    flex-direction: column;
    gap: 1.2rem;
  }
  .about-hosts {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }
  .contact-info {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .contact-card {
    max-width: 100%;
  }
  .faq-section {
    margin: 2rem 0.2rem;
    max-width: 100%;
  }
  .faq-list details {
    padding: 0.7rem 0.7rem;
  }
  .contact-map {
    padding: 0.5rem;
  }
}

/* Gastgeber-Bereich */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.about-text {
  flex: 2 1 300px;
  text-align: center;
}

.about-hosts {
  flex: 1 1 220px;
  background: var(--card);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
}

.about-hosts h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.3rem;
  text-align: center;
}

.host-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.host-image {
  width: 180px;
  height: 180px;
  border-radius: 40%;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 3px solid var(--primary);
  box-shadow: 0 3px 10px rgba(58,90,152,0.1);
}

/* Kontaktbereich */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* Zentriert die Registerkarten */
  align-items: center; /* Vertikale Zentrierung */
}

.contact-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.2rem;
  flex: 1 1 200px;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(58,90,152,0.12);
}

.contact-icon {
  font-size: 1rem;
  color: var(--primary);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--primary);
  stroke-width: 2;
}

.contact-detail {
  flex: 1;
}

.contact-detail h4 {
  margin: 0 0 0.3rem 0;
  color: var(--primary);
  font-size: 1rem;
}

.contact-detail p,
.contact-detail a {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

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

/* FAQ-Sektion */
.faq-section {
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
}

.faq-list {
  display: inline-block;
  text-align: left;
}

.faq-list details {
  margin-bottom: 1rem;
  background: var(--card);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(58,90,152,0.05);
  transition: all 0.3s ease;
}

.faq-list details[open] {
  background: var(--muted);
  box-shadow: 0 3px 15px rgba(58,90,152,0.08);
}

.faq-list summary {
  font-weight: 600;
  color: var(--primary);
  outline: none;
  padding: 0.5rem 0;
  position: relative;
}

.faq-list p {
  margin: 0.7rem 0 0.3rem 0;
  color: var(--text);
  padding: 0 0.5rem;
}

/* Karte und rechtliche Seiten */
.contact-map {
  margin-top: 2rem;
  text-align: center;
  background: var(--card);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
}

.legal-main {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
  padding: 2rem;
}

.legal-main h1 {
  color: var(--primary);
  margin-top: 0;
}

.legal-main a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

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

/* Klasse für rot markierte Tage */
.calendar .highlight-red {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 0.2rem;
}

.img-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--muted);
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(58,90,152,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.img-modal-arrow-left {
  left: -3.5rem; /* Weiter nach links verschoben (war -2.5rem) */
}
.img-modal-arrow-right {
  right: -3.5rem; /* Weiter nach rechts verschoben (war -2.5rem) */
}
.img-modal-arrow:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 700px) {
  .img-modal-arrow-left { left: 0.2rem; }
  .img-modal-arrow-right { right: 0.2rem; }
}

/* FullCalendar Custom Styling */
#booking-calendar {
  --fc-border-color: var(--muted);
  --fc-daygrid-event-dot-width: 8px;
  --fc-list-event-dot-width: 10px;
  --fc-event-border-color: transparent;
  --fc-event-text-color: var(--text);
  --fc-event-selected-overlay-color: rgba(40, 166, 170, 0.15);
  font-family: 'Montserrat', sans-serif;
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 16px rgba(58,90,152,0.07);
}

#booking-calendar .fc-toolbar-title {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
}

#booking-calendar .fc-button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  text-transform: capitalize;
  font-size: 0.9rem;
}

#booking-calendar .fc-button:hover {
  background: var(--accent);
}

/* Abstand zwischen den Navigations-Buttons im Kalender */
#booking-calendar .fc-prev-button {
  margin-right: 0.5rem; /* Abstand rechts vom Zurück-Button */
}

#booking-calendar .fc-button:disabled {
  background: var(--muted);
  color: #aaa;
}

#booking-calendar .fc-daygrid-day {
  border-color: var(--muted);
}

#booking-calendar .fc-daygrid-day-number {
  padding: 0.4em;
  color: var(--text);
}

#booking-calendar .fc-day-today {
  background-color: rgba(247, 179, 43, 0.1); /* Light accent background for today */
}

#booking-calendar .fc-daygrid-day.fc-day-past .fc-daygrid-day-number {
    color: #bbb; /* Make past days greyed out */
}

/* Styling for background events (booked days) */
#booking-calendar .fc-bg-event {
  background-color: var(--accent) !important; /* Use accent color for booked days */
  opacity: 0.7; /* Make it slightly transparent */
}

#booking-calendar .fc-event-title {
    display: none; /* Hide the default "Belegt" text */
}

/* Optional: Add a small legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color-box {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
}
