/* Ferienwohnung Schade - Stylesheet
   Nachbau des WordPress-Themes Stargazer/Polymer als statische Seite.
   Akzentfarbe #349F8C, Seitenhintergrund #ededc4 - beides wie im Original. */

:root {
  --akzent: #349F8C;
  --akzent-hell: rgba(52, 159, 140, 0.75);
  --hintergrund: #ededc4;
  --text: #656565;
  --text-dunkel: #252525;
  --linie: #e3e3e3;
}

*, *::before, *::after { box-sizing: border-box; }

/* Wie im Original: der Bereich unterhalb des Inhalts bleibt weiss,
   der beige Ton gilt nur fuer die Seite selbst. */
html { font-size: 16px; background: #fff; }

body {
  margin: 0;
  background: var(--hintergrund);
  border-top: 2px solid var(--akzent);
  border-bottom: 2px solid var(--akzent);
  color: var(--text);
  /* Wie im Original: Roboto Condensed ist nur deklariert, nicht geladen -
     der Browser nimmt seine Standard-Sans. Font-Stack bewusst identisch. */
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--akzent-hell); text-decoration: none; }
a:hover, a:focus { color: var(--akzent); }

.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hauptmenue ---------- */

#menu-primary {
  background: var(--akzent);
  color: #fafafa;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 20;
}

#menu-primary > .wrap {
  max-width: 1075px;
  margin: 0 auto;
  padding: 0 25px;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.menu-items > li > a {
  display: block;
  margin-right: 1.5rem;
  padding: 0.75rem 0 1.25rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.menu-items > li > a:hover,
.menu-items > li > a:focus { color: #fff; opacity: 0.8; }

/* Suchfeld rechts im Menue */
.suche { display: flex; align-items: center; }
.suche input[type="search"] {
  width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  transition: width 0.25s, opacity 0.25s, padding 0.25s;
}
.suche.offen input[type="search"] {
  width: 11rem;
  padding: 0.3rem 0.5rem;
  opacity: 1;
}
.suche-schalter {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  opacity: 0.85;
}
.suche-schalter:hover { opacity: 1; }

/* Menue-Schalter fuer schmale Bildschirme */
.menu-toggle { display: none; }

/* ---------- Rahmen ---------- */

#container > .wrap {
  max-width: 1175px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.95);
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 6px 15px -6px rgba(0, 0, 0, 0.5);
}

#main {
  padding: 3rem 75px 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 5px 16px 0 rgba(0, 0, 0, 0.1);
  font-size: 1.25rem;
  font-weight: 400;
  /* Silbentrennung wie im Original - sonst reissen die schmalen Spalten auf. */
  word-wrap: break-word;
  hyphens: auto;
}

/* Der Inhalt steht im Quelltext vorn (gut fuer Vorleseprogramme und Suchmaschinen),
   angezeigt wird die Seitenleiste aber links - wie im Original. */
.content { order: 2; flex: 0 0 63.41%; min-width: 0; }
.sidebar { order: 1; flex: 0 0 29.27%; min-width: 0; }

/* ---------- Brotkrumen ---------- */

.brotkrumen {
  order: 0;
  flex: 0 0 100%;
  margin: -1.5rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brotkrumen a {
  display: inline-flex;
  align-items: center;
  color: var(--akzent);
}
.brotkrumen a:hover { color: var(--akzent-hell); }
.brotkrumen .trenner { color: #999; }

/* ---------- Seiteninhalt ---------- */

.entry-title {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--linie);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-dunkel);
}

.entry-content p { margin: 0 0 1.5rem; }
.entry-content h2 {
  margin: 2rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--linie);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-dunkel);
}
.entry-content h3 { font-size: 1.5rem;   font-weight: 300; margin: 1.5rem 0 0.75rem; color: var(--text-dunkel); }
.entry-content h4 { font-size: 1.25rem;  font-weight: 400; margin: 1.5rem 0 0.5rem;  color: var(--text-dunkel); }

.entry-content a {
  color: var(--akzent);
  padding-bottom: 2px;
  border-bottom: 1px solid;
}
.entry-content a:hover, .entry-content a:focus { border-bottom-color: transparent; }

.entry-content ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.entry-content ul li { padding-left: 1.25rem; position: relative; }
.entry-content ul li::before {
  content: "\2022";
  position: absolute;
  left: 0.25rem;
}
.entry-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }

.entry-content strong, .entry-content b { font-weight: 600; }

/* Sammelliste mit Ausstattung u.ae. ohne Aufzaehlungspunkte */
.liste-schlicht li::before { content: none; }
.liste-schlicht li { padding-left: 0; }

/* ---------- Galerien ---------- */

/* Spaltenbreiten und Abstaende wie in der WordPress-Galerie:
   2 Spalten je 45 %, 3 Spalten je 30 %, Rest ist Zwischenraum. */
.galerie {
  display: grid;
  justify-content: start;
  column-gap: 5%;
  row-gap: 5px;
  margin: 0 auto 30px;
}
.galerie-2 { grid-template-columns: repeat(2, 45%); }
.galerie-3 { grid-template-columns: repeat(3, 30%); }

.galerie figure { margin: 0; text-align: center; }

.galerie img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Nur anklickbare Bilder bekommen den weissen Rahmen - genau wie im Original. */
.galerie a img {
  padding: 9px;
  border: 1px solid var(--linie);
  background: #fff;
  width: 100%;
}

.galerie figcaption {
  margin: 5px 0 0;
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: center;
}

.galerie a { border: 0; padding: 0; display: block; }
.galerie a:hover img { border-color: var(--akzent); }

/* Einzelbilder stehen im Original randlos; nur die anklickbaren
   Wohnungsfotos haben den weissen Rahmen. */
.bild-einzeln img { display: block; }

.bild-gerahmt img {
  padding: 9px;
  border: 1px solid var(--linie);
  background: #fff;
}

/* Bilder sind Links - die bekommen keinen Unterstrich wie Textlinks. */
.bild-einzeln a, .entry-content a:has(> img) {
  padding: 0;
  border-bottom: 0;
}

.bild-rechts { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
.bild-links  { float: left;  margin: 0 1.5rem 1rem 0; max-width: 45%; }

/* Bildunterschrift liegt im Bild (unten links), wie bei WordPress-Bildunterschriften. */
.bild-einzeln { position: relative; max-width: 100%; }

.bild-einzeln figcaption {
  position: absolute;
  bottom: 1.5rem;
  margin-right: 1.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: #e3e3e3;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.aufheben { clear: both; }

/* Hervorgehobener Textlink, z. B. "ZUR BUCHUNGSANFRAGE" */
.verweis-gross {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 0 !important;
}

/* Knopf */
.knopf {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(52, 159, 140, 0.8);
  color: #fff !important;
  border: 0 !important;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.knopf:hover, .knopf:focus { background: var(--akzent); color: #fff !important; }

/* ---------- Seitenleiste ---------- */

.widget { margin-bottom: 2.5rem; }

.widget-title {
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 2px solid var(--akzent);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
}

.widget-title > .wrap {
  display: inline-block;
  vertical-align: bottom;
  padding: 0.75rem 1.5rem 0.625rem;
  background: var(--akzent);
  color: #fff;
  line-height: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.widget-title > .wrap::before {
  content: "\2605";
  display: inline-block;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

.widget ul {
  margin: 0 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.widget ul li { margin-bottom: 0.3rem; position: relative; }

.widget ul li::before {
  content: "\2022";
  position: absolute;
  left: -1rem;
}

.widget a { color: var(--akzent); }
.widget a:hover, .widget a:focus { text-decoration: underline; }

/* ---------- Fusszeile ---------- */

#footer {
  background: var(--akzent);
  color: #fafafa;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.35);
}

#footer > .wrap {
  max-width: 1075px;
  margin: 0 auto;
  padding: 0.9rem 25px;
  font-size: 0.875rem;
  min-height: 1rem;
}

#footer a { color: #fff; text-decoration: underline; }

/* ---------- Karte (Anreise) ---------- */

.karte {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 550;  /* Seitenverhältnis der Karte wie im Original */
  margin-bottom: 1.5rem;
  border: 1px solid var(--linie);
  background: #f4f4f0;
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Datenschutz-Vorschaltung fuer die Karte */
.karte-hinweis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: #444;
}

/* ---------- Formular ---------- */

.formular { max-width: 100%; }

.feld { margin-bottom: 1.1rem; }

.feld label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
}

.feld .pflicht { color: #c0392b; }

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld input[type="date"],
.feld input[type="search"],
.feld textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--linie);
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.feld input:focus, .feld textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: -2px;
}

.feld textarea { min-height: 8rem; resize: vertical; }

.feld-zustimmung { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; }
.feld-zustimmung input { margin-top: 0.35rem; }

.feld-paar { display: flex; gap: 1rem; }
.feld-paar > * { flex: 1 1 0; min-width: 0; }

button[type="submit"], input[type="submit"] {
  padding: 0.6rem 1.6rem;
  border: 0;
  background: rgba(52, 159, 140, 0.8);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
button[type="submit"]:hover, input[type="submit"]:hover { background: var(--akzent); }

/* Honeypot gegen Spam - fuer Menschen unsichtbar */
.honigtopf {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.meldung {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--akzent);
  background: rgba(52, 159, 140, 0.08);
  font-size: 1rem;
}
.meldung-fehler { border-left-color: #c0392b; background: rgba(192, 57, 43, 0.08); }

/* ---------- Lightbox ---------- */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
}
#lightbox.offen { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
#lightbox .zu {
  position: absolute;
  top: 1rem; right: 1.5rem;
  border: 0; background: transparent;
  color: #fff; font-size: 2.5rem; line-height: 1;
  cursor: pointer;
}
#lightbox .blaettern {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0,0,0,0.3);
  color: #fff; font-size: 2.5rem; line-height: 1;
  padding: 0.5rem 0.9rem; cursor: pointer;
}
#lightbox .zurueck { left: 1rem; }
#lightbox .vor { right: 1rem; }

/* ---------- Schmale Bildschirme ---------- */

@media screen and (max-width: 1099px) {
  #main { padding-left: 25px; padding-right: 25px; gap: 4%; }
  .content { flex-basis: 66%; }
}

@media screen and (max-width: 799px) {
  #container > .wrap { margin: 0 auto; }

  /* Die Mindesthöhe gilt nur für die einzeilige Menüleiste am Rechner. */
  #menu-primary > .wrap { display: block; padding: 0; min-height: 0; }

  .menu-toggle {
    display: block;
    margin: 0;
    padding: 0;
  }
  .menu-toggle button {
    display: block;
    width: 100%;
    padding: 0.85rem 25px;
    border: 0;
    background: var(--akzent);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  .menu-toggle button::before { content: "\2261"; padding-right: 0.6rem; font-size: 1.2rem; }

  .menu-items { display: none; flex-direction: column; }
  .menu-items.offen { display: flex; }
  .menu-items > li > a {
    padding: 0.8rem 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9375rem;
  }

  .suche { display: none; }

  #main { display: block; padding: 2rem 25px; }
  .sidebar { margin-top: 3rem; }

  .entry-title { font-size: 1.75rem; }

  .bild-rechts, .bild-links { float: none; margin: 0 0 1rem; max-width: 100%; }

  .feld-paar { display: block; }
  .feld-paar > * + * { margin-top: 1.1rem; }
}

@media screen and (max-width: 479px) {
  .galerie-3 { grid-template-columns: repeat(2, 1fr); }
}
