/* ============================================================================
   components.css – Buttons, Header/Nav, Footer, Hero, Karten, Menü, Formular
   ========================================================================== */

/* --- Buttons --- */
.btn {
  --btn-bg: var(--wood); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm);
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .95em 1.5em; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { background: var(--wood-900); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: .6em 1em; font-size: var(--fs-xs); }
.btn--ghost { background: transparent; color: var(--wood); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--wood); color: #fff; border-color: var(--wood); }
.btn--korn { --btn-bg: var(--korn); color: #2A1E08; }
.btn--korn:hover { background: #96691f; color: #fff; }
.section--wood .btn--ghost { color: #F3E9DA; border-color: rgba(255,255,255,.35); }
.section--wood .btn--ghost:hover { background: #F3E9DA; color: var(--wood-900); }

/* --- Badge (Öffnungsstatus) --- */
.badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--fs-xs); font-weight: 700; padding: .4em .8em;
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
}
.badge__dot { width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }
.badge--open { color: var(--open); background: #EAF3E4; border-color: #CDE3C0; }
.badge--closed { color: var(--closed); background: #F6E6E2; border-color: #E7C9C1; }
@media (prefers-reduced-motion: no-preference) {
  .badge--open .badge__dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container-wide); margin-inline: auto; padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__logo { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand__sub { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list { list-style: none; padding: 0; display: flex; gap: 1.1rem; align-items: center; }
.primary-nav__list a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .35em 0; position: relative;
}
.primary-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.1em; height: 2px;
  background: var(--korn); transition: right var(--t) var(--ease);
}
.primary-nav__list a:hover::after, .primary-nav__list a[aria-current="page"]::after { right: 0; }
.primary-nav__meta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }

@media (max-width: 60rem) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 22rem);
    background: var(--paper); border-left: 1px solid var(--border);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 5rem 1.6rem 2rem; gap: 1rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--t) var(--ease);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .primary-nav__list a { padding: .7em 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .primary-nav__list a::after { display: none; }
  .primary-nav__meta { flex-direction: column; align-items: stretch; gap: .8rem; margin-top: .6rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

/* --- Hero --- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--wood-900); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(24,17,10,.15) 0%, rgba(24,17,10,.30) 40%, rgba(24,17,10,.78) 100%); }
/* Video nur ab Tablet und nur wenn Bewegung erwünscht; sonst bleibt das Foto (LCP) */
@media (max-width: 60rem) { .hero__video { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero__content { position: relative; z-index: 2; color: #FBF3E6; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__content .container { display: grid; gap: 1.1rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero__lead { font-size: var(--fs-lead); color: #F0E6D6; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --- Section-Kopf --- */
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: .7rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* --- Info-/Öffnungszeiten-Objekt --- */
.hours-card {
  display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.hours-card__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.hours-card__time { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); color: var(--wood); font-weight: 600; }
.hours-card__note { font-size: var(--fs-sm); color: var(--text-muted); }
.status-line { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* --- Karten / Features --- */
.cards { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.card__media img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .5rem; }
.card__body h3 { font-size: 1.25rem; }
.card__body p { color: var(--text-muted); font-size: var(--fs-sm); }

/* --- Split (Story: Bild + Text) --- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.split__text { display: grid; gap: 1rem; }

/* --- Menükarte --- */
.menu { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.menu-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.3rem,3vw,2rem); box-shadow: var(--shadow-sm); }
.menu-group__title { font-size: 1.4rem; color: var(--wood); display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.menu-group__title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.menu-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.menu-list li { display: flex; align-items: baseline; gap: .5rem; justify-content: space-between; }
.menu-list .item { flex: 0 1 auto; }
.menu-list .dots { flex: 1 1 auto; align-self: stretch; border-bottom: 1px dotted var(--border-strong); transform: translateY(-.25em); min-width: 1rem; }
.menu-list .price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.menu-list .item--add { color: var(--text-muted); font-size: var(--fs-sm); padding-left: 1rem; }
.menu-list .item--add .item::before { content: ""; }
.menu-highlight { background: var(--korn-100); border: 1px solid #E4CE9D; border-radius: var(--r-lg); padding: clamp(1.3rem,3vw,2rem); display: grid; gap: .6rem; }
.menu-highlight__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--wood); font-weight: 600; }

/* --- Instagram-Kacheln (statisch) --- */
.insta-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.insta-grid a { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.insta-grid a:hover img { transform: scale(1.05); }

/* --- Formular --- */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.form__row { display: grid; gap: .4rem; }
.form label { font-weight: 700; font-size: var(--fs-sm); }
.form input, .form textarea {
  font: inherit; padding: .8em 1em; border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--wood); }
.form textarea { min-height: 8rem; resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { font-size: var(--fs-xs); color: var(--text-muted); }
.form-note { padding: 1em 1.2em; border-radius: var(--r); font-size: var(--fs-sm); }
.form-note--ok { background: #EAF3E4; color: #2F5424; border: 1px solid #CDE3C0; }
.form-note--err { background: #F6E6E2; color: #7A2A20; border: 1px solid #E7C9C1; }

/* --- Footer --- */
.site-footer { background: var(--wood-900); color: #E8DBC8; margin-top: var(--section-y); }
.site-footer a { color: #F0E4D2; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
  max-width: var(--container-wide); margin-inline: auto; padding: clamp(2.5rem,5vw,4rem) var(--gutter);
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,14rem),1fr));
}
.footer-h { font-size: 1.05rem; color: #FBF3E6; margin-bottom: .8rem; font-family: var(--font-display); font-weight: 600; }
.footer-claim { color: #CBB89E; font-size: var(--fs-sm); margin-top: .8rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-address { font-style: normal; line-height: 1.7; font-size: var(--fs-sm); }
.footer-hours { font-weight: 700; }
.footer-hours-badge { margin: .6rem 0; }
.footer-note, .footer-links a { font-size: var(--fs-sm); }
.footer-note { color: #CBB89E; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem var(--gutter); max-width: var(--container-wide); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: #B8A488;
}
.site-footer__legal nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* --- Diverse --- */
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .4em .9em; font-size: var(--fs-sm); }
.bibel { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.7rem); line-height: 1.4; color: var(--wood); border-left: 3px solid var(--korn); padding-left: 1.2rem; }
.iban { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; background: var(--paper-2); padding: .8em 1em; border-radius: var(--r); border: 1px solid var(--border); word-break: break-word; }
