/* Haus Magarete – Stylesheet */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #16163f;
  --navy-2: #24245c;
  --gold: #d3b574;
  --gold-dark: #9c7f3c;
  --sand: #e9e3dd;
  --sand-light: #f6f3ef;
  --text: #2b2b3a;
  --muted: #5d5d6e;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 22, 63, .12);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--gold-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Kopfbereich ---------- */

.topbar {
  background: var(--navy);
  color: var(--sand);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: flex-end;
  padding-block: 6px;
}
.topbar a { color: var(--sand); text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(22, 22, 63, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.brand span { font-size: .8rem; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-light); color: var(--gold-dark); }
.nav .btn { margin-left: 8px; }
.nav .btn[aria-current="page"] { background: var(--gold); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(22, 22, 63, .12);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #e2c88c; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--white) !important; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 680px);
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy) center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 22, 63, .82) 0%, rgba(22, 22, 63, .45) 60%, rgba(22, 22, 63, .15) 100%);
}
.hero .container { position: relative; padding-block: 60px; }
.hero h1 { color: var(--white); max-width: 15em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; color: var(--sand); }
.hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-small { min-height: 320px; }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section-sand { background: var(--sand-light); }
.section-navy { background: var(--navy); color: var(--sand); }
.section-navy h2 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; margin-bottom: .4em; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.fact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fact b { display: block; font-size: 1.6rem; color: var(--navy); }
.fact span { font-size: .9rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-grid a { border-radius: 8px; overflow: hidden; display: block; }
.mini-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.mini-grid a:hover img { transform: scale(1.05); }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: .4em; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}

.note {
  background: var(--sand-light);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.cta-band { text-align: center; }
.cta-band p { max-width: 640px; margin-inline: auto; }

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery a { display: block; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 30, .94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; color: var(--sand); font-size: .9rem; }

/* ---------- Externe Inhalte (Karte, Kalender) ---------- */

.consent {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.consent p { max-width: 520px; font-size: .9rem; color: var(--muted); }
.embed iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }

/* ---------- Ziele-Liste ---------- */

.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.target { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.target h3 { margin-bottom: .3em; font-size: 1.05rem; }
.target p { margin: 0; font-size: .95rem; }

/* ---------- Buchung ---------- */

.booking { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

.card { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 4px; }
label .req { color: #b4332a; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #cfcbd6;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { width: auto; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-ok { background: #e6f4ea; color: #1e5631; }
.alert-err { background: #fbeaea; color: #8a1f17; }

.prices { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prices td { padding: 8px 0; border-bottom: 1px solid var(--sand); vertical-align: top; }
.prices td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }

.info-block + .info-block { margin-top: 28px; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }

/* ---------- Fußbereich ---------- */

.site-footer { background: var(--navy); color: var(--sand); padding-block: 56px 24px; font-size: .95rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 64px; background: var(--white); border-radius: 8px; padding: 4px; }
.copyright { border-top: 1px solid rgba(233, 227, 221, .2); margin-top: 40px; padding-top: 20px; font-size: .85rem; text-align: center; }
