/* ==========================================================================
   Gasthaus Zweifel, Bitzenhofen — Demo-Gestaltungsvorschlag
   Charakter: das Wohnzimmer des Dorfs — herzlich, unprätentiös, vertraut.
   Karierte-Tischdecke-Gemütlichkeit, modern übersetzt.
   Farbwelt: Wirtshausrot #8E3B3B · Creme #FAF5EC · Rosé-Beige #F0E2D8 ·
             Nussbraun #6B4F3A · Text #2E2622
   Schriften: Crimson Pro (Headlines) + Rubik (Text), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimson-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimson-pro-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --cream: #faf5ec;        /* Grundton */
  --rose: #f0e2d8;         /* helle Flächen */
  --red: #8e3b3b;          /* Wirtshausrot — Primärfarbe */
  --red-dark: #722e2e;     /* Hover */
  --brown: #6b4f3a;        /* Nussbraun — Sekundärfarbe */
  --ink: #2e2622;          /* Text */
  --ink-soft: #57493f;     /* abgesetzter Fließtext */
  --line: #e2d4c6;         /* Trennlinien */
  --white: #fffdf9;

  --font-display: "Crimson Pro", Georgia, serif;
  --font-body: "Rubik", "Segoe UI", sans-serif;

  --container: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;

  --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(--red); text-decoration: none; }

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

:focus-visible {
  outline: 3px solid var(--brown);
  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;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  /* keine automatische Trennung — nur gesetzte &shy; */
  hyphens: manual;
}

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

.mark { color: var(--red); }
.mark--cream { color: var(--rose); }

.eyebrow {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

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

/* ---------- Karo-Band (Wiedererkennung: rot-weiß karierte Tischdecke) ---------- */
.checker {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(142, 59, 59, 0.55) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(142, 59, 59, 0.55) 0 11px, transparent 11px 22px),
    var(--cream);
}
.checker--on-red {
  background:
    repeating-linear-gradient(90deg, rgba(250, 245, 236, 0.4) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(250, 245, 236, 0.4) 0 11px, transparent 11px 22px),
    var(--red);
}

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem var(--pad);
  line-height: 1.45;
}
.demo-bar strong { color: #f3c9a8; font-weight: 500; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.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: 46px; height: 46px; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand__name small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav__cta {
  background: var(--red);
  color: var(--cream) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-block: 0.4rem 1.2rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__art { display: grid; place-items: center; }
.hero__tile {
  width: min(280px, 60vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(142, 59, 59, 0.22));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--red);
  color: var(--red);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--red); color: var(--cream); }
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--red); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--rose { background: var(--rose); }
.section--red { background: var(--red); color: var(--cream); }
.section--red h2, .section--red h3 { color: var(--cream); }
.section--red p { color: rgba(250, 245, 236, 0.88); }
.section--red .eyebrow { color: #f3c9a8; }

.section__head { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head h2 { margin-bottom: 0.8rem; }
.section__head p { color: var(--ink-soft); }
.section--red .section__head p { color: rgba(250, 245, 236, 0.88); }

/* ---------- Gerichte-Karten ---------- */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.dish {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.dish::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(142, 59, 59, 0.5) 0 7px, transparent 7px 14px),
    var(--rose);
}
.dish h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.dish p { font-size: 0.95rem; color: var(--ink-soft); }
.dish__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--rose);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---------- Hinweis-Karte (Karte im Haus / Vermerke) ---------- */
.note-card {
  margin-top: 1.8rem;
  background: var(--rose);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.note-card strong { color: var(--ink); font-weight: 500; }
.section--rose .note-card { background: var(--white); }

/* ---------- Treffpunkt / Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.feature {
  border-top: 1px solid rgba(250, 245, 236, 0.3);
  padding-top: 1.1rem;
}
.feature h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.feature p { font-size: 0.97rem; }

.section:not(.section--red) .feature { border-top-color: var(--line); }
.section:not(.section--red) .feature p { color: var(--ink-soft); }

/* ---------- Trust / Bewertungen ---------- */
.trust {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.trust__score { text-align: center; }
.trust__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 1;
  color: var(--red);
}
.trust__stars {
  color: var(--red);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  margin-block: 0.3rem;
}
/* 4,6 von 5: fünfter Stern wird passend zur Zahl "angeschnitten" */
@supports (-webkit-background-clip: text) {
  .trust__stars {
    background: linear-gradient(90deg, var(--red) 0 92%, var(--line) 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.trust__src {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 13rem;
  margin-inline: auto;
  line-height: 1.5;
}
.trust__points { list-style: none; }
.trust__points li {
  padding: 0.7rem 0 0.7rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.trust__points li:last-child { border-bottom: none; }
.trust__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: var(--red);
  border-radius: 2px;
  opacity: 0.85;
}
.trust__points strong { color: var(--ink); font-weight: 500; }

/* ---------- Öffnungszeiten ---------- */
.hours-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 34rem;
}
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.99rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }
.hours th { font-weight: 500; color: var(--ink); width: 42%; }
.hours td { color: var(--ink-soft); }
.hours .is-closed td { color: var(--brown); font-style: italic; }
.hours-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--brown);
  line-height: 1.55;
}

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

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--red);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.6rem; }
.cta-band p {
  color: rgba(250, 245, 236, 0.88);
  max-width: 34rem;
  margin-inline: auto;
}
.cta-band .tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--cream);
  margin-block: 1.4rem 1.2rem;
  border-bottom: 3px solid rgba(250, 245, 236, 0.45);
  transition: border-color 0.2s;
}
.cta-band .tel:hover { border-color: var(--cream); }
.cta-band .btn { display: inline-block; }

/* ---------- Kontaktseite ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.contact-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-card .tel-big {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--red);
  line-height: 1.1;
  margin-block: 0.3rem 0.8rem;
}
.contact-card address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.65;
}
.contact-card ul { list-style: none; color: var(--ink-soft); }
.contact-card li { padding-block: 0.25rem; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.6rem; }
.legal h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.7rem;
}
.legal p, .legal address { color: var(--ink-soft); font-style: normal; }
.legal p + p { margin-top: 0.8rem; }

.demo-note {
  background: var(--rose);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.demo-note strong { color: var(--red); font-weight: 500; }

.placeholder {
  display: inline-block;
  background: var(--rose);
  border: 1px dashed var(--brown);
  border-radius: 6px;
  padding: 0.05rem 0.55rem;
  font-size: 0.88rem;
  color: var(--brown);
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--brown);
  color: var(--rose);
  padding-block: clamp(2.2rem, 5vw, 3.5rem) 1.4rem;
}
.site-foot a { color: var(--cream); }
.site-foot a:hover { text-decoration: underline; }
.site-foot h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.site-foot ul { list-style: none; font-size: 0.95rem; }
.site-foot li { padding-block: 0.18rem; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.foot-meta {
  border-top: 1px solid rgba(250, 245, 236, 0.25);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__tile { width: min(180px, 45vw); }
  .trust { grid-template-columns: 1fr; }
  .hours-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .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: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
    border-radius: 12px;
  }
  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); }

  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 40px; height: 40px; }
}
