/* Inselnest Spiekeroog – gemeinsames Stylesheet
   Farben aus dem Dünenfoto und der Inselkarte, Schriften lokal (keine Google-Server). */

@font-face { font-family: "Alegreya"; src: url(../fonts/alegreya-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(../fonts/alegreya-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --watt: #f3f5f2;       /* Seitenhintergrund */
  --papier: #ffffff;
  --priel: #1d3232;      /* Text */
  --teal: #006666;       /* Akzent, wie auf der alten Seite */
  --teal-dunkel: #004c4c;
  --grau: #566767;       /* Nebentext */
  --linie: #d5ddd8;
  --nordsee: #99b3cc;    /* Wasserfarbe der Inselkarte */
  --salzwiese: #cfddb8;  /* Landfarbe der Inselkarte */

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --breite: 68rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--watt);
  color: var(--priel);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.55;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
p { margin: 0 0 1em; }

.inhalt { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abstand) 0; }
.leise { color: var(--grau); }
.klein { font-size: 1rem; }

/* ---------- Kopf ---------- */
.kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.1rem;
}
.wortmarke { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--teal); text-decoration: none; }
.wortmarke:hover { text-decoration: none; }
.navi ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.navi a { color: var(--priel); text-decoration: none; padding-block: 0.4rem; display: inline-block; border-bottom: 2px solid transparent; }
.navi a:hover { color: var(--teal); border-bottom-color: currentColor; }

/* ---------- Bühne ---------- */
.panorama { margin: 0; }
.panorama img {
  width: 100%; aspect-ratio: 800 / 192; min-height: 9.5rem;
  object-fit: cover; object-position: 62% 50%;
  border-radius: 4px;
}
.buehne { display: grid; gap: 1.5rem 3rem; align-items: end; padding-top: 1.25rem; }
.buehne h1 {
  font-style: italic; color: var(--teal);
  font-size: clamp(4rem, 2.2rem + 9vw, 9.5rem);
  line-height: 0.9; letter-spacing: -0.015em;
}
.buehne .unterzeile { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1.25; margin: 0.9rem 0 0; }
.buehne h1 .unterzeile { display: block; font-style: normal; color: var(--priel); letter-spacing: 0; }
.buehne .ort { margin: 0.35rem 0 0; color: var(--grau); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 52rem) {
  .buehne { grid-template-columns: 1fr auto; }
  .knoepfe { padding-bottom: 0.35rem; }
}

.knopf {
  display: inline-block; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  background: var(--teal); color: #fff; border: 2px solid var(--teal);
}
.knopf:hover { background: var(--teal-dunkel); border-color: var(--teal-dunkel); color: #fff; text-decoration: none; }
.knopf.zweit { background: transparent; color: var(--teal); }
.knopf.zweit:hover { background: var(--teal); color: #fff; }

/* ---------- Listen ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding-left: 1.15rem; margin-bottom: 0.35rem; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--salzwiese);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}

/* ---------- Die Wohnung ---------- */
.wohnung { display: grid; gap: 2rem 3rem; }
.wohnung .aussen { margin: 0; }
.wohnung .aussen img { border-radius: 4px; width: 100%; max-width: 22rem; }
.wohnung .aussen figcaption { margin-top: 0.5rem; }
@media (min-width: 46rem) {
  .wohnung { grid-template-columns: minmax(14rem, 22rem) 1fr; align-items: start; }
}

/* ---------- Fotos ---------- */
.fotos { columns: 2 10rem; column-gap: 1rem; }
@media (min-width: 46rem) { .fotos { columns: 3 14rem; column-gap: 1.25rem; } }
.fotos figure { margin: 0 0 1.25rem; break-inside: avoid; }
.fotos a { display: block; border-radius: 4px; overflow: hidden; }
.fotos img { width: 100%; transition: transform 0.4s ease; }
.fotos a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .fotos img { transition: none; } }
.fotos figcaption { font-size: 1rem; color: var(--grau); margin-top: 0.4rem; }

/* ---------- Ausstattung ---------- */
.ausstattung { display: grid; gap: 2.25rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ausstattung section { border-top: 2px solid var(--teal); padding-top: 1rem; }

/* ---------- Grundriss ---------- */
.grundriss { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); max-width: 46rem; align-items: start; }
.grundriss figure { margin: 0; background: var(--papier); border: 1px solid var(--linie); border-radius: 4px; padding: 1rem; }
.grundriss figcaption { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.75rem; }
.grundriss img { margin-inline: auto; max-height: 75vh; width: auto; }

/* ---------- Lage (Band in Kartenfarbe) ---------- */
.band { background: var(--nordsee); margin-top: var(--abstand); padding-block: clamp(2.5rem, 6vw, 4rem); }
.lage { display: grid; gap: 1.5rem 3rem; align-items: center; }
.lage > a { display: block; }
.lage > a img { width: 100%; }
.lage .haus { border-radius: 4px; margin-top: 0.5rem; }
.lage h2 { margin-bottom: 0.75rem; }
.lage a { color: var(--priel); }
@media (min-width: 56rem) { .lage { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Preise ---------- */
.preise { max-width: 42rem; }
.preis { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.75rem; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 52rem) { .kontakt { grid-template-columns: 17rem 1fr; } }
.adresse { font-style: normal; }
.adresse p { margin-bottom: 1.1rem; }
.adresse .gross { font-family: var(--serif); font-size: 1.35rem; }

.formular { background: var(--papier); border: 1px solid var(--linie); border-radius: 6px; padding: clamp(1.25rem, 4vw, 2.25rem); }
.felder { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40rem) { .felder { grid-template-columns: 1fr 1fr; } .felder .breit { grid-column: 1 / -1; } }
.feld label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.feld label .optional { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--priel);
  padding: 0.65rem 0.8rem; border: 1px solid #b5c2bd; border-radius: 4px; background: #fbfcfb;
}
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.feld textarea { min-height: 10rem; resize: vertical; }
.absenden { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.absenden p { margin: 0; font-size: 1rem; color: var(--grau); max-width: 26rem; }

/* ---------- Fuß ---------- */
.fuss { margin-top: var(--abstand); border-top: 1px solid var(--linie); padding-block: 1.75rem 2.5rem; font-size: 1rem; color: var(--grau); }
.fuss .inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss p { margin: 0; }

/* ---------- Textseite (Datenschutz) ---------- */
.text { max-width: 42rem; }
.text h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); margin-bottom: 1.5rem; }
.text h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
.text h3 { font-size: 1.2rem; margin: 1.5rem 0 0.4rem; }
.text a { overflow-wrap: anywhere; }
.namensbild { display: inline-block; vertical-align: -0.2em; }

/* ---------- Großansicht ---------- */
.grossansicht {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.grossansicht::backdrop { background: rgba(20, 35, 35, 0.88); }
.grossansicht[open] { display: flex; align-items: center; justify-content: center; }
.grossansicht figure { margin: 0; padding: 3.5rem 1rem 1rem; text-align: center; }
.grossansicht img { max-width: min(92vw, 60rem); max-height: calc(100vh - 8rem); width: auto; margin-inline: auto; background: #fff; border-radius: 4px; }
.grossansicht figcaption { color: #fff; margin-top: 0.75rem; }
.grossansicht button {
  position: fixed; background: rgba(255,255,255,0.14); color: #fff; border: 0; border-radius: 999px;
  width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.grossansicht button:hover { background: rgba(255,255,255,0.28); }
.grossansicht .zu { top: 0.75rem; right: 0.75rem; }
.grossansicht .zurueck { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.grossansicht .weiter { right: 0.75rem; top: 50%; transform: translateY(-50%); }

@media print {
  .navi, .knoepfe, .formular, .grossansicht { display: none !important; }
  .band { background: none; }
}
