/* =====================================================
   Rheinhessenlieben.de – Haupt-Stylesheet
   Sauber, provider-unabhängig, für All-Inkl. optimiert
   ===================================================== */

/* --- Google Fonts (Arimo wie im Original) --- */
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Arimo', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #3c3c3c;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }

/* --- Farben (aus Original extrahiert) --- */
:root {
  --color-dark:    #3c3c3c;
  --color-bg:      #ffffff;
  --color-accent:  #779195;   /* Rheinhessen-Graugrün */
  --color-contact: #9da2ae;   /* Kontakt-Block Hintergrund */
  --color-footer:  rgba(60,60,60,0.08);
  --color-bar:     #9da2ae;   /* Footer-Streifen */
  --color-wine:    #360f1c;   /* Titelfarbe "Die Wohnung" */
  --color-hero-bg: rgba(119,145,149,1);
  --max-width: 960px;
}

/* --- Navigation / Header --- */
header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 80px;
  gap: 1rem;
}
.logo-haus-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-haus {
  height: 60px;
  width: auto;
}
.logo-schriftzug-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo-schriftzug {
  height: 58px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 480px) {
  .logo-haus    { height: 40px; }
  .logo-schriftzug { height: 30px; }
}
nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav a {
  font-family: 'Arimo', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-dark);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover, nav a.aktiv {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* Hamburger (mobil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.offen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.offen span:nth-child(2) { opacity: 0; }
.menu-toggle.offen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero-Sektion --- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-hero-bg);
  background-size: cover;
  background-position: center 40%;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60,60,60,0.35);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 3rem 2rem;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-content h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Arimo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-primary:hover { background: #5d7578; border-color: #5d7578; opacity: 1; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: #fff; opacity: 1; }
.btn-dark {
  background: var(--color-dark);
  color: #fff;
  border: 2px solid var(--color-dark);
}
.btn-dark:hover { background: #222; border-color: #222; opacity: 1; }

/* --- Sektionen allgemein --- */
section { padding: 4rem 1.5rem; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-titel {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* --- Startseite: Wohnung Preview --- */
.sektion-wohnung {
  background: #fff;
}
.wohnung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.wohnung-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wohnung-text .section-titel { color: var(--color-wine); }
.wohnung-text p { line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.97rem; }
.wohnung-bild img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

/* --- Startseite: Standort --- */
.sektion-standort {
  background: #fff;
  border-top: 1px solid #eee;
}
.standort-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: stretch;
}
.standort-info {
  background: var(--color-contact);
  color: #fff;
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.standort-info h3 { margin-bottom: 1.2rem; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.standort-adresse {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.standort-adresse svg { flex-shrink: 0; margin-top: 3px; }
.standort-adresse a { color: #fff; line-height: 1.5; font-size: 0.95rem; }
.standort-gps {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.standort-email {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.standort-email a { color: #fff; font-size: 0.95rem; }
.standort-karte img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}
.standort-karte a { display: block; height: 100%; }

/* --- Footer --- */
footer {
  background: var(--color-footer);
  border-top: 1px solid #ddd;
  padding: 2.5rem 1.5rem 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: var(--color-dark);
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.footer-social a { transition: opacity 0.2s; }
.footer-social a:hover { opacity: 0.7; }
.footer-bar {
  background: var(--color-bar);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  margin: 0 -1.5rem;
}
.footer-bar a { color: #fff; text-decoration: underline; }

/* --- Unterseiten: Hero (kleiner) --- */
.page-hero {
  background: var(--color-accent);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Wohnung-Seite: Zimmer-Karten --- */
.zimmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.zimmer-karte {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.zimmer-karte img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.zimmer-karte-text {
  padding: 1.2rem;
}
.zimmer-karte-text h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--color-wine);
}
.zimmer-karte-text p { font-size: 0.93rem; line-height: 1.7; }

/* --- Galerie --- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}
.galerie-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.galerie-grid img:hover { opacity: 0.85; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.aktiv { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem; color: #fff;
  cursor: pointer; background: none; border: none;
  line-height: 1;
}

/* --- Attraktionen / Ort-Seite --- */
.attraktion-block {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eee;
}
.attraktion-block:last-child { border-bottom: none; }
.attraktion-block.umgekehrt { direction: rtl; }
.attraktion-block.umgekehrt > * { direction: ltr; }
.attraktion-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-wine);
  margin-bottom: 0.8rem;
}
.attraktion-text p { font-size: 0.96rem; line-height: 1.8; margin-bottom: 0.8rem; }
.attraktion-text a.link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
}
.attraktion-bild img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

/* Weingüter-Karten */
.weingut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.weingut-karte {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.92rem;
}
.weingut-karte img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border-radius: 2px;
}

/* --- Buchungs-Seite --- */
.buchung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.buchung-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--color-wine);
}
.buchung-info ul { padding-left: 0; }
.buchung-info li { padding: 0.4rem 0; font-size: 0.96rem; }
.buchung-info li::before { content: '✓  '; color: var(--color-accent); font-weight: 700; }
.buchung-kontakt {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: #efefef;
  color: #222;
  border-radius: 4px;
  font-size: 0.95rem;
  flex: 1;
}
.buchung-kontakt a { color: var(--color-wine); text-decoration: underline; }

.buchung-formular h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--color-wine);
}
.formular-gruppe { margin-bottom: 1.2rem; }
.formular-gruppe label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  color: #555;
}
.formular-gruppe input,
.formular-gruppe textarea,
.formular-gruppe select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Arimo', sans-serif;
  font-size: 0.95rem;
  color: var(--color-dark);
  background: #fafafa;
  transition: border-color 0.2s;
}
.formular-gruppe input:focus,
.formular-gruppe textarea:focus,
.formular-gruppe select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.formular-gruppe textarea { min-height: 120px; resize: vertical; }
.formular-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.buchung-formular .btn { margin-top: 0.5rem; }
.pflichtfeld { color: #b00; margin-left: 2px; }

/* --- Impressum-Seite --- */
.impressum-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--color-wine);
}
.impressum-content p, .impressum-content li {
  font-size: 0.96rem;
  line-height: 1.8;
}
.impressum-content a { color: var(--color-accent); text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  nav#haupt-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: #3c3c3c;
    padding: 1rem 0;
  }
  nav#haupt-nav.offen { display: block; }
  nav#haupt-nav ul { flex-direction: column; gap: 0; }
  nav#haupt-nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid #555;
  }
  nav#haupt-nav a:hover, nav#haupt-nav a.aktiv { color: #fff; background: #555; border-bottom-color: #777; }

  .wohnung-grid { grid-template-columns: 1fr; }
  .wohnung-bild img { min-height: 220px; }
  .standort-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .attraktion-block { grid-template-columns: 1fr; }
  .attraktion-block.umgekehrt { direction: ltr; }
  .buchung-grid { grid-template-columns: 1fr; }
  .formular-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.8rem; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── FAQ ── */
.faq-liste { display: flex; flex-direction: column; gap: 0.6rem; max-width: 860px; }

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-wine);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: #f5f0f2; }

.faq-antwort {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #444;
  border-top: 1px solid #e8e8e8;
}
.faq-antwort p { margin: 0; }

/* ── Neuigkeiten-Button im Hero ── */
.btn-neuigkeiten {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 1.4rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 3px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-neuigkeiten:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Neuigkeiten-Seite ── */
.news-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.news-tabelle th {
  background: var(--color-wine);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.news-tabelle td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}
.news-tabelle tr:nth-child(even) td { background: #fafafa; }
.news-tabelle tr:last-child td { border-bottom: none; }
.news-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.news-badge.neu       { background: #e8f5e9; color: #2e7d32; }
.news-badge.hinweis   { background: #fff8e1; color: #f57f17; }
.news-badge.info      { background: #e3f2fd; color: #1565c0; }

/* ── Ort-Karten-Grid ── */
.ort-karten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ort-karte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ort-karte:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.ort-karte-bild img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ort-karte-inhalt {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ort-karte-inhalt h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-wine);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ort-karte-inhalt p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
  margin: 0 0 1rem;
  flex: 1;
}

.ort-karte-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-wine);
  margin-top: auto;
}

@media (max-width: 860px) {
  .ort-karten-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ort-karten-grid { grid-template-columns: 1fr; }
}

/* Logo-Bilder in Ort-Karten (Pfeiffer, Quirinushof, Dengler) */
.ort-karte-bild.logo-box {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}
.ort-karte-bild.logo-box img {
  width: auto;
  height: auto;
  max-height: 120px;
  max-width: 85%;
  object-fit: contain;
}
