/* 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; }

/* Countdown */
.countdown { width: 100%; }
.cd-title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-style: italic;
  color: var(--gold-light);
}
.cd-title-sub { font-style: italic; }

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2.5vw, 18px);
  max-width: 560px;
  margin: 0 auto;
}
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 3vw, 18px) 4px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.cd-num {
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: bold;
  line-height: 1.1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  margin-top: 4px;
  font-size: clamp(.7rem, 2.6vw, 1rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
}
.cd-date {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  color: var(--cream);
}
.cd-open {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-style: italic;
  color: var(--gold-light);
}

/* Anzeige */
.ad { width: 100%; max-width: 560px; }
.ad 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 .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; }
  .cd-box { background: none; border-color: #000; box-shadow: none; }
  .cd-num, .cd-label, .cd-title, .cd-date { 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); }
