/* Hus Sünnenschin – Ferienhaus auf Hiddensee */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 500; font-display: swap; src: url("../fonts/karla-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 700; font-display: swap; src: url("../fonts/karla-latin-700-normal.woff2") format("woff2"); }

:root {
  --sand: #f5efe3;
  --sand-2: #ebe2d0;
  --paper: #fbf8f2;
  --ink: #1e2a2c;
  --ink-soft: #4a5759;
  --sea: #24545a;
  --sea-dark: #183c41;
  --heather: #8b5a7f;
  --reed: #b8955a;
  --line: #d9cdb6;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --shadow: 0 18px 40px -22px rgba(30, 42, 44, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--heather); }
:focus-visible { outline: 3px solid var(--heather); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--heather);
  margin-bottom: .9rem; display: block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: .25rem; }

.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--heather); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--sea); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .98rem; border: 2px solid var(--sea);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sea); }
.btn-ghost:hover { background: var(--sea); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: .55rem 1.1rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--sea); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 950 / 633; object-fit: cover; }
.hero-figure picture { display: block; position: relative; }
.hero-figure picture::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1.5px solid var(--reed); border-radius: var(--radius); z-index: -1;
}
.hero-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 2rem; text-align: right; font-style: italic; }

/* Fakten */
.facts { background: var(--sea); color: #f3ede1; }
.facts ul { list-style: none; margin: 0 auto; padding: 2rem 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.facts li { text-align: center; }
.facts strong { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: #fff; }
.facts span { font-size: .85rem; opacity: .85; }

/* Sections */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Ausstattung */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.feature { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; }
.feature svg { width: 30px; height: 30px; color: var(--heather); margin-bottom: .8rem; }
.feature h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: .9rem; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 10px; 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: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem; color: #fff; font-size: .88rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(20, 30, 32, .7));
}
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Umgebung */
.env-images { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.env-images figure { margin: 0; }
.env-images figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; font-style: italic; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--heather); opacity: .2;
}
.checklist li::after {
  content: ""; position: absolute; left: .3rem; top: .85em; width: .4rem; height: .4rem;
  border-radius: 50%; background: var(--heather);
}

/* Preise */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.section-alt .card { background: var(--sand); }
.notice {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #f1e6ee; border: 1px solid #dcc6d6; color: #5a3552;
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; font-size: .98rem;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.price-table th, .price-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 500; color: var(--ink-soft); width: 55%; }
.price-table td { font-weight: 700; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.small { font-size: .9rem; color: var(--ink-soft); }
.terms { list-style: none; padding: 0; margin: 0; }
.terms li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.terms li:last-child { border-bottom: 0; }
.terms svg { width: 20px; height: 20px; flex: none; color: var(--sea); margin-top: .25rem; }
.terms .no svg { color: #a2463c; }

/* Kontakt */
.contact { background: var(--sea-dark); color: #efe8da; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #e3c48f; }
.contact .lead { color: #cfd9d6; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 2rem; }
.contact-card .name { font-family: var(--serif); font-size: 1.9rem; color: #fff; margin-bottom: 1.2rem; display: block; }
.contact-line { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; color: #fff; text-decoration: none; font-size: 1.1rem; }
.contact-line:hover { color: #e3c48f; }
.contact-line svg { width: 22px; height: 22px; color: #e3c48f; flex: none; }
.contact .btn { background: #e3c48f; border-color: #e3c48f; color: var(--sea-dark); margin-top: .8rem; }
.contact .btn:hover { background: #fff; border-color: #fff; }

/* Footer */
.site-footer { background: #142f33; color: #b9c6c3; padding: 2.5rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.site-footer a { color: #e6dfd0; text-decoration: none; }
.site-footer a:hover { color: #e3c48f; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; }

/* Rechtstexte */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.75rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.todo { background: #fff3c4; padding: 0 .25em; border-radius: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(14, 22, 24, .94); align-items: center; justify-content: center; padding: 3.5rem 4.5rem;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); border-radius: 6px; }
.lightbox figcaption { color: #e6dfd0; margin-top: .9rem; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 980px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .price-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--sand); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border: 0; margin-top: .9rem; text-align: center; justify-content: center; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-figure picture::before { inset: 1rem -.7rem -1rem .7rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; gap: .6rem; }
  .g-wide { grid-column: span 2; }
  .lightbox { padding: 3.5rem .75rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .brand-name { font-size: 1.35rem; }
}
