/* Ferienwohnung Trafalgar 254 – schlichtes Stylesheet, keine externen Schriften oder Skripte */
:root {
  --bg: #fbf8f2;
  --sand: #f3ece0;
  --paper: #ffffff;
  --ink: #17293a;
  --muted: #586776;
  --sea: #1f6f8b;
  --sea-dark: #164f64;
  --navy: #14304a;
  --line: #e3dccf;
  --max: 68rem;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-underline-offset: 0.15em; }
a:hover { color: var(--sea-dark); }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 242, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
}
.brand span { color: var(--sea); }
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a { text-decoration: none; color: var(--ink); font-size: 0.975rem; }
nav a:hover { color: var(--sea); }
nav a.btn, nav a.btn:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--sea-dark); color: #fff; }
.btn-big { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sand); color: var(--navy); }

/* Startbild */
.hero {
  position: relative;
  min-height: min(78vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 30, 46, 0.82) 0%, rgba(12, 30, 46, 0.35) 45%, rgba(12, 30, 46, 0) 75%);
}
.hero-text { position: relative; z-index: 1; width: 100%; padding: 3rem 0 3.25rem; }
.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  opacity: 0.9;
}
h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.lead { font-size: 1.2rem; max-width: 34rem; margin: 0 0 1.5rem; }

/* Eckdaten */
.facts { background: var(--navy); color: #fff; }
.facts ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 1.1rem 0;
  list-style: none;
  font-size: 0.95rem;
}
.facts strong { font-family: var(--serif); font-size: 1.45rem; font-weight: normal; margin-right: 0.2rem; }

/* Abschnitte */
section { padding: 3.5rem 0; }
section.alt { background: var(--sand); }
h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 1.25rem;
}
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; color: var(--navy); }
.intro { font-size: 1.15rem; max-width: 46rem; margin: 0 0 2rem; }
.hint, .source, .small { color: var(--muted); font-size: 0.93rem; }

/* Räume */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.5rem;
}
.rooms article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rooms img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rooms h3, .rooms p { padding: 0 1.1rem; }
.rooms h3 { margin-top: 1rem; }
.rooms p { margin: 0 0 1.2rem; font-size: 0.98rem; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery a { display: block; border-radius: 6px; overflow: hidden; }
.gallery img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform 0.25s ease;
}
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .site-header .wrap { gap: 0.4rem 1rem; }
  nav ul { gap: 0.25rem 0.6rem; }
  nav a { font-size: 0.85rem; }
  nav a.btn { padding: 0.25rem 0.7rem; }
}
/* sehr schmale Handys: „Ausstattung“ ausblenden, damit die Navigation einzeilig bleibt */
@media (max-width: 380px) {
  nav li:nth-child(3) { display: none; }
}

/* Ausstattung */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.5rem 2rem;
}
.list { margin: 0; padding-left: 1.2rem; }
.list li { margin: 0.15rem 0; }
.list li::marker { color: var(--sea); }

.notes { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.notes li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }

/* Bewertungen */
.ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
.total {
  display: grid;
  justify-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
}
.total .score { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.total .of { opacity: 0.85; }
.total .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; }
.ratings dl { margin: 0; flex: 1 1 18rem; max-width: 30rem; }
.ratings dl div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.3rem 0;
}
.ratings dt { color: var(--muted); }
.ratings dd { margin: 0; display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
progress {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--sea); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--sea); border-radius: 999px; }

/* Lage */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.split img { border-radius: var(--radius); }
.address { font-style: normal; background: var(--paper); border-left: 4px solid var(--sea); padding: 0.8rem 1rem; }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
}

/* Buchung */
.booking { background: var(--sea-dark); color: #fff; text-align: center; }
.booking h2 { color: #fff; }
.booking p { max-width: 38rem; margin: 0 auto 1.5rem; }
.booking .small { color: rgba(255, 255, 255, 0.85); margin-top: 1.5rem; margin-bottom: 0; }
.booking .small a { color: #fff; }

/* Fußzeile */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-footer a { color: #fff; }

/* Unterseiten (Impressum, Datenschutz) */
.page { max-width: 46rem; }
.page h3 { margin-top: 1.75rem; }

/* Fotoansicht */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 18, 28, 0.95);
  color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 18, 28, 0.95); }
.lightbox img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 5rem);
  object-fit: contain;
}
.lb-caption { margin: 0.75rem 1rem 0; font-size: 0.95rem; text-align: center; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
