@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Markenschrift von innohive (Brand System: RM Neue) — für Überschriften und Logo. */
@font-face {
    font-family: 'RM Neue';
    src: url('fonts/rm-neue/RMNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RM Neue';
    src: url('fonts/rm-neue/RMNeue-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RM Neue';
    src: url('fonts/rm-neue/RMNeue-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* osotel-Branding (Branding Osotel/Brand-Guide.md): Coral wie das "os" im Logo, Navy für
       Überschriften, Mango nur im Verlauf. Die App bleibt sonst ruhig weiss/grau — Farbe nur dort,
       wo etwas aktiv, ausgewählt oder klickbar ist. */
    /* Farbthema: Standard ist osotel. Hotels können im Hotel-Profil ein anderes Thema wählen —
       dann überschreibt das Layout genau diese Variablen (siehe HotelColorThemes). */
    --ih-primary: #c94f1c;
    --ih-primary-dark: #a8421a;
    --ih-primary-light: #fdefe8;
    --ih-primary-rgb: 201, 79, 28;
    --ih-primary-border: #f4c6ae;
    --ih-accent: #ffaa46;
    --ih-band-start: #fdf3ee;
    --ih-band-end: #fff5ea;
    --ih-band-border: #f3ddd0;

    /* Bootstrap-Primärfarbe auf das Farbthema legen — damit auch Bootstrap-eigene Elemente
       (text-primary, Fortschrittsbalken, Markierungen …) die Hotelfarbe übernehmen. */
    --bs-primary: var(--ih-primary);
    --bs-primary-rgb: var(--ih-primary-rgb);
    --bs-primary-text-emphasis: var(--ih-primary-dark);
    --bs-primary-bg-subtle: var(--ih-primary-light);
    --bs-primary-border-subtle: var(--ih-primary-border);
    --bs-link-color: var(--ih-primary-dark);
    --bs-link-hover-color: var(--ih-primary-dark);
    --ih-navy: #17233b;
    --ih-brand: #17233b;
    --ih-gradient: linear-gradient(135deg, var(--ih-primary) 0%, var(--ih-accent) 100%);
    --ih-heading-font: 'RM Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Blau für Kennzahlen, Zimmer-Chips, Anreisedaten — folgt dem Farbthema des Hotels. */
    --ih-blue: var(--ih-primary);
    --ih-blue-light: var(--ih-primary-light);
    --ih-green: #13a06f;
    --ih-green-light: #e6f6ef;
    --ih-purple: #7c5ce0;
    --ih-purple-light: #f2edff;
    --ih-pink: #d6457f;
    --ih-pink-light: #fcebf2;

    --ih-bg: #f6f8fa;
    --ih-surface: #ffffff;
    --ih-text: #1a1f36;
    --ih-text-muted: #687385;
    --ih-border: #e3e8ee;
    --ih-radius: 0.6rem;
}

* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--ih-bg);
    color: var(--ih-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    font-size: 0.875rem;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ih-heading-font);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ih-navy);
}

h1 {
    font-size: 1.375rem;
}

h2 {
    font-size: 1.15rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.95rem;
}

h1:focus {
    outline: none;
}

h3 {
    font-size: 1rem;
    margin-top: 0.5rem;
}

a {
    color: var(--ih-primary-dark);
    text-decoration: none;
}

    a:hover {
        color: var(--ih-primary-dark);
        text-decoration: underline;
    }

/* Formulare: ruhig, viel Weißraum, dünne helle Rahmen statt harter Linien. */
.form-label {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #414552;
}

.form-control,
.form-select {
    font-size: 0.85rem;
    padding: 0.38rem 0.65rem;
    border-color: #d5dbe1;
    border-radius: 0.375rem;
    box-shadow: 0 1px 1px rgba(16, 20, 39, 0.03);
    background-color: var(--ih-surface);
}

/* Bootstraps Select-Pfeil braucht Platz rechts (sonst überlappt er den Text) — beim
   Verkleinern der Formularfelder nicht mit verkleinern. */
.form-select {
    padding-right: 2.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ih-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ih-primary-rgb), 0.18);
}

.form-check-label {
    font-size: 0.85rem;
}

.form-check-input:checked {
    background-color: var(--ih-primary);
    border-color: var(--ih-primary);
}

/* Buttons: weicher, moderner (mehr Rundung, kein harter Bootstrap-Standardlook). */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    padding: 0.38rem 0.85rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

    .btn > .bi {
        font-size: 0.95em;
        line-height: 1;
    }

.btn-lg {
    font-size: 0.92rem;
    padding: 0.5rem 1.05rem;
}

.btn-sm {
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
}

.btn-primary,
.btn-accent {
    --bs-btn-bg: var(--ih-primary);
    --bs-btn-border-color: var(--ih-primary);
    --bs-btn-hover-bg: var(--ih-primary-dark);
    --bs-btn-hover-border-color: var(--ih-primary-dark);
    --bs-btn-active-bg: var(--ih-primary-dark);
    --bs-btn-active-border-color: var(--ih-primary-dark);
    --bs-btn-disabled-bg: var(--ih-primary);
    --bs-btn-disabled-border-color: var(--ih-primary);
    background: var(--ih-primary);
    border-color: var(--ih-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 20, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

    .btn-primary:hover,
    .btn-accent:hover {
        background: var(--ih-primary-dark);
        border-color: var(--ih-primary-dark);
        color: #fff;
    }

.btn-outline-primary {
    --bs-btn-color: var(--ih-primary-dark);
    --bs-btn-border-color: var(--ih-primary-border);
    --bs-btn-hover-bg: var(--ih-primary-light);
    --bs-btn-hover-color: var(--ih-primary-dark);
    --bs-btn-hover-border-color: var(--ih-primary);
    --bs-btn-active-bg: var(--ih-primary-light);
    --bs-btn-active-color: var(--ih-primary-dark);
    --bs-btn-active-border-color: var(--ih-primary);
}

.btn-outline-secondary {
    --bs-btn-color: #414552;
    --bs-btn-border-color: #d5dbe1;
    --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #f6f8fa;
    --bs-btn-hover-color: var(--ih-text);
    --bs-btn-hover-border-color: #c0c8d2;
    --bs-btn-active-bg: #eef1f5;
    --bs-btn-active-color: var(--ih-text);
    box-shadow: 0 1px 1px rgba(16, 20, 39, 0.04);
}

.btn-dark {
    --bs-btn-bg: var(--ih-navy);
    --bs-btn-border-color: var(--ih-navy);
}

.text-primary {
    color: var(--ih-primary) !important;
}

.bg-primary,
.text-bg-primary {
    background-color: var(--ih-primary) !important;
}

/* Tabs als gut sichtbare Leiste: hellgrauer Rahmen, der aktive Tab als Knopf in der Themenfarbe — die
   früheren dünnen Reiter wurden von neuen Benutzern leicht übersehen. Bricht auf schmalen Bildschirmen um. */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid var(--ih-border);
    border-radius: 0.65rem;
    background-color: #f1f3f7;
}

.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.5rem 0.95rem;
    border: 0;
    border-radius: 0.5rem;
    color: #3c4257;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.nav-tabs .nav-link i {
    font-size: 1rem;
    color: var(--ih-primary);
}

.nav-tabs .nav-link:hover {
    background-color: #fff;
    color: var(--ih-navy);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover {
    background-color: var(--ih-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(var(--ih-primary-rgb), 0.35);
}

.nav-tabs .nav-link.active i {
    color: #fff;
}

.nav-pills .nav-link.active {
    background-color: var(--ih-primary);
}

.form-check-input:focus {
    border-color: var(--ih-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ih-primary-rgb), 0.18);
}

.form-switch .form-check-input:checked {
    background-color: var(--ih-primary);
}

.page-link {
    color: var(--ih-primary-dark);
}

.active > .page-link,
.page-link.active {
    background-color: var(--ih-primary);
    border-color: var(--ih-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--ih-primary);
}

.progress-bar {
    background: var(--ih-gradient);
}

.btn-outline-danger {
    --bs-btn-color: #c1443a;
    --bs-btn-border-color: #f0d3d0;
    --bs-btn-hover-bg: #fbeceb;
    --bs-btn-hover-color: #c1443a;
    --bs-btn-hover-border-color: #f0d3d0;
}

/* Karten: leichter Schatten statt harter Rahmen. */
.card {
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    box-shadow: 0 1px 2px rgba(16, 20, 39, 0.04);
}

.card-header {
    background-color: #fbfcfd;
    border-bottom-color: var(--ih-border);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Kartentitel: steht er (oder seine Titelzeile mit Knöpfen) zuoberst in einer Karte, wird er zum
   farbigen Kopfbalken über die ganze Kartenbreite — jede Box hat damit sofort erkennbar einen Kopf. */
.card-body:not(.d-flex) > .card-title:first-child,
.card-body:not(.d-flex) > :first-child:has(> .card-title),
.card-body:not(.d-flex) > .ih-dash-card-title:first-child {
    margin: calc(-1 * var(--bs-card-spacer-y)) calc(-1 * var(--bs-card-spacer-x)) 1rem !important;
    padding: 0.7rem var(--bs-card-spacer-x);
    background: linear-gradient(90deg, var(--ih-band-start) 0%, var(--ih-band-end) 100%);
    border-bottom: 1px solid var(--ih-band-border);
    border-radius: calc(var(--ih-radius) - 1px) calc(var(--ih-radius) - 1px) 0 0;
}

    .card-body:not(.d-flex) > :first-child:has(> .card-title) > .card-title {
        margin-bottom: 0 !important;
    }
.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ih-heading-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ih-navy);
    letter-spacing: -0.005em;
}

    .card-title::before {
        content: "";
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 50%;
        background: var(--ih-gradient);
        flex-shrink: 0;
    }

/* Farbige Statistik-Karten (Dashboard): jede Kennzahl bekommt ein eigenes Farb-Icon statt
   überall derselben grauen Fläche. */
.ih-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .ih-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(20, 30, 40, 0.1);
        cursor: pointer;
    }

.ih-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.ih-stat-blue .ih-stat-icon { background: var(--ih-blue-light); color: var(--ih-blue); }
.ih-stat-green .ih-stat-icon { background: var(--ih-green-light); color: var(--ih-green); }
.ih-stat-purple .ih-stat-icon { background: var(--ih-purple-light); color: var(--ih-purple); }
.ih-stat-pink .ih-stat-icon { background: var(--ih-pink-light); color: var(--ih-pink); }
.ih-stat-orange .ih-stat-icon { background: #eef0f6; color: var(--ih-navy); }
.ih-stat-red .ih-stat-icon { background: #fbe4e4; color: #c1443a; }

.ih-stat-sub {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

/* Dashboard-Detailkarten (Zimmerstatus/Parkplätze/Housekeeping): Titel + Zeile aus kleinen
   Zahl-Badges, damit man auf einen Blick den Live-Betriebszustand sieht statt nur rohe Counts. */
.ih-dash-card-title {
    font-family: var(--ih-heading-font);
    color: var(--ih-navy);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ih-dash-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ih-dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--bs-tertiary-bg, #f3f4f6);
}

.ih-dash-chip strong {
    font-size: 0.9rem;
}

.ih-dash-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,0.06));
    font-size: 0.85rem;
}

.ih-dash-list-item:last-child {
    border-bottom: none;
}

.ih-dash-empty {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.ih-stat-value {
    font-family: var(--ih-heading-font);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ih-navy);
}

/* Zimmer-Detailseite: Checkboxen als responsives Raster statt ragged flex-wrap aus col-auto —
   bricht auf schmalen (Handy-)Breiten sauber um, statt Checkbox+Label krumm zu verteilen. */
.ih-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.65rem 1rem;
}

.ih-checkbox-grid .form-check {
    margin-bottom: 0;
}

/* Mitarbeiter-Detailseite: Tab markiert sich rot, sobald ein Feld darin einen
   Validierungsfehler hat — damit man beim Speichern nicht durch alle Tabs suchen muss. */
.nav-tabs .nav-link.ih-tab-error {
    color: #b42318;
    background-color: #fbeaea;
    box-shadow: inset 0 0 0 1px #f1b0b7;
}

.nav-tabs .nav-link.ih-tab-error.active {
    background-color: #dc3545;
    color: #fff;
}

/* Gastronomie-Betrieb: Kategorien-Chips im Raster mit Höhenbegrenzung + eigenem Scroll — bei
   20-30 Kategorien soll die Karte nicht immer weiter wachsen und die Produkte-Tabelle wegdrücken. */
.ih-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.ih-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--ih-bg);
    border: 1px solid var(--ih-border);
    border-radius: 0.4rem;
    font-size: 0.85rem;
    min-width: 0;
}

.ih-category-item .btn {
    padding: 0.1rem 0.4rem;
    line-height: 1.4;
}

/* Foto-Galerie: responsives Raster mit festem Seitenverhältnis statt fixer 120x90px-Kacheln,
   die auf schmalen Spalten/Handys entweder überlaufen oder winzig aussehen. */
.ih-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
}

.ih-photo-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--ih-border);
}

.ih-photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.ih-photo-delete {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    line-height: 1;
    padding: 0.15rem 0.45rem;
}

/* Klick auf ein Zimmerfoto-Thumbnail vergrössert es — Overlay statt Bootstrap-JS-Modal, da in
   Blazor Server rein über Komponentenzustand steuerbar (kein JS-Interop-Timing nötig). */
.ih-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(10, 12, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.ih-photo-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Dashboard-Abschnittstitel: trennt die Widget-Gruppen (Übersicht/Betrieb/An-Abreisen/
   Verwaltung) klar sichtbar statt einer ununterbrochenen Kartenwand. */
.ih-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ih-text-muted);
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ih-border);
}

.ih-stat-card.ih-stat-hero .card-body {
    display: block;
}

.ih-occupancy-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 0.75rem;
}

.ih-occupancy-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--ih-gradient);
}

/* Dashboard-Kopf: Datum über der Begrüssung. */
.ih-dash-head {
    margin-bottom: 1.25rem;
}

.ih-dash-date {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ih-text-muted);
    margin-bottom: 0.15rem;
}

/* Kennzahlenleiste: gleich grosse, kompakte Kacheln statt einer leeren Breitkarte — passt sich
   der Anzahl sichtbarer Kennzahlen (je nach Rolle/Paket) automatisch an. */
.ih-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.ih-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .ih-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(20, 30, 40, 0.1);
        color: inherit;
    }

    .ih-kpi .ih-occupancy-bar {
        margin: 0.35rem 0 0.15rem;
    }

.ih-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ih-kpi-label {
    font-size: 0.8rem;
    color: var(--ih-text-muted);
}

.ih-kpi-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.ih-kpi-blue { background: var(--ih-blue-light); color: var(--ih-blue); }
.ih-kpi-green { background: var(--ih-green-light); color: var(--ih-green); }
.ih-kpi-purple { background: var(--ih-purple-light); color: var(--ih-purple); }
.ih-kpi-orange { background: #fdeee6; color: #d0602a; }
.ih-kpi-red { background: #fbe4e4; color: #c1443a; }

.ih-kpi-value {
    font-family: var(--ih-heading-font);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ih-navy);
}

.ih-kpi-of {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ih-text-muted);
}

.ih-kpi-sub {
    font-size: 0.75rem;
    color: var(--ih-text-muted);
}

.ih-dash-card-title > span > .bi {
    margin-right: 0.3rem;
}

.ih-dash-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ih-text-muted);
    margin: 0.9rem 0 0.4rem;
}

.ih-guest-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

    .ih-guest-badges:empty {
        display: none;
    }

    .ih-guest-badges .badge {
        font-weight: 500;
    }

/* "Zu erledigen": jede Zeile ein Link mit Zahl, farbig nach Dringlichkeit. */
.ih-todo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.4rem;
    border-radius: 0.5rem;
    background: var(--ih-todo-bg);
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
}

    .ih-todo:last-child {
        margin-bottom: 0;
    }

    .ih-todo:hover {
        filter: brightness(0.97);
        color: inherit;
    }

    .ih-todo .bi-chevron-right {
        margin-left: auto;
        color: var(--ih-text-muted);
    }

.ih-todo-danger { --ih-todo-color: #c1443a; --ih-todo-bg: #fdf0ef; }
.ih-todo-warning { --ih-todo-color: #d99a1e; --ih-todo-bg: #fdf7e8; }
.ih-todo-info { --ih-todo-color: var(--ih-navy); --ih-todo-bg: #eef0f6; }

.ih-todo-count {
    min-width: 1.7rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ih-todo-color);
    text-align: center;
}

.ih-shift-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.ih-shift-dot {
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    border-radius: 50%;
}

/* Belegungsausblick: 7 senkrechte Balken, darunter An-/Abreisen des Tages. */
.ih-forecast {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.ih-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.ih-forecast-pct {
    font-weight: 600;
    color: var(--ih-navy);
}

.ih-forecast-track {
    position: relative;
    width: 100%;
    max-width: 44px;
    height: 90px;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ih-forecast-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ih-gradient);
    border-radius: 0.4rem 0.4rem 0 0;
}

.ih-forecast-label {
    color: var(--ih-text-muted);
    white-space: nowrap;
}

.ih-forecast-moves {
    display: flex;
    gap: 0.35rem;
    min-height: 1.1em;
    color: var(--ih-text-muted);
}

.ih-dash-guests .ih-guest-count {
    background: var(--ih-blue-light);
    color: var(--ih-navy);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.ih-fin-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ih-border);
    font-size: 0.88rem;
}

    .ih-fin-row:last-child {
        border-bottom: none;
    }

    .ih-fin-row strong {
        font-family: var(--ih-heading-font);
        font-size: 1.05rem;
    }

/* Ankünfte/Abreisen: zwei Zeilen statt einer langen, mit Bindestrichen aneinandergereihten
   Textwurst — Name/Personenzahl oben, Zimmer/Kategorie/Datum/Telefon als kompakte Meta-Zeile. */
.ih-guest-row-line1 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.ih-guest-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.ih-guest-row-line2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--ih-text-muted);
    margin-top: 0.2rem;
}

.ih-meta-sep {
    color: var(--ih-border);
}

.ih-room-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.55rem;
    border-radius: 999px;
    background: var(--ih-blue-light);
    color: var(--ih-blue);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Formular-Felder in gleichmässigen Grid-Spalten statt col-auto (das links zusammenklebt und
   rechts viel Leerraum lässt). */
.ih-field-grid > .row > [class*="col-"] {
    margin-bottom: 0.75rem;
}

/* Kompaktes Formular mit vielen kleinen Feldern: packt so viele wie möglich pro Zeile,
   damit lange Formulare weniger Zeilen brauchen statt einer festen Bootstrap-Spaltenzahl. */
.ih-compact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.ih-sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.ih-sortable-th:hover {
    color: var(--ih-primary-dark);
}

/* Formularzeile für "Neue Reservierung": flexibel statt starres Bootstrap-12-Raster, damit
   zusammengehörige Felder (z.B. Kategorie + Zimmer) nicht durch einen Zeilenumbruch getrennt
   werden und schmale Felder (Personen, Verpflegung) wirklich schmaler sind als breite. */
.ih-reservation-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ih-rf-field {
    flex: 1 1 170px;
}

.ih-rf-field.ih-rf-wide {
    flex: 1.3 1 240px;
}

.ih-rf-field.ih-rf-narrow {
    flex: 0 1 170px;
}

.ih-rf-field.ih-rf-tiny {
    flex: 0 1 90px;
}

.ih-child-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
    padding: 0.35rem 0.5rem;
}

.ih-child-chip-remove {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.6rem;
}

.ih-child-add-group {
    width: auto;
}

.ih-child-add-group input {
    width: 70px;
}

/* Such-Dropdown für Kundenauswahl statt einer langen <select>-Liste — bleibt auch bei
   tausenden erfassten Kunden schnell, weil pro Eingabe nur die Top-Treffer geladen werden. */
.ih-customer-picker {
    position: relative;
}

.ih-customer-picker-selected {
    background-color: var(--bs-body-bg);
}

.ih-customer-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 2px;
    max-height: 260px;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.ih-customer-picker-item {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ih-customer-picker-item:hover {
    background-color: var(--ih-primary-light);
}

.ih-customer-picker-item-sub {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.ih-customer-picker-item-clear {
    font-style: italic;
    color: var(--bs-secondary-color);
    border-top: 1px solid var(--bs-border-color);
}

/* "Chip"-Kacheln für Facility-/Ausstattungs-Checkboxen statt einer Reihe nackter Checkboxen. */
.ih-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ih-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--ih-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--ih-surface);
    color: var(--ih-text-muted);
    transition: all 0.15s ease;
    user-select: none;
}

    .ih-chip:hover {
        border-color: var(--ih-primary);
        color: var(--ih-text);
    }

    .ih-chip .ih-chip-check {
        display: none;
    }

.ih-chip-active {
    background: var(--ih-primary-light);
    border-color: var(--ih-primary);
    color: var(--ih-primary-dark);
    font-weight: 600;
}

    .ih-chip-active .ih-chip-check {
        display: inline;
    }

/* Tabellen: ruhiger, mit dezentem Hover statt harter Zebra-Linien. */
.table {
    font-size: 0.84rem;
    --bs-table-border-color: #ebeef1;
    --bs-table-hover-bg: #f7fafc;
}

    /* Spaltenköpfe als eigener grauer Balken mit kräftiger Schrift — so trennt sich die
       Kopfzeile sofort vom Inhalt (Standard bei Stripe, Polaris, Atlassian). */
    .table thead th {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #2b3242;
        font-weight: 700;
        border-top: 1px solid var(--ih-border);
        border-bottom: 1px solid #d9dfe6;
        background-color: #f3f5f8;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        white-space: nowrap;
    }

        .table thead th:first-child {
            border-left: 1px solid var(--ih-border);
            border-top-left-radius: 0.45rem;
        }

        .table thead th:last-child {
            border-right: 1px solid var(--ih-border);
            border-top-right-radius: 0.45rem;
        }

    .table thead {
        border-collapse: separate;
    }

    .table > tbody > tr > td {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .table tbody tr:hover > * {
        background-color: #f7fafc;
    }

.badge {
    font-weight: 600;
    font-size: 0.72em;
    padding: 0.38em 0.6em;
    border-radius: 0.3rem;
    letter-spacing: 0.01em;
}

/* Bootstrap-Status-Badges in ruhigen, hellen Tönen (wie Stripe) statt kräftiger Vollflächen. */
.badge.text-bg-primary { background-color: var(--ih-primary-light) !important; color: var(--ih-primary-dark) !important; }
.badge.text-bg-success { background-color: #e3f6ec !important; color: #0e7a52 !important; }
.badge.text-bg-danger { background-color: #fdeaea !important; color: #c0362c !important; }
.badge.text-bg-warning { background-color: #fdf3dc !important; color: #8a5a00 !important; }
.badge.text-bg-info { background-color: #f2edff !important; color: #6a4bd0 !important; }
.badge.text-bg-secondary { background-color: #eef1f5 !important; color: #4f5668 !important; }
.badge.text-bg-dark { background-color: var(--ih-navy) !important; color: #fff !important; }
.badge.text-bg-light { background-color: #f6f8fa !important; color: #414552 !important; border: 1px solid var(--ih-border); }

.alert {
    border-radius: var(--ih-radius);
    border: none;
}

.alert-danger {
    background-color: #fbeceb;
    color: #a53a30;
}

.alert-success {
    background-color: #e8f5ea;
    color: #2f6d38;
}

.alert-warning {
    background-color: #fdf3e0;
    color: #8a5a12;
}

/* Global statt scoped: dieses Element wird von mehreren Layouts gerendert (MainLayout,
   AppLayout), Blazor-CSS-Isolation ist aber pro Komponente — eine scoped-Regel in nur einem
   Layout lässt das Element in den anderen unstyled (und damit permanent sichtbar) zurück. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.ih-lang-switcher .dropdown-toggle {
    padding: 0.3rem 0.55rem;
}

.ih-lang-flag-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ih-employee-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 0.6rem;
    border: 1px solid var(--ih-border);
}

.ih-hotel-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background-color: var(--ih-surface);
    border-radius: 0.6rem;
    border: 1px solid var(--ih-border);
    padding: 0.3rem;
}

.ih-hotel-logo-placeholder {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 0.6rem;
    border: 1px dashed var(--ih-border);
    color: var(--ih-text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.ih-employee-photo-placeholder {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 0.6rem;
    border: 1px dashed var(--ih-border);
    color: var(--ih-text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.ih-lang-menu {
    grid-template-columns: repeat(5, auto);
    gap: 0.2rem;
    padding: 0.6rem;
    min-width: auto;
}

    /* "display: grid" nur zusammen mit Bootstraps ".show" setzen — sonst überschreibt es
       Bootstraps "display: none" auf .dropdown-menu und das Menü bleibt permanent offen. */
    .ih-lang-menu.show {
        display: grid;
    }

.ih-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 0.5rem;
    opacity: 0.65;
}

    .ih-lang-item:hover {
        opacity: 1;
        background-color: var(--ih-primary-light);
    }

    .ih-lang-item.active {
        opacity: 1;
        background-color: var(--ih-primary-light);
        box-shadow: inset 0 0 0 2px var(--ih-primary);
    }

.ih-public-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ih-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

    .ih-public-header .navbar {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .ih-public-header .nav-link {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--ih-text-muted);
        padding: 0.4rem 0.85rem;
        border-radius: 999px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .ih-public-header .nav-link:hover {
            background-color: var(--ih-primary-light);
            color: var(--ih-primary-dark);
        }

.ih-brand {
    font-family: var(--ih-heading-font);
    font-weight: 800;
    color: var(--ih-text);
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

    .ih-brand::before {
        content: "";
        display: inline-block;
        width: 0.7rem;
        height: 0.7rem;
        border-radius: 0.25rem;
        background: var(--ih-gradient);
    }

    .ih-brand:hover {
        color: var(--ih-text);
        text-decoration: none;
    }

/* Pill-Buttons für die öffentliche Marketing-Seite — bewusst nur dort, damit die eingeloggte App
   (Dashboard, Tabellen-Aktionen usw.) ihre bestehende, kompaktere Button-Optik behält. */
.ih-public-header .btn,
.ih-hero .btn,
.ih-pricing-card .btn {
    border-radius: 999px;
    font-weight: 600;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Hero-Bereich der Startseite: weicher Farbverlauf, grosse, straffe Typografie. */
.ih-hero {
    position: relative;
    text-align: center;
    padding: 4.5rem 1rem 3.5rem;
    margin: -1.5rem -1rem 0;
    border-radius: 0 0 2.5rem 2.5rem;
    background: radial-gradient(120% 140% at 50% 0%, var(--ih-primary-light) 0%, rgba(232, 246, 253, 0) 60%),
                linear-gradient(180deg, #fbfbfd 0%, var(--ih-bg) 100%);
    overflow: hidden;
}

.ih-hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ih-brand);
    background-color: var(--ih-surface);
    border: 1px solid var(--ih-border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

.ih-hero-title {
    font-family: var(--ih-heading-font);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.ih-hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--ih-text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature-/Modul-Karten: farbige Icon-Badge, weicher Schatten, sanftes Anheben beim Hover. */
.ih-feature-card {
    height: 100%;
    background-color: var(--ih-surface);
    border: 1px solid var(--ih-border);
    border-radius: 1.1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(20, 20, 43, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .ih-feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px -12px rgba(20, 20, 43, 0.14);
    }

.ih-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.ih-feature-title {
    font-family: var(--ih-heading-font);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

/* Preis-Karten */
.ih-pricing-card {
    height: 100%;
    background-color: var(--ih-surface);
    border: 1px solid var(--ih-border);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(20, 20, 43, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

    .ih-pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -16px rgba(20, 20, 43, 0.16);
    }

.ih-pricing-card--popular {
    border: 2px solid var(--ih-primary);
    box-shadow: 0 20px 40px -16px rgba(var(--ih-primary-rgb), 0.35);
}

.ih-pricing-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ih-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.ih-pricing-name {
    font-family: var(--ih-heading-font);
    font-weight: 700;
    font-size: 1.1rem;
}

.ih-pricing-amount {
    font-family: var(--ih-heading-font);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 2.5rem;
    line-height: 1;
}

/* Bewusst KEIN grüner Rahmen für ".valid.modified" (Blazor-Standard-Scaffolding): das würde bei
   JEDEM angefassten Feld aufleuchten, auch wenn es gar keine Validierungsregel hat (z.B. Kategorie-
   /Zimmer-Auswahl) — sieht dann wie ein bedeutungsloses "Erfolg"-Signal aus. Der rote Rahmen bei
   echten Validierungsfehlern bleibt, weil der tatsächlich etwas Sinnvolles zeigt. */
.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #c1443a;
    font-size: 0.8rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Schwebende Labels: der Platzhalter bleibt unsichtbar, sonst stehen Label und Beispieltext
   gleichzeitig im Feld. */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control:focus::placeholder {
    color: #a3acb9;
}

.form-floating > label {
    color: var(--ih-text-muted);
}

/* Dashboard An-/Abreisen-Liste: abwechselnde Zeilenfarben, fette Zimmer-Angabe, farbige An-/
   Abreise-Daten, betonte Personenanzahl im Button-Look. */
.ih-guest-row-odd {
    background-color: var(--ih-surface);
}

.ih-guest-row-even {
    background-color: #f8fafc;
}

.ih-guest-index {
    font-weight: 700;
    color: var(--ih-text-muted);
    min-width: 1.4rem;
}

.ih-date-in {
    color: var(--ih-blue);
    font-weight: 600;
}

.ih-date-out {
    color: #c1443a;
    font-weight: 600;
}

/* Aktions-Knöpfe in Listen: umbrechen statt aus der Tabelle laufen, Beschriftung bleibt einzeilig. */
.ih-row-actions .btn {
    white-space: nowrap;
}

/* Knöpfe in Tabellenzeilen: kleiner und hell (wie bei Stripe), damit eine lange Liste nicht aus
   lauter blauen Flächen besteht — die kräftige Farbe bleibt den Hauptaktionen über der Tabelle. */
.table .btn {
    font-size: 0.78rem;
    padding: 0.22rem 0.6rem;
}

    /* Mehrere Knöpfe in einer Zelle: gleichmässiger Abstand, auch wenn sie umbrechen. */
    .table td > .btn {
        margin: 0.1rem 0.1rem 0.1rem 0;
    }

.table .btn-success {
    background: #e3f6ec;
    border-color: #bfe8d3;
    color: #0e7a52;
    box-shadow: none;
}

    .table .btn-success:hover {
        background: #13a06f;
        border-color: #13a06f;
        color: #fff;
    }

.table .btn-primary {
    --bs-btn-color: var(--ih-primary-dark);
    --bs-btn-hover-color: #fff;
    background: var(--ih-primary-light);
    border-color: var(--ih-primary-border);
    color: var(--ih-primary-dark);
    box-shadow: none;
}

    .table .btn-primary:hover {
        background: var(--ih-primary);
        border-color: var(--ih-primary);
        color: #fff;
    }

.ih-room-missing {
    color: #c1443a;
    font-weight: 600;
}

.ih-guest-count {
    flex-shrink: 0;
    background: var(--ih-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.45rem;
}

/* Belegungsplan: EIN gemeinsames CSS-Grid für Kopfzeile + alle Zimmer-Zeilen zusammen (statt
   vieler unabhängiger Einzel-Grids, eins pro Zeile). Damit sind Datumsspalten in Kopf und Zeilen
   niemals zwei separat berechnete, potenziell leicht auseinanderdriftende Layouts, sondern
   buchstäblich dieselben Grid-Spalten — Balken können also nicht mehr gegenüber dem Datums-Header
   verrutschen. Zeilen- UND Spaltentrennlinien kommen über row-gap/column-gap (echte Grid-Lücken,
   pixelgenau) statt über Ränder einzelner Zellen. */
.occ-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.occ-scroll {
    overflow-x: auto;
}

.occ-grid {
    display: grid;
    /* grid-template-columns/min-width kommen als Inline-Style direkt von der Komponente (siehe
       GridStyle() in OccupancyPlan.razor) — minmax(68px, 1fr) lässt die Spalten bei wenigen Tagen
       (Täglich/Wöchentlich) die ganze Kartenbreite responsiv ausfüllen; min-width verhindert bei
       vielen Tagen (Monatlich/3-Monatlich) das Schrumpfen unter die Mindestbreite (→ horizontales
       Scrollen statt Quetschen). */
    position: relative;
    column-gap: 1px;
    row-gap: 1px;
    background-color: var(--ih-border);
    border: 1px solid var(--ih-border);
    border-radius: 0.4rem;
    overflow: hidden;
}

.occ-header-label,
.occ-room-label {
    /* min-width/max-width statt nur width: ein Grid-/Flex-Item richtet seine Mindestbreite sonst
       am Inhalt aus (z.B. lange Kategorienamen wie "Suite Deluxe Test"), nicht an der gesetzten
       width — das ließ einzelne Zeilen breiter werden als "Zimmer" im Header. */
    min-width: 150px;
    max-width: 150px;
    overflow: hidden;
    font-size: 0.82rem;
    padding: 0.4rem 0.5rem;
    /* Bleibt beim horizontalen Scrollen sichtbar stehen. */
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--ih-surface);
}

.occ-room-label small {
    display: block;
    color: var(--ih-text-muted);
}

.occ-header-cell {
    text-align: center;
    font-size: 0.72rem;
    color: var(--ih-text-muted);
    padding: 0.3rem 0.1rem;
    background-color: var(--ih-surface);
}

    .occ-header-cell.today {
        color: var(--ih-primary-dark);
        font-weight: 700;
        box-shadow: inset 0 -2px 0 var(--ih-primary);
    }

.occ-cell {
    min-height: 46px;
    cursor: pointer;
    background-color: var(--ih-surface);
}

    .occ-cell:hover {
        background-color: var(--ih-primary-light);
    }

    .occ-cell.today {
        box-shadow: inset 1px 0 0 var(--ih-primary-light), inset -1px 0 0 var(--ih-primary-light);
    }

.occ-bar {
    /* Grid-Items mit weit überspannten Tracks (grid-column: x / span y) und direkt enthaltenem
       white-space:nowrap-Text lassen manche Browser beim Grid-Tracking zusätzliche (implizite)
       Spuren einrechnen, selbst mit overflow:hidden/min-width:0 auf dem Item selbst — sichtbar als
       Balken, die gegenüber dem Datums-Header verschoben sind. Der robuste Fix: der Text sitzt in
       einem eigenen inneren <span> (.occ-bar-label), das Abschneiden/Ellipsis übernimmt — der
       äussere Grid-Item-Balken selbst enthält dann keinen Text mehr, der seine Mindestgrösse
       beeinflussen könnte. */
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    align-self: center;
    margin: 0 3px;
    border-radius: 0.35rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #fff;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(20, 30, 40, 0.15);
}

    .occ-bar:active {
        cursor: grabbing;
    }

.occ-bar-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    /* Weniger Platz (wenige überspannte Tage) → kleinere Schrift, damit mehr vom Gästenamen
       lesbar bleibt, bevor "…" abschneidet. */
    .occ-bar.occ-bar-xs {
        font-size: 0.62rem;
        padding: 0.2rem 0.3rem;
    }

    .occ-bar.occ-bar-sm {
        font-size: 0.68rem;
        padding: 0.22rem 0.4rem;
    }

.ih-plan-scroll {
    overflow-x: auto;
}

.ih-plan-canvas {
    position: relative;
    width: 800px;
    height: 480px;
    min-width: 800px;
    min-height: 480px;
    max-width: 4800px;
    max-height: 2880px;
    background-color: var(--ih-bg, #f3f4f6);
    border: 1px solid var(--ih-border);
    border-radius: 0.5rem;
    overflow: auto;
}

/* Ziehbarer Grössenregler unten rechts (natives Browser-Resize-Handle) — nur im
   Bearbeitungsmodus aktiv, damit die Plan-Fläche nicht versehentlich verzogen wird. */
.ih-plan-canvas.ih-plan-resizable {
    resize: both;
}

.ih-plan-spot {
    position: absolute;
    border-radius: 0.4rem;
    padding: 0.2rem;
    font-size: 0.72rem;
    color: #fff;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(20, 30, 40, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    transition: transform 0.15s ease;
}

.ih-plan-spot:active {
    cursor: grabbing;
}

/* Gegendrehung zur Box: die Nummer bleibt immer aufrecht und lesbar, auch wenn die
   Box selbst gedreht ist (stellt die physische Ausrichtung des Parkplatzes dar). */
.ih-plan-spot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ih-plan-spot.ih-plan-dragging {
    opacity: 0.3;
}

.ih-plan-spot.ih-plan-normal {
    background-color: #6c757d;
}

.ih-plan-spot.ih-plan-electric {
    background-color: #0d6efd;
}

.ih-plan-spot.ih-plan-occupied {
    outline: 3px solid #dc3545;
    outline-offset: 1px;
}

.ih-plan-spot.ih-plan-booked {
    outline: 3px solid #ffc107;
    outline-offset: 1px;
}

.ih-plan-spot-number {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.1;
    /* Unterstrich markiert "unten" der Box, damit z.B. 6 und 9 bei Drehung nicht verwechselt werden. */
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    padding-bottom: 1px;
}

.ih-plan-rotate-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    line-height: 1;
    border: 1px solid var(--ih-border);
    border-radius: 50%;
    background-color: var(--ih-surface);
    color: var(--ih-text);
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ih-plan-rotate-btn:hover {
    background-color: var(--ih-primary-light);
}

.ih-plan-spot.ih-plan-locked {
    cursor: default;
}

/* Vorschau-Schatten beim Ziehen eines Parkplatzes: zeigt, wo er landen würde, und ob dort
   Platz ist (grün) oder ein anderer Platz im Weg steht (rot) — komplett clientseitig in
   garage-plan.js berechnet, damit es beim Ziehen flüssig bleibt. */
.ih-plan-drop-preview {
    position: absolute;
    display: none;
    border-radius: 0.4rem;
    pointer-events: none;
    z-index: 5;
    border: 2px dashed rgba(255, 255, 255, 0.9);
}

.ih-plan-drop-preview-valid {
    background: rgba(47, 166, 106, 0.35);
    border-color: #2fa66a;
}

.ih-plan-drop-preview-invalid {
    background: rgba(220, 53, 69, 0.35);
    border-color: #dc3545;
}

/* Mitarbeiter-Badge zum Ausdrucken. */
.ih-badge-template-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ih-badge-template-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--ih-border);
    border-radius: 999px;
    background-color: var(--ih-surface);
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
}

.ih-badge-template-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--ih-border);
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: transparent;
}

.ih-badge-template-option.ih-badge-template-active {
    border-color: var(--ih-primary);
    background-color: var(--ih-primary-light);
}

.ih-badge-template-option.ih-badge-template-active .ih-badge-template-check {
    background-color: var(--ih-primary);
    border-color: var(--ih-primary);
    color: #fff;
}

.ih-badge-print-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ih-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.ih-badge-card {
    width: 280px;
    padding: 1.5rem 1rem;
    background-color: var(--ih-surface);
    border: 1px solid var(--ih-border);
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(20, 30, 40, 0.12);
    text-align: center;
}

.ih-badge-card.ih-badge-horizontal {
    width: 380px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

.ih-badge-horizontal .ih-badge-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ih-badge-horizontal .ih-badge-flags {
    justify-content: flex-start;
}

.ih-badge-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--ih-primary);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.ih-badge-photo-placeholder {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px dashed var(--ih-border);
    color: var(--ih-text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ih-badge-square .ih-badge-photo,
.ih-badge-square .ih-badge-photo-placeholder {
    border-radius: 0.6rem;
}

.ih-badge-horizontal .ih-badge-photo,
.ih-badge-horizontal .ih-badge-photo-placeholder {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.ih-badge-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ih-badge-flags {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.ih-badge-flag {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.ih-badge-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ih-primary-dark);
    letter-spacing: 0.05em;
}

.ih-badge-position {
    color: var(--ih-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

@media print {
    .ih-sidebar,
    .ih-topbar,
    .ih-print-hide {
        display: none !important;
    }

    .ih-main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .ih-badge-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Konto verwalten (Account/Manage): schlanke Sidebar-Navigation innerhalb der Karte, passend
   zum restlichen App-Look statt der Bootstrap-Standard-Pillen aus dem Identity-Scaffolding. */
.ih-manage-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ih-text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
    border-radius: 0.45rem;
    margin-bottom: 0.15rem;
}

.ih-manage-nav .nav-link i {
    color: var(--ih-text-muted);
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
}

.ih-manage-nav .nav-link:hover {
    background-color: var(--ih-primary-light);
}

.ih-manage-nav .nav-link.active {
    background: var(--ih-primary-light);
    color: var(--ih-primary-dark);
    font-weight: 600;
}

    .ih-manage-nav .nav-link.active i {
        color: var(--ih-primary);
    }

.ih-contact-support-notice {
    background-color: var(--ih-primary-light);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    padding: 1rem 1.25rem;
}

/* Finanzen: einfaches CSS-Balkendiagramm (kein JS-Chart-Framework nötig für 12 Monatsbalken). */
.ih-finance-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 180px;
}

.ih-finance-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.ih-finance-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 0.3rem;
    /* Bewusst NICHT overflow:hidden — die Wertbeschriftung sitzt knapp über dem Balken und
       würde sonst am Rand des Tracks abgeschnitten. */
    overflow: visible;
}

.ih-finance-bar-fill {
    position: relative;
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, var(--ih-accent), var(--ih-primary));
    border-radius: 0.3rem 0.3rem 0 0;
}

.ih-finance-bar-value {
    position: absolute;
    top: -1.15rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--ih-text);
    white-space: nowrap;
}

.ih-finance-bar-label {
    font-size: 0.62rem;
    color: var(--ih-text-muted);
    margin-top: 0.35rem;
    white-space: nowrap;
}

/* Rechnungsdesign: Vorschaubilder der Musterrechnung (von QuestPDF als PNG gerendert). */
.ih-design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.ih-design-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 2px solid var(--ih-border);
    border-radius: var(--ih-radius);
    background: var(--ih-surface);
    color: var(--ih-text);
    text-align: left;
    cursor: pointer;
}

.ih-design-card:hover {
    border-color: var(--ih-primary-light);
}

.ih-design-card.is-selected {
    border-color: var(--ih-primary);
    box-shadow: 0 0 0 3px var(--ih-primary-light);
}

.ih-design-thumb {
    display: block;
    aspect-ratio: 210 / 297;
    margin-bottom: 0.4rem;
    overflow: hidden;
    border: 1px solid var(--ih-border);
    border-radius: 0.4rem;
    background: #fff;
}

.ih-design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Anmeldung (Hotel-Login): zentrierte Karte wie bei Stripe, mit dem innohive-Zeichen. */
.ih-auth {
    display: flex;
    justify-content: center;
    padding: 3rem 0 2rem;
}

.ih-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--ih-border);
    border-radius: 0.9rem;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 18px 40px -20px rgba(16, 20, 39, 0.25);
}

.ih-auth-mark {
    width: 2.4rem;
    height: 2.75rem;
    display: block;
    margin-bottom: 1.1rem;
}

.ih-auth-title {
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

.ih-auth-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.4rem;
    color: var(--ih-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

    .ih-auth-or::before,
    .ih-auth-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--ih-border);
    }

.ih-auth-links {
    border-top: 1px solid var(--ih-border);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.84rem;
}

    .ih-auth-links p {
        margin-bottom: 0.35rem;
    }

/* Häkchen in Listen der Website in Markenblau statt Bootstrap-Grün. */
.ih-m-body .bi-check-circle-fill.text-success {
    color: var(--ih-primary) !important;
}

/* Hotel-Einrichtungen für Gäste (Booking Engine, Gästeportal). */
.ih-facility {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--ih-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.84rem;
}

    .ih-facility .bi {
        color: var(--ih-primary);
    }

/* Merkmale des gewählten Zimmers (Reservierung): gut lesbare, ruhige Pillen. */
.ih-room-feature {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--ih-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #2b3242;
    font-size: 0.8rem;
}

/* Farbthema-Auswahl im Hotel-Profil. */
.ih-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.ih-theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 2px solid var(--ih-border);
    border-radius: var(--ih-radius);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .ih-theme-option:hover {
        border-color: #c0c8d2;
    }

    .ih-theme-option.is-selected {
        border-color: var(--ih-primary);
        box-shadow: 0 0 0 3px rgba(var(--ih-primary-rgb), 0.15);
    }

.ih-theme-swatch {
    display: block;
    width: 100%;
    height: 2.5rem;
    border-radius: 0.4rem;
}

.ih-theme-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ih-navy);
}

.ih-theme-check {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Herkunft einer Reservierung: eigene Farbe pro Quelle (Portale angelehnt an ihre Markenfarben). */
.badge.ih-origin {
    border: 1px solid transparent;
}

.badge.ih-origin-booking { background: #e6eefb; color: #003580; border-color: #c7d7f2; }
.badge.ih-origin-airbnb { background: #ffeef0; color: #c8303f; border-color: #fbcfd4; }
.badge.ih-origin-expedia { background: #fff6cc; color: #6b5400; border-color: #f5e08a; }
.badge.ih-origin-agoda { background: #f3e8ff; color: #6b21a8; border-color: #e2ccfb; }
.badge.ih-origin-hrs { background: #fff0e6; color: #b93c0b; border-color: #fbd3bc; }
.badge.ih-origin-portal { background: #e8f0fe; color: #1e40af; border-color: #cbd9fb; }
.badge.ih-origin-website { background: #e3f6ec; color: #0e7a52; border-color: #bfe8d3; }
.badge.ih-origin-phone { background: #e0f2fe; color: #0369a1; border-color: #bae0fb; }
.badge.ih-origin-email { background: #ede9fe; color: #5b21b6; border-color: #d9cffb; }
.badge.ih-origin-walkin { background: #fef3c7; color: #92400e; border-color: #f6dd8f; }
.badge.ih-origin-frontdesk { background: #f1f5f9; color: #334155; border-color: #dbe2ea; }
.badge.ih-origin-other { background: #f6f8fa; color: #4f5668; border-color: var(--ih-border); }

/* osotel-Wortmarke (Brand-Guide): "os" Coral, "otel" Navy, RM Neue Bold — als Text statt Bild, damit sie überall scharf ist. */
.os-wordmark {
    font-family: 'RM Neue', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}

.os-wordmark-os { color: #F47743; }
.os-wordmark-otel { color: #17233B; }

/* App-Symbol: "os" in Coral auf Navy, abgerundet. */
.os-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #17233B;
    color: #F47743;
    font-family: 'RM Neue', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.ih-auth-mark.os-app-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
}
