/* Theme tokens — body.theme-* overrides at end of file */
:root {
  --bg-page: #f8f3e8;
  --color-text: #222;
  --top-nav-bg: #ffffffef;
  --border-subtle: #eadfcb;
  --color-accent: #b22222;
  --color-accent-hover: #8d1b1b;
  --color-primary: #1f7a3b;
  --color-primary-hover: #17602f;
  --card-bg: #fff;
  --footer-bg: rgb(254, 210, 85);
  --footer-text: #1f1f1f;
  --hero-mobile-fallback: #111;
  --card-radius: 12px;
  --theme-bg-image: none;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  background-color: var(--bg-page);
  background-image: var(--theme-bg-image);
  color: var(--color-text);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--top-nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
}

/* Anchor links should not hide behind sticky nav */
#om,
#artikler,
#aabningstider,
#faq,
#top {
  scroll-margin-top: 78px;
}

.top-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.logo span {
  line-height: 1.1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.nav-links a {
  margin-left: 0;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 1001;
}

.menu-backdrop {
  display: none;
}

.hero {
  min-height: 56vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--hero-image, url("images/hero.jpg"));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 46px;
  margin: 0 0 10px;
}

.hero p {
  font-size: 20px;
  margin: 0;
}

.hero-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-type-chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.btn-order {
  background: var(--color-primary);
  font-size: 20px;
  font-weight: bold;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn-order:hover {
  background: var(--color-primary-hover);
}

.btn-card-link {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
}

.btn-map {
  margin-top: 10px;
  background: var(--color-accent);
}

.btn-map:hover {
  background: var(--color-accent-hover);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.headline {
  color: var(--color-accent);
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
  transform: scale(1);
}

.card:hover img {
  transform: scale(1.06);
}

.card img:hover {
  transform: scale(1.06);
}

.card:focus-within img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card img {
    transition: none;
  }
}

.card-content {
  padding: 14px;
  position: relative;
  z-index: 2;
}

.card--linked {
  cursor: pointer;
}

.card-link-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article {
  margin-top: 26px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px;
}

.article h2 {
  color: var(--color-accent);
  margin-top: 0;
}

.article h3 {
  color: var(--color-primary);
  margin-bottom: 6px;
}

.article p {
  line-height: 1.65;
}

.managed-section-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0 12px;
  border: 1px solid var(--border-subtle);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 20px;
}

.site-footer a {
  color: var(--footer-text);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.footer-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.footer-text {
  margin: 0;
  line-height: 1.5;
}

.hours-block {
  margin-top: 6px;
}

.hours-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.hours-title {
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin: 0 0 6px;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 14px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hours-days {
  font-weight: 600;
}

.hours-time {
  white-space: nowrap;
  opacity: 0.95;
}

.zip-note {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.95;
}

.zip-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

@media (min-width: 720px) {
  .hours-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }
}

.footer-link {
  color: var(--footer-text);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 12px;
  opacity: 0.9;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.cookie-banner-title {
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text);
}

.cookie-banner-text a {
  color: var(--color-text);
  text-decoration: underline;
}

.cookie-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-text);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner-more {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.95;
}

.cookie-banner-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.cookie-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-accept {
  background: var(--color-primary);
  color: #fff;
}

.cookie-accept:hover {
  background: var(--color-primary-hover);
}

.meal4u-logo-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}

.meal4u-logo {
  height: 36px;
  width: auto;
  display: block;
}

.map-frame {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
}

.location-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  align-items: start;
}

.location-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.location-hours {
  padding-left: 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.location-hours-card {
  margin-top: 0;
  padding: 16px;
}

.location-hours-title {
  margin: 0 0 8px;
  color: var(--color-accent);
}

.closure-notice {
  margin: 0 0 20px;
}

.closure-notice-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: linear-gradient(160deg, #fff8e6 0%, #ffefd0 100%);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.closure-notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  font-family: system-ui, sans-serif;
}

.closure-notice-body {
  min-width: 0;
  flex: 1;
}

.closure-notice-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.closure-notice-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1a1a1a;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    position: fixed;
    right: 18px;
    top: 14px;
  }

  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
  }

  .menu-backdrop.open {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    right: 18px;
    top: 62px;
    width: min(220px, calc(100vw - 36px));
    max-height: min(60vh, calc(100vh - 84px));
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    gap: 6px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    width: auto;
    text-align: left;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 7px;
  }

  .hero {
    min-height: 44vh;
    background-attachment: scroll;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--hero-mobile-fallback);
  }

  .hero-inner {
    padding: 34px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 18px;
  }

  .logo span {
    max-width: min(68vw, 320px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(14px, 3.4vw, 18px);
    line-height: 1.2;
  }

  .hero-logo {
    width: 58px;
    height: 58px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-hours {
    padding-left: 0;
    border-left: 0;
  }

  .map-frame iframe {
    height: 160px;
  }

  .closure-notice-inner {
    padding: 14px;
    gap: 12px;
  }

  .closure-notice-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .closure-notice-text {
    font-size: 1rem;
  }
}

/* Temaer ud fra Meal4U restaurant `types` + admin `themes` (body class theme-<slug>) */
body.theme-default {
  --bg-page: #f7f5f3;
  --color-accent: #4a5568;
  --color-accent-hover: #2d3748;
  --color-primary: #2b6cb0;
  --color-primary-hover: #2c5282;
  --border-subtle: #e2e8f0;
  --footer-bg: #e2e8f0;
  --footer-text: #1a202c;
  --top-nav-bg: rgba(255, 255, 255, 0.96);
  --card-radius: 12px;
  --theme-bg-image:
    radial-gradient(ellipse 85% 55% at 12% -8%, rgba(43, 108, 176, 0.11) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 96% 102%, rgba(74, 85, 104, 0.09) 0%, transparent 48%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Italiensk: oliven + terracotta + lys travertin (tidligere kun :root — for tæt på andre temaer) */
body.theme-italian {
  --bg-page: #f2efe6;
  --color-text: #1c1917;
  --color-accent: #c2410c;
  --color-accent-hover: #9a3412;
  --color-primary: #4d7c0f;
  --color-primary-hover: #3f6212;
  --border-subtle: #d4cfc0;
  --card-bg: #fffdf8;
  --footer-bg: #e7e2d6;
  --footer-text: #292524;
  --top-nav-bg: rgba(253, 252, 250, 0.96);
  --hero-mobile-fallback: #3f3f36;
  --card-radius: 16px;
  --theme-bg-image:
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(77, 124, 15, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(194, 65, 12, 0.07) 0%, transparent 50%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

/* Indisk: dyb rubin + saffron / meget adskilt fra italiensk oliven-look */
body.theme-indian {
  --bg-page: #fff7ed;
  --color-text: #1c1410;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-primary: #7f1d1d;
  --color-primary-hover: #671818;
  --border-subtle: #fed7aa;
  --card-bg: #fffdfa;
  --footer-bg: #4a0f14;
  --footer-text: #fde68a;
  --top-nav-bg: rgba(255, 252, 248, 0.97);
  --hero-mobile-fallback: #1c0a0a;
  --card-radius: 10px;
  --theme-bg-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(217, 119, 6, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse 70% 55% at 0% 80%, rgba(127, 29, 29, 0.09) 0%, transparent 50%),
    repeating-linear-gradient(90deg, rgba(254, 215, 170, 0.22) 0 1px, transparent 1px 36px);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.theme-indian .hours-block {
  border-top-color: rgba(255, 255, 255, 0.18);
}

body.theme-indian .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.22);
}

body.theme-asian {
  --bg-page: #faf7f8;
  --color-accent: #a61c3d;
  --color-accent-hover: #851830;
  --color-primary: #1a5f4a;
  --color-primary-hover: #154a3a;
  --border-subtle: #e8dce0;
  --card-bg: #fffafb;
  --footer-bg: #fdeef2;
  --footer-text: #1a1a1a;
  --top-nav-bg: rgba(255, 250, 252, 0.96);
  --card-radius: 14px;
  --theme-bg-image:
    radial-gradient(ellipse 95% 65% at 0% 15%, rgba(166, 28, 61, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 75% 50% at 100% 90%, rgba(26, 95, 74, 0.09) 0%, transparent 48%),
    linear-gradient(165deg, #faf7f8 0%, #f4e8ee 100%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.theme-mexican {
  --bg-page: #fdf9f3;
  --color-accent: #c45c26;
  --color-accent-hover: #9e4a1e;
  --color-primary: #1d6f42;
  --color-primary-hover: #185a37;
  --border-subtle: #e8dcc8;
  --card-bg: #fffaf5;
  --footer-bg: #f4d03f;
  --footer-text: #2c1810;
  --top-nav-bg: rgba(255, 253, 248, 0.96);
  --card-radius: 18px;
  --theme-bg-image:
    repeating-linear-gradient(90deg, rgba(196, 92, 38, 0.04) 0 1px, transparent 1px 48px),
    conic-gradient(from 200deg at 105% -5%, rgba(244, 208, 63, 0.18) 0deg 48deg, transparent 48deg 360deg),
    linear-gradient(185deg, #fff9f2 0%, #fdf3e4 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-burger {
  --bg-page: #faf6f0;
  --color-accent: #8b4513;
  --color-accent-hover: #6d370f;
  --color-primary: #e67e22;
  --color-primary-hover: #ca6f1d;
  --border-subtle: #e5d9cc;
  --card-bg: #fffdfa;
  --footer-bg: #ffd7a8;
  --footer-text: #2b1f14;
  --top-nav-bg: rgba(255, 252, 248, 0.96);
  --card-radius: 8px;
  --theme-bg-image:
    radial-gradient(circle at 20% 30%, rgba(230, 126, 34, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 92% 75%, rgba(139, 69, 19, 0.08) 0%, transparent 38%),
    repeating-linear-gradient(-12deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 20px);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

body.theme-middle-eastern {
  --bg-page: #fdfaf5;
  --color-accent: #6b3d2e;
  --color-accent-hover: #563125;
  --color-primary: #bc6c25;
  --color-primary-hover: #9e5a1f;
  --border-subtle: #e5ddd4;
  --card-bg: #fffef9;
  --footer-bg: #e9c46a;
  --footer-text: #1f1a15;
  --top-nav-bg: rgba(255, 252, 248, 0.96);
  --card-radius: 12px;
  --theme-bg-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(188, 108, 37, 0.12) 0%, transparent 58%),
    repeating-linear-gradient(
      45deg,
      rgba(107, 61, 46, 0.04) 0,
      rgba(107, 61, 46, 0.04) 1px,
      transparent 1px,
      transparent 16px
    ),
    linear-gradient(180deg, #fdfaf5 0%, #f5efe3 100%);
  font-family: Cambria, Georgia, "Times New Roman", serif;
}
