/* Kritisk CSS - above the fold */
*,
::after,
::before {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: 'Posterestante', 'Roboto', sans-serif;
    background-color: #f4f4f4;
    -webkit-text-size-adjust: 100%
}

.bg-light {
    background-color: #f8f9fa !important
}

/* 2026-10-20 CLS: same navbar spacing as style.css (loaded async) so content does not shift */
nav.navbar {
    padding: .75rem 0
}

nav.navbar .navbar-brand {
    padding: .5rem 0;
    font-size: 1.4rem
}

@media (min-width: 1200px) {
    nav.navbar .navbar-nav .nav-link {
        font-size: .95rem;
        padding: .5rem
    }
}

.hero-bg {
    display: flex !important;
    align-items: center !important;
    min-height: 320px;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background-color: #1e2636;
    background-image: url('/assets/img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    .hero-bg {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Short hero (login/register/password/contact/opening hours): keeps the form on the first screen on phones */
@media (max-width: 767.98px) {
    .hero-bg.hero-short {
        min-height: 120px;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .hero-bg.hero-short h1 {
        margin-bottom: 0;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-lg-12 {
    flex: 0 0 100%;
    width: 100%;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.logo {
    width: 400px;
    height: auto; aspect-ratio: 800 / 216; /* ny logga 2026-10-24 (var 116px) */
    display: block;
}

@media (max-width: 575.98px) {
    .logo {
        width: 230px;
        height: auto;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
    color: #122e67;
    min-height: 80px;
}

.navbar+.navbar {
    min-height: 50px;
}

/* Collapsed menu (<1200px): the second nav only holds the hidden menu, so it takes no space until opened */
@media (max-width: 1199.98px) {
    .navbar+.navbar {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: none;
    }

    .navbar+.navbar:has(.navbar-collapse.show),
    .navbar+.navbar:has(.navbar-collapse.collapsing) {
        box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    }
}

.collapse:not(.show) {
    display: none !important;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
}

@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    border: 1px solid transparent;
}

.container-fluid {
    width: 100%;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.container {
    width: 100%;
    padding-right: .75rem;
    padding-left: .75rem;
    margin-right: auto;
    margin-left: auto
}

@media(min-width:576px) {
    .container {
        max-width: 540px
    }
}

@media(min-width:768px) {
    .container {
        max-width: 720px
    }
}

@media(min-width:992px) {
    .container {
        max-width: 960px
    }
}

@media(min-width:1200px) {
    .container {
        max-width: 1140px
    }
}

@media(min-width:1400px) {
    .container {
        max-width: 1320px
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    margin-right: -.75rem;
    margin-left: -.75rem
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: .75rem;
    padding-left: .75rem
}

.col-md-4 {
    flex: 0 0 auto
}

@media(min-width:768px) {
    .col-md-4 {
        width: 33.333%
    }
}

.col-lg-4 {
    flex: 0 0 auto
}

@media(min-width:992px) {
    .col-lg-4 {
        width: 33.333%
    }
}

img {
    vertical-align: middle;
    width: 100%;
    height: auto
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    color: #122e67
}

.navbar-brand {
    color: #122e67;
    font-size: 1.4rem;
    font-weight: 600;
    padding: .5rem 0;
    text-decoration: none
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none
}

@media(min-width:1200px) {
    .navbar-nav {
        flex-direction: row
    }
}

.nav-link {
    display: block;
    color: #122e67;
    font-size: 0.95rem;
    font-weight: 500;
    padding: .5rem .5rem;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 4px
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center
}

@media(min-width:1200px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto
    }
}

.collapse:not(.show) {
    display: none
}

.justify-content-center {
    justify-content: center !important
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important
}

.logo {
    width: 400px
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .375rem
}

.card-img-top {
    width: 100%;
    border-top-left-radius: calc(.375rem - 1px);
    border-top-right-radius: calc(.375rem - 1px)
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem
}

.rounded {
    border-radius: .375rem !important
}

.rounded-top {
    border-top-left-radius: .375rem !important;
    border-top-right-radius: .375rem !important
}

.text-center {
    text-align: center !important
}

.mb-3 {
    margin-bottom: 1rem !important
}

.mb-4 {
    margin-bottom: 1.5rem !important
}

.mt-4 {
    margin-top: 1.5rem !important
}

.p-3 {
    padding: 1rem !important
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem
}

.d-none {
    display: none !important
}

@media(min-width:768px) {
    .d-md-block {
        display: block !important
    }
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .375rem;
    text-decoration: none
}

.btn-primary {
    color: #fff;
    background-color: #0e2450;
    border-color: #0e2450
}

.rounded-pill {
    border-radius: 50rem !important
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2
}

.navbar-toggler {
    padding: .25rem .75rem;
    background-color: transparent;
    border: 1px solid transparent
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%
}
