/* Countdown-Seite Wirtshaus am Hasselbach – ohne externe Ressourcen */
:root {
  --bg: #1c120e;          /* muss zu img/logo*.jpg passen (Fallback) */
  --gold: #e3ad47;
  --gold-light: #f1d48f;
  --cream: #f3e7cf;
  --red: #7a1414;
  --red-dark: #4e0d0d;
  --serif: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

a { color: var(--gold); }
a:hover, a:focus-visible { color: var(--gold-light); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo { margin: 0; width: 100%; max-width: 680px; }
.logo img { display: block; width: 100%; height: auto; margin: 0 auto; }

/* Statusanzeige (statt Countdown) */
.status { width: 100%; }
.status-main {
  margin: 0;
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--gold-light);
}
.status-sub {
  margin: 8px 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--cream);
}

/* Foto */
.photo { width: 100%; max-width: 720px; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

/* Button Speisekarte */
.menu-link { margin: 0; }
.button {
  display: inline-block;
  padding: 14px 34px;
  background: #a7781d;
  color: #fff;
  font-style: italic;
  font-size: 1.25rem;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background .15s ease;
}
.button:hover, .button:focus-visible { background: #8f6414; color: #fff; }
.button-note { font-size: .85em; opacity: .85; }

/* Kontakt */
.contact { font-style: normal; font-size: 1.1rem; }
.contact strong { font-size: 1.25rem; color: var(--gold-light); }

/* Öffnungszeiten */
.hours { margin-top: -8px; }
.hours h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: bold; color: var(--gold-light); }
.hours p { margin: 0 0 8px; font-size: 1.1rem; }
.hours-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 1.1rem; }
.hours-list li { list-style: none; margin: 0; padding: 0; }
.hours-list li::marker { content: ''; }
.hours .hours-note { font-style: italic; color: var(--gold-light); }

/* Footer */
.footer {
  flex-shrink: 0;
  padding: 18px 16px 24px;
  border-top: 1px solid rgba(227, 173, 71, .35);
  font-size: .95rem;
}
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.sep { margin: 0 .6em; color: var(--gold); font-size: .7em; vertical-align: middle; }

/* Rechtsseiten */
.legal { max-width: 800px; margin: 0 auto; padding: 24px 16px 40px; text-align: left; flex: 1 0 auto; }
.legal-logo { display: block; width: 100%; max-width: 320px; margin: 0 auto 24px; }
.legal-logo img { display: block; width: 100%; height: auto; }
.legal h1 { font-size: 2rem; color: var(--gold-light); text-align: center; margin: 0 0 24px; }
.legal h2 { font-size: 1.35rem; color: var(--gold); margin: 32px 0 8px; }
.legal h3 { font-size: 1.1rem; color: var(--gold-light); margin: 22px 0 6px; }
.legal p { margin: 0 0 14px; }
.legal address { font-style: normal; margin: 0 0 14px; }
.legal .back { text-align: center; margin-top: 32px; }

/* weniger Bewegung / Ausdruck */
@media print {
  body { background: #fff; color: #000; }
  .status-main, .status-sub { color: #000; }
}

/* Speisekarten-Viewer */
.viewer-page { text-align: center; }
.viewer-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid rgba(227, 173, 71, .35);
}
.viewer-bar a { text-decoration: none; }
.viewer-title { font-size: 1.15rem; font-style: italic; color: var(--gold-light); }
.viewer-back { min-width: 5.5em; text-align: left; }
.viewer-tools { min-width: 5.5em; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.viewer-tools button, .viewer-tools a {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #a7781d; color: #fff; border: 1px solid var(--gold);
  font: inherit; font-size: 1.2rem; line-height: 1; text-decoration: none; cursor: pointer;
}
.viewer-tools a { font-size: .95rem; }
.viewer-tools button:disabled { opacity: .4; cursor: default; }
.viewer-tools button:hover:not(:disabled), .viewer-tools a:hover { background: #8f6414; }

.viewer-main { flex: 1 0 auto; width: 100%; padding: 16px 0 24px; }
.viewer-status { padding: 24px 16px; }
.viewer-pages { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.viewer-page-wrap {
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  position: relative;
}
.viewer-page-wrap canvas { display: block; }
.viewer-pages:not(.is-zoomed) .viewer-page-wrap { max-width: calc(100% - 16px); }
