/* Webfonts wie im Theme neumeier-2026 (src/sass/theme/_kkg_fonts.scss):
   Oregano BT für Headlines/Labels (nur Regular), Geist Mono für Fließtext (SIL OFL, fonts/GeistMono-OFL.txt) */
@font-face {
    font-family: oregano;
    src: url(/fonts/oregano-regular.woff2) format("woff2"), url(/fonts/oregano-regular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: geist-mono;
    src: url(/fonts/geist-mono-variable.woff2) format("woff2-variations"), url(/fonts/geist-mono-variable.woff2) format("woff2"), url(/fonts/geist-mono-variable.woff) format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Tokens synchron mit neumeier-2026 (inc/theme-config.php) */
    --kkg-font-display: oregano, "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
    --kkg-font-body: geist-mono, "Geist Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    --kkg-radius-sm: 12px;
    --kkg-radius-md: 20px;
    --kkg-radius-lg: 32px;
    --kkg-radius-pill: 999px;
    --gutter: 1rem;
    --text: #1a211f;
    --card-1: #008a53;
    --card-2: #2e88c1;
    --overlay-card: rgba(10, 22, 18, 0.2);
    --content-bg: rgba(245, 249, 247, 0.82);
    --kkg-nav-logo-h: 48px; /* Sticky-Logo-Höhe wie im Theme (Mobil 40px, md 48px, xl 52px) */
    --brand-height: 7rem;
    --bg: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

html {
    font-family: var(--kkg-font-body);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #0f1715;
}

body {
    min-height: 100svh;
}

.landing {
    position: relative;
    min-height: 100svh;
    padding-top: var(--brand-height);
    overflow: hidden;
}

.text-decoration-none {
    color: inherit;
    text-decoration: none;
}

.brand {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100vw;
    margin: 0 auto;
    height: var(--brand-height);
    padding: 1.5rem var(--gutter);
    background: #fff;
    border-radius: 0;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    display: flex;
    flex-flow: row;
    line-height: 1.55;
}

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

.brand-container {
    display: flex;
    gap: 1rem;
    justify-content: start;
    align-items: center;
    line-height: 1;
}

/* Sticky-Logo (Wortmarke „NEU MEIER“) aus dem Theme neumeier-2026 */
.brand-link {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.55em;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: inline-flex;
}

.brand-logo .brand-logo-img {
    display: block;
    height: var(--kkg-nav-logo-h);
    width: auto;
}

.brand h1 {
    margin: 0;
    line-height: 1;
    font-weight: 400;
}

.brand p {
    margin: 0;

    /* max-width: 50rem; */
    color: color-mix(in srgb, var(--text), #000 8%);
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    display: block;
    text-align: right;
}

.apartment-grid {
    position: absolute;
    top: var(--brand-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    display: flex;
    flex-direction: row;
    gap: var(--gutter);
    padding: 0 var(--gutter) var(--gutter);
}

.apartment-card {
    position: relative;
    display: block;
    flex: 1 1 50%;
    min-height: calc(100svh - var(--brand-height) - var(--gutter));
    overflow: hidden;
    border-radius: var(--kkg-radius-lg);
    isolation: isolate;
    text-decoration: none;
    color: #fff;
}

.apartment-card picture {
    display: block;
    height: 100%;
}

.apartment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apartment-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.66;
    transition: opacity 240ms ease;
}

.apartment-card--berchtesgaden .apartment-overlay {
    background: linear-gradient(180deg, color-mix(in srgb, var(--card-1), #fff 8%), color-mix(in srgb, var(--card-1), #000 16%));
}

.apartment-card--badreichenhall .apartment-overlay {
    background: linear-gradient(180deg, color-mix(in srgb, var(--card-2), #fff 8%), color-mix(in srgb, var(--card-2), #000 16%));
}

.apartment-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-card);
}

.apartment-card::before {
    content: attr(data-apartment);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: min(80%, 18rem);
    text-align: center;
    font-family: var(--kkg-font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
}

.apartment-mobile-label {
    display: none;
}

.apartment-card:focus {
    outline: none;
}

.apartment-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.85), 0 0 0 6px #ffffff, 0 0 0 9px #2e88c1; /* Marken-Außenring */
    z-index: 2;
}

.apartment-card:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Textabschnitt unter den Standortkarten (Inhalt für Suchmaschinen und LLMs) */
.about {
    position: relative;
    z-index: 1;
    padding: calc(var(--gutter) * 2) var(--gutter) 5rem;
    background: var(--bg);
}

.about h2,
.about h3 {
    margin: 0 0 0.6rem;
    font-family: var(--kkg-font-display);
    font-weight: 400;
    line-height: 1.12;
}

.about h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

.about h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.about p {
    margin: 0 0 1rem;
}

.about a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.about-intro {
    max-width: 54rem;
    margin-bottom: calc(var(--gutter) * 1.5);
}

.about-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--gutter);
    margin-bottom: calc(var(--gutter) * 1.5);
}

.about-location {
    padding: 1.5rem;
    border-top: 6px solid var(--location-color);
    border-radius: var(--kkg-radius-md);
    background: color-mix(in srgb, var(--location-color), #fff 92%);
}

.about-location--berchtesgaden {
    --location-color: var(--card-1);
}

.about-location--badreichenhall {
    --location-color: var(--card-2);
}

.about-address {
    font-size: 0.9375rem;
    color: color-mix(in srgb, var(--text), #fff 25%);
}

.about .about-link {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: 2px solid var(--location-color);
    border-radius: var(--kkg-radius-pill);
    color: var(--text);
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease;
}

.about .about-link:hover,
.about .about-link:focus-visible {
    background: color-mix(in srgb, var(--location-color), #000 22%); /* abgedunkelt für Kontrast ≥ 4,5:1 */
    border-color: color-mix(in srgb, var(--location-color), #000 22%);
    color: #fff;
}

.about a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.about-contact {
    max-width: 52rem;
}

.site-footer {
    position: fixed;
    bottom: 0;
    z-index: 3;
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.6rem;
    justify-content: center;
    align-items: center;
    background: #fff;
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms ease;
}

.footer-visible .site-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.footer-links a {
    color: color-mix(in srgb, var(--text), #000 5%);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.footer-links a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--text), #fff 30%);
    outline-offset: 2px;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}

.cursor-follower svg {
    width: 2rem;
    height: auto;
    flex: 0 0 auto;
}

.cursor-follower path {
    fill: #101413;
}

.cursor-label {
    font-family: var(--kkg-font-display);
    font-size: 1.75rem;
    line-height: 1;
    white-space: nowrap;
    color: #101413;

    /* background: rgba(245, 249, 247, 0.9);
    border: 1px solid rgba(16, 20, 19, 0.14);
    border-radius: 999px; */
    padding: 0.34rem 0.62rem 0.4rem;

    /* box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.5); */
    opacity: 0;

    /* transform: translateX(-6px); */
    transform: translateY(6px);
}

@media (max-width: 859px) {
    :root {
        --brand-height: auto;
        --kkg-nav-logo-h: 40px;
    }

    .landing {
        display: flex;
        flex-direction: column;
        padding-top: 0;
        min-height: auto;
    }

    .brand {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        order: 0;
        flex-flow: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.5rem var(--gutter);
    }

    .brand p {
        text-align: left;
    }

    .apartment-grid {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        order: 1;
        flex-direction: column;
    }

    .about {
        padding-bottom: 2rem; /* Footer ist mobil nicht fixiert */
    }

    .apartment-card {
        min-height: unset;
        border-radius: var(--kkg-radius-md);
    }

    .apartment-card::before {
        opacity: 0;
    }

    .apartment-mobile-label {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        text-align: center;
        color: #fff;
        text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        pointer-events: none;
    }

    .apartment-mobile-label__text {
        font-family: var(--kkg-font-display);
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        line-height: 1.02;
    }

    /* Pfeil im Kreis wie die Buttons im Theme neumeier-2026 */
    .apartment-mobile-label__arrow {
        position: relative;
        width: 2.5rem;
        height: 2.5rem;
        border: 3px solid currentColor;
        border-radius: var(--kkg-radius-pill);
    }

    .apartment-mobile-label__arrow::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'><path d='M0 3.66006C2.40002 3.74006 8.84003 4.32006 8.84003 3.56006C8.84003 3.00006 5.96002 3.00006 5.96002 3.00006L5.94002 0H7.44002C7.44002 0 8.74002 1.24006 9.86002 2.02006C10.92 2.76006 12.8 4.16006 12.8 4.16006V7.66006L9.86002 9.82006C8.74002 10.6401 7.44002 11.9001 7.44002 11.9201H5.94002L5.96002 8.88006C5.96002 8.88006 8.84003 8.86006 8.84003 8.30006C8.84003 7.50006 2.40002 8.18006 0 8.26006V3.66006Z' fill='black'/></svg>") center / auto 40% no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'><path d='M0 3.66006C2.40002 3.74006 8.84003 4.32006 8.84003 3.56006C8.84003 3.00006 5.96002 3.00006 5.96002 3.00006L5.94002 0H7.44002C7.44002 0 8.74002 1.24006 9.86002 2.02006C10.92 2.76006 12.8 4.16006 12.8 4.16006V7.66006L9.86002 9.82006C8.74002 10.6401 7.44002 11.9001 7.44002 11.9201H5.94002L5.96002 8.88006C5.96002 8.88006 8.84003 8.86006 8.84003 8.30006C8.84003 7.50006 2.40002 8.18006 0 8.26006V3.66006Z' fill='black'/></svg>") center / auto 40% no-repeat;
    }

    .site-footer {
        position: relative;
        width: 100%;
        bottom: auto;
        justify-content: start;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }
}

@media (min-width: 1200px) {
    :root {
        --kkg-nav-logo-h: 52px;
    }
}

@media (min-width: 860px) {
    :root {
        --gutter: 2rem;
    }

    .using-custom-cursor .apartment-grid,
    .using-custom-cursor .apartment-grid * {
        cursor: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
