/* Gästehaus Gömmer – Stylesheet */

:root {
  --green-900: #1f3a2e;
  --green-700: #2f5743;
  --green-500: #4a7a60;
  --green-100: #e6efe8;
  --sand-50: #fbf8f3;
  --sand-100: #f4ede2;
  --sand-300: #e3d5bf;
  --wood: #b9824a;
  --text: #24302a;
  --muted: #5d6a62;
  --white: #ffffff;
  --error: #b23a2b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 58, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 58, 46, 0.18);
  --max: 1140px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.6rem;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--sand-100); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-900); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.is-scrolled,
.header--solid {
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(31, 58, 46, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  line-height: 1.1;
}
.logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.header.is-scrolled .logo,
.header--solid .logo { color: var(--green-900); }

.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover { opacity: 0.8; }
.header.is-scrolled .nav a,
.header--solid .nav a { color: var(--text); }
.nav .btn { padding: 0.55em 1.2em; }
.nav a.btn--primary,
.header.is-scrolled .nav a.btn--primary,
.header--solid .nav a.btn--primary { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}
.header.is-scrolled .nav-toggle,
.header--solid .nav-toggle { color: var(--green-900); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--sand-50);
    box-shadow: var(--shadow);
    padding: 12px 20px 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { display: block; padding: 14px 4px; color: var(--text); border-bottom: 1px solid var(--sand-300); }
  .nav li:last-child a { border: 0; margin-top: 14px; text-align: center; justify-content: center; }
  .header:has(.nav.is-open) { background: var(--sand-50); }
  .header:has(.nav.is-open) .logo,
  .header:has(.nav.is-open) .nav-toggle { color: var(--green-900); }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--green-900) url("../../Zimmer_gross/Z3_1.jpeg") center 60% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 30, 0.55) 0%, rgba(20, 38, 30, 0.25) 40%, rgba(20, 38, 30, 0.85) 100%);
}
.hero .container { position: relative; padding-bottom: clamp(56px, 10vh, 110px); padding-top: 120px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .eyebrow { color: var(--sand-300); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 560px; opacity: 0.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0.92;
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; flex: none; }

/* Welcome */
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.welcome__img { position: relative; }
.welcome__img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.welcome__badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  background: var(--green-700);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.3;
}
.welcome__badge strong { display: block; font-family: var(--font-serif); font-size: 1.8rem; }
.welcome__text .signature { font-family: var(--font-serif); font-style: italic; color: var(--green-700); font-size: 1.15rem; }

@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__badge { right: 12px; }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(31, 58, 46, 0.06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.feature p { margin: 0; font-size: 0.93rem; color: var(--muted); line-height: 1.5; }

/* Rooms / gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--sand-300);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--green-500); }
.tab[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand-300);
  aspect-ratio: 16 / 10;
}
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(251, 248, 243, 0.92);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 25, 20, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: min(1400px, 100%); border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--sand-100); font-size: 0.95rem; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Location */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.distances { list-style: none; margin: 0 0 28px; padding: 0; }
.distances li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand-300);
}
.distances span:last-child { font-weight: 600; color: var(--green-700); white-space: nowrap; }
.map-card {
  background: var(--green-900);
  color: var(--sand-100);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.map-card h3 { color: var(--white); }
.map-card address { font-style: normal; font-size: 1.1rem; line-height: 1.6; margin-bottom: 24px; }
.map-card .btn { margin: 0 10px 10px 0; }
.map-card .btn--primary { background: var(--sand-100); color: var(--green-900); }
.map-card .btn--primary:hover { background: var(--white); color: var(--green-900); }
.map-card small { display: block; margin-top: 10px; opacity: 0.7; font-size: 0.82rem; }

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

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact__info ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact__info li svg { width: 22px; height: 22px; color: var(--green-700); flex: none; margin-top: 3px; }
.contact__info a { text-decoration: none; font-weight: 500; }

.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--wood); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--sand-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 122, 96, 0.15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field__error { display: none; color: var(--error); font-size: 0.85rem; margin-top: 4px; }
.field.has-error .field__error { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-700); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.form__hint { font-size: 0.85rem; color: var(--muted); margin: 0; }

.form__status { display: none; margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form__status.is-success { display: block; background: var(--green-100); color: var(--green-900); }
.form__status.is-error { display: block; background: #f9e6e3; color: var(--error); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer { background: var(--green-900); color: var(--sand-300); padding: 48px 0 28px; font-size: 0.95rem; }
.footer a { color: var(--sand-100); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer__bottom { border-top: 1px solid rgba(227, 213, 191, 0.2); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; opacity: 0.8; }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal { padding: 130px 0 80px; }
.legal .container { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal .note { background: var(--sand-100); border-left: 4px solid var(--wood); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; }

/* Thank-you */
.thanks { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 60px; }
.thanks__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks__icon svg { width: 36px; height: 36px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
