/* ==========================================================================
   Gasthof Hecht, Immenstaad — Demo-Gestaltungsvorschlag
   Charakter: ehrliches Wirtshaus — warm, bodenständig, einladend
   Farbwelt: Tannengrün #234D20 · Gold #C9A227 · Creme #F8F4E9 ·
             Salbei #E4E9DD · Grünschwarz #1C2A1A
   Schriften: EB Garamond (Headlines) + Work Sans (Text), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --green: #234d20;        /* Tannengrün — Primärfarbe */
  --green-deep: #1a3a18;   /* dunkle Flächen, Hover */
  --gold: #c9a227;         /* warmes Gold — Akzent */
  --gold-soft: #e0c573;    /* helles Gold auf dunklem Grund */
  --cream: #f8f4e9;        /* Grundton */
  --sage: #e4e9dd;         /* helle Flächen */
  --ink: #1c2a1a;          /* Text, dunkles Grünschwarz */
  --ink-soft: #4a5644;     /* abgesetzter Fließtext */
  --line: #d9d4c2;         /* Trennlinien auf Creme */
  --line-dark: rgba(248, 244, 233, 0.18);
  --white: #fffdf7;

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --container: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }

::selection { background: var(--green); color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
  /* Lange Komposita nur an gesetzten &shy;-Stellen trennen */
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36em;
}

/* Goldene Doppellinie als Wirtshaus-Zierde */
.rule {
  width: 84px;
  border: 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  height: 5px;
  margin: 1.3rem 0 1.5rem;
}
.rule--center { margin-inline: auto; }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.5rem var(--pad);
}
.demo-bar strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 3px double var(--gold);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.brand__mark {
  width: 64px;
  height: 45px;
  color: var(--green);
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand__name small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--gold);
}
.nav__cta {
  background: var(--green);
  color: var(--cream) !important;
  padding: 0.55rem 1.15rem !important;
  border: 0 !important;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--green-deep); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 78% 30%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--green);
  color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 3px double var(--gold);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--cream); }
.hero .lead { color: rgba(248, 244, 233, 0.85); }
.hero .eyebrow { color: var(--gold-soft); }
.hero__emblem {
  width: min(380px, 78%);
  margin-inline: auto;
  color: var(--gold-soft);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Ruhetage-Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.45rem 0.95rem;
  margin-top: 1.6rem;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.badge--light { color: var(--green); border-color: var(--green); }
.badge--light::before { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-soft);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: rgba(201, 162, 39, 0.14); }
.btn--solid {
  background: var(--gold);
  color: var(--green-deep);
}
.btn--solid:hover { background: var(--gold-soft); color: var(--green-deep); }
.btn--green {
  border-color: var(--green);
  color: var(--cream);
  background: var(--green);
}
.btn--green:hover { background: var(--green-deep); }
.btn--outline-green {
  border-color: var(--green);
  color: var(--green);
}
.btn--outline-green:hover { background: rgba(35, 77, 32, 0.08); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sage { background: var(--sage); }
.section--dark {
  background: var(--green-deep);
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(248, 244, 233, 0.82); }
.section--line { border-top: 1px solid var(--line); }

.section__head {
  max-width: 46em;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); margin-top: 0.9rem; }
.section--dark .section__head p { color: rgba(248, 244, 233, 0.82); }

/* ---------- Feature-Karten (Gaststube) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.4rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.6rem 1.5rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { font-size: 0.97rem; color: var(--ink-soft); }
.feature__icon {
  width: 38px;
  height: 38px;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.section--dark .feature {
  background: rgba(248, 244, 233, 0.05);
  border-color: var(--line-dark);
  border-top-color: var(--gold);
}
.section--dark .feature p { color: rgba(248, 244, 233, 0.78); }

/* ---------- Zimmer-Karten ---------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.room {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.room__head {
  background: var(--green);
  color: var(--cream);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}
.room__head h3 { color: var(--cream); font-size: 1.35rem; }
.room__size {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  white-space: nowrap;
}
.room__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.room__body p { color: var(--ink-soft); font-size: 0.97rem; }
.room__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.room__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--sage);
  color: var(--ink);
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
}
.room--view { border-color: var(--gold); border-width: 1px; }
.room--view .room__head { background: var(--green-deep); }

/* ---------- Preistabelle ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}
.price-table caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 0.8rem;
}
.price-table th, .price-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-table tbody th {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.price-table .price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

/* Stand-Vermerk */
.stand-note {
  display: block;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ink-soft);
}
.stand-note::before { content: "✻ "; color: var(--gold); font-style: normal; }
.section--dark .stand-note { color: rgba(248, 244, 233, 0.72); }

/* ---------- Öffnungszeiten ---------- */
.hours {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
}
.hours th, .hours td {
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.hours th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}
.hours td { color: var(--ink-soft); }
.hours .hours__closed td, .hours .hours__closed th { color: var(--green); font-weight: 600; }
.section--dark .hours th { color: var(--cream); }
.section--dark .hours td { color: rgba(248, 244, 233, 0.82); }
.section--dark .hours th, .section--dark .hours td { border-color: var(--line-dark); }
.section--dark .hours .hours__closed td,
.section--dark .hours .hours__closed th { color: var(--gold-soft); }

/* ---------- Zweispaltige Info-Blöcke ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split__emblem {
  width: min(300px, 70%);
  margin-inline: auto;
  color: var(--green);
  opacity: 0.92;
}

/* Infoliste mit Goldpunkten */
.dotlist { list-style: none; }
.dotlist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
}
.dotlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.section--dark .dotlist li { color: rgba(248, 244, 233, 0.82); }

/* ---------- Buchungs-Box (nur telefonisch) ---------- */
.tel-box {
  background: var(--white);
  border: 1px solid var(--gold);
  border-left: 6px solid var(--gold);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.tel-box h2, .tel-box h3 { margin-bottom: 0.4rem; }
.tel-box p { color: var(--ink-soft); max-width: 38em; }

/* Telefon-Anzeige */
.tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.tel:hover { color: var(--green-deep); }
.section--dark .tel, .cta-band .tel { color: var(--gold-soft); }
.section--dark .tel:hover, .cta-band .tel:hover { color: var(--gold); }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(201, 162, 39, 0.1), transparent 50%),
    var(--green-deep);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 3px double var(--gold);
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.6rem; }
.cta-band p { color: rgba(248, 244, 233, 0.82); max-width: 38em; margin-inline: auto; }
.cta-band .tel { margin-top: 1.2rem; }
.cta-band__emblem {
  position: absolute;
  width: 340px;
  right: -70px;
  bottom: -50px;
  color: rgba(201, 162, 39, 0.13);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head {
  background: var(--green);
  color: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 3px double var(--gold);
}
.page-head h1 { color: var(--cream); }
.page-head .lead { color: rgba(248, 244, 233, 0.85); margin-top: 0.9rem; }
.page-head .eyebrow { color: var(--gold-soft); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.7rem 1.6rem;
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.contact-card p, .contact-card address { font-style: normal; color: var(--ink-soft); }
.contact-card a { font-weight: 500; }

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
}
.maps-link:hover { color: var(--green-deep); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: rgba(248, 244, 233, 0.78);
  padding-block: 3rem 1.5rem;
  border-top: 3px double var(--gold);
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.foot-grid h3 {
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.4rem; }
.foot-grid a { color: rgba(248, 244, 233, 0.78); }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-emblem { width: 96px; color: var(--gold-soft); opacity: 0.9; }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
}
.foot-meta a { color: rgba(248, 244, 233, 0.78); }
.foot-meta a:hover { color: var(--gold-soft); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 1.4rem; }
.legal h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.7rem;
}
.legal p, .legal address { color: var(--ink-soft); font-style: normal; margin-bottom: 0.9rem; }
.demo-note {
  background: var(--sage);
  border-left: 5px solid var(--gold);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.placeholder {
  display: inline-block;
  background: var(--sage);
  border: 1px dashed var(--gold);
  border-radius: 2px;
  padding: 0.05rem 0.5rem;
  font-size: 0.9em;
  color: var(--ink-soft);
}

/* ---------- Einblend-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsiv ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 3px double var(--gold);
    display: none;
    padding: 0.5rem var(--pad) 1.1rem;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
    border-radius: 2px;
  }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__emblem { width: min(280px, 64%); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tel-box { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand__mark { width: 54px; height: 38px; }
  .brand__name { font-size: 1.2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 0.92rem; }
  .price-table th, .price-table td { padding: 0.7rem 0.7rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
}
