/* ============================================================================
   Basis · Fjordhaus am See
   Reset, Typografie, Layout-Hilfen, Kopf- und Fußbereich, Buttons.
   Alles, was auf jeder neuen Seite gebraucht wird. Setzt tokens.css voraus.
   ========================================================================= */

/* --- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

body {
    background: var(--c-greige);
    color: var(--c-tinte);
    font-family: var(--f-text);
    font-size: var(--t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

/* --- Typografie -------------------------------------------------------- */
h1,
h2,
h3 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
}

h1 {
    font-size: var(--t-4xl);
}

h2 {
    font-size: var(--t-3xl);
}

h3 {
    font-size: var(--t-xl);
}

p {
    max-width: var(--breite-text);
}

a {
    color: var(--c-petrol);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--c-petrol-hover);
}

:focus-visible {
    outline: 3px solid var(--c-petrol);
    outline-offset: 2px;
    border-radius: 2px;
}

.visuell-versteckt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Sprungmarke für Tastaturnutzer */
.skip-link {
    position: absolute;
    left: var(--s-4);
    top: -100px;
    z-index: 100;
    background: var(--c-weiss);
    color: var(--c-tinte);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top .15s ease;
}

.skip-link:focus {
    top: var(--s-4);
}

/* --- Layout ------------------------------------------------------------ */
.wrap {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: var(--s-5);
}

.sektion {
    padding-block: var(--s-8);
}

.sektion--eng {
    padding-block: var(--s-7);
}

.sektion--taupe {
    background: var(--c-taupe);
}

.sektion--weiss {
    background: var(--c-weiss);
}

.sektion--tiefsee {
    background: var(--c-tiefsee);
    color: var(--c-weiss);
}

.sektion__kopf {
    max-width: var(--breite-text);
    margin-bottom: var(--s-6);
}

.sektion__kopf p {
    color: var(--c-tinte-2);
    margin-top: var(--s-3);
    font-size: var(--t-lg);
}

.sektion--tiefsee .sektion__kopf p {
    color: var(--c-salbei);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 48px;
    padding: var(--s-3) var(--s-5);
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.btn--haupt {
    background: var(--c-apricot);
    color: var(--c-tinte);
}

.btn--haupt:hover {
    background: var(--c-apricot-hover);
    color: var(--c-tinte);
}

.btn--zweit {
    background: transparent;
    color: var(--c-tinte);
    border-color: var(--c-tinte);
}

.btn--zweit:hover {
    background: rgba(20, 32, 30, .06);
    color: var(--c-tinte);
}

.btn--geist {
    background: transparent;
    color: var(--c-weiss);
    border-color: var(--c-linie-dunkel);
}

.btn--geist:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--c-weiss);
}

/* --- Kopfbereich ------------------------------------------------------- */
.kopf {
    background: var(--c-tiefsee);
    color: var(--c-weiss);
}

.kopf__wrap {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    padding-block: var(--s-3);
}

.marke {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--c-weiss);
    text-decoration: none;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: var(--t-lg);
    white-space: nowrap;
}

.marke:hover {
    color: var(--c-weiss);
}

.nav {
    display: flex;
    gap: var(--s-5);
    margin-left: auto;
}

.nav a {
    color: #C6D8D6;
    text-decoration: none;
    font-size: var(--t-sm);
    padding-block: var(--s-2);
    white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--c-weiss);
}

.nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--c-apricot);
}

.kopf .btn {
    min-height: 42px;
    padding-inline: var(--s-4);
    font-size: var(--t-sm);
}

/* Menü-Button nur auf schmalen Displays */
.kopf__menue {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-linie-dunkel);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--c-weiss);
    cursor: pointer;
}

@media (max-width: 860px) {
    .kopf__wrap {
        flex-wrap: wrap;
        gap: var(--s-2) var(--s-3);
        padding-block: var(--s-2);
    }

    .marke {
        font-size: var(--t-base);
        gap: var(--s-2);
        margin-right: auto;
    }

    .marke img {
        width: 28px;
        height: 28px;
    }

    .kopf__menue {
        display: inline-flex;
    }

    .kopf .btn {
        min-height: 44px;
        padding-inline: var(--s-3);
    }

    /* Navigation klappt unter der Kopfzeile auf */
    .nav {
        display: none;
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        gap: 0;
        padding-bottom: var(--s-2);
    }

    .kopf.is-offen .nav {
        display: flex;
    }

    .nav a {
        padding-block: var(--s-3);
        border-top: 1px solid var(--c-linie-dunkel);
        font-size: var(--t-base);
    }
}

@media (max-width: 380px) {
    .marke {
        font-size: var(--t-sm);
    }

    .kopf .btn {
        font-size: var(--t-xs);
    }
}

/* --- Fußbereich -------------------------------------------------------- */
.fuss {
    background: var(--c-tiefsee);
    color: #A9C0BE;
    padding-block: var(--s-6);
    font-size: var(--t-sm);
}

.fuss__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-6);
    align-items: baseline;
    justify-content: space-between;
}

.fuss a {
    color: #A9C0BE;
}

.fuss a:hover {
    color: var(--c-weiss);
}

.fuss__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
}

/* --- Sterne ------------------------------------------------------------
   --wert steuert die Füllbreite, 4.7 ergibt exakt 94 Prozent.
   Kein Aufrunden auf halbe Sterne nötig. */
.sterne {
    --wert: 0;
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: .1em;
    color: rgba(20, 32, 30, .2);
    white-space: nowrap;
}

.sterne::before {
    content: "★★★★★";
}

.sterne::after {
    content: "★★★★★";
    position: absolute;
    inset: 0;
    width: calc(var(--wert) / 5 * 100%);
    overflow: hidden;
    color: var(--c-apricot);
}

.sterne--hell {
    color: rgba(255, 255, 255, .28);
}

/* Auf kleinen Handys übernehmen Hero-Suche bzw. Menü den Weg zur Buchung */
@media (max-width: 480px) {
    .kopf__cta {
        display: none;
    }
}
