:root {
    --primary-color: #b34b3e; /* Warm brick red */
    --accent-color: #d19a4e; /* Golden field */
    --bg-color: #f7f4ec; /* Warm off-white */
    --text-color: #333333;
    --font-heading: 'Georgia', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
}

/* Landscape Background - simulating the original site's side backgrounds */
.background-container {
    background-color: #e2e8f0; /* Fallback for sky blue */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Local Background Image */
    background-image: url('assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

/* Central Content Container */
.content-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    padding: 30px 40px;
    background-color: #fff;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #4a6c82; /* Muted blue for main title */
}

h1 {
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    color: #b89c7d; /* Warm brown */
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: normal;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #b89c7d; /* Match subtitle color */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #4a6c82;
}

main {
    flex: 1;
    padding: 40px;
}

.page-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

section {
    margin-bottom: 70px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

/* House Section Styles */
.welcome-text {
    margin-bottom: 40px;
}
.welcome-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.house-details-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}
.main-house-img-wrapper {
    width: 50%;
}
.main-house-img {
    width: 100%;
    display: block;
}
.house-features {
    width: 50%;
    padding-top: 10px;
}
.house-features h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.house-features ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 1rem;
}
.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.room-gallery img, .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: left;
}
.detail-block {
    margin-top: 40px;
    margin-bottom: 40px;
}
.detail-block h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.detail-block h4 {
    margin-bottom: 15px;
    margin-top: 25px;
}
.detail-block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.detail-block p {
    margin-bottom: 15px;
}
.closing-text {
    font-style: italic;
    color: #555;
    margin-bottom: 40px;
}

/* Lightbox Styles */
.room-gallery img {
    cursor: pointer;
    transition: opacity 0.3s;
}
.room-gallery img:hover {
    opacity: 0.8;
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    animation: zoom 0.3s;
}
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    height: 60px;
    font-size: 1.1rem;
}

/* Pricing Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.pricing-table th {
    background-color: #4a6c82; /* Muted blue */
    color: #fff;
    text-align: left;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.pricing-table th:last-child {
    text-align: center;
}
.pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}
.pricing-table tr:last-child td {
    border-bottom: none;
}
.pricing-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}
.pricing-table td.price {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a6c82; /* Muted blue */
}

/* Expanded Form Styles */
.form-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-group.half {
    flex: 1;
    min-width: 250px;
}
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
}
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(209, 154, 78, 0.2);
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.radio-group input {
    width: auto;
    margin-right: 8px;
}
.checkbox-group {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .house-details-container {
        flex-direction: column;
    }
    .main-house-img, .house-features {
        width: 100%;
    }
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Calendar Styling */
.calendar-section {
    margin-bottom: 40px;
}
.full-year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.calendar-month {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
}
.calendar-month h4 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 1.1rem;
    color: #333;
    font-family: var(--font-body);
}
.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 0.85rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-day {
    padding: 6px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #eee;
}
.calendar-day.empty {
    background: transparent;
    border: none;
}
.calendar-day.frei {
    background-color: #f9f9f9;
}
.calendar-day.belegt {
    background-color: #ff9999; /* Red/pink for reserved */
}
.calendar-day.wechsel {
    background-color: #58d68d; /* Green for arrival/departure */
}
.legend {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 25px;
    margin-bottom: 25px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}
.box.frei {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
.box.belegt {
    background-color: #ff9999;
}
.box.wechsel {
    background-color: #58d68d;
}

@media (max-width: 900px) {
    .full-year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .full-year-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styling */
.booking-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.booking-form-container h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(209, 154, 78, 0.2);
}

.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #b88645;
}

#form-status {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: white;
    font-size: 0.95rem;
}

footer a {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
}

/* Mobile Optimizations */
@media (max-width: 850px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .content-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 10px;
    }
    main {
        padding: 15px 10px;
    }
    .header-title-container {
        justify-content: center;
        margin-bottom: 15px;
        text-align: center;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav ul li {
        display: inline-block;
    }
    nav a {
        font-size: 0.8rem;
        padding: 5px;
    }
    .pricing-table th, .pricing-table td {
        padding: 8px;
        font-size: 0.85rem;
        word-break: break-word;
    }
    .pricing-table th {
        font-size: 0.9rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .page-section {
        padding: 20px 15px;
    }
    .room-gallery {
        grid-template-columns: 1fr;
    }
    .room-gallery img, .gallery-item img {
        height: auto;
        aspect-ratio: 4/3;
    }
}
