/* ——— Design system (one scale, one accent, shared UX) ——— */
:root {
  /* Color */
  --ink: #0c171c;
  --muted: #5f717a;
  --line: #e2e8eb;
  --bg: #f5f7f8;
  --surface: #ffffff;
  /* Warm copper / cabin wood — koselig, not red/teal/blue */
  --accent: #b56a3a;
  --accent-hover: #94552d;
  --accent-soft: #f7efe8;
  --accent-light: #e4b892;
  --fjord: #0c171c;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);

  /* Type — Outfit everywhere; Syne only for brand + page titles */
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", "Outfit", system-ui, sans-serif;
  --text-xs: 0.75rem;    /* 12 — labels, kickers */
  --text-sm: 0.875rem;   /* 14 — nav, buttons, meta */
  --text-md: 1rem;       /* 16 — body */
  --text-lg: 1.125rem;   /* 18 — leads */
  --text-xl: 1.375rem;   /* 22 — card / panel titles */
  --text-2xl: 1.75rem;   /* 28 — section titles */
  --text-3xl: clamp(2rem, 4vw, 2.75rem); /* page h1 */
  --text-hero: clamp(2.5rem, 6vw, 3.75rem);

  /* Space & shape */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow: 0 10px 30px rgba(12, 23, 28, 0.06);
  --wrap: min(1100px, calc(100% - 40px));
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a.link {
  color: var(--accent);
  font-weight: 600;
}
a.link:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* Demo banner */
.demo-banner {
  background: var(--fjord);
  color: var(--on-dark-muted);
  padding: 10px 16px;
  font-size: var(--text-sm);
  text-align: center;
}
.demo-banner strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* ——— Nav (same on every page) ——— */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  padding: 12px clamp(16px, 4vw, 32px);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav > .btn { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--fjord);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.nav-links {
  display: flex;
  gap: 2px;
  justify-self: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-pill);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(12, 23, 28, 0.06);
}

/* ——— Buttons (3 variants only) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-accent {
  background: var(--accent);
  color: var(--on-dark);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ——— Type helpers ——— */
.kicker {
  margin: 0 0 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  margin: 8px 0 0;
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}
.meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.title-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}

/* ——— Home hero ——— */
.hero {
  position: relative;
  min-height: min(84vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: 0 clamp(16px, 4vw, 32px) var(--space-5);
  overflow: hidden;
  background: var(--fjord);
  color: var(--on-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 23, 28, 0.78) 0%, rgba(12, 23, 28, 0.4) 55%, rgba(12, 23, 28, 0.3) 100%),
    linear-gradient(180deg, transparent 20%, rgba(12, 23, 28, 0.7) 100%),
    url("cabin-exterior.jpg") center/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero .kicker { color: var(--accent-light); }
.hero .title-display {
  font-size: var(--text-hero);
  color: var(--on-dark);
  max-width: 12ch;
  margin-bottom: var(--space-3);
}
.hero .lead {
  color: var(--on-dark-muted);
  margin: 0 0 var(--space-4);
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 4px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--on-dark);
}
.hero-bar .field {
  padding: 10px 14px;
  border-radius: var(--r);
}
.hero-bar .label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.hero-bar .value {
  font-size: var(--text-sm);
  font-weight: 500;
}
.hero-bar .btn {
  align-self: stretch;
  min-height: 48px;
  padding-inline: 24px;
}

/* ——— Sections ——— */
.section { padding: var(--space-6) 0; }
.section.tight-top { padding-top: 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.section-head .title-display { font-size: var(--text-2xl); }

/* Cabin mosaic */
.cabin-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-2);
  min-height: 500px;
}
.cabin-tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 230px;
  background: var(--fjord);
}
.cabin-tile.featured {
  grid-row: 1 / -1;
  min-height: 500px;
}
.cabin-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cabin-tile:hover img { transform: scale(1.04); }
.cabin-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 23, 28, 0.88) 100%);
}
.cabin-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: var(--space-4);
  color: var(--on-dark);
}
.cabin-meta h3 {
  margin: 0 0 4px;
  font-family: var(--font);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cabin-meta p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}
.cabin-price {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-light);
}

/* Flow steps */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.flow-step { padding: var(--space-4); }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-step .n {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
  letter-spacing: 0.06em;
}
.flow-step h3 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.flow-step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}
.flow-cta {
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
}

/* ——— Inner pages (Book / Kontakt) ——— */
.page-hero {
  padding: var(--space-5) 0 var(--space-3);
}
.page-hero .title-display {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}
.page-hero .lead { margin-top: 0; }

/* Steps */
.steps {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin: 0 0 var(--space-4);
}
.pill {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}
.pill.on {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.pill.done {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: transparent;
}

/* Panels / forms */
.book-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 4px;
  font-family: var(--font);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.panel-sub {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
}
.summary-title {
  margin: 0 0 4px;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.done-copy {
  margin: 8px 0 0;
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.6;
}
.done-copy strong { color: var(--ink); font-weight: 600; }

label {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: var(--text-md);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.cabin {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-2);
  align-items: center;
  cursor: pointer;
  margin-bottom: var(--space-1);
  background: var(--surface);
}
.cabin:hover { border-color: #d4b49a; }
.cabin.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cabin img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.cabin h4 {
  margin: 0 0 2px;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
}
.cabin p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.mail {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mail-bar {
  background: var(--fjord);
  color: var(--on-dark-muted);
  padding: 12px 16px;
  font-size: var(--text-sm);
}
.mail-bar span { color: var(--accent-light); }
.mail-body { padding: var(--space-4); }
.mail-body h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font);
  font-size: var(--text-xl);
  font-weight: 600;
}
.mail-body ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--ink);
}
.mail-note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.ok {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.hidden { display: none !important; }

/* Contact */
.info-box {
  background:
    linear-gradient(160deg, rgba(12, 23, 28, 0.55), rgba(12, 23, 28, 0.92)),
    url("cabin-exterior.jpg") center/cover;
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-4);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.info-box h2 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.info-box p {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
  line-height: 1.5;
}
.info-box .contact-line {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.info-box strong {
  color: var(--on-dark);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-4) clamp(16px, 4vw, 32px);
  color: var(--muted);
  font-size: var(--text-sm);
}
.footer .inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "links links";
  }
  .brand { grid-area: brand; }
  .nav > .btn { grid-area: cta; }
  .nav-links {
    grid-area: links;
    justify-self: start;
    width: 100%;
  }
  .cabin-mosaic {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cabin-tile.featured {
    grid-row: auto;
    min-height: 300px;
  }
  .flow { grid-template-columns: 1fr; }
  .flow-step + .flow-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar .btn { grid-column: 1 / -1; }
  .book-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cabin-tile img { transition: none; }
}
