/* Ferienhaus Scheper — Design System */

:root {
  --navy: #1e3a4c;
  --navy-dark: #142835;
  --sea: #2f6690;
  --sea-light: #e8f1f5;
  --sand: #f4ecd8;
  --sand-light: #faf6ec;
  --white: #ffffff;
  --accent: #b3492f;
  --accent-dark: #963d27;
  --text: #26343d;
  --muted: #5c6b70;
  --border: #e2d9c4;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(20, 40, 53, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(20, 40, 53, 0.2);

  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.eyebrow svg { width: 16px; height: 16px; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline.on-dark {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text .sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; height: auto; min-height: 78px; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    background: var(--sand-light);
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 1rem 1.5rem; }
}

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

.hero {
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.hero-facts div { text-align: left; }
.hero-facts strong {
  display: block;
  font-size: 1.4rem;
  color: var(--navy);
}
.hero-facts span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-media { position: relative; }
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  transform: rotate(1.2deg);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: -1.2rem;
  left: -1.2rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transform: rotate(-2deg);
}
.hero-badge span {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--sea-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
}

/* ---------- Wave divider ---------- */

.wave {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--sand);
}
.wave.flip { transform: scaleY(-1); }

/* ---------- Sections ---------- */

section.block { padding: 4rem 0; }
.block.alt { background: var(--sand); }
.block.navy {
  background: var(--navy);
  color: var(--sea-light);
}
.block.navy h2, .block.navy h3 { color: var(--white); }
.block.navy .lead { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 640px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.section-head.left { margin: 0 0 2.6rem; text-align: left; }

/* ---------- Highlights ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.highlight-card svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.highlight-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.highlight-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Two column content ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  position: relative;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.6rem 0.8rem 0.8rem;
}

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 40, 53, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 0.95rem;
}
.lightbox .lb-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .lb-prev { left: 1.2rem; }
.lightbox .lb-next { right: 1.2rem; }

/* ---------- Cards / lists ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1.5rem;
}
.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 560px) {
  .check-list { grid-template-columns: 1fr; }
}

/* ---------- Pricing table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: 1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { font-weight: 700; color: var(--navy); }

.note-box {
  background: var(--sea-light);
  border-left: 4px solid var(--sea);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--navy);
}

/* ---------- Timeline (Geschichte) ---------- */

.timeline {
  border-left: 3px solid var(--accent);
  margin-left: 0.6rem;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline .t-item { position: relative; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .t-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Contact / anfahrt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}
.contact-item svg {
  width: 24px; height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item strong { display: block; color: var(--navy); }

.house-anfahrt-block { margin-bottom: 2.2rem; }
.house-anfahrt-block:last-child { margin-bottom: 0; }
.house-anfahrt-block h3 { margin-bottom: 0.6rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--sand);
  min-height: 320px;
  position: relative;
}
.map-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--sea); }
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--sea));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner .lead { color: rgba(255,255,255,0.82); margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.footer-bottom a { margin-left: 1.2rem; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  background: var(--sand);
  padding: 3rem 0 4rem;
  text-align: center;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: var(--muted); }

/* utility */
.mt-lg { margin-top: 3rem; }
.text-center { text-align: center; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }
