:root {
    color-scheme: light;
    --accent: #d97706;
    --accent-dark: #b45309;
    --bg: #f5f5f4;
    --text: #1c1917;
    --muted: #78716c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

header.hero {
    min-height: 70vh;
    background: linear-gradient(120deg, rgba(28, 25, 23, 0.8), rgba(28, 25, 23, 0.4)), url("vorschau/Zimmer1/10.jpg") center/cover no-repeat;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
    color: #fff;
}

.hero__content {
    max-width: 960px;
    text-align: center;
}

.hero__meta {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #fef3c7;
}

.hero__cta {
    margin-top: 1.5rem;
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    transition: background 0.2s ease;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--accent-dark);
}

.btn--ghost {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

section + section {
    margin-top: 3rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.card h3 {
    margin-top: 0;
}

.card ul {
    padding-left: 1.1rem;
    margin: 0.5rem 0 0;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.split h2 {
    margin-top: 0;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.badge {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e7e5e4;
    font-size: 0.9rem;
}

.gallery {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09);
}

.gallery h2 {
    margin-top: 0;
}

.gallery-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

figure {
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #edecea;
    background: #fefefe;
}

figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

figure figcaption {
    padding: 0.5rem 0.9rem 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.gallery-item {
    cursor: zoom-in;
    position: relative;
}

.gallery-item::after {
    content: " ";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
}

.contact {
    text-align: center;
    padding: 2.5rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 1px #e7e5e4;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 1000;
}

.lightbox.is-active {
    display: flex;
}

.lightbox__content {
    max-width: min(1200px, 90vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.lightbox__image {
    max-height: 80vh;
    width: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
    font-size: 1rem;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

@media (max-width: 640px) {
    header.hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    figure img {
        height: 160px;
    }
    .lightbox__nav {
        display: none;
    }
}
