@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
}

:root {
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Fields scrolled to (e.g. after a failed save) stay clear of the sticky main menu */
    scroll-padding-top: 5.5rem;
}

/* Login (design from video01.die-keniareise.de) */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #f5f5f5;
}

.login-card {
    overflow: hidden;
    border-radius: 10px;
    min-height: 500px;
}

.login-img {
    width: 50%;
    flex-shrink: 0;
    background: url('../img/login-torii-gate-japan-dreamstime-3763786-chi-chiu-chan.jpg') center / cover;
}

.login-card .card-body {
    padding: 2rem;
}

.login-card .form-control {
    border: none;
    padding: 10px;
    background: #e3f2fd;
}

.login-btn {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d84fe;
    --bs-btn-border-color: #0d84fe;
    --bs-btn-hover-color: #0d84fe;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: #0d84fe;
    --bs-btn-active-color: #0d84fe;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: #0d84fe;
    margin-top: 15px;
    padding: 10px;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: .3s all;
}

/* Headings that are "Heading 1" in the specifications (Word: 16 pt, blue) */

.doc-heading {
    color: #2e74b5;
    font-size: 16pt;
    font-weight: 400;
}

/* Reiseübersicht search, arranged like the table in SQL_Client2026_Formular2:
   label | field, and the Search button to the right of all 4 rows */

.search-grid {
    display: grid;
    grid-template-columns: max-content minmax(12rem, 22rem) 10rem;
    gap: .75rem 1.25rem;
    align-items: center;
    justify-content: start;
}

.search-grid > .form-label {
    grid-column: 1;
    margin-bottom: 0;
}

.search-grid > .form-control {
    grid-column: 2;
}

.search-grid > .search-action {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: start;
}

@media (max-width: 767.98px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .search-grid > .form-label,
    .search-grid > .form-control,
    .search-grid > .search-action {
        grid-column: 1;
        grid-row: auto;
    }

    .search-grid > .form-control {
        margin-bottom: .5rem;
    }
}

/* Fixed value, e.g. the own Tourcode of a tour login */
.form-control[readonly] {
    background-color: var(--bs-secondary-bg);
}

.result-table th,
.result-table td {
    padding: .6rem 1rem;
    white-space: nowrap;
}

/* Pages after login */

.app-page {
    background-color: #f4f6f9;
}

.app-page .form-label {
    margin-bottom: .35rem;
    font-weight: 500;
}

/* Main menu: the current page is highlighted in the blue of the login button */

.app-navbar {
    --bs-navbar-padding-y: .625rem;
    --bs-navbar-color: #495057;
    --bs-navbar-hover-color: #0d84fe;
    --bs-navbar-active-color: #0d84fe;
    --bs-navbar-nav-link-padding-x: .9rem;
    --bs-navbar-toggler-focus-width: .15rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 .25rem .75rem rgba(0, 0, 0, .04);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-right: 2rem;
}

.app-brand-name {
    padding-left: .75rem;
    border-left: 1px solid var(--bs-border-color);
    font-weight: 500;
    line-height: 2.25rem;
}

.app-menu {
    --bs-nav-link-padding-x: .9rem;
    --bs-nav-link-padding-y: .5rem;
    gap: .25rem;
}

.app-menu .nav-link {
    border-radius: .5rem;
    transition: color .15s, background-color .15s;
}

.app-menu .nav-link:hover,
.app-menu .nav-link:focus-visible {
    background-color: rgba(13, 132, 254, .06);
}

.app-menu .nav-link.active {
    background-color: rgba(13, 132, 254, .1);
    font-weight: 500;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-user-name {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #495057;
}

.app-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: currentColor;
}

.app-logout {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

@media (min-width: 1200px) {
    .app-user {
        padding-left: 1.25rem;
        border-left: 1px solid var(--bs-border-color);
    }
}

/* Collapsed menu on smaller screens */
@media (max-width: 1199.98px) {
    .app-navbar .navbar-collapse {
        padding-top: .5rem;
    }

    .app-user {
        justify-content: space-between;
        margin-top: .5rem;
        padding: .75rem .9rem .25rem;
        border-top: 1px solid var(--bs-border-color);
    }
}

/* Record forms */

.record-nav .btn {
    min-width: 5.5rem;
}

.record-nav-bar {
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .08);
}

.record-nav-bar.sticky-bottom {
    bottom: 1rem;
}

/* Flight numbers are shown in capitals, their hint ("e.g. LH716") is not */
.form-control.text-uppercase::placeholder {
    text-transform: none;
}

/* Read-only form (tour logins): no format hints in empty fields */
fieldset:disabled .form-control::placeholder {
    color: transparent;
}

/* Kunden Programm, same layout as the Word styles in Sq_standardtour:
   "Kurzprogramm" (day right-aligned at 2 cm, text from 2.5 cm) and "Übernachtung" (bold, from 6 cm). */

.program {
    max-width: 18cm;
}

.program-search {
    max-width: 20rem;
}

.program-day {
    display: flex;
    gap: .5cm;
}

.program-daynr {
    flex: 0 0 2cm;
    text-align: right;
    white-space: nowrap;
}

.program-hotelcity {
    margin: .15rem 0 .6rem 6cm;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .program-hotelcity {
        margin-left: 2.5cm;
    }
}
