:root {
  --navy: #12304a;
  --navy-deep: #0b2033;
  --sea: #2f7ea1;
  --sea-light: #e8f2f6;
  --sand: #f6f1e9;
  --sand-dark: #e9dfd0;
  --coral: #c8553d;
  --coral-dark: #a8432e;
  --text: #25313b;
  --text-light: #62707c;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(11, 32, 51, 0.14);
  --container: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--coral); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #dbe6ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #f0a58f; }
.lead { font-size: 1.15rem; color: var(--text-light); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.brand__name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .01em; }
.brand__sub { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 5px; opacity: .85; }
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #fff; font-size: .92rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--coral); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 22px; }

.site-header.is-solid, .site-header--solid {
  background: rgba(11, 32, 51, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
}

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-deep) url("../img/luftbild.jpg") center 40% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,32,51,.55) 0%, rgba(11,32,51,.15) 35%, rgba(11,32,51,.75) 100%);
}
.hero .container { position: relative; padding-bottom: clamp(110px, 16vh, 170px); padding-top: 140px; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .3em; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero p { font-size: 1.2rem; max-width: 46ch; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background: var(--navy) ;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/ufer.jpg") center / cover; opacity: .18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-hero p { margin: 10px 0 0; opacity: .85; }

/* Fact strip */
.facts {
  position: relative;
  margin-top: -64px;
  z-index: 5;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fact { padding: 28px 24px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--sand-dark); }
.fact:last-child { border-right: 0; }
.fact svg { flex: none; width: 34px; height: 34px; stroke: var(--sea); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fact strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--navy); line-height: 1.3; }
.fact span { font-size: .88rem; color: var(--text-light); line-height: 1.4; display: block; margin-top: 4px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media .tag {
  position: absolute; right: -14px; bottom: 28px;
  background: var(--coral); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-family: var(--serif); font-size: 1.05rem; box-shadow: var(--shadow);
}

.contact-line { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.contact-line a { font-weight: 600; color: var(--navy); }

/* Gallery */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; color: #fff; font-size: .9rem;
  background: linear-gradient(transparent, rgba(11,32,51,.75));
}
.g1 { grid-column: span 7; grid-row: span 2; }
.g2 { grid-column: span 5; grid-row: span 1; }
.g3 { grid-column: span 5; grid-row: span 1; }
.g4 { grid-column: span 4; grid-row: span 2; }
.g5 { grid-column: span 8; grid-row: span 2; }

/* Offer cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.card {
  background: #fff; border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-top: 4px solid var(--coral);
}
.card h3 { font-size: 1.6rem; }
.card ul { list-style: none; padding: 0; margin: 12px 0 24px; }
.card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid var(--sand); }
.card li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 13px;
  border: solid var(--sea); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.85); transform-origin: center;
}
.price { margin-top: auto; font-family: var(--serif); color: var(--navy); }
.price small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--text-light); }
.price b { font-size: 2.4rem; font-weight: 500; }
.note { text-align: center; color: var(--text-light); font-size: .88rem; margin-top: 28px; }

/* Restaurant */
.restaurant .split__media img { aspect-ratio: 3/4; max-height: 560px; }

/* Ostwind teaser */
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.teaser img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* Lage */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.location__img { border-radius: var(--radius); overflow: hidden; min-height: 360px; }
.location__img img { width: 100%; height: 100%; object-fit: cover; }
.location__box { background: var(--sea-light); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.address { font-style: normal; font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.address strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--navy); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta .hero__actions { justify-content: center; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--sand-dark); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fdfcfa; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(47,126,161,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-light); margin: 6px 0 22px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--coral); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; font-size: .92rem; color: var(--text-light); }

.info-box { background: var(--sand); border-radius: var(--radius); padding: 32px; }
.info-box h3 { margin-bottom: .6em; }
.info-box ul { list-style: none; padding: 0; margin: 0 0 20px; }
.info-box li { padding: 6px 0; }
.info-box .k { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); }
.info-box a { font-weight: 600; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a9bccb; padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.site-footer a { color: #cfe0ea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .brand__name { color: #fff; }
.footer-logo { width: 150px; border-radius: 999px; margin-bottom: 16px; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--sand-dark); }
  .split, .teaser, .location, .form-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media .tag { right: 12px; }
  .restaurant .split__media img { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 12px 24px 28px;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 2px solid transparent; }
  .site-header.menu-open { background: var(--navy-deep); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero::before { background: linear-gradient(180deg, rgba(11,32,51,.6) 0%, rgba(11,32,51,.45) 40%, rgba(11,32,51,.88) 100%); }
  .cards, .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .g1, .g5 { grid-column: span 2; grid-row: span 2; }
  .g2, .g3, .g4 { grid-column: span 1; grid-row: span 1; }
  .facts { margin-top: -40px; }
  .fact { padding: 20px 16px; flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

.booking { max-width: 960px; margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 32px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 3px solid var(--sand-dark); color: var(--text-light); font-size: .92rem; font-weight: 600; }
.steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sand-dark); color: var(--navy); font-size: .85rem; flex: none; }
.steps li.is-active { border-color: var(--coral); color: var(--navy); }
.steps li.is-active span { background: var(--coral); color: #fff; }
.steps li.is-done { border-color: var(--sea); color: var(--sea); }
.steps li.is-done span { background: var(--sea); color: #fff; }
.booking__body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); min-height: 300px; }
.booking__body > div > h2:first-child, .bk-form > h2 { margin-top: 0; }
.bk-hint { color: var(--text-light); font-size: .95rem; margin: .4em 0 1.2em; }
.bk-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; }
.bk-search .field { margin-bottom: 0; }
.bk-search .btn { height: 52px; }
.bk-alert { background: #fbeee4; border-left: 4px solid var(--coral); color: #6b3a0a; padding: 14px 18px; border-radius: 8px; margin: 0 0 20px; font-size: .95rem; }
.bk-rooms { display: grid; gap: 16px; margin: 20px 0 28px; }
.bk-room { display: grid; grid-template-columns: 1fr auto 170px; gap: 24px; align-items: center; padding: 22px 24px; border: 2px solid var(--sand-dark); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.bk-room.is-selected { border-color: var(--coral); box-shadow: 0 6px 24px rgba(200,85,61,.15); }
.bk-room h3 { margin: 0 0 4px; font-size: 1.35rem; }
.bk-room p { margin: 0; color: var(--text-light); font-size: .95rem; }
.bk-room__price { text-align: right; }
.bk-room__price strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.bk-room__price span { font-size: .8rem; color: var(--text-light); }
.bk-room .field { margin: 0; }
.bk-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.bk-actions .btn[disabled], .bk-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bk-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.bk-sum { background: var(--sand); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.bk-sum h3 { margin: 0 0 8px; }
.bk-sum__dates { font-size: .92rem; color: var(--text-light); margin: 0 0 14px; }
.bk-sum ul { list-style: none; padding: 0; margin: 0 0 14px; }
.bk-sum li { padding: 10px 0; border-top: 1px solid var(--sand-dark); }
.bk-sum li > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.bk-sum li span, .bk-sum__nights { font-size: .88rem; color: var(--text-light); }
.bk-sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--navy); padding-top: 12px; }
.bk-sum__total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.bk-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 220px; color: var(--text-light); }
.bk-spinner { width: 26px; height: 26px; border: 3px solid var(--sand-dark); border-top-color: var(--coral); border-radius: 50%; animation: bk-spin .8s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-done { text-align: center; padding: 20px 0; }
.bk-done__icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--sea); color: #fff; font-size: 2.2rem; }
.booking-note { max-width: 960px; margin: 16px auto 0; font-size: .88rem; color: var(--text-light); }
@media (max-width: 820px) {
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li span { font-size: .85rem; }
  .bk-search { grid-template-columns: 1fr; }
  .bk-room { grid-template-columns: 1fr; gap: 14px; }
  .bk-room__price { text-align: left; }
  .bk-layout { grid-template-columns: 1fr; }
  .bk-sum { position: static; order: -1; }
  .bk-actions .btn { flex: 1; }
}
.bk-search .field input, .bk-search .field select { height: 52px; }
.bk-sum__total strong { white-space: nowrap; }
