/**
 * Nur notwendige Handy-Diffs zum Desktop-Kalender (calendar.css).
 * Keine eigene Palette, kein Sonder-Chrome.
 */

html.buchung-app.fp-dark-mode {
  color-scheme: dark;
}

/* Legende entfernt */
html.buchung-app .buchung-shell--handy .buchung-legend {
  display: none !important;
}

/* Volle Viewport-Breite: kein Box-in-Box (.view max-width/padding) */
.view-work.is-fc-cal {
  background: #070b14;
  color: #e5ecff;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
/* Zurück sitzt in der Toolbar — Header ausblenden */
.view-work.is-fc-cal .detail-header {
  display: none !important;
}
.view-work.is-fc-cal #work-title { display: none !important; }

.view-work.is-fc-cal .work-body.is-cal-mode {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px));
  height: calc(100dvh - env(safe-area-inset-top, 0px));
  padding: 0;
  background: #070b14;
  color: #e5ecff;
  overflow: hidden;
  touch-action: pan-y;
}

.buchung-shell--handy {
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.buchung-shell--handy .buchung-chrome {
  flex-shrink: 0;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
}

.buchung-shell--handy .buchung-toolbar {
  flex-shrink: 0;
  gap: 8px;
  padding: 8px 10px 4px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}

.buchung-shell--handy .buchung-toolbar--actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: stretch;
  flex-wrap: nowrap;
}

.buchung-shell--handy .buchung-toolbar .btn {
  min-height: 44px;
  padding: 10px 10px;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: 0.88rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.buchung-shell--handy .buchung-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-left: 8px;
  padding-right: 10px;
}
.buchung-shell--handy .buchung-back-btn .suite-back-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Jahr-Titel (tippen → Jahr wählen) */
.buchung-shell--handy .buchung-year-title {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 12px 6px;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  border: 0;
  background: transparent;
  color: #e5ecff;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 2.4rem;
}
.buchung-shell--handy .buchung-year-title:active {
  opacity: 0.75;
}

/* Ansicht: Monat · Tag (keine Woche) */
.buchung-shell--handy .buchung-view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 8px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
}
.buchung-shell--handy .buchung-view-tab {
  appearance: none;
  min-height: 40px;
  border: 1px solid rgba(40, 85, 138, 0.65);
  border-radius: 8px;
  background: #0f1b31;
  color: #94a3b8;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.buchung-shell--handy .buchung-view-tab.is-active {
  background: #16324f;
  color: #e5ecff;
  border-color: #3b82f6;
}

/* Heute-Markierung: Logo-Petrol (#40787f), nur Handy-Shell — Monat/Jahr, nicht leere Tages-Slots */
html.buchung-app .buchung-shell--handy .fc {
  --fc-today-bg-color: rgba(64, 120, 127, 0.28);
}
html.buchung-app .buchung-shell--handy .fc .fc-daygrid-day.fc-day-today {
  background-color: rgba(64, 120, 127, 0.28) !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-day-today .fc-daygrid-day-number {
  color: #e5ecff;
  font-weight: 800;
}
/* Tagesansicht: ganze Spalte nicht einfärben (nur Termine behalten Farbe) */
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-col.fc-day-today,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-daygrid-day.fc-day-today {
  background-color: transparent !important;
  background: transparent !important;
}

/* Vollbild: kein Box-in-Box (kein Panel-Rahmen um den Kalender) */
.buchung-shell--handy #buchung-calendar,
.buchung-shell--handy .buchung-calendar-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Externer Sticky-Pin (außerhalb FC-Scroll) — CSS sticky in MultiMonth klebte nicht */
.buchung-shell--handy .fc-handy-month-pin {
  flex-shrink: 0;
  z-index: 12;
  background: var(--buch-row, rgba(15, 23, 42, 0.98));
  box-shadow: 0 1px 0 rgba(40, 85, 138, 0.45);
  padding: 0.2rem 0.15rem 0.15rem;
}
.buchung-shell--handy .fc-handy-month-pin[hidden] {
  display: none !important;
}
.buchung-shell--handy .fc-handy-month-pin-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5ecff;
  text-align: center;
  padding: 0.15rem 0.25rem 0.25rem;
  line-height: 1.2;
}
.buchung-shell--handy .fc-handy-month-pin-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: #94a3b8;
  padding: 0.1rem 0 0.15rem;
}
.buchung-shell--handy .fc-handy-month-pin-dows span {
  padding: 0.1rem 0;
}

.buchung-shell--handy #buchung-calendar-mount {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.buchung-shell--handy #buchung-calendar-mount .fc {
  flex: 1;
  min-height: 0;
  height: 100% !important;
}

/* FC-Header aus (eigene Controls) */
html.buchung-app .buchung-shell--handy .fc .fc-header-toolbar {
  display: none !important;
}

/*
 * Jahr-Ansicht: .fc-multimonth = Scrollport unter dem externen Pin.
 * Native Monats-Header: nur Titel in Flow (Wochentage kommen vom Pin).
 */
html.buchung-app .buchung-shell--handy .fc .fc-view-harness,
html.buchung-app .buchung-shell--handy .fc .fc-view-harness-active {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonthYear-view,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth {
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  height: 100% !important;
  max-height: 100% !important;
  position: relative;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-month {
  min-width: 0;
  width: 100% !important;
  display: block;
  position: relative;
  overflow: visible !important;
  contain: none !important;
  transform: none !important;
  filter: none !important;
  border-radius: 0 !important;
}
/* Kein position:sticky mehr — Pin übernimmt; Titel bleibt im Dokumentfluss */
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-header {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: var(--buch-row, rgba(15, 23, 42, 0.98)) !important;
  padding-bottom: 2px;
}
html.buchung-app .buchung-shell--handy.is-month-pin .fc .fc-multimonth-header-table {
  display: none !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-header-table,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-title {
  background: var(--buch-row, rgba(15, 23, 42, 0.98));
}
/* Alle konkurrierenden Stickies / absolute Day-Frames abschalten */
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-body,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-body table,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-frame,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-scrollgrid-section-header,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-scrollgrid-section-sticky,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-scrollgrid-section-sticky > *,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-col-header,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth th {
  position: static !important;
  top: auto !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-top,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-number {
  /* Zahlen über Streifen, aber nie sticky */
  position: relative !important;
  top: auto !important;
  z-index: 2;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-body,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth table {
  table-layout: fixed !important;
  width: 100% !important;
}
/* Tagesfelder höher — Platz für Nummer + 3 feste Farbspuren */
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day {
  height: 3.2rem !important;
  min-height: 3.2rem !important;
  max-height: 3.2rem !important;
  vertical-align: top;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-frame {
  min-height: 3.2rem !important;
  height: 3.2rem !important;
  max-height: 3.2rem !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-top {
  flex-direction: row;
  justify-content: center;
  flex-shrink: 0;
  min-height: 1.1rem;
  padding-top: 0.14rem;
  padding-bottom: 0.22rem;
  pointer-events: none;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-number {
  font-size: 0.68rem !important;
  padding: 0.1rem 0.1rem 0 !important;
  line-height: 1.15;
  position: relative !important;
  z-index: 2;
}
/*
 * Dünne farbige Buchungsstreifen (Farben = FC backgroundColor).
 * Absolute Harnesses von FC beibehalten → Mehrtages-Streifen durchlaufend.
 * Feste Lanes: HuTa oben, Pension mitte, Vorläufig unten.
 */
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-events {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 1px 2px !important;
  min-height: 1rem !important;
  overflow: visible !important;
  position: relative;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-day-bottom {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness {
  margin: 0 !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness.fc-lane-huta,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness:has(.fc-lane-huta) {
  top: 0 !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness.fc-lane-pension,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness:has(.fc-lane-pension) {
  top: 5px !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness.fc-lane-vorlaeufig,
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event-harness:has(.fc-lane-vorlaeufig) {
  top: 10px !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 1px !important;
  height: 3px !important;
  min-height: 3px !important;
  max-height: 3px !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event .fc-event-main {
  padding: 0 !important;
  height: 3px !important;
  background: inherit;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-handy-stripe {
  display: block;
  width: 100%;
  height: 3px;
  background: inherit;
  pointer-events: none;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth .fc-daygrid-event.buchung-event-preliminary {
  opacity: 0.72;
  border-style: none !important;
}

/* Monatsname tippbar → Buchungen des Monats */
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-title {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: 6px;
  padding: 0.2rem 0.15rem;
}
html.buchung-app .buchung-shell--handy .fc .fc-multimonth-title:active {
  opacity: 0.75;
}

/* Fallback dayGridMonth (ohne MultiMonth-Plugin): gleiche Streifen + Lanes */
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-day {
  min-height: 3.2rem !important;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-day-top {
  min-height: 1.1rem;
  padding-top: 0.14rem;
  padding-bottom: 0.22rem;
  position: relative;
  z-index: 2;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-event {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 1px !important;
  height: 3px !important;
  min-height: 3px !important;
  max-height: 3px !important;
  padding: 0 !important;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-event-harness.fc-lane-huta {
  top: 0 !important;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-event-harness.fc-lane-pension {
  top: 5px !important;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-daygrid-event-harness.fc-lane-vorlaeufig {
  top: 10px !important;
}
html.buchung-app .buchung-shell--handy .fc-dayGridMonth-view .fc-handy-stripe {
  display: block;
  width: 100%;
  height: 3px;
  background: inherit;
  pointer-events: none;
}

/* Übersicht: Monatsabschnitte */
.fc-list-month-heading {
  margin: 0.9rem 0 0.4rem;
  padding: 0.2rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #e5ecff;
  border-bottom: 1px solid rgba(40, 85, 138, 0.5);
}
.fc-list-month-heading:first-child {
  margin-top: 0.15rem;
}

/* Tagesansicht: kein „Ganztägig“/„Uhr“, leere Slots nicht einfärben */
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-axis-cushion,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-daygrid-body .fc-timegrid-axis-cushion {
  font-size: 0 !important;
  color: transparent !important;
  visibility: hidden;
}
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-slot-label-cushion {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-slot,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-slot-lane,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-col,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-body,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-cols {
  background: transparent !important;
  background-color: transparent !important;
}
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-col-bg .fc-highlight,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-timegrid-bg-harness,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-non-business,
html.buchung-app .buchung-shell--handy .fc .fc-timeGridDay-view .fc-bgevent {
  background: transparent !important;
  background-color: transparent !important;
}
/* Leere Ganztags-Zeile ausblenden */
html.buchung-app .buchung-shell--handy #buchung-calendar-mount.fc-day-no-allday .fc-timeGridDay-view .fc-daygrid-body,
html.buchung-app .buchung-shell--handy #buchung-calendar.fc-day-no-allday .fc-timeGridDay-view .fc-daygrid-body {
  display: none !important;
}
html.buchung-app .buchung-shell--handy #buchung-calendar-mount.fc-day-no-allday .fc-timeGridDay-view .fc-timegrid-divider,
html.buchung-app .buchung-shell--handy #buchung-calendar.fc-day-no-allday .fc-timeGridDay-view .fc-timegrid-divider {
  display: none !important;
}

/* Jahr-Picker Sheet */
.buchung-year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}
.buchung-year-opt {
  appearance: none;
  min-height: 48px;
  border: 1px solid #28558a;
  border-radius: 10px;
  background: #0f1b31;
  color: #e5ecff;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.buchung-year-opt.is-active {
  border-color: #3b82f6;
  background: #16324f;
}

.fc-handy-overlays {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
}
.fc-handy-overlays[hidden] { display: none !important; }
.fc-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.fc-sheet,
.fc-sheet--modal {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(88dvh, 44rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(18, 26, 44, 0.98);
  color: #e5ecff;
  border: 1px solid rgba(35, 48, 74, 1);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  font-family: var(--font, "Outfit", sans-serif);
}
.fc-sheet-handle { display: none; }
.fc-sheet-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: inherit;
}
.fc-sheet-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #94a3b8;
}
.fc-sheet-tiles {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.fc-area-tile {
  appearance: none;
  text-align: left;
  font: inherit;
  border: 2px solid #28558a;
  background: #0f1b31;
  color: #bae6fd;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  -webkit-tap-highlight-color: transparent;
}
.fc-area-tile.is-huta { border-color: #06b6d4; }
.fc-area-tile.is-pension { border-color: #f97316; }
.fc-area-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.fc-area-name { font-weight: 800; font-size: 1.02rem; color: #fff; }
.fc-area-sub { font-size: 0.8rem; color: #94a3b8; }
.fc-sheet-cancel { width: 100%; min-height: 44px; }
.fc-sheet--form { padding-top: 0.65rem; }
.fc-sheet-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 44px;
}
.fc-sheet-nav strong { flex: 1; text-align: center; font-size: 1rem; }
.ac-handy-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #bae6fd;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 0.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.ac-handy-nav-link .suite-back-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ac-handy-nav-link.is-strong { color: #67e8f9; }
.ac-handy-nav-spacer { min-height: 2.75rem; min-width: 4rem; }
.fc-book-form { display: grid; gap: 0.75rem; }
.fc-field, .fc-field-block { display: grid; gap: 0.35rem; font-size: 0.88rem; }
.fc-field input,
.fc-field select,
.fc-field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(35, 48, 74, 1);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
}
.fc-hint { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.fc-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(35, 48, 74, 1);
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}
.fc-toggle input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #22d3ee;
}
.fc-toggle span {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
}
.fc-toggle strong { font-weight: 700; }
.fc-toggle small {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}
.fc-dog-picked {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed #28558a;
  display: grid;
  gap: 0.15rem;
}
.fc-dog-picked strong { font-size: 1rem; }
.fc-dog-picked span { font-size: 0.8rem; color: #94a3b8; }
.fc-dog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fc-dog-actions .btn { flex: 1; min-height: 44px; }
.fc-fieldset {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(35, 48, 74, 1);
  border-radius: 8px;
}
.fc-fieldset legend { padding: 0 0.35rem; font-weight: 700; }
.fc-choice-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fc-choice {
  display: block;
  cursor: pointer;
}
.fc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fc-choice span {
  display: block;
  padding: 0.65rem;
  min-height: 44px;
  border-radius: 8px;
  border: 2px solid #28558a;
  background: #0f1b31;
  color: #bae6fd;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}
.fc-choice input:checked + span {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.22);
  color: #e0f2fe;
}
.fc-choice small { display: block; font-weight: 500; opacity: 0.75; margin-top: 0.15rem; }
.fc-transport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.fc-detail {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border-left: 4px solid #f97316;
  margin-bottom: 0.75rem;
}
.fc-detail.is-huta { border-left-color: #06b6d4; }
.fc-detail.is-pension { border-left-color: #f97316; }
.fc-detail-swatch { display: none; }
.fc-dog-modal {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(18, 26, 44, 0.98);
  padding: 0.75rem 1rem 1rem;
  overflow: auto;
  border-radius: 14px;
}
.fc-dog-modal-panel {
  display: grid;
  gap: 0.65rem;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.buchung-dog-abc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding-bottom: 0.15rem;
}
.buchung-dog-abc-btn {
  flex: 0 0 auto;
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d7e2f0;
  font-family: var(--font, "Outfit", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.buchung-dog-abc-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f4f8fc;
}
.buchung-dog-abc-btn.is-empty,
.buchung-dog-abc-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.buchung-dog-grid {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: grid;
  gap: 0.85rem;
  padding-bottom: 0.5rem;
}
.buchung-dog-letter {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 248, 252, 0.72);
}
.buchung-dog-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.buchung-dog-tile {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  cursor: pointer;
  font-family: var(--font, "Outfit", sans-serif);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.buchung-dog-tile:active { transform: scale(0.98); }
.buchung-dog-tile-photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}
.buchung-dog-tile-photo.is-empty {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #6d7f9a;
  font-weight: 800;
  font-size: 1.1rem;
}
.buchung-dog-tile-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.buchung-dog-tile-body strong {
  color: #f4f8fc;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buchung-dog-tile-body em {
  color: #93a1b0;
  font-size: 0.75rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn.soft {
  background: #0f1b31 !important;
  color: #bae6fd !important;
  border: 2px solid #28558a !important;
}
.btn.danger {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fecaca !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
}

@media (max-width: 380px) {
  .buchung-shell--handy .buchung-toolbar .btn {
    font-size: 0.78rem;
    padding: 8px 6px;
  }
  .buchung-shell--handy .buchung-back-btn span {
    display: none;
  }
  .buchung-dog-tiles {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .fc-handy-overlays {
    padding: 1.25rem;
  }
  .fc-sheet,
  .fc-sheet--modal {
    max-height: min(90vh, 46rem);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .view-work.is-fc-cal .work-body.is-cal-mode {
    min-height: 100dvh;
    height: 100dvh;
  }
}
