/* ================================
   GRUNDLAYOUT DER SEITE
   ================================ */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}


/* ================================
   HEADERBILD OBEN AUF DER SEITE
   ================================ */
.header-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: #000;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ================================
   LOGO POSITIONIERUNG IM HEADER
   ================================ */
.logo {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px;
  border-radius: 8px;
  width: 120px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo img {
  width: 100%;
  height: auto;
}


/* ================================
   NAVIGATIONSBEREICH
   ================================ */
nav {
  background-color: #083f3d;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 0;
}

nav li {
  margin: 5px 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #0f5f5d;
}


/* ================================
   HAUPTBEREICH (INHALT)
   ================================ */
main {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

h1, h2 {
  color: #083f3d;
  margin-top: 0;
}

section {
  margin-bottom: 40px;
}


/* ================================
   FOOTER (SEITENFUSS)
   ================================ */
footer {
  background-color: #083f3d;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

footer a {
  color: #cdeae8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ================================
   RESPONSIVE DESIGN FÜR MOBILE
   ================================ */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 90px;
    top: 10px;
    left: 10px;
  }

  .header-image {
    height: 180px;
  }
}


/* ================================
   BILDGALERIE AUF DER STARTSEITE
   ================================ */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
  margin: 20px 0;
}

.image-gallery img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}


/* ================================
   SPRACHUMSCHALTUNG (FLAGGEN)
   ================================
   Verwendung auf Index.html zur
   Auswahl der Sprache via Flaggen.
   Jetzt zentriert dargestellt.
   ================================ */
.language-switch {
  display: flex;
  justify-content: center;    /* Horizontal zentriert */
  align-items: center;        /* Vertikal zentriert */
  gap: 8px;                   /* Abstand zwischen Flaggen */
  padding: 10px;
  font-size: 0.85rem;
  color: #fff;
  background-color: #083f3d;  /* Optional: Hintergrundfarbe */
}

.language-switch a {
  display: inline-block;
}

.language-switch img {
  display: block;
  width: 24px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 2px;
  transition: transform 0.2s ease-in-out;
}

.language-switch img:hover {
  transform: scale(1.1);
}



/* ================================
   GÄSTEBEWERTUNGEN
   ================================ */
.bewertungen {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.review {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.review img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.textblock {
  flex: 1;
}

.textblock .name {
  font-weight: bold;
  font-size: 1.1rem;
}

.textblock .aufenthalt {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
}

.textblock .text {
  margin-top: 0.5rem;
}

.stars {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 5px 0;
}

.stars.green { color: #2e7d32; }
.stars.yellow { color: #fbc02d; }
.stars.orange { color: #fb8c00; }
.stars.red { color: #d32f2f; }

/* ================================
   BEWERTUNGSFORMULAR
   ================================ */
#bewertung-abgeben {
  max-width: 700px;
  margin: 40px auto;
  background: #f7f7f7;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

#bewertung-abgeben form label {
  display: block;
  margin-bottom: 1rem;
}

#bewertung-abgeben input,
#bewertung-abgeben select,
#bewertung-abgeben textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
}

#bewertung-abgeben button {
  padding: 10px 20px;
  background-color: #083f3d;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

#bewertung-abgeben button:hover {
  background-color: #0f5f5d;
}


/* ================================
   RATING SUMMARY (grafische Auswertung)
   ================================ */
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  background: #fff;
  max-width: 1100px;
  margin: 12px auto 22px;
}

.rating-summary__badge {
  font-size: 1.6rem;
}

.rating-summary h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
}

.rating-summary__subtitle {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #555;
}

.rating-summary__avg,
.rating-summary__count {
  text-align: center;
  min-width: 90px;
}

.rating-summary__value {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #111;
}

.rating-summary__label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

/* Stars display with fractional fill */
.stars-display {
  position: relative;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
  width: max-content;
}
.stars-display::before {
  content: "★★★★★";
  color: #ddd;
}
.stars-display::after {
  content: "★★★★★";
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--value, 0) * 100%);
  overflow: hidden;
  color: #f5a623;
}

/* Responsive tweaks */
@media (max-width: 680px) {
  .rating-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rating-summary__avg,
  .rating-summary__count {
    justify-self: center;
  }
}

/* Eleganteres Formular */
#bewertung-abgeben {
  background: #ffffff;
  border: 1px solid #e6e6e6;
}

#bewertung-abgeben form label {
  font-weight: 600;
}

#bewertung-abgeben input:focus,
#bewertung-abgeben select:focus,
#bewertung-abgeben textarea:focus {
  outline: none;
  border-color: #0f5f5d;
  box-shadow: 0 0 0 3px rgba(15,95,93,0.12);
}

#bewertung-abgeben .form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

#bewertung-abgeben .hp-field { /* Honeypot-Feld verstecken */
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* ================================
   STAR DISTRIBUTION
   ================================ */
.star-distribution {
  margin: 0 auto 22px;
  max-width: 500px;
  font-size: 0.95rem;
}
.star-dist-row {
  display: flex;
  align-items: center;
  margin: 4px 0;
}
.star-label {
  width: 40px;
  flex-shrink: 0;
  color: #333;
}
.bar-bg {
  flex: 1;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
  margin: 0 8px;
}
.bar-fill {
  background: #f5a623;
  height: 100%;
}
.count-label {
  width: 28px;
  text-align: right;
  color: #555;
}


/* ================================
   RATING DISTRIBUTION (Balken)
   ================================ */
.rating-distribution {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto 22px;
}

.rating-distribution h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.dist-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.dist-label {
  font-size: 0.9rem;
  color: #444;
}

.dist-bar-wrap {
  position: relative;
  height: 10px;
  background: #f1f1f1;
  border-radius: 999px;
  overflow: hidden;
}

.dist-bar {
  position: absolute;
  inset: 0;
  width: calc(var(--w, 0) * 1%);
  background: #0f5f5d1a; /* zarte Grundfarbe */
}
.dist-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  background: #0f5f5d; /* Vollfarbe */
  opacity: 0.55;
}

.dist-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #333;
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .dist-row {
    grid-template-columns: 70px 1fr 40px;
  }
}


/* ================================
   RATING DISTRIBUTION (Balken, immer sichtbar)
   ================================ */
.rating-distribution {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto 22px;
}

.rating-distribution h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.dist-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.dist-label {
  font-size: 0.9rem;
  color: #444;
}

.dist-bar-wrap {
  position: relative;
  height: 14px;
  background: #f1f1f1;
  border-radius: 999px;
  overflow: hidden;
}

.dist-bar {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #fbc02d);
  width: calc(var(--w, 0) * 1%);
  transition: width 0.5s ease;
}

.dist-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #333;
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  .dist-row {
    grid-template-columns: 70px 1fr 40px;
  }
}


/* ---------- Always-visible, animated bars with percent text ---------- */
.dist-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.dist-bar-wrap {
  position: relative;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
}

.dist-bar-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f4f6 0%, #ececec 100%);
}

.dist-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #0f5f5d 0%, #30a19d 100%);
  opacity: 0.9;
  transform-origin: left center;
  animation: fillGrow 900ms ease-out forwards;
}

.dist-bar-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b3d3b;
  mix-blend-mode: multiply;
}

@keyframes fillGrow {
  from { width: 0%; }
  to   { width: calc(var(--w, 0) * 1%); }
}

.rating-distribution .dist-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 680px) {
  .dist-row { grid-template-columns: 90px 1fr 48px; }
}


/* ===== Airbnb-like Rating Summary Card ===== */
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  padding: 14px 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  max-width: 1024px;
}

.rating-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rating-summary__badge .laurel { opacity: .8; }
.rating-summary__badge .badge-text {
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.rating-summary__content { margin-right: 8px; }
.rating-summary h2 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}
.rating-summary__subtitle {
  margin: 2px 0 0;
  font-size: .95rem;
  color: #333;
}

.rating-summary__avg { text-align: center; min-width: 84px; }
.rating-summary__count { text-align: center; min-width: 90px; }

.rating-summary__value {
  font-weight: 700;
  font-size: 1.35rem;
  color: #111;
}

.stars-display--compact {
  font-size: .9rem;
  letter-spacing: 1px;
}
.stars-display--compact::before { color: #dcdcdc; }
.stars-display--compact::after { color: #111; }

.rating-summary__label {
  font-size: .84rem;
  color: #555;
}

/* Responsive */
@media (max-width: 820px) {
  .rating-summary {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }
  .rating-summary__badge { grid-column: 1 / -1; justify-self: start; }
  .rating-summary__content { grid-column: 1 / -1; }
}


/* ===== Dynamic Airbnb-like Rating Summary Card ===== */
.rating-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  padding: 14px 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  max-width: 640px;
  margin: 0 auto 22px;
}

.rating-summary__left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-summary__left .left-title {
  font-weight: 600;
  color: #111;
}
.rating-summary__center {
  font-size: .95rem;
  color: #111;
}
.summary-text {
  margin: 0;
}
.rating-summary__avg {
  text-align: center;
  min-width: 70px;
}
.avg-value {
  font-weight: 700;
  font-size: 1.35rem;
  color: #111;
}
.rating-summary__count {
  text-align: center;
  min-width: 90px;
}
.count-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #111;
}
.count-label {
  font-size: .84rem;
  color: #555;
}

/* Stars black style */
.stars-display--black {
  font-size: .9rem;
  letter-spacing: 1px;
}
.stars-display--black::before { content: "★★★★★"; color: #dcdcdc; }
.stars-display--black::after { content: "★★★★★"; color: #111; position: absolute; top: 0; left: 0; width: calc(var(--value, 0) * 100%); overflow: hidden; }

.stars-display {
  position: relative;
  display: inline-block;
}


.feedback-message {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.feedback-message.success {
  background-color: #e6f4ea;
  border: 1px solid #b7e1c1;
  color: #2e7d32;
}
.feedback-message.error {
  background-color: #fdecea;
  border: 1px solid #f5c6cb;
  color: #c62828;
}
.feedback-message h1 {
  margin-bottom: 10px;
}
.feedback-message .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #083f3d;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.feedback-message .btn:hover {
  background-color: #0f5f5d;
}

/* ================================
   COMPONENTS: buttons, alerts, cards
   ================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.card {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  padding: 20px;
  margin: 14px 0;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: #083f3d;
  color: #fff;
}
.btn-primary:hover { background: #0f5f5d; }

.btn-ghost {
  background: transparent;
  color: #083f3d;
  border-color: #083f3d;
}
.btn-ghost:hover { background: #e8f3f2; }

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert svg { flex-shrink: 0; }
.alert-success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
}
.alert-error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #b71c1c;
}
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meta-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}

/* rating-badge */
.rating-badge{display:flex;gap:1rem;align-items:center;justify-content:space-between;border:1px solid #e5e7eb;border-radius:12px;padding:12px 16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.05);flex-wrap:wrap}
.rating-badge .badge-left{display:flex;align-items:center;gap:.5rem;min-width:180px}
.laurel-icon{width:28px;height:14px;fill:#111;flex:0 0 auto}
.badge-title{font-weight:600}
.rating-badge .badge-text{flex:1 1 220px;color:#374151;line-height:1.3}
.rating-badge .badge-stats{display:flex;flex-direction:column;align-items:flex-end;min-width:110px}
.badge-rating{font-size:1.25rem;line-height:1}
.badge-stars{font-size:.9rem;letter-spacing:.1em}
.badge-count{font-size:.85rem;color:#6b7280}
@media (max-width:640px){
  .rating-badge{gap:.75rem}
  .rating-badge .badge-stats{align-items:flex-start}
  .laurel-icon{width:22px;height:12px}
}


/* ===================================================================
   STARTSEITE – aus index.html ausgelagerte Styles (2025-09-04)
   Zweck: Reine Layout-/Designregeln der Startseite (Grids, Karten, Buttons,
   Typografie-Basis). Reihenfolge am Dateierende belassen, damit keine Optik 
   verloren geht. Änderungen nur nach Auftrag!
   =================================================================== */
:root{--gap:clamp(16px,3vw,28px);--max:1200px;--shadow:0 8px 24px rgba(0,0,0,.08)}
    body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.6;color:#222;margin:0}
    .wrap{max-width:var(--max);margin:0 auto;padding:clamp(18px,3.2vw,32px)}
    h1,h2{line-height:1.25}
    h1{font-size:clamp(1.6rem,2.4vw,2.2rem);margin:.2rem 0 1rem}
    h2{font-size:clamp(1.2rem,2vw,1.6rem);margin:2rem 0 .75rem}
    h3{font-size:1.05rem;margin:.75rem 0 .25rem}
    p{margin:.5rem 0}
    .lead{font-size:1.05rem}
    .grid-3,.grid-4{display:grid;gap:var(--gap)}
    .grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
    @media (max-width:980px){.grid-3{grid-template-columns:1fr 1fr}.grid-4{grid-template-columns:1fr 1fr}}
    @media (max-width:580px){.grid-3,.grid-4{grid-template-columns:1fr}}
    .card{background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
    .card img{width:100%;height:208px;object-fit:cover;display:block}
    .card .content{padding:16px}
    .btn{display:inline-block;margin-top:.5rem;padding:.55rem .85rem;border-radius:10px;background:#005bb5;color:#fff;text-decoration:none}
    .visually-hidden{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
    header,footer{background:#f7f7f9}
    footer{margin-top:32px}
    small,footer{color:#555}
/* ===================================================================
   ENDE – ausgelagerte Styles von index.html
   =================================================================== */


/* ===================================================================
   Barrierefreiheit – Fokus-Styles (Keyboard only) – 2025-09-04
   Zweck: Sichtbarer Fokusrahmen für Links/Buttons per :focus-visible,
   ohne Hover/Active-Gestaltung zu verändern. Optik minimal, nur bei
   Tastaturbedienung sichtbar. Keine Designänderungen im Normalzustand.
   =================================================================== */
:where(a, button, [role="button"], .tile a, nav a):focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 3px;
}
/* ===================================================================
   Ende Fokus-Styles
   =================================================================== */

/* === Info-Grid (2 Spalten) – konfliktfrei, volle Breite === */
.info-grid-2{
  display:grid;
  gap:var(--gap);
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (max-width:580px){
  .info-grid-2{ grid-template-columns:1fr; }
}

/* Patch 2025-09-15 – Breite fixieren bei geladenem Urlaubsanfrage-Formular
   Hintergrund: Das Easybooking-Enquiry-Stylesheet hängt sich nachträglich in den <head>
   und überschreibt generische Selektoren (z.B. main{}). Wir erzwingen daher unsere Layout-
   Breite mit höherer Spezifität und !important, ohne Inhalte zu ändern. */
:root { --max: 1200px; } /* Sicherheitsnetz – entspricht unseren Seiten */
main.wrap, #content.wrap, .wrap { max-width: var(--max) !important; margin-left:auto; margin-right:auto; }
header .wrap, footer .wrap { max-width: var(--max) !important; }

/* Patch 2025-09-15 – Footer exakt wie im Impressum */
footer {
    background-color: #083f3d;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}
/* Ende Footer-Patch */

/* Patch 2025-09-15 – Footer-Schrift komplett weiß */
footer { background-color: #083f3d !important; color: #fff !important; }
footer, footer p, footer small, footer span { color: #fff !important; }
footer a { color: #fff !important; text-decoration: none; }
footer a:hover { text-decoration: underline; }
/* Ende Footer-Schrift-Patch */

