/* FM Termine — Frontend CSS v7 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');

#fmt-buchung-wrap, #fmt-flow-wrap, .fmt-portal {
    font-family: 'DM Sans', sans-serif !important;
    color: #1a1a1a !important;
    max-width: 720px;
    margin: 0 auto;
}
#fmt-buchung-wrap *, #fmt-flow-wrap *, .fmt-portal * { box-sizing: border-box; }

/* ===== BUCHUNGSFORMULAR ===== */
.fmt-buch-header { margin-bottom: 24px; }
.fmt-buch-header h3 { font-size: 22px; font-weight: 500; margin: 0 0 6px; color: #1a1a1a !important; }
.fmt-buch-header p { font-size: 14px; color: #666 !important; margin: 0; }
.fmt-buch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fmt-buch-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.fmt-buch-field label { font-size: 13px !important; font-weight: 500 !important; color: #444 !important; }
.fmt-buch-field input,
.fmt-buch-field select,
.fmt-buch-field textarea { padding: 10px 14px; font-size: 14px !important; font-family: inherit; border: 1px solid #ddd !important; border-radius: 8px; background: #fafafa !important; outline: none; transition: border-color .15s; color: #1a1a1a !important; width: 100%; }
.fmt-buch-field input:focus,
.fmt-buch-field select:focus,
.fmt-buch-field textarea:focus { border-color: #1a1a1a !important; background: #fff !important; }
.fmt-buch-field textarea { resize: vertical; min-height: 80px; }
.fmt-dienste-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; margin-top: 6px; }
.fmt-dienst-btn { border: 1px solid #ddd !important; border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fafafa !important; font-family: inherit; text-align: center; transition: all .15s; font-size: 13px !important; color: #444 !important; }
.fmt-dienst-btn.active { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-dienst-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.fmt-submit-btn { width: 100%; background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 10px; padding: 14px; font-size: 14px !important; font-weight: 500; cursor: pointer; font-family: inherit; margin-top: 6px; }
.fmt-submit-btn:disabled { background: #aaa !important; cursor: not-allowed; }
.fmt-success-box { text-align: center; padding: 2rem; background: #e8f5e9; border-radius: 12px; border: 1px solid #a5d6a7; }
.fmt-success-box h4 { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: #1b5e20 !important; }
.fmt-success-box p { font-size: 14px; color: #2e7d32 !important; margin: 0; }

/* ===== BUCHUNGSFLOW ===== */
.fmt-flow-steps { display: flex; align-items: center; margin-bottom: 28px; }
.fmt-flow-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fmt-step-num { width: 32px; height: 32px; border-radius: 50%; background: #e0e0e0; color: #888 !important; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; transition: all .2s; }
.fmt-flow-step.active .fmt-step-num { background: #1a1a1a !important; color: #fff !important; }
.fmt-step-lbl { font-size: 11px; color: #aaa !important; white-space: nowrap; }
.fmt-flow-step.active .fmt-step-lbl { color: #1a1a1a !important; font-weight: 500; }
.fmt-flow-step-line { flex: 1; height: 2px; background: #e0e0e0; margin: 0 6px; margin-bottom: 18px; }
.fmt-flow-panel { display: none; }
.fmt-flow-panel.active { display: block; }
.fmt-flow-panel h3 { font-size: 20px !important; font-weight: 500 !important; margin: 0 0 6px; color: #1a1a1a !important; }
.fmt-flow-hint { font-size: 13px !important; color: #888 !important; margin: 0 0 18px; }
.fmt-flow-dienst-btn { border: 1px solid #ddd !important; border-radius: 12px; padding: 16px; cursor: pointer; background: #fff !important; font-family: inherit; text-align: center; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fmt-flow-dienst-btn:hover { border-color: #1a1a1a !important; background: #f5f5f5 !important; }
.fmt-flow-dienst-btn.active { border-color: #1a1a1a !important; background: #1a1a1a !important; }
.fmt-flow-dienst-btn.active * { color: #fff !important; }
.fmt-flow-dienst-name { font-size: 13px !important; font-weight: 500 !important; color: #1a1a1a !important; }
.fmt-flow-dauer { font-size: 11px !important; color: #888 !important; }
.fmt-flow-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.fmt-flow-back { background: #f5f5f5 !important; border: 1px solid #ddd !important; border-radius: 8px; padding: 10px 20px; font-size: 13px !important; cursor: pointer; font-family: inherit; color: #555 !important; }
.fmt-flow-next { background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 8px; padding: 10px 24px; font-size: 13px !important; font-weight: 500; cursor: pointer; font-family: inherit; }
.fmt-flow-next:disabled { background: #ccc !important; cursor: not-allowed; }
.fmt-flow-submit { background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 8px; padding: 12px 28px; font-size: 14px !important; font-weight: 500; cursor: pointer; font-family: inherit; }
.fmt-flow-submit:disabled { background: #ccc !important; cursor: not-allowed; }

/* Kalender */
.fmt-kalender-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fmt-kalender-nav button { background: #f5f5f5 !important; border: 1px solid #ddd !important; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 18px; color: #1a1a1a !important; display: flex; align-items: center; justify-content: center; }
.fmt-kalender-nav span { font-size: 15px !important; font-weight: 500 !important; color: #1a1a1a !important; }
.fmt-kalender { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 20px; }
.fmt-kal-header { text-align: center; font-size: 11px !important; font-weight: 600 !important; color: #888 !important; padding: 4px; }
.fmt-kal-leer { background: transparent; }
.fmt-kal-tag { border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 13px !important; font-weight: 500 !important; border: 1px solid transparent; }
.fmt-kal-frei { background: #e8f5e9 !important; color: #2e7d32 !important; border-color: #a5d6a7 !important; cursor: pointer; }
.fmt-kal-frei:hover { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-kal-sel { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-kal-belegt { background: #f5f5f5 !important; color: #bbb !important; }
.fmt-kal-verg { background: transparent !important; color: #ddd !important; }
.fmt-kal-loading { grid-column: 1/-1; text-align: center; color: #888 !important; font-size: 13px !important; padding: 20px; }
#fmt-slots-wrap { margin-bottom: 16px; }
#fmt-slots-wrap h4 { font-size: 14px !important; font-weight: 500 !important; color: #1a1a1a !important; margin: 0 0 10px; }
.fmt-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt-slot-btn { border: 1px solid #ddd !important; border-radius: 8px; padding: 8px 16px; font-size: 13px !important; background: #fafafa !important; cursor: pointer; font-family: inherit; color: #1a1a1a !important; transition: all .15s; }
.fmt-slot-btn.active,
.fmt-slot-btn:hover { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-flow-summary { background: #f7f7f7 !important; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.fmt-flow-sum-row { display: flex; justify-content: space-between; font-size: 13px !important; padding: 5px 0; border-bottom: 1px solid #eee; color: #555 !important; }
.fmt-flow-sum-row:last-child { border-bottom: none; }
.fmt-flow-sum-row strong { color: #1a1a1a !important; }
.fmt-rechner-wrap { border: 1px solid #eee; border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #fff !important; }
.fmt-flow-success { text-align: center; padding: 2rem; background: #e8f5e9; border-radius: 12px; border: 1px solid #a5d6a7; }
.fmt-flow-success-icon { width: 56px; height: 56px; background: #2e7d32; color: #fff !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; margin: 0 auto 14px; }
.fmt-flow-success h3 { font-size: 20px !important; font-weight: 500 !important; margin-bottom: 8px; color: #1b5e20 !important; }
.fmt-flow-success p { font-size: 14px !important; color: #2e7d32 !important; margin-bottom: 16px; }

/* ===== PORTAL ===== */
.fmt-portal { max-width: 720px; margin: 0 auto; }
.fmt-portal-box { max-width: 420px; margin: 40px auto; background: #fff !important; border: 1px solid #ddd; border-radius: 16px; padding: 2rem; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.fmt-portal-box h3 { font-size: 22px !important; font-weight: 500 !important; margin: 0 0 6px; color: #1a1a1a !important; }
.fmt-portal-sub { font-size: 14px !important; color: #888 !important; margin: 0 0 24px; }
.fmt-portal-field { text-align: left; margin-bottom: 14px; }
.fmt-portal-field label { display: block; font-size: 12px !important; font-weight: 500 !important; color: #555 !important; margin-bottom: 5px; }
.fmt-portal-field input { width: 100%; padding: 10px 14px; font-size: 14px !important; border: 1px solid #ddd !important; border-radius: 8px; background: #fafafa !important; outline: none; color: #1a1a1a !important; }
.fmt-portal-field input:focus { border-color: #1a1a1a !important; background: #fff !important; }
.fmt-portal-btn { width: 100%; background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 8px; padding: 12px; font-size: 14px !important; font-weight: 500; cursor: pointer; font-family: inherit; margin-top: 4px; }
.fmt-portal-error { background: #fcebeb !important; color: #c0392b !important; padding: 10px 14px; border-radius: 8px; font-size: 13px !important; margin-bottom: 12px; text-align: left; }
.fmt-portal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.fmt-portal-welcome { font-size: 18px !important; font-weight: 500 !important; color: #ffffff !important; }
.fmt-portal-rolle { font-size: 13px !important; color: rgba(255,255,255,0.7) !important; margin-top: 2px; }
.fmt-logout-btn { background: rgba(255,255,255,0.15) !important; border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 6px; padding: 8px 14px; font-size: 13px !important; cursor: pointer; font-family: inherit; color: #fff !important; }
.fmt-logout-btn:hover { background: rgba(255,255,255,0.25) !important; }
.fmt-portal-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.fmt-pstat { background: #f7f7f7 !important; border-radius: 10px; padding: 14px; text-align: center; }
.fmt-pstat-num { font-size: 26px !important; font-weight: 600 !important; color: #1a1a1a !important; }
.fmt-pstat-lbl { font-size: 12px !important; color: #666 !important; margin-top: 2px; }
.fmt-portal-section { margin-bottom: 20px; }
.fmt-portal-section h4 { font-size: 15px !important; font-weight: 500 !important; margin: 0 0 12px; color: #1a1a1a !important; }
.fmt-auftrag-card,
.fmt-buchung-card,
.fmt-rechnung-card { background: #fff !important; border: 1px solid #ddd; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.fmt-ac-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fmt-ac-dienst { font-size: 14px !important; font-weight: 500 !important; color: #1a1a1a !important; }
.fmt-ac-info { font-size: 13px !important; color: #555 !important; display: flex; flex-direction: column; gap: 4px; }
.fmt-ac-info div { color: #555 !important; font-size: 13px !important; }
.fmt-ac-info a { color: #0066cc !important; }
.fmt-ac-desc { color: #888 !important; font-style: italic; }
.fmt-ac-date { color: #aaa !important; font-size: 11px !important; }
.fmt-status-btn,
.fmt-storno-btn { margin-top: 10px; border: none; border-radius: 6px; padding: 8px 16px; font-size: 13px !important; cursor: pointer; font-family: inherit; font-weight: 500; }
.fmt-btn-start { background: #e6f1fb !important; color: #0c447c !important; }
.fmt-btn-done  { background: #e1f5ee !important; color: #085041 !important; }
.fmt-btn-undo  { background: #fff3e0 !important; color: #e65100 !important; border: 1px solid #ffcc80 !important; }
.fmt-storno-btn { background: #fcebeb !important; color: #791f1f !important; }
.fmt-portal-empty { text-align: center; color: #aaa !important; padding: 30px; font-size: 14px !important; background: #fafafa !important; border-radius: 10px; }
.fmt-portal-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.fmt-ptab { padding: 8px 16px; border: 1px solid #ddd !important; border-radius: 999px; font-size: 13px !important; cursor: pointer; background: #fff !important; font-family: inherit; color: #666 !important; transition: all .15s; }
.fmt-ptab.active { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-pw-form { max-width: 380px; }
.fmt-pw-form input { width: 100%; padding: 10px 14px; font-size: 14px !important; border: 1px solid #ddd !important; border-radius: 8px; background: #fafafa !important; color: #1a1a1a !important; margin-bottom: 10px; outline: none; }
.fmt-portal-btn-sm { background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 6px; padding: 9px 18px; font-size: 13px !important; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none !important; }
.fmt-toggle-pw-btn { background: none !important; border: 1px solid #ddd !important; border-radius: 6px; padding: 8px 16px; font-size: 13px !important; cursor: pointer; color: #666 !important; font-family: inherit; }

/* Badges */
.fmt-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px !important; font-weight: 500; white-space: nowrap; }
.fmt-badge-neu           { background: #e6f1fb !important; color: #0c447c !important; }
.fmt-badge-bestaetigt    { background: #e1f5ee !important; color: #085041 !important; }
.fmt-badge-in_arbeit     { background: #faeeda !important; color: #633806 !important; }
.fmt-badge-abgeschlossen { background: #f0f0f0 !important; color: #444 !important; }
.fmt-badge-storniert     { background: #fcebeb !important; color: #791f1f !important; }
.fmt-badge-offen         { background: #faeeda !important; color: #633806 !important; }
.fmt-badge-bezahlt       { background: #e1f5ee !important; color: #085041 !important; }
.fmt-badge-ueberfaellig  { background: #fcebeb !important; color: #791f1f !important; }

.fmt-ac-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 480px) {
    .fmt-buch-grid { grid-template-columns: 1fr; }
    .fmt-portal-stats { grid-template-columns: 1fr 1fr; }
    .fmt-portal-tabs { gap: 4px; }
    .fmt-ptab { font-size: 12px !important; padding: 6px 10px; }
    .fmt-flow-steps { gap: 0; }
    .fmt-step-lbl { display: none; }
    .fmt-kalender { gap: 2px; }
    .fmt-kal-tag { padding: 6px 2px; font-size: 12px !important; }
}

/* ===== FRONTEND ADMIN PORTAL ===== */
.fmt-admin-portal { max-width: 1100px !important; }
.fmt-admin-nav { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.fmt-admin-nav-btn { padding: 9px 16px; border: 1px solid #ddd !important; border-radius: 8px; font-size: 13px !important; text-decoration: none !important; color: #444 !important; background: #fff !important; transition: all .15s; position: relative; }
.fmt-admin-nav-btn.active { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }
.fmt-admin-nav-btn:hover:not(.active) { border-color: #999 !important; }
.fmt-nav-badge { background: #E24B4A; color: #fff !important; border-radius: 999px; font-size: 10px !important; padding: 1px 6px; margin-left: 4px; }
.fmt-admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; margin-bottom: 20px; }
.fmt-admin-stat { background: #fff !important; border: 1px solid #ddd; border-radius: 10px; padding: 14px; text-align: center; }
.fmt-admin-stat-num { font-size: 24px !important; font-weight: 600 !important; color: #1a1a1a !important; }
.fmt-admin-stat-lbl { font-size: 12px !important; color: #666 !important; margin-top: 4px; }
.fmt-admin-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.fmt-admin-card { background: #fff !important; border: 1px solid #ddd; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.fmt-admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fmt-admin-card-title { font-size: 14px !important; font-weight: 600 !important; color: #1a1a1a !important; margin-bottom: 14px; }
.fmt-admin-table { width: 100%; border-collapse: collapse; font-size: 13px !important; }
.fmt-admin-table th { background: #f7f7f7 !important; padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; font-weight: 600 !important; color: #444 !important; white-space: nowrap; }
.fmt-admin-table td { padding: 8px 10px; border-bottom: 1px solid #f5f5f5; color: #333 !important; vertical-align: middle; }
.fmt-admin-table tr:hover td { background: #fafafa !important; }
.fmt-admin-table a { color: #0066cc !important; }
.fmt-admin-btn-primary { background: #1a1a1a !important; color: #fff !important; border: none; border-radius: 7px; padding: 9px 18px; font-size: 13px !important; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none !important; display: inline-block; }
.fmt-admin-btn-primary:hover { background: #333 !important; color: #fff !important; }
.fmt-admin-btn-sec { background: #f5f5f5 !important; color: #444 !important; border: 1px solid #ddd !important; border-radius: 7px; padding: 9px 18px; font-size: 13px !important; cursor: pointer; font-family: inherit; text-decoration: none !important; display: inline-block; }
.fmt-admin-btn-sm { background: #f0f0f0 !important; color: #444 !important; border: 1px solid #ddd !important; border-radius: 5px; padding: 5px 10px; font-size: 12px !important; cursor: pointer; font-family: inherit; text-decoration: none !important; display: inline-block; }
.fmt-admin-btn-del { background: #fcebeb !important; color: #c0392b !important; border-color: #f09595 !important; }
.fmt-admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fmt-admin-field { display: flex; flex-direction: column; gap: 4px; }
.fmt-admin-field-full { grid-column: 1/-1; }
.fmt-admin-field label { font-size: 12px !important; font-weight: 600 !important; color: #555 !important; }
.fmt-admin-field input,
.fmt-admin-field select,
.fmt-admin-field textarea { padding: 8px 12px; font-size: 13px !important; border: 1px solid #ddd !important; border-radius: 6px; background: #fafafa !important; color: #1a1a1a !important; font-family: inherit; outline: none; }
.fmt-admin-field input:focus,
.fmt-admin-field select:focus,
.fmt-admin-field textarea:focus { border-color: #1a1a1a !important; background: #fff !important; }
.fmt-admin-field textarea { resize: vertical; min-height: 80px; }
.fmt-admin-form-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid #eee; margin-top: 4px; }
@media(max-width:600px){ .fmt-admin-form-grid{grid-template-columns:1fr;} .fmt-admin-stats{grid-template-columns:1fr 1fr;} .fmt-admin-table{font-size:12px !important;} .fmt-admin-table th,.fmt-admin-table td{padding:6px 6px;} }
/* ============================================================
   NEU IN V1.1 — Bitte an Ihre bestehende frontend.css ANHÄNGEN
   (nicht ersetzen — nur am Ende einfügen)
   ============================================================ */

/* Mitarbeiter Tabs */
.fmt-portal-ma .fmt-portal-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.fmt-portal-ma .fmt-ptab { padding: 9px 18px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #555; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.fmt-portal-ma .fmt-ptab.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* Pflichtfeld-Hinweis */
.fmt-pflicht { display: inline-block; background: #fcebeb; color: #c0392b; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }

/* Foto Vorschau */
.fmt-foto-preview { margin-top: 6px; }
.fmt-foto-preview img { display: block; }

/* Modal Overlay */
.fmt-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fmt-modal-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.fmt-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.fmt-modal-header h3 { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 0; }
.fmt-modal-close { background: #f0f0f0; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 18px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; }
.fmt-modal-close:hover { background: #e0e0e0; }
.fmt-modal-actions { margin-top: 16px; }

/* Detail-Zeilen im Modal */
.fmt-detail-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.fmt-detail-row span { color: #888; }
.fmt-detail-row strong { color: #1a1a1a; text-align: right; }

/* Eigener Mitarbeiter-Kalender */
.fmt-ma-kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.fmt-ma-kal-tag { position: relative; border: none; background: #fafafa; border-radius: 8px; padding: 10px 4px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; }
.fmt-ma-kal-tag:hover { background: #f0f0f0; }
.fmt-ma-kal-tagnum { font-size: 13px; color: #1a1a1a; font-weight: 500; }
.fmt-ma-kal-heute { background: #e6f1fb; }
.fmt-ma-kal-heute .fmt-ma-kal-tagnum { color: #0c447c; font-weight: 700; }
.fmt-ma-kal-hat-termin { background: #fff3e0; }
.fmt-ma-kal-hat-termin .fmt-ma-kal-tagnum { color: #1a1a1a; font-weight: 600; }
.fmt-ma-kal-sel { background: #1a1a1a !important; }
.fmt-ma-kal-sel .fmt-ma-kal-tagnum { color: #fff !important; }
.fmt-ma-kal-dot { background: #E65100; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 16px; text-align: center; }
.fmt-ma-kal-sel .fmt-ma-kal-dot { background: #fff; color: #1a1a1a; }

/* Tagestermine im Kalender */
.fmt-ma-termin-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.fmt-ma-termin-card:hover { border-color: #ccc; background: #fafafa; }
.fmt-ma-termin-zeit { font-size: 14px; font-weight: 600; color: #1a1a1a; min-width: 48px; }
.fmt-ma-termin-info { flex: 1; }
.fmt-ma-termin-titel { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.fmt-ma-termin-kunde { font-size: 12px; color: #888; }

@media (max-width: 480px) {
    .fmt-ma-kalender { gap: 3px; }
    .fmt-ma-kal-tag { padding: 8px 2px; min-height: 38px; }
    .fmt-modal-box { padding: 18px; }
}

/* Archiv-Karten (abgeschlossene Aufträge) */
.fmt-archiv-card { opacity: 0.92; }
.fmt-archiv-card .fmt-ac-dienst { color: #555 !important; }

/* Mitarbeiter-Ausgaben */
.fmt-ausgabe-form { max-width: 420px; }
.fmt-ausgabe-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 14px; margin-bottom: 10px; }

/* Unterschrift-Pad (Signature Pad) */
.fmt-signature-wrap {
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #fafafa;
    margin-top: 6px;
    touch-action: none;
}
#fmt-signature-pad {
    width: 100%;
    height: 160px;
    display: block;
    touch-action: none;
    cursor: crosshair;
}
.fmt-sig-clear-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
}
.fmt-sig-clear-btn:hover { background: #e0e0e0; }
