/* ============================================================
   DER GRÜNE HIRSCH — Wellness & Landhotel, Wagrain
   Warm-alpines Designsystem (vgl. checkout.html / thankyou.html)
   ============================================================ */

:root {
  /* Farben (Markensystem) */
  --bg-base: #F5F5DC;
  --bg-paper: #FBFAF0;
  --surface: #FFFFFF;
  --brand-primary: #2D5016;
  --brand-deep: #1F3A0E;
  --brand-secondary: #4A7C23;
  --accent: #8B4513;
  --accent-dark: #7A3B10;
  --text-main: #333330;
  --text-soft: #6B6B5E;
  --border-color: #E0E0D0;
  --cream-text: #F3EFD9;

  /* Typografie */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;

  /* Geometrie */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 34px rgba(45, 80, 22, 0.10);
  --shadow-card: 0 4px 18px rgba(51, 51, 48, 0.08);
  --container: 1180px;

  /* n8n Chat-Widget Branding */
  --chat--color-primary: var(--brand-primary);
  --chat--color-primary-shade-50: #28470F;
  --chat--color-primary-shade-100: #1F3A0E;
  --chat--color-secondary: var(--brand-secondary);
  --chat--color-secondary-shade-50: #426F1F;
  --chat--color-white: #ffffff;
  --chat--color-light: #FBFAF0;
  --chat--color-light-shade-50: #F0EEDD;
  --chat--color-light-shade-100: #E0E0D0;
  --chat--color-medium: #d2d4d9;
  --chat--color-dark: #2B2B23;
  --chat--header--background: linear-gradient(135deg, #2D5016 0%, #4A7C23 100%);
  --chat--header--color: #F3EFD9;
  --chat--toggle--background: var(--accent);
  --chat--toggle--hover--background: var(--accent-dark);
  --chat--toggle--active--background: var(--accent-dark);
  --chat--toggle--color: #fff;
  --chat--toggle--size: 60px;
  --chat--message--user--background: var(--brand-secondary);
  --chat--message--user--color: #fff;
  --chat--message--bot--background: #fff;
  --chat--message--bot--color: var(--text-main);
  --chat--message--font-size: 0.95rem;
  --chat--heading--font-size: 1.35em;
  --chat--border-radius: 12px;
  --chat--window--width: 400px;
  --chat--window--height: 620px;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Papier-Textur */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--brand-primary);
  line-height: 1.15;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { color: var(--text-main); }

a { color: var(--brand-secondary); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #D9C9A3; }

.section__head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__head--light h2 { color: var(--cream-text); }
.section__sub { color: var(--text-soft); margin-top: 0.9rem; font-size: 1.05rem; }
.section__head--light .section__sub { color: #CDE0B8; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(45, 80, 22, 0.22);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 7px 16px rgba(45, 80, 22, 0.3); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.25);
}
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 7px 18px rgba(139, 69, 19, 0.34); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }

.btn--light {
  background: var(--cream-text);
  color: var(--brand-primary);
}
.btn--light:hover { background: #fff; }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn--nav { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0.9rem 0;
}
.nav--solid {
  background: rgba(251, 250, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(51, 51, 48, 0.09);
  padding: 0.45rem 0;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand {
  display: inline-flex;
  background: rgba(251, 250, 240, 0.96);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.35s ease;
}
.nav--solid .nav__brand { box-shadow: none; background: transparent; padding-left: 0; }
.nav__logo { height: 52px; width: auto; transition: height 0.35s ease; }
.nav--solid .nav__logo { height: 44px; }

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav--solid .nav__links a { color: var(--brand-primary); text-shadow: none; }

.nav__actions { display: flex; align-items: center; gap: 0.8rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav--solid .nav__burger span, .nav--open .nav__burger span { background: var(--brand-primary); }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 58, 14, 0.42) 0%, rgba(31, 58, 14, 0.18) 45%, rgba(31, 58, 14, 0.55) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 7rem 1.5rem 4rem; max-width: 860px; }
.hero__eyebrow {
  color: #E8E2C4;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6.2rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.015em;
}
.hero__stars {
  margin-top: 0.9rem;
  color: #F0D998;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.hero__superior { font-size: 0.75em; vertical-align: super; }
.hero__claim {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: #F3EFD9;
}
.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scrollhint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ---------- Willkommen ---------- */
.section--welcome { background: var(--bg-paper); }
.welcome__text h2 { margin-bottom: 1.2rem; }
.welcome__text p + p { margin-top: 1rem; }
.welcome__sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 1.4rem !important;
}
.welcome__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--brand-secondary);
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

/* ---------- Zimmer ---------- */
.rooms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.room-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.room-card--wide { grid-column: span 2; flex-direction: row; }
.room-card--wide .room-card__media { flex: 1.25; min-height: 380px; }
.room-card--wide .room-card__body { flex: 1; align-self: center; }

.room-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.room-card--wide .room-card__media { aspect-ratio: auto; height: 100%; }
.room-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.room-card:hover .room-card__media img { transform: scale(1.045); }
.room-card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}
.room-card__badge--family { background: var(--brand-secondary); }

.room-card__body { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.room-card__desc { color: var(--text-soft); font-size: 0.95rem; }
.room-card__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}
.room-card__facts i { color: var(--brand-secondary); margin-right: 0.3rem; vertical-align: -2px; }
.room-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.room-card__price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.room-card__price span { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; color: var(--text-soft); margin-right: 0.2rem; }
.room-card__price small { font-size: 0.8rem; font-family: var(--font-body); font-weight: 500; color: var(--text-soft); }

/* ---------- Direktbucher-Banner ---------- */
.banner {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  padding: 2.6rem 0;
}
.banner__inner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.banner__icon { font-size: 3rem; color: #F0D998; flex-shrink: 0; }
.banner h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.3rem; }
.banner p { color: #DCE9CC; max-width: 560px; font-size: 0.97rem; }
.banner .btn { margin-left: auto; }

/* ---------- Split-Sektionen ---------- */
.section--tinted { background: var(--bg-paper); }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.split__text h2 { margin-bottom: 1.1rem; }
.split__text > p { color: var(--text-main); }

.feature-list { list-style: none; margin-top: 1.7rem; display: grid; gap: 1.05rem; }
.feature-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.feature-list i {
  font-size: 1.45rem;
  color: var(--brand-secondary);
  background: rgba(74, 124, 35, 0.1);
  border-radius: 50%;
  padding: 0.55rem;
  flex-shrink: 0;
}
.feature-list strong { display: block; font-size: 0.98rem; color: var(--brand-primary); }
.feature-list span { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Almhütte ---------- */
.alm {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) 0;
  overflow: hidden;
}
.alm__media { position: absolute; inset: 0; }
.alm__media img { width: 100%; height: 100%; object-fit: cover; }
.alm__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 58, 14, 0.82) 0%, rgba(31, 58, 14, 0.45) 55%, rgba(31, 58, 14, 0.15) 100%);
}
.alm__content { position: relative; z-index: 2; max-width: 580px; }
.alm__content h2 { color: #fff; margin-bottom: 1.1rem; font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.alm__content p { color: #EDE8D0; font-size: 1.05rem; }
.alm__cta { margin-top: 2rem; }

/* ---------- Packages ---------- */
.section--packages { background: var(--brand-deep); }
.section--packages::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(243, 239, 217, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.packages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
  z-index: 2;
}
.package {
  background: rgba(251, 250, 240, 0.06);
  border: 1px solid rgba(243, 239, 217, 0.16);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.package:hover { transform: translateY(-6px); background: rgba(251, 250, 240, 0.1); }
.package__icon { font-size: 2.1rem; color: #F0D998; }
.package h3 { color: var(--cream-text); margin: 0.9rem 0 0.5rem; font-size: 1.12rem; }
.package p { color: #BCCDA8; font-size: 0.88rem; }
.package__price {
  margin-top: 1.1rem !important;
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  font-weight: 600;
  color: #fff !important;
}
.package__price span { font-size: 0.78rem; font-family: var(--font-body); color: #BCCDA8; font-weight: 500; }

/* ---------- Region ---------- */
.region__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.region__item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.region__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.region__item i { font-size: 2rem; color: var(--accent); }
.region__item h3 { margin: 0.85rem 0 0.45rem; font-size: 1.1rem; }
.region__item p { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Stimmen ---------- */
.section--voices { background: var(--bg-paper); }
.voices__count { font-size: 0.55em; color: var(--text-soft); font-family: var(--font-body); font-weight: 500; }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.voice {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-sm);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.voice p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.55;
}
.voice footer { margin-top: 1rem; font-size: 0.84rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact__text h2 { margin-bottom: 1.1rem; }
.contact__text > p { margin-bottom: 1.8rem; color: var(--text-main); }
.contact__card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.3rem;
  box-shadow: var(--shadow-soft);
}
.contact__card h3 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.contact__card address { font-style: normal; display: grid; gap: 0.65rem; }
.contact__card address p { display: flex; gap: 0.6rem; align-items: center; font-size: 0.95rem; }
.contact__card address i { color: var(--brand-secondary); font-size: 1.15rem; }
.contact__card a { color: var(--text-main); text-decoration: none; }
.contact__card a:hover { color: var(--brand-secondary); }
.contact__times {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.2rem;
}
.contact__times p { font-size: 0.86rem; color: var(--text-soft); }
.contact__times strong { color: var(--brand-primary); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-deep);
  color: #BCCDA8;
  padding: 3rem 0 2.2rem;
}
.footer__inner { display: grid; gap: 1.1rem; text-align: center; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream-text);
}
.footer__brand p, .footer__legal p { font-size: 0.85rem; }
.footer__copy { font-size: 0.78rem; opacity: 0.65; margin-top: 0.6rem; }

/* ---------- Reveal-Animationen ----------
   Der versteckte Anfangszustand wird von GSAP (fromTo) gesetzt,
   damit Inhalte ohne JavaScript sichtbar bleiben. */

/* ---------- n8n Chat Feintuning ---------- */
#n8n-chat .chat-window-toggle {
  box-shadow: 0 6px 22px rgba(139, 69, 19, 0.42);
}
#n8n-chat .chat-heading h1 {
  font-family: var(--font-display);
  font-weight: 500;
}
#n8n-chat .chat-header p { font-size: 0.82rem; opacity: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .packages__grid, .region__grid { grid-template-columns: repeat(2, 1fr); }
  .voices__grid { grid-template-columns: 1fr; }
  .room-card--wide { flex-direction: column; }
  .room-card--wide .room-card__media { min-height: 0; aspect-ratio: 3 / 2; width: 100%; }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--media-right .split__media { order: -1; }
  .rooms__grid { grid-template-columns: 1fr; }
  .room-card--wide { grid-column: span 1; }
  .banner .btn { margin-left: 0; }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 330px);
    background: var(--bg-paper);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2rem 2rem;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav--open .nav__links { transform: translateX(0); }
  .nav__links a {
    color: var(--brand-primary) !important;
    text-shadow: none;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }
  .nav__burger { display: flex; position: relative; z-index: 110; }
}

@media (max-width: 560px) {
  .packages__grid, .region__grid { grid-template-columns: 1fr; }
  .welcome__stats { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .contact__card { padding: 1.6rem; }
  :root { --chat--window--width: calc(100vw - 24px); }
}
