/* ===== CSS Variablen ===== */
:root {
  --primary: #2c3e50;
  --primary-light: #34495e;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #ecf0f1;
  --border: #ddd;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 65px;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero-Hintergrundbild wird direkt im HTML gesetzt */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}

.btn-primary:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* ===== Sektionen ===== */
.section {
  padding: 70px 20px;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* ===== Raum-Info ===== */
.raum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.raum-image {
  background: var(--bg-dark);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
  overflow: hidden;
}

.raum-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.raum-details h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.raum-details p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.raum-facts {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.fact {
  text-align: center;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--radius);
  flex: 1;
}

.fact-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Ausstattung ===== */
.ausstattung-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ausstattung-item {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.ausstattung-item:hover {
  transform: translateY(-3px);
}

.ausstattung-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ausstattung-item h4 {
  color: var(--primary);
}

/* ===== Bildergalerie ===== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.galerie-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: transform 0.2s;
}

.galerie-item:hover {
  transform: scale(1.03);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Anfahrt ===== */
.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.anfahrt-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 20px;
}

.anfahrt-info h3:first-child {
  margin-top: 0;
}

.anfahrt-info p {
  color: var(--text-light);
}

.anfahrt-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 350px;
  background: var(--bg-dark);
}

.anfahrt-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

/* ===== Catering ===== */
.catering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.catering-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  border-top: 4px solid var(--accent);
  transition: transform 0.2s;
}

.catering-card:hover {
  transform: translateY(-3px);
}

.catering-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.catering-card p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.catering-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== Preise ===== */
.preise-box {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
}

.preise-box .preis-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
}

.preise-box .preis-item:last-child {
  border-bottom: none;
}

.preise-box .preis-wert {
  font-weight: 700;
  color: var(--accent);
}

.preise-hinweis {
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-light);
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer h4 {
  color: white;
  margin-bottom: 15px;
}

.footer a {
  color: rgba(255,255,255,0.7);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* ===== Buchungsseite ===== */
.booking-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.booking-calendar {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.booking-form-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.booking-form-container h2 {
  color: var(--primary);
  margin-bottom: 5px;
}

.booking-form-container .form-subtitle {
  color: var(--text-light);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

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

.selected-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.date-tag {
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-tag .remove {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.date-tag .remove:hover {
  opacity: 1;
}

.pakete-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paket-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.paket-option:hover {
  border-color: var(--primary);
  background: var(--bg-light);
}

.paket-option input:checked + span {
  color: var(--primary);
}

.paket-option input:checked ~ span strong {
  color: var(--primary);
}

.paket-option small {
  color: var(--text-light);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 5px;
}

.no-dates-hint {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== Erfolgs-Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal h2 {
  color: var(--success);
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 10px;
}

.bank-details {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-left: 4px solid var(--accent);
}

.bank-details dt {
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

.bank-details dd {
  margin-left: 0;
  color: var(--text);
}

/* ===== Kalender Anpassungen ===== */
.fc {
  font-family: inherit;
}

.fc .fc-toolbar-title {
  font-size: 1.3rem;
  color: var(--primary);
}

.fc .fc-button-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.fc .fc-button-primary:hover {
  background: var(--primary-light);
}

.fc .fc-day-today {
  background: rgba(230,126,34,0.08) !important;
}

.fc .fc-daygrid-day.date-selected {
  background: rgba(39,174,96,0.15) !important;
  border: 2px solid var(--success) !important;
}

.fc .fc-daygrid-day.date-unavailable {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ===== Legende ===== */
.calendar-legend {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-dot.frei { background: var(--success); }
.legend-dot.reserviert { background: var(--warning); }
.legend-dot.belegt { background: var(--danger); }
.legend-dot.ausgewaehlt { background: rgba(39,174,96,0.3); border: 2px solid var(--success); }
.legend-dot.halber-tag {
  background: linear-gradient(135deg, var(--warning) 50%, transparent 50%);
  border: 1px solid var(--warning);
}

/* Halber-Tag Events im Kalender */
.fc .fc-event {
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Info-Popup bei nicht verfügbarem Datum */
.date-info-popup {
  background: var(--danger);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  animation: fadeIn 0.2s ease;
}

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

/* ===== AGB ===== */
.agb-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 20px;
}

.agb-content h1 {
  color: var(--primary);
  margin-bottom: 30px;
}

.agb-content h2 {
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.agb-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

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

  .nav-links a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .raum-grid,
  .anfahrt-grid {
    grid-template-columns: 1fr;
  }

  .raum-facts {
    flex-wrap: wrap;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .ausstattung-grid {
    grid-template-columns: 1fr 1fr;
  }
}
