/* =========================================================
   Ferienhaus Strandgut · Großenbrode
   Stylesheet – keine externen Schriften, keine Frameworks
   ========================================================= */

:root {
  --sand: #f7f2ea;
  --sand-2: #ede5d6;
  --sand-3: #dfd3bd;
  --white: #ffffff;
  --ink: #1f2b33;
  --ink-soft: #3d4a53;
  --muted: #6d7780;
  --sea: #2c7a9a;
  --sea-deep: #1d5b74;
  --sea-light: #e3eff4;
  --terra: #c86f4a;
  --terra-soft: #f3e2d8;
  --line: rgba(31, 43, 51, 0.12);

  --font-head: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(31, 43, 51, 0.12);
  --shadow-sm: 0 6px 20px rgba(31, 43, 51, 0.08);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

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

a { color: var(--sea-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--white); }
.section--sea { background: var(--sea-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
  font-family: var(--font-body);
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terra); color: var(--white); box-shadow: 0 8px 22px rgba(200, 111, 74, .3); }
.btn--primary:hover { background: #b65f3c; }
.btn--ghost { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.26); }
.btn--outline { background: transparent; color: var(--sea-deep); border-color: var(--sea-deep); }
.btn--outline:hover { background: var(--sea-deep); color: var(--white); }
.btn--sea { background: var(--sea-deep); color: var(--white); }
.btn--sea:hover { background: var(--sea); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  color: var(--white);
}
.header.is-solid, .header--solid {
  background: rgba(247, 242, 234, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: .85; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .2s ease;
  text-decoration: none !important;
}
.nav a:hover { background: rgba(127,127,127,.15); }
.nav .nav__cta { margin-left: 8px; background: var(--terra); color: var(--white); padding: 10px 18px; }
.nav .nav__cta:hover { background: #b65f3c; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: rgba(127,127,127,.15);
  color: inherit;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: rgba(247, 242, 234, .98);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    display: none;
    color: var(--ink);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav__cta { margin: 12px 0 0; border-radius: 999px; text-align: center; justify-content: center; display: inline-flex; }
  .header.menu-open { background: rgba(247, 242, 234, .98); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 60%;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,30,40,.45) 0%, rgba(20,30,40,.05) 35%, rgba(20,30,40,.25) 65%, rgba(20,30,40,.78) 100%);
}
.hero__content { padding: 140px 0 clamp(40px, 7vw, 80px); }
.hero__inner { max-width: 760px; }
.hero .eyebrow { color: #f8dcc9; }
.hero h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: #fbe6d7; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; color: rgba(255,255,255,.92); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  max-width: 760px;
}
.facts__item { background: rgba(20,30,40,.35); padding: 16px 18px; }
.facts__value { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; display: block; }
.facts__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 28px;
  display: none; flex-direction: column; align-items: center; gap: 6px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8;
}
@media (min-width: 1100px) { .scroll-hint { display: flex; } }
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: currentColor; animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%,100% { transform: scaleY(.3); opacity:.3 } 50% { transform: scaleY(1); opacity: 1 } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.intro__media .intro__badge {
  position: absolute; left: -18px; bottom: -18px;
  background: var(--white); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center;
  font-size: .92rem;
}
.intro__badge svg { width: 30px; height: 30px; color: var(--sea); flex: none; }
.intro__badge strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.intro__text .lead { margin-bottom: 1.2em; }
.intro__text p { color: var(--ink-soft); }
.intro__text blockquote {
  margin: 1.5em 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--terra);
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro__media { order: -1; }
  .intro__media .intro__badge { left: 12px; bottom: -14px; }
}

/* ---------- Ausstattung ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature svg { width: 30px; height: 30px; color: var(--sea); flex: none; margin-top: 2px; }
.feature strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: .92rem; }
.section--sea .feature { background: rgba(255,255,255,.75); }

.notes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--sand-2); color: var(--ink-soft); font-size: .9rem;
}
.note svg { width: 18px; height: 18px; color: var(--terra); }

/* ---------- Rundgang ---------- */
.rooms { display: grid; gap: clamp(40px, 7vw, 90px); }
.room { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.room:nth-child(even) .room__media { order: 2; }
.room__media { display: grid; gap: 14px; grid-template-columns: 2fr 1fr; }
.room__media img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.room__media img:first-child { aspect-ratio: 4/3; grid-row: span 2; }
.room__media img:not(:first-child) { aspect-ratio: 1/1; }
.room__media--single { grid-template-columns: 1fr; }
.room__media--single img:first-child { grid-row: auto; }
.room__text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.room__text p { color: var(--ink-soft); }
.room__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.room__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; }
.room__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); margin-top: .55em; flex: none; }
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__media { order: 0; }
}
@media (max-width: 520px) {
  .room__media { grid-template-columns: 1fr 1fr; }
  .room__media img:first-child { grid-column: span 2; grid-row: auto; }
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,30,40,.35));
  opacity: 0; transition: opacity .3s ease;
}
.gallery a:hover::after { opacity: 1; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gallery .g-wide { grid-column: span 2; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 22, 28, .94);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 48px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__caption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: .05em; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; transform: none; }
@media (max-width: 600px) { .lightbox { padding: 12px; } .lightbox__btn { width: 42px; height: 42px; } .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } }

/* ---------- Lage ---------- */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.distances { display: grid; gap: 14px; margin: 28px 0; }
.distance {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px;
  border: 1px solid var(--line);
}
.distance svg { width: 30px; height: 30px; color: var(--sea); flex: none; }
.distance strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; margin-left: auto; color: var(--sea-deep); white-space: nowrap; }
.distance span { color: var(--ink-soft); }
.location__media { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.location__media img { border-radius: var(--radius); object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.location__media img:first-child { grid-column: span 2; aspect-ratio: 16/10; }
.location__media img:not(:first-child) { aspect-ratio: 4/3; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; color: var(--ink-soft); }
.tips li::before { content: "◦"; color: var(--terra); font-weight: 700; }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } }

/* ---------- Anfrage ---------- */
.inquiry { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.inquiry__aside { position: sticky; top: 100px; }
.inquiry__aside p { color: var(--ink-soft); }
.contact-card {
  margin-top: 24px; background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.contact-card a.mail { font-family: var(--font-head); font-size: 1.3rem; color: var(--sea-deep); word-break: break-all; }
.contact-card small { display: block; color: var(--muted); margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--terra-soft); color: var(--terra); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}

.form {
  background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.form label span { color: var(--terra); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink);
  padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-3); background: var(--sand);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--sea); background: var(--white); box-shadow: 0 0 0 4px rgba(44,122,154,.15);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--sea-deep); }
.form__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form__hint { font-size: .85rem; color: var(--muted); }
.form__status { margin-top: 16px; font-size: .95rem; color: var(--sea-deep); display: none; }
.form__status.is-visible { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } .inquiry__aside { position: static; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- CTA Band ---------- */
.band {
  position: relative; color: var(--white); text-align: center; isolation: isolate;
  padding: clamp(80px, 12vw, 140px) 0;
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,30,40,.55); }
.band h2 { color: var(--white); }
.band p { max-width: 54ch; margin-inline: auto; margin-bottom: 28px; color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.85); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer p { font-size: .95rem; color: rgba(255,255,255,.7); max-width: 40ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Unterseiten (Rechtliches) ---------- */
.page-head { padding: 150px 0 40px; background: var(--sand-2); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.legal { padding: 48px 0 96px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal .placeholder { background: #fff3c4; border-radius: 4px; padding: 0 4px; color: #6b4d00; }
.legal address { font-style: normal; }
.legal .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; }

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