@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url(fonts/nunito-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url(fonts/nunito-sans-800.woff2) format("woff2"); }

:root {
  --primary: #004695;
  --primary-50: #e0e9f2;
  --text: #1a1a1a;
  --muted: rgba(26, 26, 26, .6);
  --line: rgba(26, 26, 26, .1);
  --bg: #fff;
  --card: #fff;
  --ok: #3cb371;
  --radius: 8px;
  --maxw: 1200px;
  --bottombar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.45;
  padding-bottom: calc(var(--bottombar) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

/* ---------- Startseite ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  background: #ccc center/cover no-repeat; color: #fff; padding: 0 16px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.15) 60%, rgba(255,255,255,.6) 88%, #fff 100%);
}
.hero > * { position: relative; }
.hero-logo { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 160px; max-width: 45vw; }
.hero-text { max-width: var(--maxw); width: 100%; margin: 0 auto; text-align: center; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero p { margin: 12px auto 0; max-width: 720px; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@media (max-width: 700px) {
  .hero { min-height: 92vh; }
  .hero-text { text-align: left; padding-top: 160px; }
  .hero h1 { font-size: 30px; }
}

.home { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 32px; }
.section { margin-top: 24px; }
.section-title { font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }
.tile { display: block; text-decoration: none; color: var(--text); cursor: pointer; }
.tile-img {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #e9edf2 center/cover no-repeat;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover .tile-img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.tile-title { margin-top: 8px; font-weight: 700; font-size: 17px; line-height: 1.3; }
.tile.size-M { grid-column: span 2; }
.tile.size-M .tile-img { aspect-ratio: 16 / 9; }
@media (min-width: 901px) { .tile-img { aspect-ratio: 4 / 5; } .tile.size-M .tile-img { aspect-ratio: auto; height: calc(100% - 34px); min-height: 200px; } }

.weather-tile {
  background: linear-gradient(180deg, #4469a3 0%, #34588f 55%, #536680 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.weather-tile .wt-day { font-weight: 800; font-size: 18px; }
.weather-tile svg { width: 46px; height: 46px; }
.weather-tile .wt-temp { font-size: 16px; }
.weather-tile .wt-temp b { font-weight: 800; margin: 0 8px 0 4px; }

/* ---------- Unterseiten ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; background: #fff; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  height: 64px; padding: 0 8px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.18);
}
.topbar h1 { font-size: 22px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text); text-decoration: none; border-radius: 50%; }
.iconbtn:hover { background: rgba(0,0,0,.05); }
.iconbtn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.page { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; }
.page.wide { max-width: var(--maxw); }
.page-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.page-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.rich { overflow-wrap: anywhere; }
.rich p { margin: 0 0 .7em; }
.rich h2, .rich h3, .rich h4 { margin: 1.1em 0 .4em; font-weight: 800; }
.rich h5, .rich h6 { margin: 1em 0 .3em; font-size: 15px; font-weight: 700; }
.rich img { height: auto; border-radius: var(--radius); }
.rich iframe { max-width: 100%; width: 100%; border: 0; }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--text); border-radius: 999px; padding: 8px 18px;
  background: #fff; color: var(--text); text-decoration: none; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.dark { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.loading { display: grid; place-items: center; padding: 80px 0; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--primary-50); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fieldset-Boxen (Hotelinfo, Abendbuffet) */
.box { border: 1px solid #e3e3e3; border-radius: var(--radius); padding: 28px 20px 24px; margin: 36px 0 0; position: relative; }
.box > .legend {
  position: absolute; top: -10px; left: 16px; background: #fff; padding: 0 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: 14px;
}
.box.center > .legend { left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; text-align: right; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { border-radius: var(--radius); box-shadow: 0 1px 6px rgba(0,0,0,.15); padding: 16px; text-align: center; }
.mini-card b { display: block; font-size: 18px; }
.mini-card span { color: var(--muted); font-weight: 700; font-size: 18px; }

.dish { text-align: center; }
.dish h3 { font-size: 18px; font-weight: 800; }
.dish p { margin: 4px 0 0; color: #444; }
.oder { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); font-size: 13px; margin: 18px 0; }
.oder::before, .oder::after { content: ""; width: 40px; height: 1px; background: var(--line); }
.stickyinfo {
  position: sticky; bottom: calc(var(--bottombar) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px; margin: 24px -16px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.stickyinfo b { display: block; }

/* Listen */
.rowlist { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rowlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.rowlist a:hover { background: #fafafa; }
.rowlist svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

.cat-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.cat-head h2 { font-size: 22px; }
.cat-head svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.cat.closed .cat-head svg { transform: rotate(180deg); }
.cat.closed .cards { display: none; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { text-decoration: none; color: var(--text); display: block; }
.card .ci { aspect-ratio: 1; border-radius: var(--radius); background: #eef1f5 center/cover no-repeat; position: relative; }
.card .ccat { font-size: 13px; color: var(--muted); margin-top: 8px; }
.card .ct { font-weight: 800; font-size: 17px; line-height: 1.25; }
.card .cp { color: var(--muted); font-size: 15px; margin-top: 4px; }
.badge { position: absolute; top: 8px; left: 8px; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { border: 1px solid #1a1a1a; border-radius: 999px; padding: 6px 14px; background: #fff; cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: #1a1a1a; color: #fff; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Wochenprogramm */
.daytitle { font-size: 22px; margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 160px 1fr; gap: 18px; text-decoration: none; color: var(--text); margin-bottom: 22px; }
@media (max-width: 560px) { .event { grid-template-columns: 120px 1fr; gap: 14px; } }
.event .ei { aspect-ratio: 1; border-radius: var(--radius); background: #eef1f5 center/cover no-repeat; }
.event .ecat { font-size: 13px; color: var(--muted); }
.event h3 { font-size: 18px; line-height: 1.25; margin: 4px 0 8px; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; margin-top: 3px; }
.meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.reg { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #333; margin-top: 6px; }
.reg::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.canceled { color: #c0392b; font-weight: 800; font-size: 13px; }
.weeknav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* Wetter */
.wx-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .wx-days { grid-template-columns: repeat(2, 1fr); } }
.wx-day { border-radius: var(--radius); box-shadow: 0 1px 6px rgba(0,0,0,.12); padding: 16px; text-align: center; }
.wx-day.today { background: linear-gradient(180deg, #4469a3, #34588f); color: #fff; }
.wx-day svg { width: 48px; height: 48px; margin: 8px auto; }
.wx-day b { font-weight: 800; }

/* Leseecke */
.kiosk { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.kiosk a { text-decoration: none; color: var(--text); font-weight: 700; text-align: center; font-size: 14px; }
.kiosk .ki { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); background: #fff center/contain no-repeat; margin-bottom: 6px; }

.detail-price { font-size: 18px; font-weight: 800; margin: 6px 0 16px; }
.detail-sub { color: var(--muted); font-size: 14px; }

/* Bottombar */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--bottombar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  display: flex; justify-content: center; gap: min(14vw, 120px);
}
.bb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; min-width: 72px; }
.bb-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.notice { background: var(--primary); color: #fff; padding: 10px 16px; text-align: center; font-weight: 700; }
.notice a { color: #fff; }

/* Lightbox / Overlays */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; display: grid; place-items: end center; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 16px 16px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.sheet h2 { font-size: 20px; margin-bottom: 14px; }
