/* Version 20250811 - CLEAN */

/* =======================
   Reset & Basics
======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f7fa;
  padding: 2rem;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* =======================
   Header & Footer
======================= */
header, footer {
  width: 100%;
  background: #f8f8f8;
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
  header { position: sticky; top: 0; z-index: 1000; }
}

/* =======================
   Navigation
======================= */
.main-nav .nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  padding: 1.2rem 0;
  margin: 0;
  font-size: 1.2rem;
}
.main-nav a {
  padding: 0.3rem 0.5rem;
  color: #1a69b5;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.main-nav a.active, .main-nav a:hover {
  background: #e6f1fa;
  color: #20517a;
  font-weight: 700;
}

/* Sprachumschalter */
.lang-switch-desktop {
  display: inline-block;
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
}
.lang-switch-desktop button,
.lang-switch-mobile button {
  padding: 0.33em 1em;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}
.lang-switch-desktop button:hover,
.lang-switch-mobile button:hover { background: #20517a; }

.lang-switch-mobile { display: none; }

/* Hamburger-Button (mobile) */
.menu-toggle { display: none; }

/* =======================
   Main Content & Hero
======================= */
main { padding: 1rem; }
.zentriert { text-align: center; margin: 2rem auto; }
.hero-overlay {
  width: 100%;
  max-width: 550px;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.bild-mitte {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =======================
   Galerie
======================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}
.gallery img {
  width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  object-fit: cover;
  background: #fff;
}

/* =======================
   Preis-Tabelle
======================= */
.preise-section {
  margin: 2.5rem auto 2rem auto;
  max-width: 520px;
  background: #f8fafd;
  border-radius: 16px;
  box-shadow: 0 6px 36px rgba(0,40,60,0.07);
  padding: 2rem 1.3rem;
}
.preise-section h2 {
  margin-bottom: 1.4rem;
  font-size: 2rem;
  color: #20517a;
  text-align: center;
}
.preise-table-wrapper { overflow-x: auto; }
.preise-tabelle {
  width: 100%; border-collapse: collapse; margin: 0 auto;
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 18px rgba(60,100,140,0.07);
  font-size: 1.05rem;
}
.preise-tabelle th, .preise-tabelle td {
  padding: 0.85em 1.1em; border-bottom: 1px solid #eef2f7; text-align: center;
}
.preise-tabelle th { background: #e6ecfa; color: #20517a; font-weight: 600; }
.preise-tabelle td { color: #2e4052; }
.preise-tabelle tr:last-child td { border-bottom: none; }

/* =======================
   Widget (Buchung)
======================= */
.widget-wrapper {
  display: flex; justify-content: center; align-items: center;
  padding: 60px 20px; min-height: 400px; width: 100%; background: transparent;
}
.widget {
  background: #fff; border: none !important; color: #222;
  padding: 30px 20px; width: 100%; max-width: 350px;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  font-family: 'Segoe UI', Arial, sans-serif;
}
.widget label {
  font-weight: bold; color: #222; margin: 12px 0 6px; display: block;
}
.widget input[type="text"] {
  padding: 10px; border-radius: 4px; border: 1px solid #ccc; width: 100%;
  font-size: 16px; background: #ffffff; color: #222; margin-bottom: 12px;
}
.widget input::placeholder { color: #888; }
.widget .check-availability {
  margin-top: 20px; padding: 12px; font-size: 1rem; font-weight: 500;
  border: none; background-color: #4a8cbf; color: #fff;
  border-radius: 6px; cursor: pointer; width: 100%; transition: background 0.25s, color 0.25s;
}
.widget .check-availability:hover { background-color: #20517a; color: #fff; }

/* =======================
   Kontaktformular
======================= */
form.kontaktformular {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 400px; margin: 2rem auto; padding: 1.5rem;
  background: #ffffff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', Arial, sans-serif;
}
form.kontaktformular label { font-weight: 600; color: #333; }
form.kontaktformular input,
form.kontaktformular textarea {
  padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px;
  background-color: #f8f8f8; font-family: inherit;
}
form.kontaktformular textarea { resize: vertical; min-height: 100px; }
form.kontaktformular button[type="submit"] {
  background-color: #4a8cbf; color: white; padding: 10px;
  border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background 0.3s;
}
form.kontaktformular button[type="submit"]:hover { background-color: #20517a; }

/* =======================
   Lightbox Galerie
======================= */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: none; justify-content: center; align-items: center;
  z-index: 2000; flex-direction: column;
}
.lightbox-overlay img {
  max-width: 90%; max-height: 80%;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
  border-radius: 8px; transition: transform 0.2s;
}
.lightbox-controls { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.lightbox-button {
  background: #fff; border: none; padding: 0.5rem 1rem;
  font-size: 1.1rem; border-radius: 6px; cursor: pointer;
}
.lightbox-button:hover { background: #e0e0e0; }

/* =======================
   Footer Social
======================= */
.social a { margin: 0 0.5rem; }

/* =======================
   Responsive Navigation
======================= */
@media (max-width: 780px) {
  .menu-toggle {
    display: block !important;
    font-size: 2rem; background: none; border: none; color: #20517a;
    cursor: pointer; margin-right: 1rem; z-index: 1001;
  }
  .nav-links {
    display: none; flex-direction: column; background: #f8f8f8; align-items: flex-start;
    position: absolute; top: 60px; left: 0; right: 0;
    padding-left: 1.2rem; padding-top: 0.8rem;
    box-shadow: 0 6px 36px rgba(0,40,60,0.07); z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .lang-switch-mobile { display: block !important; width: 100%; text-align: center; margin-top: 0.7rem; }
  .lang-switch-desktop { display: none !important; }
}
@media (min-width: 781px) {
  .menu-toggle { display: none !important; }
  .nav-links {
    display: flex !important; position: static; flex-direction: row; background: none;
    align-items: center; padding: 0; box-shadow: none;
  }
  .lang-switch-mobile { display: none !important; }
  .lang-switch-desktop { display: inline-block !important; }
  .nav-inner { position: relative; }
}

/* =======================
   Overlay Title
======================= */
.overlay-text {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: #fff;
  background: #4A8CBF !important; /* fix: richtiges !important */
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  max-width: 90%;
  text-align: center;
}
.overlay-text > span { display: block; width: 100%; text-align: center; }

@media (max-width: 780px) {
  .hero-overlay { width: 100% !important; max-width: 90vw !important; margin: 0 auto 2rem auto !important; text-align: center !important; }
  .overlay-text {
    display: block !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important;
    text-align: center !important; font-size: 2rem !important; padding: 0.7em 0.2em !important; box-sizing: border-box !important;
  }
  .widget { max-width: 99vw !important; width: 100% !important; border-radius: 8px !important; padding: 14px 6px !important; margin: 0 auto !important; box-sizing: border-box !important; }
  .widget form { width: 100% !important; box-sizing: border-box !important; }
  .check-availability {
    width: 100% !important; display: block !important; margin-left: 0 !important; margin-right: 0 !important;
    font-size: 1.1rem !important; padding: 14px 0 !important; border-radius: 8px !important;
  }
}

/* =======================
   Typo-Helpers
======================= */
.lead-satz { font-size: 1.2rem; font-weight: bold; margin-bottom: 0.4rem; line-height: 1.3; }
.intro-text p { margin: 0.3rem 0 0.8rem; line-height: 1.6; }

/* =======================
   Gästebuch
======================= */
.gb-entry {
  border: 1px solid #ccc; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem;
  background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 800px; margin-left: auto; margin-right: auto; text-align: left;
}
.gb-entry strong { font-size: 1.1rem; color: #20517a; }
.gb-entry small { display: block; color: #777; margin-bottom: 0.4rem; }
.gb-entry p { margin: 0.5rem 0; line-height: 1.5; }
.gb-entry em { color: #333; font-style: italic; }
.gb-pending { background: #fff9e0; border-color: #f0c040; }
.gb-entry textarea {
  width: 100%; min-height: 80px; margin-top: 0.5rem; padding: 0.5rem;
  border-radius: 6px; border: 1px solid #ccc; font-family: inherit;
}

/* Karten/Boxen allgemein */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Meldungen */
.meldung {
  padding: 1em 1.2em; margin-bottom: 1.4em; border-radius: 8px; font-size: 1.08rem;
  display: flex; align-items: center; gap: 0.8em; justify-content: center;
}
.meldung.erfolgreich { background: #e7f8ec; color: #1c6035; border: 1px solid #b2ddb7; }
.meldung.fehler { background: #ffeaea; color: #a13a2f; border: 1px solid #f5cccc; }

/* Accessibility */
.visually-hidden {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Sprachumschaltung NUR für Spans */
html.lang-de span[data-de] { display: inline !important; }
html.lang-de span[data-en] { display: none !important; }
html.lang-en span[data-de] { display: none !important; }
html.lang-en span[data-en] { display: inline !important; }


/* =======================
   Sprachumschaltung global
   (überschreibt alte Inline-Styles zuverlässig)
======================= 
html.lang-de [data-de] { display: initial !important; }
html.lang-de [data-en] { display: none !important; }
html.lang-en [data-de] { display: none !important; }
html.lang-en [data-en] { display: initial !important; }*/

/* Fallback für manuelles Verstecken */
[data-hidden] { display: none !important; }
