/* ==========================================================================
   Ifen-Terrasse - Matching Live Site Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-orange: #e8713a;
    --primary-orange-hover: #d65f2a;
    --text-dark: #3d3d3d;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --footer-dark: #0d3c57;
    --border-light: #e5e5e5;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact a {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-contact a:hover {
    color: var(--primary-orange);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-orange);
}

.nav-icon {
    font-size: 12px;
    color: var(--primary-orange);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 3px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-orange);
}

/* Mobile Menu */
.mobile-menu-toggle,
.menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-orange);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-content {
    position: absolute;
    bottom: 100px;
    left: 50px;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 77px;
    font-weight: 300;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 6px;
}

.hero-light {
    font-weight: 300;
}

.hero-italic {
    font-style: italic;
    font-weight: 300;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */
.welcome-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), #f5a623);
}

.bergbahn-logo {
    margin-top: 40px;
}

.bergbahn-logo img {
    max-width: 300px;
}

.welcome-greeting {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.welcome-right p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================================================
   Full Width Image
   ========================================================================== */
.full-image-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Apartments Section
   ========================================================================== */
.apartments-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.apartments-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.apartments-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.apartments-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.apartment-card {
    text-align: center;
    padding: 0 20px;
}

.apartment-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.apartment-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), #f5a623);
}

.apartment-image {
    margin: 20px 0;
    overflow: hidden;
    border-radius: 4px;
}

.apartment-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.05);
}

.apartment-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.apartment-price {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.price-number {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-orange);
}

.price-currency {
    font-size: 16px;
    color: var(--primary-orange);
}

.apartment-details {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    margin-bottom: 20px;
}

.apartment-details p {
    font-size: 14px;
    color: var(--text-gray);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

.apartment-details p:last-child {
    border-bottom: none;
}

.apartment-details .highlight {
    color: var(--primary-orange);
    font-weight: 500;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background-color: var(--text-dark);
    color: white;
}

.btn-icon {
    font-size: 12px;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    position: relative;
    height: 400px;
    background: url('images/background_ifen.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 100, 100, 0.4);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 18px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Booking Section
   ========================================================================== */
.booking-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--bg-white);
}

.booking-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    z-index: 0;
}

.booking-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.booking-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.bergbahn-logo-large img {
    max-width: 350px;
}

.booking-intro {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.booking-form {
    background-color: var(--bg-white);
}

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

.form-row label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-orange);
}

.fewo-selection {
    flex-direction: column;
    gap: 10px;
}

.checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-row a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.btn-submit {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-orange);
    color: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-orange-hover);
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section {
    width: 100%;
}

.map-container {
    width: 100%;
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--footer-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-content a {
    color: white;
    text-decoration: underline;
}

.footer-content a:hover {
    color: var(--primary-orange);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 60px;
    }

    .welcome-grid {
        gap: 40px;
    }

    .apartments-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .apartments-grid.two-col {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: 3px;
    }

    .hero-content {
        left: 30px;
        bottom: 60px;
    }

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

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

    .booking-left {
        display: none;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 80px 20px 20px;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .menu-icon {
        display: block;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-content {
        left: 20px;
        bottom: 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .apartments-grid.three-col,
    .apartments-grid.two-col {
        grid-template-columns: 1fr;
    }

    .full-image-section {
        height: 300px;
    }

    .cta-banner {
        height: 300px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .price-number {
        font-size: 28px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
