/* ==========================================================================
   fhmm.css – Projekt-CSS Fährhaus Mitling-Mark
   Ersetzt Tailwind (output.css / CDN) in allen eigenen PHP-Dateien.

   Regeln:
   - Nur Klassen mit Präfix "fhmm-", keine globalen Element-Selektoren
     (kein *, html, body, [id] …), damit das RW-Elements-Grid unberührt bleibt.
   - Keine Responsive-Klassen-Magie: Media-Queries stehen direkt hier.
   - Einbinden mit: <link rel="stylesheet" href="/fhmm.css">
   ========================================================================== */

/* ---------- Farben (gelten nur für Elemente mit fhmm-Klasse) ---------- */
[class^="fhmm-"],
[class*=" fhmm-"] {
  --fhmm-blau-500: #3b82f6;
  --fhmm-blau-600: #2563eb;
  --fhmm-blau-700: #1d4ed8;
  --fhmm-blau-800: #1e40af;
  --fhmm-blau-900: #1e3a8a;
  --fhmm-gruen-200: #bbf7d0;
  --fhmm-gruen-500: #22c55e;
  --fhmm-gruen-600: #16a34a;
  --fhmm-rot-500: #ef4444;
  --fhmm-rot-600: #dc2626;
  --fhmm-gelb-50: #fefce8;
  --fhmm-gelb-100: #fef9c3;
  --fhmm-amber-100: #fef3c7;
  --fhmm-amber-300: #fcd34d;
  --fhmm-amber-500: #f59e0b;
  --fhmm-amber-600: #d97706;
  --fhmm-amber-800: #92400e;
  --fhmm-grau-100: #f3f4f6;
  --fhmm-grau-200: #e5e7eb;
  --fhmm-grau-300: #d1d5db;
  --fhmm-grau-400: #9ca3af;
  --fhmm-grau-600: #4b5563;
  --fhmm-grau-700: #374151;
  --fhmm-grau-800: #1f2937;
}

.fhmm-scope *,
.fhmm-scope *::before,
.fhmm-scope *::after,
.fhmm-card *,
.fhmm-card *::before,
.fhmm-card *::after {
  box-sizing: border-box;
}

/* ---------- Grundbausteine ---------- */
.fhmm-scope {
  font-family: inherit;
  color: var(--fhmm-grau-700);
}

.fhmm-card {
  background-color: var(--fhmm-gelb-50);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: var(--fhmm-grau-700);
}
.fhmm-card--klein  { max-width: 24rem; padding: 2rem; text-align: left; }
.fhmm-card--mittel { max-width: 28rem; }
.fhmm-card--breit  { max-width: 56rem; }

.fhmm-titel {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--fhmm-grau-800);
  margin: 0 0 1.5rem 0;
}
.fhmm-titel--blau { color: var(--fhmm-blau-900); }

.fhmm-center   { text-align: center; }
.fhmm-mb-2     { margin-bottom: 0.5rem; }
.fhmm-mb-4     { margin-bottom: 1rem; }
.fhmm-mb-6     { margin-bottom: 1.5rem; }
.fhmm-mt-4     { margin-top: 1rem; }
.fhmm-abstand  { height: 1rem; }

.fhmm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}
@media (max-width: 480px) {
  .fhmm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.fhmm-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Formulare ---------- */
.fhmm-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fhmm-blau-800);
  margin-bottom: 0.25rem;
}
.fhmm-label--grau { color: var(--fhmm-grau-700); font-weight: 700; }

.fhmm-input,
.fhmm-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fhmm-blau-800);
  background-color: #ffffff;
  border: 1px solid var(--fhmm-grau-300);
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
}
.fhmm-input:focus,
.fhmm-select:focus {
  border-color: var(--fhmm-blau-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.fhmm-select--grau {
  background-color: var(--fhmm-grau-200);
  color: var(--fhmm-blau-700);
  border-radius: 0.5rem;
  width: auto;
  min-width: 100px;
}

.fhmm-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--fhmm-blau-600);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.fhmm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  background-color: var(--fhmm-blau-500);
  background-image: none;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: background-color 0.15s ease;
}
.fhmm-btn:hover           { background-color: var(--fhmm-blau-600); }
.fhmm-btn:disabled        { background-color: var(--fhmm-grau-400); cursor: not-allowed; }
.fhmm-btn--gruen          { background-color: var(--fhmm-gruen-500); }
.fhmm-btn--gruen:hover    { background-color: var(--fhmm-gruen-600); }
.fhmm-btn--rot            { background-color: var(--fhmm-rot-500); }
.fhmm-btn--rot:hover      { background-color: var(--fhmm-rot-600); }

/* Login-/Kennwort-Button mit Verlauf */
.fhmm-btn--login {
  background-color: var(--fhmm-blau-600);
  background-image: linear-gradient(to bottom, var(--fhmm-blau-700), var(--fhmm-blau-500));
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
}
.fhmm-btn--login:hover {
  background-image: linear-gradient(to bottom, var(--fhmm-blau-500), var(--fhmm-blau-700));
  color: #fef9c3;
}
.fhmm-btn--login:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.75);
}
.fhmm-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
}

/* Link-Button "Zu den internen Seiten" */
.fhmm-intern {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}
.fhmm-intern-link {
  display: inline-block;
  width: 300px;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  text-align: center;
  font-size: 1.125rem;
  color: var(--fhmm-amber-800);
  background-color: var(--fhmm-amber-500);
  border-radius: 0.25rem;
  text-decoration: none;
}
.fhmm-intern-link:hover { background-color: var(--fhmm-amber-600); }
.fhmm-intern-name {
  text-align: center;
  font-weight: 700;
  margin: 0.5rem 0;
}

/* ---------- Meldungen ---------- */
.fhmm-fehler {
  color: var(--fhmm-rot-500);
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 1rem;
}
.fhmm-meldung {
  display: none;
  text-align: center;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  background-color: var(--fhmm-gruen-500);
}
.fhmm-meldung--green { background-color: var(--fhmm-gruen-500); }
.fhmm-meldung--blue  { background-color: var(--fhmm-blau-500); }
.fhmm-meldung--red   { background-color: var(--fhmm-rot-500); }

/* ---------- Buchungsformular (zimmorg/budaten.php) ---------- */
.fhmm-buchung-scroll {
  overflow: auto;
  max-height: 800px;
}
.fhmm-zimmer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.fhmm-zimmer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--fhmm-blau-800);
}

/* ---------- Belegungskalender (zimmorg/kalender.php) ---------- */
.fhmm-kal {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fhmm-kal-leiste {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fhmm-kal-zeit {
  font-size: 0.75rem;
  color: var(--fhmm-grau-400);
  padding: 1rem;
}
.fhmm-kal .fhmm-card {
  max-width: 28rem;
  margin: 1.25rem;
  padding: 1.25rem;
}
.fhmm-kal-auswahl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.fhmm-kal-auswahl .fhmm-select { margin: 0.5rem; }
.fhmm-kal-tabelle {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.fhmm-kal-tabelle th {
  background-color: var(--fhmm-blau-500);
  color: #ffffff;
  padding: 0.5rem;
  font-weight: 600;
}
.fhmm-kal-zelle {
  padding: 0.5rem;
  border: 1px solid var(--fhmm-grau-300);
  text-align: center;
  vertical-align: top;
  height: 5rem;
  width: 5rem;
}
.fhmm-kal-tag {
  background-color: var(--fhmm-gelb-100);
  color: #000000;
  font-weight: 700;
}
.fhmm-kal-belegt {
  background-color: var(--fhmm-gruen-200);
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
  word-break: break-word;
}

/* ---------- Buchungsliste (buliste) ---------- */
.fhmm-buliste {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--fhmm-amber-100);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1200px;
}
.fhmm-buliste-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1rem;
}
.fhmm-buliste-filter .fhmm-label { color: var(--fhmm-blau-900); font-weight: 700; }
.fhmm-buliste-scroll {
  max-height: 500px;
  overflow: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--fhmm-amber-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  position: relative;
  isolation: isolate;
}
.fhmm-tabelle {
  min-width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--fhmm-grau-700);
}
.fhmm-tabelle thead th {
  background-color: var(--fhmm-amber-300);
  color: var(--fhmm-blau-900);
  text-align: left;
  padding: 0.75rem 1rem;
  position: sticky;
  top: -1rem;
  z-index: 2;
}
.fhmm-tabelle td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--fhmm-grau-200);
}
.fhmm-tabelle tbody tr:hover { background-color: var(--fhmm-grau-100); }
.fhmm-x      { color: var(--fhmm-blau-600); }
.fhmm-strich { color: var(--fhmm-rot-600); }
.fhmm-leer   { color: var(--fhmm-grau-600); padding: 1rem; }

/* ---------- Navigation (nav_menu*.php) ---------- */
.fhmm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--fhmm-grau-800);
  border-bottom: 1px solid var(--fhmm-grau-700);
}

/* ---------- PDF-Ansicht ---------- */
.fhmm-pdf-hinweis {
  text-align: center;
  margin-top: 2rem;
  color: var(--fhmm-grau-600);
}
.fhmm-pdf-hinweis a { color: var(--fhmm-blau-700); text-decoration: underline; }
