/* Haus Seerose Grömitz – Stylesheet */

@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/alegreya-v41-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/alegreya-v41-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-v28-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/alegreya-sans-v28-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-v28-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/alegreya-sans-v28-latin-700.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --water: #eaf2f1;
  --petrol: #14505c;
  --petrol-dark: #0e3a43;
  --ink: #1f2d31;
  --muted: #56676b;
  --rule: #d3e0de;
  --sun: #f4c430;
  --sun-dark: #e3ad0f;
  --stripe: #2b6f9e;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: .18em; }
a:hover { color: var(--petrol-dark); }
:focus-visible { outline: 3px solid var(--stripe); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--petrol); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: clamp(48px, 8vw, 96px) 0; }
.block--water { background: var(--water); }
.intro { font-size: 1.25rem; color: var(--muted); max-width: 36em; }

/* Strandkorb-Streifen */
.stripes {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 18px, var(--paper) 18px 36px);
}

/* Buttons */
.button {
  display: inline-block;
  padding: .75em 1.3em;
  border: 2px solid var(--sun);
  border-radius: 3px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover { background: var(--sun-dark); border-color: var(--sun-dark); color: var(--ink); }
.button--line { background: transparent; border-color: var(--petrol); color: var(--petrol); }
.button--line:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.ext::after {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .45em; background: currentColor; vertical-align: .05em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M8 7v4H1V4h4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M8 7v4H1V4h4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Kopfbereich */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petrol); }
.brand img { width: 62px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.brand span { display: block; font-size: .95rem; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.1rem; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 2px; }

/* Dropdown Appartements */
.has-sub { position: relative; padding: 28px 0; margin: -28px 0; }
.has-sub > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: .28em; }
.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: -18px; min-width: 270px;
  flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--stripe);
  box-shadow: 0 10px 24px rgba(14, 58, 67, .12);
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: flex; }
.submenu a { display: block; padding: 8px 18px; font-size: 1.05rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--water); text-decoration: none; }
.submenu small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 2px solid var(--rule); border-radius: 3px; padding: 6px 12px; font: inherit; font-weight: 700; color: var(--petrol); cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border: 0; }
  .site-nav a { display: block; padding: 14px 0; }
  .has-sub { padding: 0; margin: 0; }
  .has-sub > a::after { display: none; }
  .site-nav .submenu { display: flex; position: static; min-width: 0; padding: 0 0 10px 16px; border: 0; box-shadow: none; }
  .site-nav .submenu li { border: 0; }
  .submenu a { padding: 7px 0; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: none; text-decoration: underline; }
  .submenu small { display: none; }
}
@media (max-width: 420px) {
  .brand img { width: 50px; }
  .brand strong { font-size: 1.35rem; }
  .brand span { font-size: .85rem; }
  .hero__text { padding: 28px var(--gutter) 36px; }
  .hero h1 { font-size: 1.9rem; }
}

/* Größere Tippflächen auf Touch-Geräten */
@media (pointer: coarse), (max-width: 700px) {
  .pager a, .site-footer li a { display: inline-block; padding: 12px 0; }
  .site-footer li { margin-bottom: 0; }
  .cols address, .site-footer div { line-height: 2.2; }
}

/* Startseite: Einstieg */
.hero { display: grid; grid-template-columns: 3fr 2fr; min-height: min(70vh, 560px); }
.hero__photo { position: relative; min-height: 320px; margin: 0; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.hero__text { background: var(--water); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.hero__text p { font-size: 1.25rem; color: var(--muted); }
.hero__text .button { align-self: flex-start; margin-top: .5em; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Begrüßung */
.welcome { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.letter { max-width: 38em; }
.letter__title { display: flex; align-items: center; gap: .35em; }
.letter__title img { width: 1.3em; height: auto; flex: none; }
.welcome__photo { margin: 0; position: sticky; top: 24px; }
.welcome__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; border-radius: 3px; }
.welcome__photo figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__photo { position: static; }
  .welcome__photo img { aspect-ratio: 16 / 9; }
}
.letter__sign { font-family: var(--serif); font-size: 1.3rem; color: var(--petrol); margin-top: 1.5em; }

/* Das Haus – Eckdaten */
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 48px; margin: 32px 0 0; }
.facts-list div { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts-list dt { font-weight: 700; color: var(--petrol); }
.facts-list dd { margin: 0; color: var(--muted); }

/* Appartement-Übersicht */
.apt-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; }
.apt-grid a { display: block; text-decoration: none; color: var(--ink); }
.apt-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.apt-grid h3 { margin: 14px 0 4px; }
.apt-grid a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.apt-grid p { margin: 0; color: var(--muted); font-size: 1rem; }
.apt-grid .note { color: var(--stripe); font-style: italic; }

/* Kontakt */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 64px; margin-top: 32px; }
.cols address { font-style: normal; margin-bottom: 1em; }
.cols .button { margin-top: .5em; }

/* Appartement-Seite */
.crumbs { font-size: 1rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.apt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 16px 0 24px; }
.apt-head h1 { margin: 0; }
.apt-head p { margin: 0; color: var(--stripe); font-style: italic; font-size: 1.15rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.gallery button { position: relative; padding: 0; border: 0; background: var(--water); cursor: zoom-in; display: block; width: 100%; border-radius: 3px; overflow: hidden; }
.gallery button[hidden] { display: none; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__main { aspect-ratio: 3 / 2; }
.gallery__side { display: grid; gap: 8px; grid-auto-rows: 1fr; min-height: 0; }
.gallery--single { grid-template-columns: 1fr; }
.gallery--single .gallery__main { aspect-ratio: 16 / 9; }
.gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14, 58, 67, .62); color: #fff; font-weight: 700; font-size: 1.15rem; }
.gallery__hint { font-size: .95rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__side { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .gallery__side button { aspect-ratio: 1; }
}

.apt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px 64px; align-items: start; margin-top: 48px; }
.apt-layout article { grid-column: 1; grid-row: 1; max-width: 40em; }
.apt-layout article h2 + p, .apt-layout article h2 + table { margin-top: 0; }
.apt-layout article * + h2 { margin-top: 1.6em; }
.factbox { grid-column: 2; grid-row: 1; background: var(--water); padding: 28px; border-radius: 3px; position: sticky; top: 24px; }
.factbox h2 { font-size: 1.5rem; }
.factbox dl { margin: 0 0 24px; }
.factbox dl div { padding: 10px 0; border-top: 1px solid var(--rule); }
.factbox dt { font-size: .95rem; color: var(--muted); }
.factbox dd { margin: 0; font-weight: 500; }
.factbox .button { display: block; text-align: center; }
.factbox small { display: block; margin-top: 14px; font-size: .95rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .apt-layout { grid-template-columns: 1fr; margin-top: 32px; }
  .factbox, .apt-layout article { grid-column: 1; grid-row: auto; }
  .factbox { position: static; }
}

.costs { width: 100%; max-width: 34em; border-collapse: collapse; margin: 8px 0 0; font-size: 1.05rem; }
.costs th, .costs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.costs th { font-weight: 700; color: var(--petrol); border-bottom: 2px solid var(--petrol); }
.costs td + td, .costs th + th { text-align: right; white-space: nowrap; padding-left: 16px; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 24px; }
.pager a { text-decoration: none; font-weight: 500; }
.pager a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .pager a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: center; border-top: 1px solid var(--rule); }
  .pager a:last-child { text-align: right; }
}

/* Rechtliches */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.4em; }
.legal address { font-style: normal; background: var(--water); padding: 18px 22px; border-radius: 3px; margin: 0 0 1em; }

/* Fuß */
.site-footer { background: var(--petrol-dark); color: #d9e6e4; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; }
.site-footer address { font-style: normal; }
.site-footer strong { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 500; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }

/* Bildansicht */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(9, 32, 38, .94); }
.lightbox__inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: fixed; width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.5); border-radius: 3px; background: rgba(0,0,0,.25); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: #fff; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #d9e6e4; }
