
#dm-toggle-btn { min-width: 44px !important; min-height: 44px !important; }
.adm-header__logout { min-height: 44px !important; }
.adm-view-switch button { min-height: 44px !important; }
.adm-cal-nav button { min-width: 44px !important; min-height: 44px !important; }

@media (max-width: 490px) {
  .cal-month { overflow: hidden !important; padding: 8px !important; }
  .cal-month__head,
  .cal-month__grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 3px !important; }
  .cal-day { min-width: 0 !important; }
}

.einst-hinweis--fehler,
.oz-hinweis--fehler,
.um-hinweis--fehler { color: #8F1D14; }

:root {
  --gs-schatten-klein: 0 1px 2px rgba(33, 52, 18, .08), 0 2px 6px rgba(33, 52, 18, .07);
  --gs-schatten-karte: 0 1px 2px rgba(33, 52, 18, .06), 0 6px 16px rgba(33, 52, 18, .08), 0 18px 40px rgba(33, 52, 18, .07);
  --gs-schatten-leiste: 0 6px 16px rgba(33, 52, 18, .09);
  --gs-schatten-tag: 0 1px 2px rgba(33, 52, 18, .09);
}
html[data-theme="dark"] {
  --gs-schatten-klein: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
  --gs-schatten-karte: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 20px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .3);
  --gs-schatten-leiste: 0 6px 16px rgba(0, 0, 0, .45);
  --gs-schatten-tag: 0 1px 2px rgba(0, 0, 0, .4);
}

/* Karten und Sektionen in allen vier Reitern */
.cal-month,
.cal-year__month,
.cal-day-view,
.adm-card,
.adm-box,
.um-field,
.um-verlauf { box-shadow: var(--gs-schatten-karte); }

/* Karte in einer Karte: Buchung in der Tagesansicht, Wohnung in den Einstellungen */
.cal-day-view .adm-card,
.adm-box .einst-zimmer { box-shadow: var(--gs-schatten-klein); }

/* Bedienelemente */
.adm-view-switch,
.zoom-control,
.adm-cal-nav button,
.adm-btn,
.adm-mini,
.um-anlass,
.um-pv-knopf,
.um-speichern { box-shadow: var(--gs-schatten-klein); }

/* Tage im Monatskalender nur mit einem Hauch, 35 Kacheln mit vollem Schatten waeren unruhig */
.cal-day:not(.is-other) { box-shadow: var(--gs-schatten-tag); }

/* Die Reiterleiste klebt oben. Ihr Schatten trennt sie beim Scrollen vom Inhalt. */
.adm-tabs { box-shadow: var(--gs-schatten-leiste); }

.um-vorschau-spalte { top: calc(var(--adm-kopf-hoehe, 69px) + 52px + 20px); }

.zoom-btn { width: 44px !important; height: 44px !important; }
.zoom-control { padding-top: 0 !important; padding-bottom: 0 !important; }


.adm-cal-nav .label { font-size: 22px !important; line-height: 1.2; }
@media (min-width: 769px) {
  .adm-cal-nav { position: relative; justify-content: flex-end; min-height: 44px; }
  .adm-cal-nav .label {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    margin: 0 !important; flex: none !important; min-width: 0 !important; white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .adm-cal-nav { justify-content: center; }
  .adm-cal-nav .label { flex: 1 1 100% !important; margin: 0 !important; text-align: center; }
}

.adm-gruss { justify-self: center; text-align: center; padding-left: 0 !important; border-left: 0 !important; }
.adm-header.adm-kopf--zweizeilig .adm-header__brand { grid-column: 1; grid-row: 1; }
.adm-header.adm-kopf--zweizeilig .adm-header__right { grid-column: 3; grid-row: 1; }
.adm-header.adm-kopf--zweizeilig .adm-gruss { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 768px) {
  .adm-header.adm-kopf--zweizeilig .adm-header__brand,
  .adm-header.adm-kopf--zweizeilig .adm-header__right,
  .adm-header.adm-kopf--zweizeilig .adm-gruss { grid-column: 1; grid-row: auto; }
}

/* Das Logo der Seite statt des Hauszeichens. Das Siegel braucht Groesse:
   unter rund 48 px ist "Pension Musterhof" darin nicht mehr zu lesen. */
.adm-header__brand img { width: 56px !important; height: 56px !important; }
.adm-login__logo { width: 168px !important; height: auto !important; opacity: 1 !important; }

.cal-day__item { white-space: normal; flex-wrap: wrap; column-gap: 4px; row-gap: 0; }
.cal-day__item .n { flex: 1 1 auto; min-width: 0; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: break-word; -webkit-hyphens: auto; hyphens: auto; }

@media (max-width: 490px) {
  #tab-pension .adm-view-switch { display: flex !important; flex-wrap: wrap; border-radius: 24px; }
  #tab-pension .adm-view-switch button { flex: 1 1 30% !important; min-width: 0; }
}
/* Ab 769 px steht die Ueberschrift neben den Umschaltern. Mit sechs Knoepfen reicht der Platz erst ab 1040 px,
   darunter stehen Ueberschrift und Umschalter untereinander wie am Handy. */
@media (min-width: 769px) and (max-width: 1039.98px) {
  #tab-pension .adm-sec-head { grid-template-columns: 1fr; justify-items: center; }
  #tab-pension .adm-sec-head h2, #tab-pension .adm-sec-head .adm-view-switch, #tab-pension .adm-zoom-slot { justify-self: center; }
}

.ga-leiste {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 14px; padding: 6px 14px;
  color: #122512; background: #F4F8EE; border: 2px dashed #4C761E; border-radius: 10px;
}
.ga-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; color: #122512; }
.ga-schalter input { width: 22px; height: 22px; margin: 0; accent-color: #306100; cursor: pointer; }
.ga-schalter input:focus-visible { outline: 3px solid #4C761E; outline-offset: 2px; }
.ga-leiste .ga-satz { flex: 1 1 18rem; margin: 0; font-size: 0.9375rem; line-height: 1.4; color: #122512; max-width: none; }
.ga-laedt { margin: 12px 0; color: #4F5F44; }
.ga-badge {
  display: inline-block; padding: 3px 9px; border: 2px dashed #4C761E; border-radius: 99px; white-space: nowrap;
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: #122512; background: #F4F8EE;
}
#adm-shell .adm-card.ga-karte { border: 2px dashed #4C761E; }
.ga-karten-satz { margin: 6px 0 0; font-size: 13px; color: #4F5F44; }
.ae-preis-satz { display: block; margin-top: 2px; font-size: 12px; color: #4F5F44; }

/* Hinweis nach einem Update (stand.js) */
.gs-stand {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 9000;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px;
  background: #FFFFFF; color: #122512; border-radius: 14px;
  box-shadow: 0 0 0 1px #B3CF84, 0 12px 32px rgba(18, 37, 18, .2); font-size: 1rem; line-height: 1.4;
}
.gs-stand__knopf {
  min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #306100; color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer;
}
.gs-stand__knopf:focus-visible { outline: 3px solid #4C761E; outline-offset: 2px; }
@media print { .gs-stand { display: none; } }

html[data-theme="dark"] body #adm-shell .ga-leiste { background-color: #0F2A12 !important; border-color: #B9CBA6 !important; color: #F1E9DB !important; }
html[data-theme="dark"] body #adm-shell .ga-leiste .ga-satz,
html[data-theme="dark"] body #adm-shell .ga-schalter { color: #F1E9DB !important; }
html[data-theme="dark"] body #adm-shell .ga-schalter input { accent-color: #B5E26B; }
html[data-theme="dark"] body #adm-shell .ga-laedt,
html[data-theme="dark"] body #adm-shell .ga-karten-satz,
html[data-theme="dark"] .ae-preis-satz { color: #C9D8BA !important; }
html[data-theme="dark"] body #adm-shell .ga-badge { background-color: #1B3A1F !important; border-color: #B9CBA6 !important; color: #F1E9DB !important; }
html[data-theme="dark"] body #adm-shell .adm-card.ga-karte { border-color: #B9CBA6 !important; }
html[data-theme="dark"] .gs-stand { background: #14361A; color: #F1E9DB; box-shadow: 0 0 0 1px #557A39, 0 12px 32px rgba(0, 0, 0, .5); }
