﻿.header-wrapper {
    --logo-h: clamp(100px, 12vw, 120px);
    --rating-h: 0px; /* extra rad på mobil */
    position: relative;
    padding-top: calc(var(--rating-h) + var(--logo-h) / 1.7);
    border-radius: 12px;
    background-color: transparent;
}

.header-logo-container {
    position: absolute;
    top: var(--rating-h);
    left: 12px;
    z-index: 12;
    height: var(--logo-h);
    max-width: calc(100% - 190px); /* undvik krock med ratingen */
    background-color: transparent;
    cursor: pointer;
}

.header-logo-container img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-rating {
    position: absolute;
    top: 0;
    right: 12px;
    height: calc(var(--logo-h) / 2); /* exakt ytan ovanför baren */
    display: flex;
    align-items: center; /* flex-end om du vill ha den tätare mot baren */
    gap: 8px;
}

.header-contact-btn {
    display: none !important; /* bara mobil */
    white-space: nowrap;
}

.header-rating p {
    margin: 0;
}

.header-bar-wrapper {
    position: relative;
}

.header-bar {
    height: calc(var(--logo-h) / 2);
    width: 100%;
    background-color: #c10a28;
    border-radius: 12px;
    position: relative;
    z-index: 11; /* ovanför panelen så hörnen ser rena ut */
}

.nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -12px; /* går in bakom barens rundade hörn */
    padding: 12px 0 8px;
    z-index: 10; /* över sidans innehåll */
    flex-direction: column;
    align-items: stretch;
    background-color: #c10a28;
    border-radius: 0 0 12px 12px;
}

.menu-mud-button-label {
    color: white;
    font-weight: 400;
    font-size: medium;
}

.menu-mud-button-label:hover {
    background-color: transparent;
    text-decoration: underline;
}

.rating-stars {
    position: relative;
    display: inline-flex;
}

.rating-stars-background,
.rating-stars-foreground {
    display: flex;
}

.rating-stars-background {
    color: #c4c4c4;
}

.rating-stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: calc(var(--rating) / 5 * 100%);
    color: #ffb400;
    white-space: nowrap;
}

.rating-star {
    flex-shrink: 0;
}