/* Deichpension Büsum – Entwurf B "Leuchtfeuer" */
:root {
  --bg: #0b1a26;
  --surface: #12283a;
  --surface-2: #163049;
  --line: #23435c;
  --line-2: #2f5470;
  --text: #f2f5f7;
  --muted: #a9bccb;
  --accent: #f2b441;
  --sea: #2c6f96;
  --sea-light: #5fa7d1;
  --red: #c8463d;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }
a { color: var(--accent); }
a:hover { color: #ffd27a; }
img { display: block; }
.wrap { width: 90%; max-width: 1240px; margin: 0 auto; }
.muted { color: var(--muted); line-height: 1.6; }
.strong { font-weight: 600; }
[hidden] { display: none !important; }

/* Header */
.site-header { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.26em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.38em; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav > a { color: var(--text); text-decoration: none; }
.main-nav > a:hover { color: var(--accent); }
.lang { display: flex; align-items: center; color: #6c8293; }
.lang button { border: 0; background: transparent; padding: 10px 6px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--accent); }

/* Hero */
.hero { position: relative; padding-top: 40px; min-height: 760px; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; }
.badge { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.lead { margin: 22px 0 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--muted); }

.lighthouse { position: absolute; right: 6%; bottom: 0; width: 360px; height: 640px; pointer-events: none; }
.lighthouse svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.beam { position: absolute; left: 50%; top: 2px; width: 1100px; height: 180px; background: linear-gradient(90deg, rgba(242,180,65,0.5), rgba(242,180,65,0)); clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%); transform-origin: 0% 50%; animation: sweep 9s ease-in-out infinite; }
.beam-left { background: linear-gradient(90deg, rgba(242,180,65,0.35), rgba(242,180,65,0)); animation-name: sweepL; }
.glow { animation: glow 3s ease-in-out infinite; }
@keyframes sweep { 0%,100% { transform: rotate(-26deg); } 50% { transform: rotate(14deg); } }
@keyframes sweepL { 0%,100% { transform: scaleX(-1) rotate(-14deg); } 50% { transform: scaleX(-1) rotate(26deg); } }
@keyframes glow { 0%,100% { opacity: 1; } 50% { opacity: 0.75; } }

.hero-wave { position: relative; height: 120px; margin-top: 60px; overflow: hidden; }
.wave-track { position: absolute; bottom: 0; left: 0; width: 200%; height: 120px; animation: wave 18s linear infinite; }
.wave-track svg { width: 100%; height: 100%; display: block; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Booking */
.booking { margin-top: 40px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.booking h2 { margin: 0 0 16px; font-family: var(--font-head); font-size: 22px; }
.booking-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.booking-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.booking-fields input, .booking-fields select { height: 52px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: inherit; font-weight: 500; color: var(--text); background: var(--bg); color-scheme: dark; }
.btn-primary { grid-column: 1 / -1; height: 56px; border: 0; border-radius: 12px; background: var(--accent); color: var(--bg); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.btn-primary:hover { background: #ffc85f; }
.result { margin-top: 20px; }
.result .muted { margin: 0 0 12px; font-size: 14px; }
.room-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.room { height: 54px; border-radius: 10px; font: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.room.booked { border: 1px dashed var(--line-2); color: #6c8293; }
.room.free { border: 1px solid var(--sea-light); background: #173650; color: var(--text); cursor: pointer; }
.room.free[aria-pressed="true"] { border: 0; background: var(--accent); color: var(--bg); font-weight: 700; }
.result-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.btn-light { color: var(--bg); background: var(--text); text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.btn-outline { height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }

/* Sections */
.section { padding: 100px 0; }
.band { background: var(--surface); padding: 90px 0; }
.section-title { margin: 0 0 16px; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line-2); margin-top: 28px; }
.step { padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.step-no { font-family: var(--font-head); font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { margin: 0; font-size: 21px; font-family: var(--font-head); }
.step p { margin: 0; line-height: 1.6; color: var(--muted); }

/* Tides */
.tide-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.tide-head > div { max-width: 620px; }
.tide-stage { position: relative; height: 420px; border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.tide-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--sea); transition: height 0.5s ease-out; }
.crest { position: absolute; left: 0; right: 0; top: -6px; height: 12px; border-radius: 6px; background: #8fc3e0; }
.tide-label { position: absolute; left: 32px; top: 28px; margin: 0; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.tide-control { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-weight: 600; color: var(--muted); }
.tide-control input { width: 100%; accent-color: var(--accent); height: 32px; }

.sheep { position: absolute; animation: walk ease-in-out infinite; }
.sheep .head { transform-origin: 46px 20px; animation: graze 4s ease-in-out infinite; }
@keyframes walk { 0% { transform: translateX(0) scaleX(1); } 45% { transform: translateX(70px) scaleX(1); } 50% { transform: translateX(70px) scaleX(-1); } 95% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); } }
@keyframes graze { 0%,55% { transform: rotate(0deg); } 65%,90% { transform: rotate(30deg); } 100% { transform: rotate(0deg); } }

/* Rooms */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.placeholder { background: repeating-linear-gradient(135deg, #163049 0 14px, #1a3653 14px 28px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.card .placeholder { height: 240px; }
.card-body { padding: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.card-body h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.card-body .price { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 16px; }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > div:first-child { flex: 1 1 340px; min-width: 0; }
.map { flex: 1.2 1 420px; min-width: 0; height: 320px; border-radius: 22px; }

/* Footer */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; font-size: 14px; color: var(--muted); }
.footer-brand { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.26em; color: var(--text); }
.footer-brand span { font-weight: 600; letter-spacing: 0.3em; color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-inner nav a { color: var(--muted); }

@media (max-width: 900px) {
  .lighthouse { opacity: 0.35; right: -80px; }
  .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .beam, .glow, .wave-track, .sheep, .sheep .head { animation: none; }
  html { scroll-behavior: auto; }
}
.card-img { width: 100%; height: 240px; object-fit: cover; }
