:root {
  --blue: #1e88e5;
  --blue-dark: #0b3d66;
  --blue-light: #d6e9ff;
  --teal: #26a69a;
  --teal-light: #d3f1ec;
  --amber: #ffb300;
  --amber-light: #ffe7b8;
  --bg: #f6fafd;
  --surface: #ffffff;
  --surface-2: #edf3f8;
  --text: #16222e;
  --muted: #5a6b7b;
  --outline: #d7e2ec;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16, 34, 50, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 34, 50, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }

/* ---------- Kopf ---------- */
.demo-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}

.demo-back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 10px;
}

.demo-back-link:hover { color: var(--blue-dark); }

.demo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.demo-title h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.demo-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}

.demo-lead code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

/* ---------- Bühne ---------- */
.demo-stage {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Handy-Rahmen ---------- */
.phone-frame {
  position: sticky;
  top: 20px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 40px;
  background: #101418;
  box-shadow: 0 24px 60px rgba(16, 34, 50, 0.28);
}

.app {
  border-radius: 30px;
  background: var(--bg);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 34, 50, 0.12);
}

.app-bar h1 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
.icon-btn[hidden] { visibility: hidden; display: inline-block; }

.content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 660px;
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline);
}

.menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.menu-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.badge.big { width: 60px; height: 60px; font-size: 28px; border-radius: 16px; }

.card-text { flex: 1; min-width: 0; }
.card-title { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chev { color: var(--blue); font-size: 22px; font-weight: 700; }

.action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface-2);
}

.action-card.primary { background: var(--blue-light); color: var(--blue-dark); }
.action-card.tertiary { background: var(--amber-light); color: #4a3800; }

.info-card .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.info-card .value { font-size: 14px; word-break: break-word; }
.info-card .value a { word-break: break-all; }

.level-title {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 6px 0 4px;
}

.detail-header h2 {
  margin: 0;
  font-size: 20px;
}

.muted { color: var(--muted); font-size: 13px; }

/* ---------- Bilder ---------- */
.image-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline);
}

.image-card img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.image-card figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Tags ---------- */
.tags-card .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.tag { padding: 6px 0; border-top: 1px solid var(--surface-2); }
.tag:first-of-type { border-top: 0; padding-top: 0; }
.tag strong { font-size: 13.5px; }
.tag-items { list-style: none; padding: 0; margin: 6px 0 0; }
.tag-items li {
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--surface-2);
}
.tag-items li:last-child { border-bottom: 0; }
.tag .price { color: var(--blue-dark); font-weight: 700; float: right; }

/* ---------- Kalender (Veranstaltungen) ---------- */
.calendar-card {
  padding: 12px 12px 8px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.icon-btn.cal-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--blue);
  font-size: 22px;
  border-radius: 10px;
}

.icon-btn.cal-nav:hover { background: var(--blue-light); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--outline);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.cal-day:hover { background: var(--surface-2); }

.cal-empty {
  background: transparent;
  border: 0;
  cursor: default;
}

.cal-empty:hover { background: transparent; }

.cal-has-events {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 800;
}

.cal-today {
  border: 2px solid var(--blue);
}

.cal-selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.cal-selected .cal-dot { background: #fff; }

.cal-day-num { line-height: 1; }

.cal-dots {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.calendar-foot {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.cal-today-btn {
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.cal-today-btn:hover { background: var(--blue-light); }

/* ---------- Ladeschirm / Fehler ---------- */
.loading, .error {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.error { color: #c62828; }

/* ---------- Info-Spalte ---------- */
.demo-info {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}

.demo-info h2 { margin: 0 0 12px; font-size: 20px; }
.demo-info p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.demo-info code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.demo-info ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.demo-info li { margin-bottom: 4px; }
.demo-info strong { color: var(--text); }
.demo-hint {
  margin-top: 12px !important;
  padding: 10px 12px;
  background: var(--amber-light);
  color: #4a3800 !important;
  border-radius: 12px;
  font-size: 13px !important;
  font-weight: 600;
}

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .demo-stage { grid-template-columns: 1fr; }
  .phone-frame { position: static; }
  .content { max-height: none; }
}
