:root {
    --bg: #f5f2ec;
    --bg-dark: #25231f;
    --bg-light: #e8e1d6;

    --text: #292722;
    --muted: #6e6960;

    --accent: #9a6d42;
    --accent-dark: #76502f;

    --white: #ffffff;

    --border: rgba(41, 39, 34, .13);

    --content-width: 1180px;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

/* ==========================================================
   RESET
========================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
}

body.modal-open {
    overflow: hidden;
}

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

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

button {
    font-family: inherit;
}

/* ==========================================================
   CONTAINER
========================================================== */
.container {
    width: min(calc(100% - 48px), var(--content-width));
    margin-inline: auto;
}

/* ==========================================================
   NAVIGATION
========================================================== */
.navigation {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    color: var(--white);
    background: transparent;
    transition:
            background .3s ease,
            padding .3s ease,
            box-shadow .3s ease;
}

.navigation.scrolled {
    padding: 15px 0;
    background: rgba(29, 28, 25, .96);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .14);
    backdrop-filter: blur(8px);
}

.navigation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    z-index: 1002;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: .9rem;
}

.nav-links a {
    opacity: .9;
    transition:
            opacity .2s ease,
            color .2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* ==========================================================
   BURGER
========================================================== */
.menu-toggle {
    display: none;
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: var(--white);
    transition:
            transform .3s ease,
            opacity .2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform:
            translateY(8px)
            rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
            translateY(-8px)
            rotate(-45deg);
}

/* ==========================================================
   MOBILE MENU
========================================================== */
.mobile-menu {
    display: none;
}

/* ==========================================================
   HERO
========================================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
            linear-gradient(
                    90deg,
                    rgba(0, 0, 0, .68) 0%,
                    rgba(0, 0, 0, .38) 55%,
                    rgba(0, 0, 0, .15) 100%
            ),
            url("../images/hero.jpg")
            center center / cover no-repeat;
}

.hero-content {
    max-width: 760px;
    padding: 140px 0 100px;
}

.eyebrow {
    margin-bottom: 15px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: .9;
    font-weight: 600;
}

.hero-subtitle {
    max-width: 620px;
    margin: 35px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
}

.hero-button {
    display: inline-block;
    margin-top: 40px;
    padding: 13px 25px;
    border: 1px solid rgba(255,255,255,.65);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition:
            background .2s ease,
            color .2s ease;
}

.hero-button:hover {
    background: var(--white);
    color: var(--text);
}

/* ==========================================================
   SECTIONS
========================================================== */
.section {
    padding: 120px 0;
}

.section-label {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h2 {
    margin: 12px 0 25px;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 600;
}

/* ==========================================================
   INTRO
========================================================== */
.intro {
    display: grid;
    grid-template-columns:
        .8fr
        1.2fr;
    gap: 100px;
    align-items: start;
}

.intro-text {
    font-size: 1.12rem;
    color: var(--muted);
}

.intro-text p {
    margin-top: 0;
    margin-bottom: 24px;
}

/* ==========================================================
   QUOTE
========================================================== */
.quote-section {
    padding: 130px 0;
    background: var(--bg-dark);
    color: var(--white);
}

.quote {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.quote p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 1.08;
}

.quote small {
    display: block;
    margin-top: 35px;
    color: rgba(255,255,255,.65);
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ==========================================================
   REFERENCES
========================================================== */
.references-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.references-intro {
    max-width: 510px;
    color: var(--muted);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}

.gallery-item {
    overflow: hidden;
    margin: 0;
    background: #ddd;
}

.gallery-item:nth-child(1) {
    grid-column: span 7;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
    grid-column: span 4;
}

.gallery-item img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(2) img {
    height: 500px;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-caption {
    padding: 13px;
    font-family: var(--serif);
    font-size: 1.3rem;
}

/* ==========================================================
   QUEDLINBURG
========================================================== */
.quedlinburg {
    background: var(--bg-light);
}

.quedlinburg-content {
    display: grid;
    grid-template-columns:
        1fr
        1fr;
    gap: 90px;
}

.guide-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.guide-list li {
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--serif);
    font-size: 1.35rem;
}

.profile-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--accent-dark);
}

.profile-link:hover {
    opacity: .7;
}

/* ==========================================================
   CONTACT
========================================================== */
.contact-content {
    max-width: 760px;
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
    padding: 35px 0;
    background: #1d1c19;
    color: rgba(255,255,255,.7);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: .82rem;
}

.footer-name {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a:hover {
    color: var(--white);
}

/* ==========================================================
   IMPRESSUM MODAL
========================================================== */
.imprint-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity .25s ease,
            visibility .25s ease;
}

.imprint-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal-Fenster */
.imprint-modal-dialog {
    position: relative;
    width: min(100%, 900px);
    height: min(90vh, 850px);
    overflow: hidden;
    background: var(--bg);
    border-radius: 3px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    transform:
            translateY(25px)
            scale(.98);
    transition: transform .3s ease;
}

.imprint-modal.open
.imprint-modal-dialog {
    transform:
            translateY(0)
            scale(1);
}

/* Schließen */
.imprint-modal-close {
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 28, 25, .92);
    color: var(--white);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition:
            background .2s ease,
            transform .2s ease;
}

.imprint-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* iframe */
.imprint-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--bg);
}

/* ==========================================================
   TABLET / MOBILE
========================================================== */
@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 32px), var(--content-width));
    }

    /* Navigation */
    .navigation {
        padding: 18px 0;
    }

    .navigation.scrolled {
        padding: 13px 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 10px 24px 25px;
        background: rgba(29, 28, 25, .98);
        box-shadow: 0 15px 30px rgba(0,0,0,.15);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
                opacity .25s ease,
                transform .25s ease,
                visibility .25s ease;
    }

    .mobile-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
        color: var(--white);
        font-size: .95rem;
    }

    .mobile-menu a:last-child {
        border-bottom: 0;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 130px 0 80px;
    }

    /* Sections */
    .section {
        padding: 80px 0;
    }

    .intro,
    .quedlinburg-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* References */
    .references-header {
        display: block;
        margin-bottom: 40px;
    }

    .references-intro {
        margin-top: 25px;
    }

    .gallery {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: auto;
    }

    .gallery-item img,
    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(2) img {
        height: 320px;
    }

    /* Footer */
    .footer-inner {
        display: block;
    }

    .copyright {
        margin-top: 8px;
    }

    .footer-links {
        margin-top: 15px;
    }

    /* ------------------------------------------------------
       Impressum Modal – Mobile
    ------------------------------------------------------ */
    .imprint-modal {
        align-items: stretch;
        padding: 0;
    }

    .imprint-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        transform: translateY(30px);
    }

    .imprint-modal.open
    .imprint-modal-dialog {
        transform: translateY(0);
    }

    .imprint-modal-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(3.4rem, 18vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .quote-section {
        padding: 90px 0;
    }

    .quote p {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 3rem;
    }
}