/* Shared by interactive and static pages. The colours of the theme come from MudBlazor. */
html, body { margin: 0; background: #f5f7fa; color: #1b2430; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; }
h1 { font-size: 1.7rem; font-weight: 600; line-height: 1.25; margin: 0; }
h1:focus { outline: none; }
a { color: #1f4e79; }

/* static pages */
.oeffentlich { max-width: 440px; margin: 0 auto; padding: 24px 16px; }
.oeffentlich > header { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 600; color: #1f4e79; margin: 16px 0 24px; }
.oeffentlich > main { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgb(27 36 48 / .18); }
.oeffentlich h1 { margin-bottom: 16px; }
.oeffentlich form { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.oeffentlich label { font-size: 1rem; margin-top: 8px; }
.oeffentlich input { font: inherit; padding: 13px 14px; border: 1px solid #8895a7; border-radius: 8px; background: #fff; color: inherit; }
.oeffentlich input:focus { outline: 2px solid #1f4e79; border-color: transparent; }
.oeffentlich button, .knopf { font: inherit; font-weight: 600; padding: 13px 20px; margin-top: 16px; border: 0; border-radius: 8px; background: #1f4e79; color: #fff; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.oeffentlich button:hover, .knopf:hover { background: #173a5a; }
.oeffentlich button:focus-visible, .knopf:focus-visible { outline: 3px solid #8fc1ee; }
.fehler { background: #fdecea; color: #8c1d18; padding: 12px 14px; border-radius: 8px; }

/* connection lost */
#components-reconnect-modal { border: 0; border-radius: 8px; padding: 24px 28px; max-width: 420px; font-size: 1.1rem; box-shadow: 0 8px 30px rgb(0 0 0 / .3); }
#components-reconnect-modal::backdrop { background: rgb(27 36 48 / .45); }
#components-reconnect-modal p { display: none; margin: 0 0 12px; }
#components-reconnect-modal button { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 8px; background: #1f4e79; color: #fff; }
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible { display: block; }

/* interactive pages */
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.kopfzeile h1 { margin-right: auto; }
.karte { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgb(27 36 48 / .16); margin-bottom: 16px; overflow: hidden; }
.karte > .titel { padding: 10px 16px; background: #eaeff5; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-weight: 600; font-size: 1.12rem; }
.karte > .titel small { font-weight: 400; font-size: 1rem; }
.karte > .inhalt { padding: 16px; }
.zeile { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 16px; border-top: 1px solid #e1e6ed; }
.zeile.mit-auswahl { grid-template-columns: 64px minmax(0, 1fr) 260px 48px; }
.zeile .zeit { font-variant-numeric: tabular-nums; }
.zeile.entfaellt { opacity: .6; text-decoration: line-through; }
.gruen { color: #3f7a1c; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.marke { display: inline-block; font-size: .9rem; padding: 1px 10px; border-radius: 12px; background: #e6ebf2; color: #2b3747; white-space: nowrap; }
.marke.sing { background: #dcebf9; color: #134f86; }
.marke.offen { background: #fde7c3; color: #7a4700; }
.marke.warn { background: #fdecea; color: #8c1d18; }
.marke.ok { background: #dff3e6; color: #155c34; }
.leer { color: #4a5666; padding: 16px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
table.liste { width: 100%; border-collapse: collapse; }
table.liste th, table.liste td { text-align: left; padding: 9px 12px; border-top: 1px solid #e1e6ed; vertical-align: top; }
table.liste th { font-weight: 600; background: #eaeff5; border-top: 0; }
table.liste td.zahl, table.liste th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.liste tr.abgesagt td { color: #6b7686; text-decoration: line-through; }
.breit { overflow-x: auto; }
.kachel { text-align: left; width: 100%; border: 0; font: inherit; color: inherit; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgb(27 36 48 / .16); padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.kachel:hover { background: #f0f5fb; }
.kachel:focus-visible { outline: 3px solid #8fc1ee; }
.kachel b { font-size: 1.6rem; min-width: 44px; text-align: center; }

/* month calendar */
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #d5dce6; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgb(27 36 48 / .16); }
.monat .wt { background: #1f4e79; color: #fff; padding: 7px 10px; font-weight: 600; }
.monat .tag { background: #fff; min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.monat .tag.fremd { background: #eef1f5; }
.monat .tag.heute .nr { background: #1f4e79; color: #fff; border-radius: 12px; padding: 0 9px; }
.monat .tag .kopf { display: flex; gap: 6px; align-items: baseline; font-weight: 600; }
.monat .tag .kopf small { font-weight: 400; font-size: .8rem; color: #4a5666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monat .tag .wochentag { display: none; }
.messe { border: 1px solid #b9c4d2; background: #fff; border-radius: 6px; font: inherit; font-size: .92rem; display: flex; justify-content: flex-start; gap: 7px; padding: 4px 7px; cursor: pointer; color: inherit; width: 100%; }
.messe span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.messe b { font-variant-numeric: tabular-nums; }
.messe.frei { background: #e9f7ee; border-color: #8ac8a2; }
.messe.vergeben { background: #eef2f7; }
.messe.termin { background: #fbf3e2; border-color: #dcc58f; }
.messe.entfaellt { text-decoration: line-through; opacity: .6; }
.messe:hover { filter: brightness(.96); }
.messe:focus-visible { outline: 3px solid #8fc1ee; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; font-size: .95rem; }
.legende span::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; border: 1px solid #8ac8a2; background: #e9f7ee; }
.legende span.v::before { background: #eef2f7; border-color: #b9c4d2; }
.legende span.t::before { background: #fbf3e2; border-color: #dcc58f; }

@media (max-width: 900px) {
    .monat { grid-template-columns: 1fr; }
    .monat .wt, .monat .tag.fremd, .monat .tag.leer-mobil { display: none; }
    .monat .tag { min-height: 0; padding: 10px 12px; }
    .monat .tag .wochentag { display: inline; }
    .messe { font-size: 1rem; padding: 9px 10px; }
    .messe span { white-space: normal; }
    .zeile.mit-auswahl { grid-template-columns: 60px minmax(0, 1fr) 48px; }
    .zeile.mit-auswahl > .auswahl { grid-column: 1 / 3; grid-row: 2; }
}
