:root {
  --ink: #1f2922;
  --muted: #5f6b62;
  --paper: #fbfaf6;
  --linen: #f0ece3;
  --sage: #6d8265;
  --sage-dark: #3e5c4a;
  --wood: #a2693e;
  --blue: #2d7fa8;
  --white: #ffffff;
  --line: rgba(31, 41, 34, 0.16);
  --shadow: 0 22px 60px rgba(31, 41, 34, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    url("assets/bergzeit-chalet.png") center / cover no-repeat,
    var(--sage-dark);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 28, 23, 0.72), rgba(22, 28, 23, 0.28)),
    linear-gradient(0deg, rgba(22, 28, 23, 0.24), rgba(22, 28, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(80px, 12vh, 122px) 0 clamp(56px, 9vh, 92px);
  color: var(--white);
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 0.96;
  white-space: nowrap;
}

.hero-copy {
  max-width: none;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 1.45;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border: 1px solid var(--sage-dark);
  background: var(--sage-dark);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #314a3b;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro,
.highlights,
.contact-section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.intro {
  background: var(--paper);
}

.intro-stack {
  max-width: 880px;
}

.kicker {
  color: var(--wood);
}

.intro-quote {
  margin: 0 0 clamp(28px, 5vw, 44px);
  border-left: 3px solid var(--wood);
  padding-left: clamp(18px, 3vw, 30px);
}

.intro-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.intro-text {
  color: var(--muted);
  font-size: 1.1rem;
}

.intro-text p:last-child,
.contact-copy p:last-child,
.highlight-list p:last-child {
  margin-bottom: 0;
}

.highlights {
  background: var(--linen);
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.highlight-list article {
  min-height: 230px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}

.highlight-list span {
  display: block;
  margin-bottom: 44px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.highlight-list p {
  color: var(--muted);
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 48px;
}

.contact-logo {
  display: block;
  width: min(285px, 70vw);
  height: auto;
  margin: 0 0 clamp(26px, 4vw, 42px);
}

.contact-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.mail-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration-color: rgba(62, 92, 74, 0.35);
  text-underline-offset: 5px;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 34, 0.22);
  border-radius: var(--radius);
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--sage-dark);
  outline: 3px solid rgba(109, 130, 101, 0.2);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #b54731;
}

.field-error,
.form-status {
  min-height: 1.35em;
  margin: 0;
  font-size: 0.9rem;
}

.field-error {
  color: #a33d2b;
}

.form-status {
  color: var(--muted);
}

.form-status.is-success {
  color: var(--sage-dark);
}

.form-status.is-error {
  color: #a33d2b;
}

.form-button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--linen);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-legal {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.footer-legal button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(95, 107, 98, 0.38);
  text-underline-offset: 4px;
}

.footer-legal button:hover,
.footer-legal button:focus-visible {
  color: var(--ink);
}

.legal-overlay[hidden] {
  display: none;
}

.legal-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow-y: auto;
  background: rgba(18, 24, 20, 0.72);
  backdrop-filter: blur(4px);
}

.legal-panel {
  min-height: 100svh;
  padding: clamp(24px, 5vw, 64px);
}

.overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  padding: 0;
}

.overlay-close:hover,
.overlay-close:focus-visible {
  background: var(--linen);
}

.legal-content {
  position: relative;
  width: min(780px, 100%);
  margin: clamp(46px, 8vw, 92px) auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: clamp(26px, 5vw, 54px);
}

.legal-content h2 {
  margin-bottom: 24px;
}

.legal-content h3 {
  margin-top: 34px;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content a {
  color: var(--sage-dark);
  font-weight: 800;
}

body.has-open-overlay {
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-content {
    width: min(1120px, calc(100% - 112px));
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 82svh;
    background-position: center;
  }

  .hero-shade {
    background: rgba(22, 28, 23, 0.56);
  }

  .hero-content {
    padding-top: 108px;
  }

  .hero h1,
  .hero-copy {
    white-space: normal;
  }

  .intro-quote p {
    white-space: normal;
  }

  .hero-actions,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }

  .highlight-list article {
    min-height: 0;
  }

  .highlight-list span {
    margin-bottom: 24px;
  }
}

@media (max-width: 440px) {
  .button-secondary {
    font-size: 0.88rem;
  }

  .contact-form {
    padding: 20px;
  }
}
