/* JARVIS · Ordnung (28.11.2026): Kontextleiste, Unternehmens-Seiten, Marketing im Rahmen.
   Farben und Abstände kommen aus den bestehenden Variablen (amtshotel.css, glas.css) – hier steht nur die Anordnung. */

/* ------------------------------------------------ Kontextleiste: wo bin ich, was liegt daneben */
.kx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.kx-pfad { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13.5px; min-width: 0; }
.kx-pfad li { display: inline-flex; align-items: center; min-width: 0; }
.kx-pfad li + li::before { content: "›"; margin: 0 8px; color: var(--text-3, var(--text-2)); }
.kx-pfad a { color: var(--text-2); font-weight: 600; text-decoration: none; padding: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.kx-pfad a:hover { color: var(--text); text-decoration: underline; }
.kx-pfad li:last-child a { color: var(--text); }
.kx-reiter { display: flex; gap: 6px; max-width: 100%; margin-left: auto; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.kx-reiter::-webkit-scrollbar { display: none; }
.kx:not(:has(.kx-pfad)) .kx-reiter { margin-left: 0; }
.kx-reiter a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kx-reiter a:hover { color: var(--text); background: var(--hover); }
.kx-reiter a:focus-visible, .kx-pfad a:focus-visible { outline: 2px solid var(--accent, #E8554F); outline-offset: 2px; }
.kx-reiter a[aria-current="page"] { color: var(--haupt-text); background: var(--haupt); border-color: transparent; }
@media (max-width: 760px) {
  .kx { gap: 4px; }
  /* Handy: nur der nächste Schritt zurück („‹ Hotel“) – der ganze Pfad bräuchte zwei Zeilen */
  .kx-pfad li:not(:last-child) { display: none; }
  .kx-pfad li + li::before, .kx-pfad li:last-child::before { content: "‹"; margin: 0 6px 0 0; color: var(--text-2); }
  .kx-pfad a { max-width: 80vw; padding: 8px 0; }
  .kx-reiter { width: 100%; margin-left: 0; }
  .kx-reiter a { padding: 9px 14px; }
}

/* ------------------------------------------------ Karten „gehört dazu“ (Unternehmen, Einheit Hotel) */
a.un-karte { text-decoration: none; }
.un-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.un-kopf b { font-size: 16.5px; overflow-wrap: anywhere; }
.un-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--hover); color: var(--coral, #EC5F5E); }
.un-icon svg { width: 20px; height: 20px; }
.un-minus .value, .mz-eilig .value { color: var(--coral-strong, #C43F3E); }
.un-pin { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 7px 10px; border-radius: 10px; background: var(--hover); letter-spacing: .08em; }
.un-zaehler, .un-pinlinks { margin-bottom: 14px; }
.un-stand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.un-stand .pfield { flex: 1 1 140px; min-width: 120px; }
.un-seite .lq-betrag small { font-weight: 500; color: var(--text-2); }

/* ------------------------------------------------ Marketing: Auswahl der Marke */
.mz-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.mz-marke { display: grid; gap: 14px; padding: 20px; align-content: start; }
.mz-marke-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.mz-marke-kopf b { display: block; font-size: 24px; line-height: 1.15; }
.mz-marke-kopf small { display: block; margin-top: 4px; color: var(--text-2); font-size: 13.5px; }
.mz-zahlen { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mz-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-listen { align-items: start; }

/* ------------------------------------------------ Marketing: die Zentrale im Rahmen, neben der Seitenleiste */
body.mz-voll .main { padding: 0 !important; min-height: 0; }
.mz-rahmen { position: fixed; z-index: 5; inset: 0; }
.mz-rahmen iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
@media (min-width: 761px) { .mz-rahmen { left: var(--sb-w); } }
@media (max-width: 760px) {
  .mz-rahmen { top: calc(48px + env(safe-area-inset-top)); }
  /* Die Zentrale bringt ihre eigene Leiste unten mit – zwei Leisten übereinander wären zu viel */
  body.mz-voll .tabbar { display: none; }
}

/* ------------------------------------------------ Stammdaten (Einstellungen → Firmen und Unternehmens-Seite)
   Lange Werte brechen in ihrer Spalte um, statt in die Nachbarspalte zu laufen. */
.fi-zeile { grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); }
.fi-zeile dd, .fi-gruppe { min-width: 0; }
.fi-chip { text-align: left; }
.fi-chip span { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .fi-zeile { grid-template-columns: minmax(0, 1fr); } }
