:root {
  --sea: #1f6f8b;
  --sea-dark: #144b5f;
  --sand: #f6efe4;
  --sand-dark: #e8dcc8;
  --sun: #e8a33d;
  --ink: #1d2a30;
  --muted: #5d6b72;
  --white: #fff;
  --ok: #3f8f5b;
  --busy: #c8573f;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 75, 95, .12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--sea); font-weight: 700; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6ecee;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--sea-dark); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sea); }
.lang { display: flex; gap: .3rem; font-size: .85rem; }
.lang a { padding: .15rem .5rem; border-radius: 6px; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.lang a.active { border-color: var(--sea); color: var(--sea); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--sea-dark); }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid var(--sun);
  background: var(--sun); color: #2b1d04; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232, 163, 61, .4); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: rgba(255, 255, 255, .15); box-shadow: none; }
.btn.small { padding: .5rem 1.1rem; font-size: .92rem; }

/* Hero */
.hero {
  position: relative; color: var(--white); min-height: 78vh; display: grid; align-items: center;
  background:
    linear-gradient(180deg, rgba(10, 40, 55, .35), rgba(10, 40, 55, .65)),
    url("../images/hero.svg") center / cover no-repeat;
}
.hero .container { padding: 5rem 0; }
.hero p { max-width: 560px; font-size: 1.2rem; opacity: .95; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Quick facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: -3rem; position: relative; z-index: 2; }
.fact { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; text-align: center; }
.fact strong { display: block; font-size: 1.6rem; color: var(--sea); font-family: Georgia, serif; }
.fact span { color: var(--muted); font-size: .9rem; }

/* Cards */
.grid { display: grid; gap: 1.6rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--sea-dark); }
.price small { font-weight: 400; color: var(--muted); font-size: .85rem; }

.img-1 { background-image: url("../images/wohnung1.svg"); }
.img-2 { background-image: url("../images/wohnung2.svg"); }

/* Amenities */
.amenity { display: flex; gap: .8rem; align-items: flex-start; }
.amenity .ico { font-size: 1.6rem; line-height: 1; }
.amenity h3 { margin: 0 0 .15em; font-size: 1.05rem; }
.amenity p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.gallery div { aspect-ratio: 4 / 3; border-radius: 10px; background-size: cover; background-position: center; }

/* Reviews */
.review { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.stars { color: var(--sun); letter-spacing: 2px; }
.review footer { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* FAQ */
details { background: var(--white); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .7rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .7rem 0 0; color: var(--muted); }

/* CTA band */
.cta { background: var(--sea-dark); color: var(--white); text-align: center; padding: 3.5rem 0; }
.cta p { opacity: .9; }

/* Booking */
.booking { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: start; }
.cal-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; gap: .5rem; }
.cal-head button { background: var(--sand); border: 0; border-radius: 8px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.cal-head button:hover { background: var(--sand-dark); }
.cal-title { font-weight: 700; font-family: Georgia, serif; font-size: 1.1rem; }
.booking > * { min-width: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .78rem; color: var(--muted); padding: .3rem 0; font-weight: 600; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; border: 0; background: #eef6f0;
  font-size: .9rem; cursor: pointer; color: var(--ink); font-family: inherit;
}
.cal-day:hover:not(:disabled) { background: #cfe8d7; }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.busy { background: #f6dcd6; color: #9a3d2b; text-decoration: line-through; }
.cal-day.past { background: #f2f2f2; color: #aaa; }
.cal-day.inrange { background: #bfe0ea; }
.cal-day.sel { background: var(--sea); color: var(--white); font-weight: 700; }
/* Abreisetag: oben links belegt | Anreisetag: unten rechts belegt | Wechsel: beide Hälften belegt, weißer Strich */
.cal-day.dep { background-image: linear-gradient(135deg, #f6dcd6 50%, transparent 50%); }
.cal-day.arr { background-image: linear-gradient(135deg, transparent 50%, #f6dcd6 50%); text-decoration: none; }
.cal-day.chg { background-image: linear-gradient(135deg, #f6dcd6 46%, #fff 46%, #fff 54%, #f6dcd6 54%); text-decoration: none; }
.cal-day.sel, .cal-day.inrange { background-image: none; }
.cal-day.nosun { color: #9aa5a0; box-shadow: inset 0 0 0 1px #d6ded9; }
.legend i.lg-dep { background: linear-gradient(135deg, #f6dcd6 50%, #eef6f0 50%); }
.legend i.lg-arr { background: linear-gradient(135deg, #eef6f0 50%, #f6dcd6 50%); }
.legend i.lg-chg { background: linear-gradient(135deg, #f6dcd6 42%, #fff 42%, #fff 58%, #f6dcd6 58%); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

form.request { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #cfd8dc; border-radius: 8px; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sea); border-color: var(--sea); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.summary-box { background: var(--sand); border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.summary-box strong { color: var(--sea-dark); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.check input { margin-top: .25rem; }
.notice { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.hp { position: absolute; left: -9999px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.page-title { background: var(--sand); padding: 3.5rem 0 2.5rem; }

/* Footer */
.site-footer { background: #0f2a36; color: #c9d8de; padding: 3rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: #e3eef2; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; font-family: inherit; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; font-size: .85rem; }

@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 1rem; gap: .9rem; border-bottom: 1px solid #e6ecee;
  }
  .nav-links.open { display: flex; }
  .row { grid-template-columns: 1fr; }
  .cal-wrap, form.request { padding: 1rem; }
  .facts { margin-top: -2rem; }
}

/* ---------- Wohnungen, Räume, Pläne ---------- */
.apt-cover { display: grid; place-items: center; text-decoration: none; position: relative; }
.apt-cover span { font-size: 4.5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.badge { display: inline-block; font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: .25rem .65rem; border-radius: 999px; background: #1d2a30; color: #fff; vertical-align: middle; }
.apt-cover .badge { position: absolute; top: .8rem; right: .8rem; }
.page-title .eyebrow a { text-decoration: none; }
.apt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.apt-facts div { background: var(--sand); border-radius: var(--radius); padding: 1rem; text-align: center; }
.apt-facts strong { display: block; font-size: 1.25rem; color: var(--sea-dark); }
.apt-facts span { font-size: .85rem; color: var(--muted); }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.room { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room figcaption { padding: .7rem 1rem; font-weight: 600; font-size: .95rem; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: repeating-linear-gradient(45deg, #f1ece0, #f1ece0 12px, #ebe4d4 12px, #ebe4d4 24px); color: var(--muted); aspect-ratio: 4 / 3; }
.card-img.ph { aspect-ratio: 16 / 10; }
.ph span { font-size: 2.2rem; }
.ph small { font-size: .8rem; }
.plan { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.plan img { width: 100%; max-height: 520px; object-fit: contain; }
.plan figcaption { text-align: center; font-weight: 600; padding-top: .5rem; }
.plan-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 0; margin: 0 0 1.2rem; font-size: .9rem; }
.plan-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; border: 1px solid rgba(0,0,0,.25); }
.other-apt { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.other-apt span { color: var(--muted); font-size: .88rem; }
.other-apt:hover { transform: translateY(-2px); }
.cal-day:disabled.past { cursor: not-allowed; }

/* ---------- Piktogramme ---------- */
.apt-cover { aspect-ratio: 16 / 10; }
.apt-picto { height: 92%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); transition: transform .2s; }
.apt-cover:hover .apt-picto { transform: scale(1.04) rotate(-1.5deg); }
h1.with-badge { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.apt-badge { height: 120px; width: auto; flex: none; }
.other-apt { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; }
.other-apt .mini { height: 64px; width: auto; flex: none; }
.other-apt strong, .other-apt span { flex-basis: calc(100% - 90px); }
@media (max-width: 600px) { .apt-badge { height: 88px; } }

.guestgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.guestgrid .field { margin-bottom: .4rem; display: flex; flex-direction: column; }
.guestgrid .field label { flex: 1; display: flex; align-items: flex-end; }

/* Preistabellen */
.ptable { border-collapse: collapse; width: 100%; font-size: .92rem; margin: .6rem 0 .2rem; }
.ptable th, .ptable td { padding: .45rem .6rem; border-bottom: 1px solid var(--line, #dfe5e2); text-align: center; }
.ptable th { font-weight: 600; color: var(--muted); }
.ptable td { font-weight: 700; color: var(--sea-dark); }
.ptable.wide { background: var(--white, #fff); border-radius: var(--radius, 12px); }
.ptable.wide th:first-child, .ptable.wide td:first-child { text-align: left; }
.ptable.wide tbody th { color: var(--ink, inherit); }
.ptable.wide td { font-weight: 500; color: inherit; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
