/* Haus Kap Hoorn – Grundlayout */
:root {
  --navy: #12324a;
  --navy-dark: #0b2233;
  --sea: #2f7ea8;
  --sand: #f4efe6;
  --text: #2b2f33;
  --muted: #5f6b75;
  --line: #e2ddd3;
  --white: #ffffff;
  --radius: 6px;
  --max: 1140px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section__intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__intro p { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px;
}
.logo img { width: 148px; height: 41px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px;
  color: var(--white); text-decoration: none;
  font-size: .95rem; letter-spacing: .02em;
  border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.6rem; cursor: pointer; padding: 6px 10px;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  color: var(--white);
  background: var(--navy) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,45,.15) 0%, rgba(10,30,45,.6) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: .3em; }
.hero p { font-size: 1.25rem; max-width: 620px; margin: 0 0 1.5em; }
.hero--small { min-height: 42vh; }

/* Startseite: Überschrift, Text und Buttons unten im Bild. Bildhöhe so
   begrenzt, dass alles ohne Scrollen sichtbar ist. */
.hero--home {
  min-height: 0;
  height: clamp(360px, 78svh, 75vw);
  align-items: flex-end;
  padding-bottom: 28px;
  background-position: center 45%;
}
.hero--home::before {
  background: linear-gradient(180deg, rgba(10,30,45,0) 40%, rgba(10,30,45,.8) 100%);
}
.hero--home p { margin-bottom: 1em; }
.hero--home .btn { margin: 4px 8px 4px 0; }
/* Mittlere Breiten: Text mindestens 48px vom Bildrand (breite Fenster haben
   durch die zentrierte Spalte ohnehin genug Abstand) */
@media (min-width: 701px) {
  .hero--home .container {
    padding-left: max(16px, calc(48px - max(0px, (100vw - 1140px) / 2)));
    padding-right: max(16px, calc(48px - max(0px, (100vw - 1140px) / 2)));
  }
}
/* Schmale Fenster: Bild oben, Text darunter auf dem dunkelblauen Grund */
@media (max-width: 700px) {
  .hero--home {
    display: block;
    height: auto;
    padding: calc(75vw + 20px) 0 24px;
    background-size: 100% auto;
    background-position: center top;
  }
  .hero--home::before { display: none; }
  .hero--home h1 { font-size: 1.9rem; }
  .hero--home p { font-size: 1.05rem; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px;
  background: var(--sea); color: var(--white);
  border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sand); color: var(--navy); }

/* Cards / Grids */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(18,50,74,.08);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { margin-top: 0; }
.card__body .btn { align-self: flex-start; margin-top: auto; }
.card__sub { color: var(--sea); font-weight: 600; margin-bottom: .6em; }
.card__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; margin-bottom: 1em; }

/* Split rows (Bild + Text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split--reverse > :first-child { order: 0; }
}

/* Kontaktblock */
.contact-box {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 32px;
}
.contact-box h3 { color: var(--white); }
.contact-box a { color: #9fd2ee; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .4em; }
.map { margin: .4em 0 0; }
.map img { width: 100%; height: auto; border-radius: var(--radius); background: #e8e4dc; }
.map figcaption { font-size: .65rem; line-height: 1.3; color: #8fa3b0; margin-top: 4px; text-align: right; }
.map figcaption a { color: inherit; }

/* Wohnungsdetail */
.facts-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin: 0 0 40px; padding: 24px;
  background: var(--sand); border-radius: var(--radius);
}
.facts-bar dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts-bar dd { margin: 0; font-weight: 600; color: var(--navy); }

.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.aside-box { background: var(--sand); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.aside-box .btn { width: 100%; text-align: center; margin-bottom: 12px; }

.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.detail-table th, .detail-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-table th { width: 45%; font-weight: 600; color: var(--navy); }

.feature-list { list-style: none; padding: 0; margin: 0 0 32px; columns: 2 200px; column-gap: 24px; }
.feature-list li { padding: 4px 0 4px 26px; position: relative; break-inside: avoid; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery--wide img { aspect-ratio: 3 / 2; }

.tour-link { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 24px; font-weight: 600; }
.tour-link img { width: 36px; height: 36px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,15,25,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 4px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 10px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white);
  border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Formular */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.form textarea { min-height: 160px; resize: vertical; }
.form__hint { font-size: .9rem; color: var(--muted); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); }
.form__status--ok { background: #e3f3e8; color: #1d5b33; }
.form__status--error { background: #fbe6e4; color: #8a2a20; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Textseiten (Impressum / Datenschutz) */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c6cf; padding: 40px 0; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: #dfe8ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links span { opacity: .5; }

/* Gästeinformationen (Anleitungen) */
.guide section { padding: 8px 0 16px; border-bottom: 1px solid var(--line); overflow: hidden; }
.guide section:last-child { border-bottom: 0; }
.guide img { border-radius: var(--radius); }
.guide .alignright { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.guide .alignleft { float: left; margin: 0 24px 16px 0; max-width: 40%; }
.guide .aligncenter { margin: 24px auto; max-width: 520px; }
.guide-figure { margin: 0; }
.guide-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; text-align: center; }
.guide img[src*="anleitung-tv"] { max-height: 400px; width: auto; }
.guide img[src*="anleitung-wlan"] { max-width: 160px; }
.guide img[src*="anleitung-ofen"] { max-height: 300px; width: auto; }
.guide .links { margin: 12px 0 16px; line-height: 2; }
.guide .warn { color: #b3261e; }
@media (max-width: 600px) {
  .guide .alignright, .guide .alignleft { float: none; margin: 16px 0; max-width: 100%; }
}
@media print {
  .site-header, .site-footer, .breadcrumb { display: none; }
  .section { padding: 0; }
  .guide a[href$=".pdf"]::after { content: none; }
}
