*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0a0e1a;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    background: #0a0e1a;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(6px); opacity: 1; }
}

@keyframes drift {
    0%, 100% { background-position: 62% 50%; }
    50%      { background-position: 58% 48%; }
}

/* No-FOUC: hide pre-animated elements only when JS is enabled */
.has-js .brand,
.has-js .kicker,
.has-js .hero h1,
.has-js .fullname,
.has-js .scroll-indicator,
.has-js .willkommen .section-eyebrow,
.has-js .willkommen .lede,
.has-js .willkommen p:not(.lede),
.has-js .mitgliedschaft .section-eyebrow,
.has-js .mitgliedschaft h2,
.has-js .mitgliedschaft .section-intro,
.has-js .beitraege-card,
.has-js .cta-block > *,
.has-js .huetten .section-eyebrow,
.has-js .huetten h2,
.has-js .huetten .section-intro,
.has-js .hutte-card,
.has-js .huetten-disclaimer,
.has-js .site-footer .footer-top > *,
.has-js .footer-bottom > * {
    opacity: 0;
}

/* ========== HERO ========== */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 2.5rem 4rem;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(
            ellipse 140% 120% at center,
            transparent 55%,
            rgba(0, 0, 0, 0.45) 100%
        ),
        radial-gradient(
            ellipse 75% 28% at 50% 52%,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.25) 60%,
            transparent 90%
        ),
        linear-gradient(
            180deg,
            rgba(10, 14, 26, 0.25) 0%,
            transparent 40%,
            transparent 65%,
            rgba(10, 14, 26, 0.20) 100%
        ),
        url('img/hero.jpg');
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat;
    animation: drift 38s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(38px) saturate(1.1);
    -webkit-backdrop-filter: blur(38px) saturate(1.1);
    background: linear-gradient(
        to top,
        rgb(10, 14, 26) 0%,
        rgb(10, 14, 26) 12%,
        rgba(10, 14, 26, 0.88) 22%,
        rgba(10, 14, 26, 0.65) 36%,
        rgba(10, 14, 26, 0.40) 52%,
        rgba(10, 14, 26, 0.18) 68%,
        rgba(10, 14, 26, 0.05) 84%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 12%,
        rgba(0, 0, 0, 0.94) 22%,
        rgba(0, 0, 0, 0.78) 36%,
        rgba(0, 0, 0, 0.55) 52%,
        rgba(0, 0, 0, 0.30) 68%,
        rgba(0, 0, 0, 0.10) 84%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 12%,
        rgba(0, 0, 0, 0.94) 22%,
        rgba(0, 0, 0, 0.78) 36%,
        rgba(0, 0, 0, 0.55) 52%,
        rgba(0, 0, 0, 0.30) 68%,
        rgba(0, 0, 0, 0.10) 84%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.brand img {
    height: 64px;
    width: auto;
    display: block;
}

.hero-content {
    align-self: center;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: -8% -6%;
    z-index: -1;
    background: radial-gradient(
        ellipse 72% 62% at center,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        transparent 85%
    );
    filter: blur(32px);
    pointer-events: none;
}

.kicker {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5.5vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    max-width: 100%;
}

.fullname {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.scroll-indicator {
    align-self: end;
    justify-self: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: #fff;
}

.scroll-indicator svg {
    animation: scrollHint 2.4s ease-in-out infinite;
}

/* ========== SECTIONS ========== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 720px;
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

/* Willkommen */

.willkommen {
    padding: 7rem 0;
    background: #0a0e1a;
    text-align: center;
    position: relative;
}

.willkommen::before,
.willkommen::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 70%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%
    );
}

.willkommen::before {
    top: 0;
}

.willkommen::after {
    bottom: 0;
}

.willkommen .section-eyebrow {
    text-align: center;
}

.willkommen .lede {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.willkommen p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.willkommen .signature {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
}

/* Mitgliedschaft */

.mitgliedschaft {
    padding: 7rem 0;
    background: #0a0e1a;
}

.mitglied-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.beitraege-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2.25rem 2rem 1.75rem;
}

.beitraege-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.beitraege-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

.beitraege-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.beitraege-table tr:last-child {
    border-bottom: none;
}

.beitraege-table th,
.beitraege-table td {
    padding: 1.1rem 0;
    text-align: left;
    vertical-align: baseline;
}

.beitraege-table th {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.4;
}

.beitraege-table td {
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    color: #fff;
    white-space: nowrap;
    padding-left: 1rem;
}

.beitraege-detail {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.beitraege-note {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.cta-block p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: #fff;
    color: #0a0e1a;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-primary span {
    transition: transform 0.25s ease;
}

.btn-primary:hover span {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* Hütten */

.huetten {
    padding: 7rem 0 8rem;
    background: #0a0e1a;
}

.huetten-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.hutte-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.hutte-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
}

.hutte-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1a1f2e;
}

.hutte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hutte-card:hover .hutte-image img {
    transform: scale(1.04);
}

.hutte-body {
    padding: 2rem 1.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.hutte-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    line-height: 1;
}

.hutte-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: -0.5rem;
}

.hutte-text {
    flex-grow: 1;
}

.hutte-text p {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.hutte-text p + p {
    margin-top: 0.85rem;
}

.hutte-text-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    padding: 0.75rem 0.85rem;
    margin: -0.25rem 0 0 -0.85rem;
    align-self: flex-start;
    transition: color 0.2s;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.hutte-text-toggle:hover {
    color: #fff;
}

.hutte-text-toggle .toggle-label::after {
    content: ' +';
    margin-left: 0.35rem;
    display: inline-block;
}

.hutte-text-toggle.expanded .toggle-label::after {
    content: ' −';
}

.prices {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.prices > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    font-size: 0.88rem;
}

.prices > div span {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.prices > div strong {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.prices-note {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.reservation {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reservation-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.reservation > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.phone {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 0.25rem;
}

.phone:hover {
    color: #b8d4e8;
}

.reservation-mail {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
}

.reservation-mail:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.reservation-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.huetten-disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 640px;
}

/* Footer */

.site-footer {
    background: #060a14;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.contact .label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    opacity: 0.55;
    margin-bottom: 0.5rem;
}

.contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s, color 0.2s;
    align-self: flex-start;
    margin-top: 0.2rem;
}

.contact a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.85);
}

.legal {
    display: flex;
    gap: 2rem;
}

.legal a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.legal a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== MOBILE ========== */

@media (max-width: 1400px) {
    .hero {
        padding: 1.75rem 1.25rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 4rem);
        white-space: normal;
        line-height: 1;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .fullname {
        font-size: 0.8rem;
        letter-spacing: 0.16em;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1.25rem;
    }

    .hero::before {
        background-attachment: scroll;
    }

    .brand img {
        height: 44px;
    }

    .kicker {
        font-size: 0.6rem;
        letter-spacing: 0.25em;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 10.5vw, 3.75rem);
        white-space: normal;
        line-height: 0.95;
    }

    .fullname {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        margin-top: 0.9rem;
    }

    .scroll-indicator {
        font-size: 0.6rem;
        gap: 0.5rem;
    }

    .scroll-indicator svg {
        width: 11px;
        height: 16px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .willkommen {
        padding: 5rem 0 4.5rem;
    }

    .willkommen .lede {
        font-size: 1.1rem;
    }

    .mitgliedschaft {
        padding: 5rem 0;
    }

    .mitgliedschaft .section-eyebrow,
    .mitgliedschaft h2,
    .mitgliedschaft .section-intro,
    .huetten .section-eyebrow,
    .huetten h2,
    .huetten .section-intro {
        text-align: center;
    }

    .section-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .mitglied-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-block {
        align-items: center;
        text-align: center;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        text-align: center;
    }

    .huetten {
        padding: 5rem 0 6rem;
    }

    .huetten-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hutte-image {
        aspect-ratio: 16 / 9;
    }

    .hutte-body {
        padding: 1.25rem 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .hutte-body h3 {
        font-size: 1.7rem;
    }

    .hutte-meta {
        font-size: 0.7rem;
        margin-top: -0.4rem;
    }

    .hutte-text {
        position: relative;
        max-height: 4.8rem;
        overflow: hidden;
        transition: max-height 0.55s ease;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    }

    .hutte-text.expanded {
        max-height: 60rem;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hutte-text p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .hutte-text p + p {
        margin-top: 0.6rem;
    }

    .hutte-text-toggle {
        display: inline-flex;
        align-items: center;
        font-size: 0.65rem;
        margin-top: 0;
    }

    .prices {
        padding: 0.75rem 1rem;
        margin-top: 0.25rem;
    }

    .prices > div {
        padding: 0.3rem 0;
    }

    .prices > div span {
        font-size: 0.7rem;
    }

    .prices > div strong {
        font-size: 0.88rem;
    }

    .prices-note {
        font-size: 0.65rem;
        margin-top: 0.4rem;
    }

    .reservation {
        padding-top: 1rem;
    }

    .reservation > p {
        font-size: 0.85rem;
    }

    .reservation-label {
        font-size: 0.65rem;
    }

    .phone {
        font-size: 1.25rem;
    }

    .reservation-mail {
        font-size: 0.8rem;
    }

    .reservation-note {
        font-size: 0.7rem;
    }

    .huetten-disclaimer {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .legal {
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-indicator svg {
        animation: none;
    }
}
