﻿/* Hotelabteilung (15.10.2026) — Board, Tourakte, Hotels. Farben aus dem RWD-CI (app.css). */

.ho-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ho-kopf h1 { margin: 0; }
.ho-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.ho-nav a { padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--rwd-blue-700); background: #fff; border: 1px solid var(--border); font-size: 13px; }
.ho-nav a.aktiv, .ho-nav a:hover { background: var(--rwd-blue-700); color: #fff; border-color: var(--rwd-blue-700); }

.ho-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ho-filter input, .ho-filter select { padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; }
.ho-kw { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.ho-kw button { border: 0; background: none; padding: 6px 11px; font-size: 13px; cursor: pointer; color: var(--text); }
.ho-kw button.aktiv { background: var(--rwd-blue-700); color: #fff; }

.ho-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ho-kpi { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; cursor: pointer; text-align: left; }
.ho-kpi.aktiv { border-color: var(--rwd-blue-700); box-shadow: 0 0 0 2px rgba(31,78,122,.15); }
.ho-kpi-wert { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.ho-kpi-lbl { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

.ho-ampel { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ho-a-offen { background: #fee2e2; color: #b91c1c; }
.ho-a-teilweise { background: #ffedd5; color: #9a3412; }
.ho-a-gebucht { background: #dbeafe; color: #1d4ed8; }
.ho-a-kueraus { background: #e0e7ff; color: #3730a3; }
.ho-a-bestaetigt { background: #d1fae5; color: #065f46; }
.ho-a-klaerfall { background: #fef3c7; color: #92400e; }
.ho-a-laeuft { background: #f3f4f6; color: #374151; }
.ho-a-keinbedarf { background: #f1f5f9; color: #475569; }

.ho-liste { display: flex; flex-direction: column; gap: 8px; }
.ho-zeile { background: #fff; border: 1px solid var(--border); border-left: 4px solid #cbd5e1; border-radius: 10px; padding: 10px 14px;
            display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(160px, 1fr) minmax(220px, 1.6fr); gap: 6px 16px;
            text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.ho-zeile:hover { box-shadow: 0 4px 14px rgba(15,23,42,.08); transform: translateY(-1px); }
.ho-zeile.ho-a-offen-rand { border-left-color: #dc2626; }
.ho-zeile.ho-a-teilweise-rand { border-left-color: #ea580c; }
.ho-zeile.ho-a-klaerfall-rand { border-left-color: #d97706; }
.ho-zeile.ho-a-gebucht-rand { border-left-color: #3b82f6; }
.ho-zeile.ho-a-kueraus-rand { border-left-color: #6366f1; }
.ho-zeile.ho-a-bestaetigt-rand { border-left-color: #16a34a; }
.ho-zeile .ho-tour { font-weight: 700; }
.ho-zeile .ho-klein { font-size: 12px; color: var(--text-muted); }
.ho-gruende { font-size: 12px; color: #92400e; grid-column: 1 / -1; }
.ho-buchung-chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; background: #f1f5f9; margin: 1px 4px 1px 0; }

.ho-akte { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.ho-karte { height: 460px; border-radius: 10px; border: 1px solid var(--border); background: #e5e7eb; position: sticky; top: 12px; }
.ho-karte.gross { height: 620px; position: static; }

.ho-tage { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.ho-tag { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12px; background: #f8fafc; }
.ho-tag.gedeckt { background: #ecfdf5; border-color: #a7f3d0; }
.ho-tag.offen { background: #fef2f2; border-color: #fecaca; }

.ho-aufenthalt { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.ho-aufenthalt-kopf { padding: 9px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ho-kandidaten { display: flex; flex-direction: column; }
.ho-kandidat { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.ho-kandidat:last-child { border-bottom: 0; }
.ho-kandidat.gewaehlt { background: #fffbeb; }
.ho-kandidat .ho-name { font-weight: 600; }
.ho-kandidat .ho-gruende-k { font-size: 11.5px; color: var(--text-muted); grid-column: 1 / -1; }
.ho-marke { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.ho-m-markt { background: #d1fae5; color: #065f46; }
.ho-m-osm { background: #f3f4f6; color: #4b5563; }
.ho-m-gesperrt { background: #fee2e2; color: #b91c1c; }
.ho-sterne { color: #d97706; letter-spacing: 1px; }

.ho-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 12px; }
.ho-form label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.ho-form input, .ho-form select, .ho-form textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; font-family: inherit; }
.ho-form .breit { grid-column: 1 / -1; }

.ho-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.ho-tabelle th { text-align: left; font-size: 11.5px; color: var(--text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ho-tabelle td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.ho-tabelle tr.klick { cursor: pointer; }
.ho-tabelle tr.klick:hover td { background: #f8fafc; }
.ho-tabelle .rechts { text-align: right; white-space: nowrap; }

.ho-meldung { padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.ho-meldung.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ho-meldung.fehler { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.ho-reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.ho-reiter button { border: 0; background: none; padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); }
.ho-reiter button.aktiv { color: var(--rwd-blue-700); border-bottom-color: var(--rwd-blue-700); font-weight: 600; }

@media (max-width: 1100px) {
    .ho-akte { grid-template-columns: 1fr; }
    .ho-karte { position: static; height: 360px; }
}
@media (max-width: 700px) {
    .ho-zeile { grid-template-columns: 1fr; }
    .ho-nav { margin-left: 0; }
}

/* Tourkacheln im Board (28.10.2026) */
.ho-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.ho-kachel { background: #fff; border: 1px solid var(--border); border-left: 4px solid #cbd5e1; border-radius: 10px; padding: 9px 12px;
             display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; min-width: 0; }
.ho-kachel:hover { box-shadow: 0 4px 14px rgba(15,23,42,.08); transform: translateY(-1px); }
.ho-kachel.ho-a-offen-rand { border-left-color: #dc2626; }
.ho-kachel.ho-a-teilweise-rand { border-left-color: #ea580c; }
.ho-kachel.ho-a-klaerfall-rand { border-left-color: #d97706; }
.ho-kachel.ho-a-gebucht-rand { border-left-color: #3b82f6; }
.ho-kachel.ho-a-kueraus-rand { border-left-color: #6366f1; }
.ho-kachel.ho-a-bestaetigt-rand { border-left-color: #16a34a; }
.ho-k-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ho-kachel .ho-tour { font-weight: 700; }
.ho-k-titel { font-size: 12.5px; font-weight: 600; color: var(--rwd-blue-700, #14375E); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-kachel .ho-klein { font-size: 12px; color: var(--text-muted); }
.ho-k-buchung { margin-top: 2px; }
.ho-kachel .ho-gruende { grid-column: auto; }
/* Hotels: Karte rechts über die volle Fensterhöhe, bleibt beim Scrollen der Liste stehen (28.10.2026). */
.ho-hotels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ho-hotels > div:last-child { align-self: stretch; }
.ho-karte.voll { position: sticky; top: 8px; height: calc(100vh - 16px); }
@media (max-width: 1100px) { .ho-karte.voll { position: static; height: 420px; } }

/* Board 28.10.2026: Freigabe zum Buchen (oberer Rand), KW-Datum, Geklärt-Knopf, Dialog */
.ho-kachel.ho-frei { border-top: 3px solid #16a34a; }
.ho-kachel.ho-gesperrt { border-top: 3px solid #dc2626; }
.ho-freigabe { font-size: 11.5px; font-weight: 600; margin: 2px 0; }
.ho-freigabe.frei { color: #15803d; }
.ho-freigabe.fehlt { color: #b91c1c; }
.ho-kw-datum { font-size: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; }
.ho-k-klaeren { margin-top: 6px; font-size: 12px; padding: 1px 8px; }
.ho-modal-hg { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ho-modal { background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(15,23,42,.25); padding: 16px 18px; width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.ho-modal h3 { font-size: 16px; margin: 0 0 8px; }

/* Buchungsfenster (29.10.2026) */
.ho-modal.ho-modal-breit { width: min(760px, 100%); }
.ho-guthaben { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; }
.ho-guthaben label { display: block; margin-top: 4px; font-size: 12px; color: inherit; }
.ho-zimmer input { width: 96px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; text-align: right; }
.ho-bezug { display: flex; flex-direction: column; gap: 10px; }
.ho-bezug .ho-vorschlag { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.ho-postfach-akte { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .ho-postfach-akte { grid-template-columns: 1fr; } }
.ho-form input[type=checkbox], .ho-form input[type=radio] { width: auto; padding: 0; margin-right: 4px; vertical-align: -2px; }

/* Anrufen per Klick (29.10.2026) */
.ho-tel { white-space: nowrap; text-decoration: none; }
.btn .ho-tel { display: inline-block; padding: 3px 8px; color: inherit; }

/* Ortssuche mit Auswahl (29.10.2026) */
.ho-ortsuche { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ho-ortsuche input { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; min-width: 170px; }
.ho-ort-gewaehlt { font-size: 13px; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 6px; padding: 2px 8px; }
.ho-ort-liste { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; max-width: 640px; }
/* Etappe 4 (Meeting 28.10.2026) */
/* Bewertung: 1–5 Sterne je Kriterium */
.ho-sternleiste { display: inline-flex; align-items: center; gap: 1px; }
.ho-sternleiste button { border: 0; background: none; padding: 0 1px; font-size: 20px; line-height: 1; color: #d1d5db; cursor: pointer; }
.ho-sternleiste button.an { color: #d97706; }
.ho-sternleiste button:hover { color: #f59e0b; }
.ho-sternleiste .small { margin-left: 6px; }
/* Tour geändert (CC) */
.ho-cc-abzeichen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; color: #6d28d9;
                   background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 6px; padding: 3px 6px; margin: 3px 0; }
.ho-cc-abzeichen .btn { padding: 0 6px; font-size: 11px; }
.ho-cc-gross { justify-content: space-between; align-items: flex-start; font-size: 13px; font-weight: 400; margin: 0 14px 12px; padding: 8px 12px; }
.ho-cc-aenderung { border-left: 3px solid #a78bfa; padding: 4px 8px; margin: 6px 0; background: #faf5ff; }
/* Hotel-Postfach im Aufbau des Ticketsystems */
.pf.ho-pf { margin: 0 -24px -24px; height: calc(100vh - 128px); }
@media (max-width: 1023px) { .pf.ho-pf { margin: 0 -12px -14px; height: auto; } }
/* Rechnungsprüfung: Aufstellung */
.ho-aufstellung > td { background: #f8fafc; padding: 4px 16px 10px !important; }
.ho-tabelle-klein { font-size: 12px; margin-bottom: 4px; }
.ho-tabelle-klein td, .ho-tabelle-klein th { padding: 3px 6px; }
.ho-pos-fehlt td { color: #b91c1c; }
.ho-tabelle th.klick { cursor: pointer; user-select: none; }
.ho-tabelle th.klick:hover { color: var(--rwd-blue-700); }
/* Großereignisse aus dem Kalender der Jahresplanung (29.10.2026) */
.ho-event-abzeichen { font-size: 11.5px; font-weight: 600; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 2px 6px; margin: 3px 0; display: inline-block; }
.ho-event-hinweis { font-size: 12.5px; color: #9a3412; background: #fff7ed; border-left: 3px solid #fb923c; padding: 5px 9px; margin: 0 0 6px; border-radius: 4px; }
