/* ============================================================
   Ferienwohnung am Schönberger Strand — Designsystem
   Palette: Muschelweiß, Ostseeblau, Bernstein, Seegras
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/Karla.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --muschel: #fbf9f5;        /* Seitengrund */
  --gischt:  #edf2f3;        /* helle Flächen */
  --ostsee:  #16384c;        /* tiefes Ostseeblau */
  --ostsee-2:#25546e;        /* helleres Blau */
  --tinte:   #2d3a41;        /* Fließtext */
  --bernstein:#b9822f;       /* Akzent: Bernstein */
  --bernstein-hell:#e9d9bd;
  --seegras: #6e8577;
  --linie:   #dcd6ca;
  --radius: 10px;
  --breite: 62rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--muschel);
  color: var(--tinte);
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ostsee-2); text-decoration-color: var(--bernstein); text-underline-offset: 3px; }
a:hover { color: var(--bernstein); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--bernstein);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sprunglink: nur sichtbar, wenn er mit der Tastatur angesteuert wird */

.sprung {
  position: absolute;
  z-index: 10;
  top: -4rem;
  left: .75rem;
  background: var(--bernstein-hell);
  color: var(--ostsee);
  font-weight: 700;
  text-decoration: none;
  padding: .6rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s ease;
}
.sprung:focus { top: 0; color: var(--ostsee); }

/* ---------- Kopfbereich ---------- */

.top {
  background: var(--ostsee);
  color: #f4efe6;
}
.top-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 1.25rem .95rem;
}
.marke {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: .01em;
  color: #f7f3ea;
  text-decoration: none;
}
.marke:hover { color: var(--bernstein-hell); }
.marke small {
  display: block;
  font-family: "Karla", sans-serif;
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b8c6cd;
  margin-top: .15rem;
}

nav.haupt {
  background: var(--ostsee);
  border-bottom: 3px solid var(--bernstein);
}
.haupt-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: .45rem 1.25rem .55rem;
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .35rem;
}
nav.haupt a {
  color: #dfe7ea;
  text-decoration: none;
  font-size: .95rem;
  padding: .35rem .6rem;
  border-radius: 6px;
}
nav.haupt a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav.haupt a[aria-current="page"] {
  color: var(--ostsee);
  background: var(--bernstein-hell);
  font-weight: 700;
}

/* ---------- Kopfbild ----------
   Auf jeder Seite ein Foto der Ostsee; der Seitentitel steht
   darauf, abgedunkelt zur Fußseite hin (Lesbarkeit). Das Bild
   bleibt auf Inhaltsbreite, damit es nicht hochskaliert und
   dadurch unscharf wird (Vorlagen sind 940 px breit).         */

.kopfbild {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(9.5rem, 21vw, 13rem);
  background: var(--ostsee);
}

/* Das Foto füllt den Streifen; der Titel wächst notfalls darüber hinaus */
.kopfbild img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--breite);
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Abdunklung, damit die Schrift auf jedem Foto lesbar bleibt */
.kopfbild-text {
  position: relative;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding-top: 4.5rem;
  background: linear-gradient(180deg,
    rgba(11,32,44,0) 0%, rgba(11,32,44,.28) 42%, rgba(11,32,44,.74) 100%);
  color: #fff;
}
.kopfbild-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem 1.15rem;
}
.kopfbild h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 480;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  margin: 0;
  max-width: 21ch;
  color: #fff;
  text-shadow: 0 2px 14px rgba(8,26,36,.55);
}
.kopfbild p.unter {
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 1.45;
  max-width: 46ch;
  margin: .4rem 0 0;
  color: #e9eff2;
  text-shadow: 0 1px 10px rgba(8,26,36,.6);
}

/* Fakten-Leiste unter dem Kopfbild */
.fakten {
  background: #efe7d5;
  border-bottom: 1px solid var(--linie);
}
.fakten ul {
  max-width: var(--breite);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2.4rem;
}
.fakten li {
  font-size: .95rem;
  letter-spacing: .04em;
  color: #5d5238;
}
.fakten b {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ostsee);
  margin-right: .3rem;
}

/* ---------- Inhalt ---------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.schmal { max-width: 46rem; }

h2, main > h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 540;
  font-size: 1.55rem;
  color: var(--ostsee);
  margin: 2.6rem 0 .9rem;
}
main > h2:first-child, main > h1:first-child, section > h2:first-child { margin-top: 0; }

/* Horizont-Unterstreichung: Sand trifft Meer */
h2::after, main > h1::after {
  content: "";
  display: block;
  width: 4.2rem;
  height: 3px;
  margin-top: .55rem;
  background: linear-gradient(90deg, var(--bernstein) 0 40%, var(--ostsee-2) 40% 100%);
  border-radius: 2px;
}

p { margin: 0 0 1.05rem; }

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0 2.2rem;
  padding: 0;
  list-style: none;
}
.galerie figure { margin: 0; }
.galerie a { display: block; border-radius: var(--radius); overflow: hidden; }
.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: linear-gradient(180deg, #dfe9ec 0 54.8%, #2c5a74 55% 82%, #dccda9 82.2% 100%);
  color: var(--ostsee);
  font-size: .85rem;
  transition: transform .35s ease;
}
.galerie a:hover img { transform: scale(1.04); }
.galerie figcaption {
  font-size: .9rem;
  color: #5b6a72;
  padding: .45rem .15rem 0;
}

/* Merkmal-Karten */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}
.karten li {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.05rem;
}
.karten h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.08rem;
  color: var(--ostsee);
  margin: 0 0 .45rem;
}
.karten p { margin: 0; font-size: .98rem; }

/* Hinweiskasten & Buttons */
.kasten {
  background: var(--gischt);
  border-left: 4px solid var(--bernstein);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.kasten p:last-child { margin-bottom: 0; }

.knopf {
  display: inline-block;
  background: var(--ostsee);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  margin: .3rem 0;
}
.knopf:hover { background: var(--bernstein); color: #fff; }
.knopf.zweit { background: transparent; color: var(--ostsee); box-shadow: inset 0 0 0 2px var(--ostsee); }
.knopf.zweit:hover { color: var(--bernstein); box-shadow: inset 0 0 0 2px var(--bernstein); }

/* Anfahrt-Liste */
.anfahrt { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 1.2rem 0; }
.anfahrt a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: .8rem 1.1rem; text-decoration: none; color: var(--tinte);
}
.anfahrt a:hover { border-color: var(--bernstein); color: var(--ostsee); }
.anfahrt b { font-family: "Fraunces", Georgia, serif; font-weight: 560; color: var(--ostsee); }
.anfahrt span { font-size: .88rem; color: #75828a; }

/* Adresse */
address { font-style: normal; line-height: 1.7; }

/* Rechtstexte */
.recht h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.recht h3 { font-size: 1.05rem; color: var(--ostsee); margin: 1.6rem 0 .5rem; }
.recht ul { padding-left: 1.2rem; }

/* ---------- Fuß ---------- */

footer {
  background: var(--ostsee);
  color: #b8c6cd;
  margin-top: 2rem;
}
.fuss-inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  font-size: .92rem;
}
footer a { color: #dfe7ea; }
footer a:hover { color: var(--bernstein-hell); }
.fuss-marke { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: #f4efe6; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 640px) {
  .haupt-inner { margin-left: -.6rem; margin-right: -.6rem; }
  .kopfbild-text { padding-top: 3rem; }
  .kopfbild-inner { padding-bottom: .9rem; }
}
