* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef3f5;
    color: #263b4b;
    font-family: Segoe UI, Arial, sans-serif;
}

a {
    color: #287f9f;
    text-decoration: none;
}

header {
    background: white;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 16px 24px;
    border-bottom: 1px solid #d9e3e8;
}

header small {
    display: block;
    color: #74838d;
}

header nav {
    display: flex;
    gap: 14px;
    flex: 1;
}

header nav a {
    font-weight: 700;
    color: #263b4b;
}

header nav span {
    color: #aab5bb;
}

.wrap {
    max-width: 1150px;
    margin: auto;
    padding: 24px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 3px 12px #0001;
    margin-bottom: 14px;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kpis span {
    color: #74838d;
}

.kpis strong {
    display: block;
    font-size: 30px;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    background: #edf3f6;
    color: #263b4b;
    padding: 10px 14px;
    border-radius: 9px;
    border: 0;
    font-weight: 700;
}

.primary {
    background: #2f91b8;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #d9e3e8;
}

th {
    font-size: 11px;
    text-transform: uppercase;
    color: #74838d;
}

.search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search input {
    flex: 1;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9e3e8;
    border-radius: 8px;
    font: inherit;
}

label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin: 10px 0;
}

.form {
    max-width: 760px;
}

.two {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
}

.muted {
    color: #74838d;
}

.alert {
    background: #fff0f0;
    padding: 10px;
    border-radius: 8px;
    color: #a64040;
}

.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.narrow {
    width: min(430px, 92vw);
}

footer {
    text-align: center;
    color: #74838d;
    padding: 22px;
    font-size: 12px;
}

@media (max-width: 800px) {
    header {
        flex-wrap: wrap;
    }

    header nav {
        order: 3;
        width: 100%;
        overflow: auto;
    }

    .kpis,
    .two {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
.booking-qr {
    position: absolute;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18mm;
    width: 30mm;
    text-align: center;
}

.booking-qr img {
    width: 18mm !important;
    height: 18mm !important;
    max-width: 18mm !important;
    display: block;
    margin: 0 auto 2mm auto;
    object-fit: contain;
}

.booking-qr strong {
    display: block;
    color: var(--green);
    font-size: 10px;
    line-height: 1.2;
}

.booking-qr span {
    display: block;
    margin-top: 1mm;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.2;
}

.master-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.master-logo {
    width: 70px !important;
    height: auto !important;
    max-width: 70px !important;
    display: block;
}

.master-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.master-brand-text b {
    font-size: 17px;
}

.master-brand-text small {
    font-size: 11px;
    margin-top: 2px;
}

header {
    min-height: 78px;
}

/* Logo i topbjælken */
header .header-logo {
    width: 110px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Vandmærke i Master */
body::before {
    content: "";
    position: fixed;

    left: 50%;
    top: 25%;

    transform: translate(-50%, -50%);

    width: 480px;
    height: 480px;

    background-image: url("logo_ren.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.08;

    pointer-events: none;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

.travel-filter {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.travel-filter-button {
    padding-bottom: 10px;
}

@media (max-width: 800px) {
    .travel-filter {
        grid-template-columns: 1fr;
    }

    .travel-filter-button {
        padding-bottom: 0;
    }
}

.travel-leg {
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid #d9e3e8;
}

.travel-leg:first-of-type {
    margin-top: 12px;
}

.travel-leg h2 {
    margin-bottom: 12px;
}

.start-button {
    font-weight: 700;
}

.practice-mode {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #111;
    color: white;
}

.practice-mode.active {
    display: flex;
    flex-direction: column;
}

.practice-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.practice-top button {
    background: #333;
    color: white;
    border-color: #555;
}

.practice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

.practice-section {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .55;
    margin-bottom: 40px;
}

.previous-line {
    font-size: clamp(20px, 3vw, 34px);
    opacity: .3;
    min-height: 55px;
}

.current-line {
    font-size: clamp(34px, 6vw, 72px);
    font-weight: 750;
    line-height: 1.15;
    margin: 25px auto;
    max-width: 1100px;
}

.next-line {
    font-size: clamp(22px, 3.5vw, 38px);
    opacity: .5;
    min-height: 60px;
}

.practice-controls {
    display: flex;
    gap: 15px;
    padding: 20px;
}

.practice-controls button {
    flex: 1;
    min-height: 65px;
    font-size: 20px;
    font-weight: 700;
}

.practice-controls .next-button {
    font-size: 23px;
}

@media (max-width: 600px) {
    .practice-content {
        padding: 15px;
    }

    .practice-controls {
        padding: 12px;
    }

    .practice-controls button {
        min-height: 58px;
    }
}