/* Hus up Diek – Ferienhaus auf Baltrum */
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../fonts/InterDisplay-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../fonts/InterDisplay-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --sea: #1f4e5f;
  --sea-deep: #12323d;
  --tide: #3f7f8c;
  --sand: #f4ede1;
  --sand-dark: #e6dac4;
  --dune: #8a9a5b;
  --ink: #1d2a2f;
  --muted: #5d6b70;
  --white: #fffdf9;
  --accent: #d9774b;
  --radius: 14px;
  --max: 1120px;
  --serif: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-feature-settings: "cv11", "ss01";
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tide); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: var(--sea-deep); text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--tide);
  background: rgba(63,127,140,.1); padding: 5px 12px; border-radius: 99px; margin: 0 0 1em;
}

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 0; transition: padding .35s ease; }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 120px;
  max-width: var(--max); border-radius: 999px;
  transition: height .35s ease, background .35s ease, box-shadow .35s ease, max-width .35s ease, padding .35s ease;
}
.brand img { height: 88px; width: auto; transition: height .35s ease; }
.brand .logo-dunkel { display: none; }
.menu { display: flex; align-items: center; gap: 8px; }
.menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu ul a {
  display: block; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 500; transition: background .2s, color .2s;
}
.menu ul a:hover { background: rgba(255,255,255,.14); }
.menu ul a.active { background: #fff; color: var(--sea-deep); }
.cta-small {
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 20px; border-radius: 999px; margin-left: 6px; transition: background .2s, transform .2s;
}
.cta-small:hover { background: #c4653b; transform: translateY(-1px); }
.menu-contact { display: none; }

/* Beim Scrollen: schwebende, abgerundete Leiste */
.nav.solid { padding: 12px 16px 0; }
.nav.solid .wrap {
  height: 62px; max-width: 1040px; padding: 0 10px 0 22px;
  background: rgba(255,253,249,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -12px rgba(18,50,61,.35), 0 0 0 1px rgba(18,50,61,.06);
}
.nav.solid .brand img { height: 38px; }
.nav.solid .brand .logo-hell { display: none; }
.nav.solid .brand .logo-dunkel { display: block; }
.nav.solid .menu ul a { color: var(--ink); }
.nav.solid .menu ul a:hover { background: rgba(31,78,95,.08); }
.nav.solid .menu ul a.active { background: var(--sea); color: #fff; }

/* Burger-Symbol, wird zum X */
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 50%; z-index: 2; }
.burger span { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s ease, opacity .2s, background .3s, top .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav.solid .burger span { background: var(--sea-deep); }
.nav.open .burger span { background: #fff; }
.nav.open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* Hero: Text auf Meeresblau, Fotos daneben */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(88vh, 760px); background: var(--sea-deep); color: #fff;
}
.hero-text {
  align-self: end; padding: 170px clamp(22px, 5vw, 72px) clamp(40px, 8vh, 88px);
  max-width: 620px; justify-self: end; width: 100%;
}
.hero .eyebrow { color: #9fd0d8; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 0 0 .3em; line-height: 1.05; text-wrap: balance; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 0 0 1.8em; opacity: .92; }
.hero .slides { position: relative; overflow: hidden; }
.hero .slides div {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero .slides div.on { opacity: 1; }
.hero .slides::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 210px; background: linear-gradient(180deg, rgba(18,50,61,.7), rgba(18,50,61,0)); pointer-events: none; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 99px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c4653b; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.6); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Facts bar */
.facts { background: var(--sea); color: #fff; }
.facts ul { list-style: none; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.facts span { display: block; font-size: .85rem; opacity: .85; line-height: 1.3; margin-top: 4px; }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--sand); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--ink); }
.photo {
  border-radius: var(--radius); aspect-ratio: 4/3; background-size: cover; background-position: center;
  box-shadow: 0 20px 40px -20px rgba(18,50,61,.45);
}
.highlights { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.highlights li { padding-left: 28px; position: relative; color: var(--muted); }
.highlights li::before { content: "〰"; position: absolute; left: 0; color: var(--tide); }

/* House */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 1px 0 var(--sand-dark), 0 12px 30px -18px rgba(18,50,61,.3); }
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.1em; margin: .4em 0 0; color: var(--muted); }
.card li { margin: .25em 0; }
.plan { display: flex; gap: 16px; margin-top: 18px; }
.plan a { flex: 0 1 240px; text-decoration: none; color: var(--muted); font-size: .85rem; text-align: center; }
.plan a div { aspect-ratio: 4/3; border-radius: 10px; background: #fff center/contain no-repeat; border: 1px solid var(--sand-dark); margin-bottom: 6px; }

/* Gallery */
.gallery { grid-auto-flow: dense; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 36px; }
.gallery a { border-radius: 10px; background-size: cover; background-position: center; display: block; transition: transform .3s; }
.gallery a:hover { transform: scale(1.02); }
.gallery a.big { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(10,25,30,.94); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px 64px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; margin: 0 auto; background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: .95rem; opacity: .9; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; width: 52px; height: 52px; line-height: 1; }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chips button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--sand-dark); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.chips button.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.gallery { margin-top: 20px; }
.island { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.island figure { margin: 0; }
.island img { border-radius: 10px; aspect-ratio: 675/200; object-fit: cover; width: 100%; }
.island figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Location */
.distances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.distances div { border-top: 2px solid var(--tide); padding-top: 12px; }
.distances strong { font-family: var(--serif); font-size: 1.8rem; color: var(--sea-deep); display: block; }
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.links a { background: var(--white); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid var(--sand-dark); transition: border-color .2s; }
.links a:hover { border-color: var(--tide); }
.links small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* Prices / calendar */
.tabs { display: flex; gap: 8px; margin: 28px 0 0; }
.tabs button { padding: 10px 20px; border-radius: 99px; border: 1.5px solid var(--sea); background: transparent; color: var(--sea); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem; }
.tabs button.on { background: var(--sea); color: #fff; }
.panel { display: none; margin-top: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-dark); }
.panel.on { display: block; }
.panel iframe { width: 100%; height: 640px; border: 0; display: block; }
.panel .fallback { padding: 14px 20px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--sand-dark); margin: 0; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--sand-dark); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--tide); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Form */
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; margin-top: 30px; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 12px 0 0; display: contents; }
.form legend { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.2rem; color: var(--sea-deep); font-weight: 600; margin-top: 18px; }
.form label { display: flex; flex-direction: column; font-size: .88rem; font-weight: 600; color: var(--muted); gap: 6px; grid-column: span 3; }
.form label.s2 { grid-column: span 2; }
.form label.s1 { grid-column: span 1; }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--sand-dark); background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--tide); border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; font-weight: 400; grid-column: 1 / -1; }
.form .check input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.form .submit { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #e3efe6; color: #24563a; }
.form-msg.err { display: block; background: #f8e4dc; color: #8a3a1b; }

/* Contact strip */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact address { font-style: normal; color: var(--muted); }
.contact address strong { color: var(--ink); }

/* Footer */
footer { background: var(--sea-deep); color: rgba(255,255,255,.8); padding: 48px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer .brand { font-size: 1.2rem; }

/* Legal pages */
.legal { padding: 140px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal ol li { margin-bottom: 1em; }
.note { background: var(--sand); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 6px; }

/* Responsive */
@media (max-width: 900px) {
  .two, .contact { grid-template-columns: 1fr; gap: 36px; }
  .floors { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .links { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .slides { order: -1; aspect-ratio: 3/2; margin-top: 68px; }
  .hero-text { padding: 36px 22px 48px; justify-self: start; max-width: none; }
  .island { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .highlights { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr; }
  .form label, .form label.s2, .form label.s1 { grid-column: 1 / -1; }
  .form label.half { grid-column: span 3; }
  .btn-ghost { margin: 12px 0 0; }
  .lightbox { padding: 20px 8px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 14px; transform: none; }
  .facts ul { grid-template-columns: repeat(3, 1fr); }
}

/* Handy & Tablet: Vollbild-Menü */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { background: var(--sea-deep); }
  .nav.solid { background: transparent; }
  .nav .wrap { height: 88px; }
  .brand img { height: 62px; }
  .nav.solid .wrap { height: 62px; }
  .hero .slides { margin-top: 88px !important; }
  .menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    background: var(--sea-deep); padding: 96px 32px 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  }
  .nav.open .menu { opacity: 1; visibility: visible; }
  .nav.open .brand { position: relative; z-index: 2; }
  .nav.open .brand .logo-hell { display: block; }
  .nav.open .brand .logo-dunkel { display: none; }
  .nav.open.solid .wrap { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a, .nav.solid .menu ul a {
    color: #fff; font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em;
    padding: 10px 0; border-radius: 0; background: none !important;
    opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease, color .2s;
  }
  .menu ul a.active, .nav.solid .menu ul a.active { color: #9fd0d8; }
  .nav.open .menu ul a { opacity: 1; transform: none; }
  .nav.open .menu li:nth-child(2) a { transition-delay: .05s; }
  .nav.open .menu li:nth-child(3) a { transition-delay: .1s; }
  .nav.open .menu li:nth-child(4) a { transition-delay: .15s; }
  .cta-small { margin: 32px 0 0; text-align: center; padding: 16px; font-size: 1.1rem; }
  .menu-contact { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 32px; }
  .menu-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
}

/* Pfeil nach oben */
.to-top {
  position: fixed; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sea); color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(18,50,61,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); transform: translateY(-2px); }
body.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: calc(28px + env(safe-area-inset-bottom)); width: 50px; height: 50px; } }

/* Adressvorschläge */
.form label.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; z-index: 20; list-style: none; margin: 4px 0 0; padding: 6px;
  background: #fff; border: 1px solid var(--sand-dark); border-radius: 12px; box-shadow: 0 16px 32px -12px rgba(18,50,61,.35);
  max-height: 300px; overflow-y: auto;
}
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 400; color: var(--ink); line-height: 1.35; }
.ac-list li small { display: block; color: var(--muted); font-size: .85rem; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--sand); }
.ac-hint { font-weight: 400; font-size: .8rem; color: var(--muted); }

/* Rechenaufgabe */
.captcha { grid-column: 1 / -1; background: #fff; border: 1px solid var(--sand-dark); border-radius: 12px; padding: 16px 18px; }
.captcha label { display: block; font-size: .92rem; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.captcha strong { color: var(--sea); white-space: nowrap; }
.captcha-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-row input { width: 120px; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--sand-dark); text-align: center; font-size: 1.1rem; }
.captcha-row input:focus { outline: 2px solid var(--tide); border-color: transparent; }
.captcha-row button { background: none; border: 0; color: var(--tide); font: inherit; font-size: .9rem; cursor: pointer; padding: 10px 4px; }
.captcha-row button:hover { color: var(--accent); }
