/*
Theme Name: Rasterhof 2026
Theme URI: https://rasterhof.it
Author: Familie Matzneller / Rasterhof
Description: Maßgeschneidertes WordPress-Theme für Rasterhof & Finhäusl in Aldein, Südtirol – Cortenstahl-Optik & Scidoo-Vorbereitung.
Version: 1.1
Text Domain: rasterhof
*/

:root {
    --corten-base: #5E3422;
    --corten-dark: #3B1E13;
    --corten-rust: #8C472B;
    --greige: #EBE4DE;
    --greige-dark: #DDD3CA;
    --white: #FFFFFF;
    --text-dark: #2B2420;
    --text-muted: #5F5650;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-card: 28px 28px 0 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* --- ECHTE CORTENSTAHL-TEXTUR (NAHTLOSES MUSTER) --- */
.corten-bg {
    background-color: var(--corten-base);
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(158, 76, 39, 0.48) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(46, 22, 13, 0.58) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(122, 57, 30, 0.35) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://w3.org id='rustNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23rustNoise)' opacity='0.24'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 100% 100%, 220px 220px;
    color: var(--white);
}

/* --- TYPOGRAFIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; font-weight: 300; }

.eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--corten-rust);
    margin-bottom: 0.6rem;
}
.corten-bg .eyebrow { color: rgba(255,255,255,0.75); }

.container { width: 92%; max-width: 1240px; margin: 0 auto; }
.container-narrow { width: 92%; max-width: 820px; margin: 0 auto; }
.section { padding: 5.5rem 0; }
.bg-greige { background-color: var(--greige); }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.btn-white { background: var(--white); color: var(--corten-dark); }
.btn-white:hover { background: var(--greige); }
.btn-corten { background: var(--corten-base); color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-corten:hover { background: var(--corten-dark); }
.btn-outline { border-color: var(--corten-base); color: var(--corten-base); background: transparent; }
.btn-outline:hover { background: var(--corten-base); color: var(--white); }

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    padding: 0.9rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.site-logo {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}
.site-logo img { max-height: 54px; width: auto; }
.site-logo span { font-size: 0.65rem; font-family: var(--font-sans); letter-spacing: 0.2em; opacity: 0.85; margin-top: 3px; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; }
.main-nav a { color: var(--white); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.03em; opacity: 0.92; transition: opacity 0.2s; }
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0.2rem; }

/* --- HERO BEREICH --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35,18,11,0.42) 0%, rgba(35,18,11,0.58) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; width: 100%; }
.early-bird-badge {
    display: inline-block;
    padding: 0.45rem 1.3rem;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.32);
}
.hero p { font-size: 1.15rem; max-width: 660px; margin: 1.2rem auto 2rem; opacity: 0.95; }

/* --- GRIDS & KARTEN MIT ABGERUNDETEN OBEREN ECKEN --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.5rem; align-items: center; }

.card-arch { background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 8px 24px rgba(43,36,32,0.05); }
.card-arch img, .image-framed img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
}
.image-framed { position: relative; padding: 12px; border: 1px solid var(--corten-base); border-radius: 34px 34px 0 0; }
.corten-bg .image-framed { border-color: rgba(255,255,255,0.35); }
.card-body { padding: 1.6rem; }

.highlight-box {
    background: var(--white);
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    text-align: center;
    border-bottom: 3px solid var(--corten-base);
}
.highlight-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }

/* --- 50/50 SPLIT SEKTION (TIERE / ANGUS) --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.split-text { padding: 5rem 8%; display: flex; flex-direction: column; justify-content: center; }
.split-image { background-size: cover; background-position: center; min-height: 380px; }
/* --- LISTEN --- */
.check-list { list-style: none; margin: 1.2rem 0 1.8rem; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.65rem; font-weight: 300; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--corten-rust); font-weight: 600; }
.corten-bg .check-list li::before { color: var(--greige); }

/* --- AKKORDEON FAQ --- */
.faq-item { border-bottom: 1px solid rgba(94, 52, 34, 0.25); padding: 1.25rem 0; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-answer { display: none; padding-top: 0.9rem; color: var(--text-muted); }
.faq-item.active .faq-answer { display: block; }

/* --- SCIDOO BUCHUNGS-MODAL --- */
.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(25, 14, 9, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.booking-modal.open { display: flex; }
.booking-modal-box {
    background: var(--white);
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 2.4rem;
    position: relative;
    color: var(--text-dark);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--corten-dark);
}

/* --- FOOTER --- */
.site-footer { padding: 4.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.88; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; opacity: 0.85; }

/* --- RESPONSIVE ANPASSUNG (TABLET & SMARTPHONE) --- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr; gap: 1.6rem; }
    .grid-2, .split-section, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    #apartments [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .section { padding: 3.6rem 0; }
    .split-text { padding: 3.2rem 6%; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--corten-dark);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        z-index: 9998;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 1rem; }
    .mobile-toggle { display: block; }
    .header-actions .btn-outline-header { display: none !important; }
}

@media (max-width: 520px) {
    .header-inner { gap: 0.4rem; }
    .site-logo { font-size: 1.25rem; max-width: 135px; }
    .site-logo img { max-height: 40px; }
    .site-logo span { font-size: 0.55rem; letter-spacing: 0.12em; }
    .hero { min-height: 75vh; padding: 3rem 0.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }
    .card-arch img, .image-framed img { height: 250px; }
    .booking-modal-box { padding: 1.5rem; }
}

