/* ==========================================================================
   Dörentruper Grill — Design Tokens
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #1d1d1b;
  --dark-2: #262624;
  --dark-3: #313130;
  --line: #38383530;
  --line-solid: #3a3a37;
  --green: #96c126;
  --green-dark: #7ba31d;
  --white: #ffffff;
  --gray: #b9b9b6;
  --gray-dim: #8a8a86;
  --cream: #f6f5f0;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 780px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--green);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top .15s ease;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 6px 18px rgba(150,193,38,0.35);
}
.btn--primary:hover { background: #a4d02c; }

.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover { background: var(--dark-2); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--dark-3);
  color: var(--dark);
}
.btn--outline-dark:hover { background: rgba(0,0,0,0.05); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; min-height: 44px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(29,29,27,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.site-header__brand img { height: 34px; width: auto; }
.site-header__brand-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.site-header__brand-text span { display: block; color: var(--green); font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em; margin-top: 3px; }

.site-header__cta {
  display: flex;
  gap: 8px;
}
.site-header__cta .btn { padding: 9px 14px; font-size: 13px; }
.site-header__cta .btn span { display: none; }

@media (min-width: 480px) {
  .site-header__cta .btn span { display: inline; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--white);
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 68%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,14,0.55) 0%, rgba(15,15,14,0.35) 30%, rgba(15,15,14,0.65) 68%, rgba(15,15,14,0.96) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 20px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__logo {
  width: 168px;
  max-width: 58vw;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.45));
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.22;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 22px;
}
.hero__meta strong { color: var(--white); }
.hero__meta .dot { color: var(--green); }
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.hero__status .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(150,193,38,0.25);
}
.hero__status.is-closed .pip { background: #e2574c; box-shadow: 0 0 0 3px rgba(226,87,76,0.22); }
.hero__status.is-closed { color: #f2a49d; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stars {
  color: var(--green);
  letter-spacing: 1px;
}

/* ==========================================================================
   Section shell
   ========================================================================== */

section { scroll-margin-top: 70px; }

.section {
  padding: 56px 0;
}
.section--dark {
  background: var(--dark);
  color: var(--white);
}
.section--cream { background: var(--cream); }

.section__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.section--dark .section__eyebrow { color: var(--green); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  margin: 0 0 14px;
  line-height: 1.22;
}

.section__lead {
  color: var(--dark-3);
  max-width: 56ch;
  margin: 0 0 28px;
}
.section--dark .section__lead { color: var(--gray); }

/* ==========================================================================
   Speisekarte / PDF viewer
   ========================================================================== */

.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.menu-viewer {
  position: relative;
  background: var(--dark-2);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-viewer__pages {
  max-height: 78vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.menu-viewer__page {
  position: relative;
  width: 100%;
  max-width: 620px;
  flex-shrink: 0;
  background: #141412;
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.menu-viewer__page canvas { width: 100%; height: auto; display: block; }
.menu-viewer__page-num {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 999px;
}
.menu-viewer__placeholder {
  aspect-ratio: 595 / 842;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dim);
  font-size: 13px;
}

.menu-viewer__status {
  padding: 60px 20px;
  text-align: center;
  color: var(--gray);
}
.menu-viewer__status .spinner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--green);
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.menu-hint {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--gray-dim);
}
.menu-hint a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

noscript .menu-noscript {
  display: block;
  background: var(--dark-2);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--gray);
}

/* ==========================================================================
   Öffnungszeiten
   ========================================================================== */

.hours-card {
  background: var(--dark-2);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--gray);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li[data-today="true"] {
  color: var(--white);
  font-weight: 700;
}
.hours-list li[data-today="true"] .hours-day::after {
  content: '· heute';
  color: var(--green);
  font-weight: 700;
  margin-left: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hours-list .closed { color: var(--gray-dim); }

/* ==========================================================================
   Kontakt cards
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #e7e5db;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card--dark {
  background: var(--dark-2);
  border-color: var(--line-solid);
  color: var(--white);
}
.card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(150,193,38,0.12);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card--dark .card__icon { color: var(--green); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0 0 16px; color: var(--dark-3); font-size: 14.5px; }
.card--dark p { color: var(--gray); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #141412;
  color: var(--gray);
  padding: 44px 0 28px;
  font-size: 13.5px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-solid);
  margin-bottom: 20px;
}
.site-footer__brand img { height: 30px; margin-bottom: 10px; }
.site-footer__brand p { margin: 2px 0; }
.site-footer__col h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 2px; }
.site-footer__col a {
  text-decoration: none;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 0;
}
.site-footer__col a:hover { color: var(--green); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-dim);
  font-size: 12.5px;
}
.site-footer__bottom a { color: var(--gray-dim); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--green); }
.site-footer__legal { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.site-footer__legal a,
.site-footer__legal button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 0;
}
.site-footer__credit a { color: var(--gray-dim); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credit a:hover { color: var(--green); }

/* ==========================================================================
   Sticky mobile CTA bar
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,20,18,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(0);
  transition: transform .25s ease;
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar .btn { flex: 1; }

@media (min-width: 860px) {
  .mobile-bar { display: none; }
}

body.has-mobile-bar { padding-bottom: 76px; }
@media (min-width: 860px) {
  body.has-mobile-bar { padding-bottom: 0; }
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid var(--line-solid);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text { flex: 1 1 320px; font-size: 13.5px; color: var(--gray); }
.cookie-banner__text strong { color: var(--white); }
.cookie-banner__text a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10,10,9,0.6);
  padding: 0;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__panel {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--dark-2);
  color: var(--white);
  border-radius: 18px 18px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
@media (min-width: 640px) {
  .cookie-modal { align-items: center; padding: 20px; }
  .cookie-modal__panel { border-radius: 18px; max-height: 82vh; }
}
.cookie-modal__title { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; }
.cookie-modal__desc { color: var(--gray); font-size: 13.5px; margin: 0 0 20px; }

.cookie-cat {
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-cat__head h3 { font-size: 15px; margin: 0; }
.cookie-cat__desc { font-size: 13px; color: var(--gray); margin: 8px 0 0; }

.switch {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  flex: none;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute; inset: 0;
  background: #4a4a45;
  border-radius: 999px;
  transition: background .15s ease;
}
.switch__track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .15s ease;
}
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::before { transform: translateX(18px); }
.switch input:disabled + .switch__track { opacity: 0.55; }

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.cookie-modal__actions .btn { flex: 1 1 auto; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  background: var(--cream);
  min-height: 100vh;
}
.legal__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 90px;
}
.legal__content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  margin: 0 0 6px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  margin-bottom: 22px;
}
.legal__content h2 {
  font-size: 18px;
  margin: 32px 0 10px;
}
.legal__content h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.legal__content p, .legal__content li { color: var(--dark-3); font-size: 14.5px; }
.legal__content a { color: var(--green-dark); font-weight: 600; }
.legal__updated { color: var(--gray-dim); font-size: 13px; margin-top: -4px; }
.legal__content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.legal__content th, .legal__content td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e0d5; }
.legal__todo {
  background: #fff4e0;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: #6b4e10;
  margin: 14px 0;
}
