/* =====================================================
   Ferienwohnungen Kenzingen – Stylesheet
   ===================================================== */

/* ===== CSS-VARIABLEN ===== */
:root {
  --ocker:        #C8922A;   /* Navigation, Buttons, Akzente */
  --ocker-hell:   #F0D49A;   /* Hintergründe, Hover */
  --ocker-bg:     #FAF6EE;   /* Seitenhintergrund */
  --ocker-dunkel: #7A5A10;   /* Überschriften, aktive Links */
  --text:         #2C2416;   /* Fließtext */
  --weiss:        #FFFFFF;

  --radius:       6px;
  --max-breite:   900px;
  --nav-hoehe:    58px;
}

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

html {
  scroll-behavior: smooth;
}

/* ===== GRUNDLAYOUT ===== */
body {
  background-color: var(--ocker-bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--ocker);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-breite);
  margin: 0 auto;
}

/* Seitentitel – nur auf Mobilgeräten sichtbar */
.nav-titel {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1;
}

nav ul li a {
  display: block;
  padding: 18px 22px;
  color: var(--weiss);
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  transition: background-color 0.2s;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.aktiv {
  background-color: var(--ocker-dunkel);
}

/* Burger-Button – nur auf Mobilgeräten sichtbar */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--weiss);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Burger offen: X-Icon */
nav.menu-offen .burger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
nav.menu-offen .burger-btn span:nth-child(2) { opacity: 0; }
nav.menu-offen .burger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== SEITEN (Views) ===== */
.seite {
  display: none;
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.seite.aktiv {
  display: block;
}

/* ===== TYPOGRAFIE ===== */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ocker-dunkel);
  font-size: 30px;
  margin-bottom: 10px;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ocker-dunkel);
  font-size: 22px;
}

/* ===== STARTSEITE ===== */
.start-bilder {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.start-karte {
  flex: 1;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ocker-hell);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.start-karte:hover {
  box-shadow: 0 6px 20px rgba(200,146,42,0.35);
  transform: translateY(-3px);
}

.start-karte .bild-platzhalter {
  width: 100%;
  height: 220px;
  background-color: #D0C9BC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #5a5040;
  font-size: 17px;
  overflow: hidden;
}

.start-karte .bild-platzhalter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
}

.start-karte .karte-label {
  background-color: var(--ocker);
  color: var(--weiss);
  text-align: center;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.start-karte:hover .karte-label {
  background-color: var(--ocker-dunkel);
}

.eingangstext {
  text-align: center;
  font-size: 20px;
  line-height: 2;
  padding: 10px 0 20px;
}

.eingangstext .gastgeber {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ocker-dunkel);
  margin-bottom: 16px;
}

.eingangstext .intro-text {
  margin-bottom: 8px;
  color: var(--text);
}

.adress-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.adress-card {
  background-color: var(--ocker-hell);
  border: 2px solid var(--ocker);
  border-radius: var(--radius);
  padding: 18px 32px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--ocker-dunkel);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}

.adress-card:hover {
  background-color: var(--ocker);
  color: var(--weiss);
  transform: translateY(-2px);
}

.adress-card .adress-titel {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  display: block;
}

.adress-card .adress-sub {
  font-size: 15px;
  opacity: 0.8;
  display: block;
  margin-top: 4px;
}

.und-trenner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #888;
  font-size: 18px;
  padding: 0 8px;
}

/* ===== WOHNUNGSBESCHREIBUNG ===== */
.wohnung-beschreibung {
  margin-bottom: 32px;
  line-height: 1.9;
}

.wohnung-beschreibung p {
  margin-bottom: 12px;
}

/* ===== AUSSTATTUNG ===== */
.ausstattung-bereich {
  margin-bottom: 44px;
  padding: 28px 32px;
  background: var(--weiss);
  border: 1px solid var(--ocker-hell);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(200,146,42,0.1);
}

.ausstattung-titel {
  font-size: 20px !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ocker-hell);
}

.ausstattung-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.ausstattung-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.ausstattung-icon {
  color: var(--ocker);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ausstattung-icon svg {
  width: 16px;
  height: 16px;
}

/* ===== GALERIE ===== */
.galerie-intro {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ocker-hell);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.galerie-thumb {
  aspect-ratio: 4/3;
  background-color: #D0C9BC;
  border-radius: var(--radius);
  border: 2px solid var(--ocker-hell);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5040;
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 10px;
  position: relative;
}

.galerie-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
}

.galerie-thumb:hover {
  border-color: var(--ocker);
  transform: scale(1.02);
}

.galerie-leer {
  text-align: center;
  padding: 40px 20px;
  background-color: #ede8e0;
  border-radius: var(--radius);
  color: #888;
  font-style: italic;
  margin-bottom: 20px;
}

.galerie-hinweis {
  padding: 16px 20px;
  background-color: var(--ocker-hell);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--ocker-dunkel);
  font-size: 17px;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.offen {
  display: flex;
}

.lightbox-inhalt {
  position: relative;
  max-width: 860px;
  width: 94%;
  text-align: center;
}

.lightbox-platzhalter {
  width: 100%;
  height: 420px;
  background: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  font-size: 20px;
}

.lightbox-bild {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  image-orientation: from-image;
}

.lightbox-beschriftung {
  color: #ddd;
  margin-top: 12px;
  font-size: 17px;
}

.lightbox-schliessen {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--weiss);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}

.lightbox-schliessen:hover { color: var(--ocker-hell); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(200,146,42,0.7);
  border: none;
  color: var(--weiss);
  font-size: 34px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-nav:hover { background: var(--ocker); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ===== PREISE ===== */
.preise-abschnitt { margin-bottom: 40px; }

.preise-abschnitt h3 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ocker-hell);
}

.preis-unterabschnitt {
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 19px;
  color: var(--ocker-dunkel);
}

.preis-unterabschnitt.unter {
  font-weight: normal;
  font-style: italic;
  font-size: 17px;
  margin-top: 10px;
  color: var(--text);
}

.preis-tabelle {
  width: 100%;
  border-collapse: collapse;
}

.preis-tabelle td {
  padding: 9px 6px;
  font-size: 18px;
  vertical-align: top;
}

.preis-tabelle td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ocker-dunkel);
  padding-left: 20px;
}

.preis-tabelle tr:nth-child(even) {
  background-color: rgba(240,212,154,0.3);
}

.preise-hinweis {
  margin-top: 24px;
  padding: 16px 20px;
  background-color: var(--ocker-hell);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 17px;
}

.storno-hinweis {
  margin-top: 16px;
  padding: 16px 20px;
  background-color: #f5ece0;
  border-left: 4px solid var(--ocker);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  line-height: 1.9;
}

/* ===== KONTAKT ===== */
.kontakt-block {
  margin-top: 50px;
  padding: 30px 34px;
  background-color: var(--ocker-hell);
  border-radius: 8px;
}

.kontakt-block h3 { font-size: 26px; margin-bottom: 20px; }

.kontakt-info {
  font-size: 20px;
  line-height: 2.2;
  font-weight: 600;
}

.kontakt-info .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--ocker-dunkel);
}

.kontakt-trennlinie {
  margin: 14px 0;
  border: none;
  border-top: 1px solid var(--ocker);
}

.kontakt-info a { color: var(--ocker-dunkel); text-decoration: underline; }

.oder-text {
  font-style: italic;
  font-weight: normal;
  font-size: 18px;
  color: var(--text);
  margin: 4px 0;
}

.homepage-hinweis {
  margin-top: 18px;
  font-weight: 600;
  color: var(--ocker-dunkel);
  font-size: 18px;
}

/* ===== LEGAL PAGES (Impressum / AGB) ===== */
.legal-intro {
  color: var(--text);
  font-size: 17px;
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ocker-hell);
}

.legal-inhalt h3 {
  margin-top: 36px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ocker-hell);
  font-size: 20px;
}

.legal-inhalt h3:first-child {
  margin-top: 0;
}

.legal-inhalt p {
  margin-bottom: 12px;
  line-height: 1.9;
}

.legal-inhalt a {
  color: var(--ocker-dunkel);
  text-decoration: underline;
}

.legal-stand {
  margin-top: 40px;
  font-style: italic;
  font-size: 16px;
  color: #888;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 28px 20px;
  background-color: var(--ocker);
  color: var(--weiss);
  font-size: 16px;
}

.footer-links {
  margin-top: 12px;
  font-size: 15px;
}

.footer-links a {
  color: var(--weiss);
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ===== RESPONSIVE – Mobile First ===== */
@media (max-width: 700px) {
  body { font-size: 20px; }
  h2   { font-size: 26px; }

  /* Nav: feste Höhe, Inhalte nebeneinander */
  nav {
    height: 60px;
  }

  .nav-inner {
    height: 60px;
    padding: 0 16px;
    justify-content: space-between;
  }

  /* Seitentitel links */
  .nav-titel {
    display: block;
    color: var(--weiss);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 12px;
  }

  /* Burger rechts sichtbar */
  .burger-btn { display: flex; }

  /* Dropdown: absolut positioniert unter der Nav-Leiste */
  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--ocker);
    border-top: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  }

  /* Menü geöffnet */
  nav.menu-offen ul { display: flex; }

  nav ul li { width: 100%; }

  nav ul li a {
    font-size: 19px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .seite { padding-top: 72px; }

  .start-bilder   { flex-direction: column; }
  .start-karte .bild-platzhalter { height: 180px; }

  .adress-cards   { flex-direction: column; align-items: center; }
  .und-trenner    { padding: 0; }

  .galerie-grid   { grid-template-columns: repeat(2, 1fr); }

  .preis-tabelle  { display: block; }
  .preis-tabelle tbody { display: block; }
  .preis-tabelle tr {
    display: flex;
    flex-wrap: wrap;
    padding: 6px 0;
    border-bottom: 1px solid var(--ocker-hell);
  }
  .preis-tabelle td { font-size: 17px; }
  .preis-tabelle td:first-child  { flex: 1; min-width: 55%; }
  .preis-tabelle td:last-child   { flex: 0 0 auto; }

  .ausstattung-bereich {
    padding: 16px;
  }
  .ausstattung-item {
    font-size: 14px;
  }

  .lightbox-prev  { left: -4px; }
  .lightbox-next  { right: -4px; }

  .kontakt-block  { padding: 20px; }
  .kontakt-info   { font-size: 19px; }
}
