/* ============================================================
   Ferienwohnungen Stella Marina & Luna Blu — Bremerhaven
   ============================================================ */

:root {
  --orange:      #fe7e00;
  --orange-dunkel:#d96a00;
  --orange-hell: #fff3e6;
  --marine:      #0e2f44;
  --marine-hell: #1b4f6b;
  --blau:        #2a6f97;
  --sand:        #fbf8f4;
  --sand-tief:   #f3ece3;
  --text:        #1d1d1f;
  --text-leise:  #5f6368;
  --linie:       #e5ddd3;
  --weiss:       #ffffff;
  --gruen:       #2e7d52;
  --rot:         #b3261e;

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 2px 8px rgba(14,47,68,.06), 0 8px 28px rgba(14,47,68,.08);
  --schatten-tief: 0 4px 14px rgba(14,47,68,.10), 0 18px 50px rgba(14,47,68,.14);
  --breite: 1180px;
  --uebergang: 180ms cubic-bezier(.2,.6,.3,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--marine-hell); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-dunkel); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--marine);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 20px; }
.schmal { max-width: 760px; }

.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.abschnitt--sand { background: var(--sand); }
.abschnitt--marine { background: var(--marine); color: #e8eef2; }
.abschnitt--marine h2, .abschnitt--marine h3 { color: var(--weiss); }

.vorspann {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange-dunkel);
  margin-bottom: .7rem;
}
.abschnitt--marine .vorspann { color: var(--orange); }

.fuehrung { font-size: 1.1rem; color: var(--text-leise); max-width: 62ch; }
.abschnitt--marine .fuehrung { color: #b9cad6; }

/* ---------- Skip-Link ---------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--marine); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kopfzeile ---------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.kopf__logo img { height: 42px; width: auto; }
.kopf__logo { flex-shrink: 0; }

.nav ul {
  display: flex; gap: clamp(.6rem, 1.6vw, 1.5rem);
  list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav a {
  display: block; padding: .45rem .1rem;
  font-size: .95rem; font-weight: 500;
  color: var(--marine); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--uebergang), border-color var(--uebergang);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--orange-dunkel); border-bottom-color: var(--orange);
}
.nav .knopf { border-bottom: none; }
.nav .knopf:hover { border-bottom: none; color: #fff; }

.menue-schalter {
  display: none; background: none; border: 1px solid var(--linie);
  border-radius: var(--radius-klein); padding: .5rem .65rem; cursor: pointer;
}
.menue-schalter span { display: block; width: 20px; height: 2px; background: var(--marine); margin: 4px 0; transition: var(--uebergang); }

@media (max-width: 900px) {
  .menue-schalter { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    max-height: 0; overflow: hidden; transition: max-height 240ms ease;
    box-shadow: var(--schatten);
  }
  .nav[data-offen="true"] { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--linie); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--linie); }
  .nav li:last-child { margin-top: .8rem; }
  .nav .knopf { text-align: center; }
}

/* ---------- Knöpfe ------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  border: 2px solid var(--orange); border-radius: 100px;
  background: var(--orange); color: #fff; text-decoration: none;
  cursor: pointer; transition: var(--uebergang);
}
.knopf:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); color: #fff; transform: translateY(-1px); }
.knopf:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.knopf--rand { background: transparent; color: var(--orange-dunkel); }
.knopf--rand:hover { background: var(--orange); color: #fff; }
.knopf--hell { background: #fff; border-color: #fff; color: var(--marine); }
.knopf--hell:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.knopf--gross { padding: 1rem 2rem; font-size: 1.05rem; }
.knopf--voll { width: 100%; }

/* ---------- Hero --------------------------------------------- */
.hero { position: relative; background: var(--marine); overflow: hidden; }
.hero__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .62;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,47,68,.55) 0%, rgba(14,47,68,.35) 45%, rgba(14,47,68,.85) 100%);
}
.hero__innen {
  position: relative; z-index: 2;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  color: #fff; max-width: 40rem;
}
.hero__innen h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero__innen p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e4edf3; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero--klein .hero__innen { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }

.hero__marke {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: .4rem .9rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.2rem; backdrop-filter: blur(6px);
}
.hero__marke::before { content: '★'; color: var(--orange); font-size: 1rem; }

/* ---------- Karten ------------------------------------------- */
.raster { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.karte {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--uebergang), box-shadow var(--uebergang);
}
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-tief); }
.karte__bild { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand-tief); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.karte:hover .karte__bild img { transform: scale(1.04); }
.karte__inhalt { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.karte__inhalt h3 { margin-bottom: .25rem; }
.karte__ort { font-size: .9rem; color: var(--text-leise); margin-bottom: .9rem; }
.karte__fuss { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.karte__preis { font-family: var(--serif); font-size: 1.35rem; color: var(--marine); font-weight: 700; }
.karte__preis small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--text-leise); display: block; }

.marke {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--marine);
  padding: .32rem .7rem; border-radius: 100px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.marke--orange { background: var(--orange); color: #fff; }
.marke--blau { background: var(--blau); color: #fff; }

/* ---------- Merkmale ----------------------------------------- */
.merkmal { text-align: left; }
.merkmal__zeichen {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--orange-hell); color: var(--orange-dunkel);
  display: grid; place-items: center; margin-bottom: .9rem;
}
.abschnitt--marine .merkmal__zeichen { background: rgba(254,126,0,.18); color: var(--orange); }
.merkmal h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.merkmal p { font-size: .96rem; color: var(--text-leise); margin: 0; }
.abschnitt--marine .merkmal p { color: #b9cad6; }

/* ---------- Eckdaten ----------------------------------------- */
.eckdaten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  margin: 2rem 0;
}
.eckdaten div { background: var(--weiss); padding: 1.1rem 1.2rem; }
.eckdaten dt { font-size: .8rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem; }
.eckdaten dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--marine); }

/* ---------- Ausstattung -------------------------------------- */
.ausstattung { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .55rem 1.5rem; }
.ausstattung li { position: relative; padding-left: 1.7rem; font-size: .97rem; }
.ausstattung li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: 7px; height: 12px; border: solid var(--orange);
  border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}

/* ---------- Galerie ------------------------------------------ */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.galerie button {
  padding: 0; border: none; background: var(--sand-tief); cursor: zoom-in;
  border-radius: var(--radius-klein); overflow: hidden; aspect-ratio: 4/3;
}
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease, opacity var(--uebergang); }
.galerie button:hover img { transform: scale(1.05); }
.galerie button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.lichtkasten {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,20,29,.94);
  display: none; place-items: center; padding: 3rem 1rem;
}
.lichtkasten[data-offen="true"] { display: grid; }
.lichtkasten img { max-width: min(1100px, 94vw); max-height: 84vh; width: auto; border-radius: var(--radius-klein); }
.lichtkasten__zu, .lichtkasten__pfeil {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
  transition: var(--uebergang);
}
.lichtkasten__zu:hover, .lichtkasten__pfeil:hover { background: var(--orange); border-color: var(--orange); }
.lichtkasten__zu { top: 1rem; right: 1rem; }
.lichtkasten__pfeil--zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lichtkasten__pfeil--vor { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Kalender ----------------------------------------- */
.kalender-block { display: grid; gap: 2rem; }
@media (min-width: 900px) { .kalender-block { grid-template-columns: 1.3fr .9fr; align-items: start; } }

.kalender {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--schatten);
}
.kalender__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.kalender__kopf h3 { margin: 0; font-size: 1.15rem; }
.kalender__blaettern { display: flex; gap: .4rem; }
.kalender__blaettern button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--linie); background: var(--weiss); cursor: pointer;
  font-size: 1rem; color: var(--marine); transition: var(--uebergang);
}
.kalender__blaettern button:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #fff; }
.kalender__blaettern button:disabled { opacity: .35; cursor: not-allowed; }

.monate { display: grid; gap: 1.6rem; }
@media (min-width: 620px) { .monate { grid-template-columns: 1fr 1fr; } }

.monat__titel { font-family: var(--serif); font-weight: 700; color: var(--marine); text-align: center; margin-bottom: .6rem; font-size: 1.02rem; }
.monat__gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.monat__wochentag { text-align: center; font-size: .72rem; font-weight: 700; color: var(--text-leise); padding: .3rem 0; text-transform: uppercase; }

.tag {
  aspect-ratio: 1; border: none; background: transparent; padding: 0;
  font-size: .88rem; font-family: var(--sans); color: var(--text);
  border-radius: var(--radius-klein); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: background var(--uebergang), color var(--uebergang);
}
.tag:hover:not(:disabled) { background: var(--orange-hell); }
.tag:disabled { color: #c3c8cc; cursor: not-allowed; }
.tag--belegt { color: #c3c8cc; text-decoration: line-through; cursor: not-allowed; }
.tag--belegt::after {
  content: ''; position: absolute; inset: 14% 14%; border-radius: 50%;
  background: repeating-linear-gradient(45deg, #f2dede, #f2dede 3px, transparent 3px, transparent 6px);
  z-index: -1;
}
.tag--gewaehlt { background: var(--orange); color: #fff; font-weight: 700; }
.tag--spanne { background: var(--orange-hell); color: var(--orange-dunkel); border-radius: 0; }
.tag--heute { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--linie); }
.tag--leer { visibility: hidden; }

.legende { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); font-size: .85rem; color: var(--text-leise); }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legende .frei { background: var(--weiss); border: 1px solid var(--linie); }
.legende .belegt { background: repeating-linear-gradient(45deg, #f2dede, #f2dede 3px, #fff 3px, #fff 6px); border: 1px solid var(--linie); }
.legende .gewaehlt { background: var(--orange); }

/* ---------- Preisübersicht (im Kalender) --------------------- */
.buchungsbox {
  background: var(--sand); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 92px;
}
.buchungsbox h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.buchungsbox__zeile { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .96rem; }
.buchungsbox__zeile--summe {
  border-top: 2px solid var(--linie); margin-top: .5rem; padding-top: .9rem;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--marine);
}
.buchungsbox__hinweis { font-size: .85rem; color: var(--text-leise); margin: .8rem 0 0; }
.buchungsbox__leer { color: var(--text-leise); font-size: .95rem; }

.meldung { padding: .85rem 1.1rem; border-radius: var(--radius-klein); font-size: .93rem; margin: 0 0 1rem; }
.meldung--fehler { background: #fdeceb; color: var(--rot); border: 1px solid #f5c6c3; }
.meldung--ok { background: #e7f4ed; color: var(--gruen); border: 1px solid #bfe0cd; }
.meldung--info { background: var(--orange-hell); color: var(--orange-dunkel); border: 1px solid #ffd9b3; }

/* ---------- Formulare ---------------------------------------- */
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-size: .9rem; font-weight: 600; color: var(--marine); margin-bottom: .35rem; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: .75rem .9rem;
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius-klein); transition: var(--uebergang);
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254,126,0,.15);
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld__hinweis { font-size: .84rem; color: var(--text-leise); margin: .3rem 0 0; }
.feld-paar { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feld-paar { grid-template-columns: 1fr 1fr; } }

.zustimmung { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-leise); margin-bottom: 1.3rem; }
.zustimmung input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--orange); }

.honigtopf { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Tabellen ----------------------------------------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tabelle th, .tabelle td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-leise); font-weight: 700; }
.tabelle td strong { color: var(--marine); }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle-huelle { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow-x: auto; }

/* ---------- Zitat / Bewertung -------------------------------- */
.stimme {
  background: var(--weiss); border: 1px solid var(--linie);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.stimme p { font-style: italic; color: var(--text); margin-bottom: .8rem; }
.stimme footer { font-size: .88rem; color: var(--text-leise); font-style: normal; }
.sterne { color: var(--orange); letter-spacing: .1em; margin-bottom: .6rem; }

/* ---------- Umgebung / Entfernungen -------------------------- */
.entfernungen { list-style: none; padding: 0; margin: 0; }
.entfernungen li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--linie); font-size: .97rem;
}
.entfernungen li:last-child { border-bottom: none; }
.entfernungen b { font-weight: 600; color: var(--marine); white-space: nowrap; }

/* ---------- Brotkrumen --------------------------------------- */
.brotkrumen { font-size: .85rem; color: var(--text-leise); padding: 1rem 0 0; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.brotkrumen li::after { content: '›'; margin-left: .4rem; color: var(--linie); }
.brotkrumen li:last-child::after { content: ''; }

/* ---------- Fußzeile ----------------------------------------- */
.fuss { background: var(--marine); color: #b9cad6; padding: 3.5rem 0 2rem; font-size: .94rem; }
.fuss h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.fuss a { color: #d7e3ea; text-decoration: none; }
.fuss a:hover { color: var(--orange); }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .5rem; }
.fuss__raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fuss__logo img { height: 44px; width: auto; opacity: .95; margin-bottom: 1rem; }
.fuss__unten {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .86rem; color: #8ba5b5;
}

/* ---------- Kleinigkeiten ------------------------------------ */
.mitte { text-align: center; }
.mitte .fuehrung { margin-inline: auto; }
.abstand-oben { margin-top: 2rem; }
.nur-schirm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .kopf, .fuss, .hero__knoepfe, .menue-schalter { display: none; }
  body { font-size: 12pt; }
}
