/* 
 * Klinikheld Icons - FontAwesome mit Unicode Fallback
 * Saubere Implementation ohne CSS-Konflikte
 */

/* Nur dann Unicode verwenden, wenn FontAwesome NICHT geladen ist */
.fas {
  /* FontAwesome wird priorisiert */
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 5 Free", "Font Awesome 5 Pro", "Apple Color Emoji",
    "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 900; /* FontAwesome solid */
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fallback nur wenn FontAwesome nicht verfügbar */
@supports not (font-family: "Font Awesome 6 Free") {
  .fas.fa-hospital:before {
    content: "🏥";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-user-md:before {
    content: "👨‍⚕️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-clock:before {
    content: "⏰";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-user-shield:before {
    content: "🛡️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-sign-out-alt:before {
    content: "🚪";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-chart-line:before {
    content: "📈";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-plus:before {
    content: "➕";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-edit:before {
    content: "✏️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-trash:before {
    content: "🗑️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-calendar:before {
    content: "📅";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-check:before {
    content: "✅";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-times:before {
    content: "❌";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-eye:before {
    content: "👁️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-inbox:before {
    content: "📥";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-envelope:before {
    content: "✉️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-lock:before {
    content: "�";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
  .fas.fa-sign-in-alt:before {
    content: "🚪";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
      sans-serif;
  }
}

/* Icon Dimensionierung und Abstände */
.fas {
  display: inline-block;
  font-size: 1em;
  width: 1.25em;
  text-align: center;
  vertical-align: -0.125em;
}

/* Spezielle Größen */
.stat-icon .fas {
  font-size: 1.5em;
}

/* Button Icons */
.btn .fas {
  margin-right: 0.5em;
}

.btn .fas:last-child {
  margin-right: 0;
  margin-left: 0.5em;
}

/* Navigation Icons */
.nav-btn .fas {
  margin-right: 0.75em;
}

/* Responsive */
@media (max-width: 768px) {
  .fas {
    font-size: 0.9em;
  }

  .stat-icon .fas {
    font-size: 1.3em;
  }
}
