:root {
  color-scheme: light;
  --ink: #102242;
  --muted: #61708b;
  --line: #d9e2ef;
  --paper: #f4f8ff;
  --panel: #ffffff;
  --red: #d71920;
  --red-dark: #9d1118;
  --gold: #f3c64e;
  --green: #14806a;
  --blue: #174f9a;
  --blue-dark: #0b2c66;
  --sky: #eaf2ff;
  --shadow: 0 18px 55px rgba(16, 34, 66, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    "Trebuchet MS", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 79, 154, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 79, 154, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 34px;
  min-height: 270px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 44, 102, 0.98), rgba(23, 79, 154, 0.88)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.15) 18px 22px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 4px 0 rgba(215, 25, 32, 0.45);
}

.intro {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.6;
}

.session-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: auto;
  min-height: auto;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.session-badge span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 900;
}

.session-badge strong {
  display: block;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

.toolbar,
.spotlight,
.notice,
.content-grid {
  margin-top: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.search-box span {
  font-size: 0.82rem;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 24, 36, 0.14);
}

.filter-group,
.month-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button,
.month-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.month-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.spotlight {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(215, 25, 32, 0.92), rgba(157, 17, 24, 0.98)),
    var(--red);
  color: #fff;
  box-shadow: var(--shadow);
}

.spotlight h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.spotlight p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.notice {
  padding: 18px 20px;
  border: 2px solid rgba(215, 25, 32, 0.26);
  border-left: 9px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(215, 25, 32, 0.1), rgba(255, 244, 209, 0.78)),
    #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 10px 26px rgba(16, 34, 66, 0.08);
  line-height: 1.55;
  font-size: 1.05rem;
}

.notice strong {
  margin-right: 6px;
  color: var(--red-dark);
  font-weight: 950;
}

.content-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.month-nav {
  position: sticky;
  top: 16px;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.list-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.list-heading h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.list-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(21, 23, 25, 0.08);
}

.event-card[data-kind="Zug"] {
  border-left-color: var(--red);
}

.event-card[data-kind="Intern"] {
  border-left-color: var(--green);
}

.event-card[data-kind="Auftritt"] {
  border-left-color: var(--gold);
}

.date-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-dark);
  text-align: center;
}

.date-tile strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.date-tile span {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: var(--blue-dark);
}

.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.performance-badge {
  display: inline-grid;
  align-items: center;
  min-height: 34px;
  margin-top: 10px;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff4d1;
  color: #7a5500;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(214, 161, 60, 0.35);
}

.card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.tag {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.travel-tag {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff4d1;
  color: #73570d;
  font-size: 0.78rem;
  font-weight: 900;
}

.bus-badge {
  justify-self: end;
  display: inline-grid;
  min-height: 34px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(215, 25, 32, 0.24);
}

.route-link {
  display: inline-grid;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.event-card[data-kind="Zug"] .tag {
  background: rgba(215, 25, 32, 0.11);
  color: var(--red-dark);
}

.event-card[data-kind="Intern"] .tag {
  background: rgba(20, 128, 106, 0.12);
  color: #0d614f;
}

.event-card[data-kind="Auftritt"] .tag {
  background: rgba(243, 198, 78, 0.22);
  color: #725612;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 680px);
    padding-top: 12px;
  }

  .hero-panel,
  .toolbar,
  .spotlight,
  .content-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 24px;
    min-height: 360px;
  }

  .session-badge {
    width: fit-content;
    padding: 12px 14px;
  }

  .session-badge strong {
    font-size: 1.38rem;
  }

  .toolbar,
  .spotlight {
    align-items: stretch;
  }

  .content-grid {
    gap: 14px;
  }

  .month-nav {
    position: static;
    flex-direction: row;
  }

  .event-card {
    gap: 12px;
  }

  .date-tile {
    width: 88px;
  }

  .tag {
    justify-self: start;
  }

  .card-actions {
    justify-items: start;
  }
}
