/* ============================================
   Ferienwohnung Monika Marx – Modern Redesign
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-primary: #2c5f4e;
    --color-primary-light: #3a7d66;
    --color-primary-dark: #1e4438;
    --color-accent: #c9956b;
    --color-accent-light: #e8c9a8;
    --color-bg: #faf9f7;
    --color-bg-alt: #f0ede8;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-white: #ffffff;
    --color-border: #e0ddd8;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

    --transition: 0.3s ease;
    --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--full {
    width: 100%;
}

/* ========================
   HEADER
   ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition);
    background: transparent;
}

.header--scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

.header__logo-main {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-white);
    transition: color var(--transition);
}

.header__logo-sub {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}

.header--scrolled .header__logo-main {
    color: var(--color-primary-dark);
}

.header--scrolled .header__logo-sub {
    color: var(--color-text-light);
}

.nav {
    display: flex;
    gap: var(--space-md);
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header--scrolled .nav__link {
    color: var(--color-text);
}

.header--scrolled .nav__link:hover {
    color: var(--color-primary);
}

/* Burger Menu */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
    border-radius: 2px;
}

.header--scrolled .header__burger span {
    background: var(--color-text);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   HERO
   ======================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* ========================
   SECTIONS
   ======================== */
.section {
    padding: var(--space-xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
}

/* ========================
   WELCOME
   ======================== */
.welcome__text {
    max-width: 780px;
    margin: 0 auto var(--space-lg);
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.welcome__text p {
    margin-bottom: var(--space-sm);
}

.welcome__signature {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: var(--space-md);
}

.welcome__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.feature__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
}

.feature__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ========================
   APARTMENT
   ======================== */
.apartment__info {
    max-width: 780px;
    margin: 0 auto var(--space-lg);
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.apartment__info p {
    margin-bottom: var(--space-sm);
}

.apartment__highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 780px;
    margin: 0 auto;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    border: 1px solid var(--color-border);
}

.highlight__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================
   GALLERY
   ======================== */
.gallery {
    columns: 3;
    column-gap: var(--space-sm);
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: var(--space-sm);
}

.gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-sm);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery__item:hover figcaption {
    transform: translateY(0);
}

/* ========================
   LIGHTBOX
   ======================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox:not([hidden]) {
    opacity: 1;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--space-sm);
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    opacity: 1;
}

.lightbox__close {
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
}

.lightbox__prev {
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__caption {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1rem;
    opacity: 0.8;
}

/* ========================
   PRICING
   ======================== */
.pricing {
    display: flex;
    justify-content: center;
}

.pricing__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pricing__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.pricing__icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.pricing__amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.pricing__period {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.pricing__features {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.pricing__features li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-left: 1.5rem;
    position: relative;
}

.pricing__features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ========================
   LOCATION
   ======================== */
.location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.location__info {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.location__info p {
    margin-bottom: var(--space-md);
}

.location__address {
    background: var(--color-bg-alt);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--color-primary);
    color: var(--color-text);
}

.location__cta {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.location__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location__map iframe {
    display: block;
}

/* ========================
   CONTACT
   ======================== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact__info p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact__detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail a {
    color: var(--color-primary);
}

/* Form */
.contact__form {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: var(--space-md);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 78, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

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

.footer__nav li {
    margin-bottom: var(--space-xs);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .gallery {
        columns: 2;
    }

    .location {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header__burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        gap: 0;
    }

    .nav.open {
        right: 0;
    }

    .nav__link {
        color: var(--color-text);
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .gallery {
        columns: 2;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .pricing__card {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 480px) {
    .gallery {
        columns: 1;
    }

    .welcome__features {
        grid-template-columns: 1fr;
    }
}

/* ========================
   FORM SUCCESS MESSAGE
   ======================== */
.form__success {
    text-align: center;
    padding: var(--space-lg);
}

.form__success-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.form__success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.form__success p {
    color: var(--color-text-light);
}
