@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #3d2b1f;
    --primary-light: #5d4a3e;
    --secondary-color: #2d4a3e;
    --accent-color: #bca374;
    --accent-glow: rgba(188, 163, 116, 0.4);
    --bg-color: #f9f7f2;
    --text-color: #333;
    --text-muted: #666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Better Focus Styles */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Variables */
.high-contrast {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #ffff00;
    --accent-glow: #ffff00;
    --text-color: #fff;
    --text-muted: #eee;
    --white: #000;
    --glass-bg: #000;
    --shadow: none;
}

.high-contrast section {
    background-color: #000 !important;
    border-bottom: 2px solid #ffff00;
}

.high-contrast .hero {
    background: #000 !important;
}

.high-contrast .btn, .high-contrast .nav-tab.active {
    background: #ffff00 !important;
    color: #000 !important;
    border: 2px solid #fff;
    font-weight: 800;
}

.high-contrast .a11y-menu {
    background: #000 !important;
    border: 2px solid #ffff00 !important;
    color: #fff !important;
}

.high-contrast .a11y-menu h3 {
    color: #ffff00 !important;
}

.high-contrast .a11y-option span {
    color: #fff !important;
}

/* Reduced Motion Mode */
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.reduced-motion .parallax-separator {
    background-attachment: scroll !important;
}

.reduced-motion .ticker-content {
    animation: none !important;
}

.reduced-motion .ticker-item:nth-child(n+2) {
    display: none !important; /* Only show first item in Ruhe-Modus */
}

/* Accessibility Widget Styles */
.a11y-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.a11y-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.a11y-trigger:hover {
    transform: scale(1.1);
}

.a11y-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    border: 1px solid rgba(188, 147, 114, 0.2);
}

.a11y-menu.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(18px); }

/* Large Text Mode Enhancements */
.large-text {
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.large-text h1 { font-size: 4rem; }
.large-text h2 { font-size: 3rem; }
.large-text p { margin-bottom: 1.5rem; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size */
    transition: font-size 0.3s ease;
}

html.large-text {
    font-size: 20px; /* Scaled size (+25%) */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 247, 242, 0.95);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(188, 163, 116, 0.1);
}

.news-ticker {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    width: max-content;
}

.ticker-item {
    padding-right: 150px; /* Large professional gap */
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); } /* Perfect reset for 4 identical items */
}

.nav-top {
    background: rgba(188, 163, 116, 0.05); /* Very subtle accent tint */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.4rem 0;
}

.nav-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.nav-main {
    padding: 0.8rem 0;
}

.nav-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Safety for scaling */
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem; /* Ensure space before first menu item */
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

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

/* Accessibility Toggle */
.a11y-toggle {
    display: flex;
    align-items: center;
}

.a11y-btn {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.a11y-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

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

.mobile-only {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 1rem; /* Tightened gap */
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller font */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    hyphens: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.lang-switch {
    margin-left: 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 1.5rem;
}

.lang-switch a {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}

.lang-switch a.active {
    color: var(--accent-color) !important;
}

.lang-switch span {
    color: #ccc;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/parallax/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(188, 163, 116, 0.4), 2px 2px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(188, 163, 116, 0.4);
    animation: fadeInUp 1s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Sections */
section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

section:nth-child(even)::before {
    left: -300px;
    right: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Cards Section (Events, Apartment) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(188, 163, 116, 0.25), 0 0 20px rgba(188, 163, 116, 0.1);
    border-color: var(--accent-color);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

/* Price Box */
.price-box {
    background: #fdfaf5;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

.price-box p {
    margin-bottom: 0.5rem;
}

.price-box ul {
    list-style: none;
    padding-left: 0;
}

.price-box li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.price-box li strong {
    color: var(--primary-color);
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    margin: 0;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoom 0.4s;
    object-fit: contain;
}

#caption {
    margin-top: 20px;
    text-align: center;
    color: #ccc;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    max-width: 80%;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close:hover {
    color: var(--accent-color);
}

/* Next & prev buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
    text-decoration: none !important;
}

.next {
    right: 30px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 30px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

@media only screen and (max-width: 700px){
    .modal-content { width: 95%; max-height: 70vh; }
    .close { top: 15px; right: 20px; }
    .prev, .next { font-size: 30px; padding: 10px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
}

.form-group textarea {
    height: 150px;
}

.form-submit {
    text-align: center;
}

.form-submit button {
    cursor: pointer;
    border: none;
    padding: 1rem 3rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}
/* Parallax Separators */
.parallax-separator {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

.parallax-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 43, 31, 0.1); /* Subtle primary color overlay */
}

#parallax-1 {
    background-image: url('assets/parallax/parallax_1.jpg');
}

#parallax-2 {
    background-image: url('assets/parallax/parallax_2.jpg');
}

/* Responsive adjustments for Parallax */
@media (max-width: 1100px) {
    .parallax-separator {
        height: 250px;
        background-attachment: scroll;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .menu-toggle {
        display: flex;
    }

    .nav-top { display: none; } /* Hide technical bar on mobile, move into side-menu */

    .mobile-only {
        display: flex !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        background: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding-top: 100px;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 2rem;
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .hero-content h1 { font-size: clamp(2rem, 10vw, 2.5rem); }
    .section-title h2 { font-size: clamp(1.6rem, 8vw, 2rem); }
    
    section { padding: 4rem 0; }
}

@media (max-width: 400px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 1.5rem; }
}
