/* ==========================================================================
   Kaufhaus Wiedenig — Ferienwohnung in Hermagor / Nassfeld
   Modernes, alpenländisches Design
   ========================================================================== */

:root {
    /* Farben — warmer alpenländischer Touch */
    --color-bg: #fbf9f5;
    --color-bg-alt: #f3eee5;
    --color-text: #2b2a26;
    --color-text-soft: #5b5a55;
    --color-accent: #6b8e4e;        /* Wiesengrün */
    --color-accent-dark: #4f6e36;
    --color-warm: #a87545;          /* Holz-Akzent */
    --color-line: #e3dcd0;
    --color-card: #ffffff;
    --color-overlay: rgba(43, 42, 38, 0.55);

    /* Typografie */
    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;
    --radius: 6px;
    --shadow-sm: 0 2px 8px rgba(43, 42, 38, 0.06);
    --shadow-md: 0 8px 24px rgba(43, 42, 38, 0.1);
    --transition: 250ms ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-warm);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1.1em;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.4em;
}

/* ============================================================
   Layout
============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-soft);
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent-dark);
    margin-bottom: 18px;
}

/* ============================================================
   Header / Navigation
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.brand span {
    color: var(--color-accent-dark);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent-dark);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    margin-left: 12px;
}

.lang-switch a {
    color: var(--color-text-soft);
}

.lang-switch a.active {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg);
        padding: 24px;
        border-bottom: 1px solid var(--color-line);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

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

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero h1 {
    color: white;
    margin-bottom: 0.3em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.hero-meta span::before {
    content: '\2715';
    margin-right: 10px;
    opacity: 0.6;
}

.hero-meta span:first-child::before {
    display: none;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero variant - small (interior pages) */
.hero-page {
    min-height: 50vh;
    padding: 80px 24px;
}

.hero-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   Highlight Grid
============================================================ */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.highlight-card {
    text-align: center;
    padding: 32px 20px;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--color-accent-dark);
}

.highlight-card h3 {
    margin-bottom: 12px;
}

.highlight-card p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* ============================================================
   Two-Column Feature
============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

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

.feature-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-content h2 {
    margin-bottom: 16px;
}

/* ============================================================
   Gallery
============================================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 4 / 6;
}

@media (max-width: 768px) {
    .gallery-item.tall {
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Amenities List
============================================================ */
.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 32px;
    margin-top: 32px;
    list-style: none;
    padding: 0;
}

.amenities li {
    padding: 8px 0;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
}

.amenities li::before {
    content: '\2713';
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   Blog
============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-soft);
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--color-text);
}

.blog-card-title a:hover {
    color: var(--color-accent-dark);
}

.blog-card-excerpt {
    color: var(--color-text-soft);
    font-size: 0.96rem;
    margin-bottom: 18px;
    flex: 1;
}

.read-more {
    font-weight: 500;
    color: var(--color-accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more::after {
    content: '\2192';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Blog single */
.blog-article {
    background: var(--color-bg);
    padding: 60px 0 80px;
}

.blog-article h1 {
    margin-bottom: 20px;
}

.blog-meta {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    margin-bottom: 32px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.blog-meta span::before {
    content: '\2022';
    margin-right: 16px;
    color: var(--color-line);
}

.blog-meta span:first-child::before {
    display: none;
    margin: 0;
}

.blog-hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #3a3934;
}

.blog-body h2,
.blog-body h3 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

.blog-body p {
    margin-bottom: 1.3em;
}

.blog-body img {
    border-radius: var(--radius);
    margin: 28px 0;
}

.blog-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 4px 0 4px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--color-text-soft);
}

.blog-cta {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--radius);
    margin: 40px 0;
    text-align: center;
}

.blog-cta h3 {
    margin-bottom: 12px;
}

/* ============================================================
   Contact Form
============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info dt {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-top: 20px;
    margin-bottom: 4px;
}

.contact-info dd {
    margin: 0 0 10px;
    font-size: 1rem;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font: inherit;
    background: white;
    transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Booking Bar
============================================================ */
.booking-bar {
    background: var(--color-text);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.booking-bar h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.booking-bar p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 24px;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.site-footer h4 {
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* ============================================================
   Map embed
============================================================ */
.map-wrap {
    margin-top: 40px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   Social icon (Instagram in footer)
============================================================ */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: white;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link:hover .social-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================================
   Utility
============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
