/* ============================================
   Käpt'n Braß Apartment – Ferienwohnung Dierhagen Strand
   Stylesheet
   ============================================ */

:root {
  --color-navy: #16425b;
  --color-teal: #2f6690;
  --color-teal-light: #d9e8ef;
  --color-sand: #f6efe4;
  --color-sand-dark: #e9dcc6;
  --color-accent: #d98e4a;
  --color-accent-dark: #b96f2e;
  --color-text: #26343f;
  --color-text-light: #55636c;
  --color-white: #ffffff;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 66, 91, 0.12);
  --font-base: -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-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--color-text-light); }

ul { padding-left: 0; list-style: none; margin: 0; }

.section { padding: 64px 0; }
.section-alt { background: var(--color-sand); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--color-white); }

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

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(22,66,91,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.logo span { color: var(--color-accent); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--color-sand);
  color: var(--color-accent-dark);
}
.nav-links a.cta {
  background: var(--color-navy);
  color: var(--color-white);
}
.nav-links a.cta:hover { background: var(--color-teal); color: var(--color-white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    display: none;
    box-shadow: 0 12px 20px rgba(22,66,91,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,66,91,0.15) 0%, rgba(22,66,91,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-content h1 { color: var(--color-white); max-width: 720px; }
.hero-content p.lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 600px;
}

.hero-small {
  min-height: 34vh;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }

.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text);
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

/* ---------- Split layout (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  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(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.06); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22,66,91,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 50%;
  width: 48px; height: 48px;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Tables (pricing) ---------- */
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.price-table th, table.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-sand-dark);
}
table.price-table th { background: var(--color-navy); color: var(--color-white); }

.note-box {
  background: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  padding: 18px 22px;
  border-radius: 8px;
  color: var(--color-navy);
}

/* ---------- Map / iframe ---------- */
.embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.embed-wrap iframe { width: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: var(--color-white); font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--color-accent); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content li { padding: 4px 0; }
.legal-content ul { list-style: disc; padding-left: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 18px 0;
}
.breadcrumb a { color: var(--color-text-light); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
