/* --- MODERN VARIABLES --- */
:root {
    --primary: #2C4A3B;      /* Deep Forest Green */
    --primary-light: #3E6352; 
    --secondary: #8FA698;    /* Sage Green */
    --accent: #C68E68;       /* Muted Terracotta/Gold */
    --bg-body: #F9F7F2;      /* Warm Cream/Sand */
    --bg-white: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(44, 74, 59, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(44, 74, 59, 0.2);
    --container-width: 1100px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- ICONS --- */
.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    margin-bottom: 1rem;
}

.amenity-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    margin-right: 0.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg {
    stroke: white;
    width: 20px;
    height: 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 74, 59, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}
.btn-whatsapp svg { fill: white; stroke: none; width: 24px; height: 24px; }

/* --- NAVIGATION --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo svg { width: 32px; height: 32px; stroke: var(--primary); }

.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-menu a { font-size: 0.95rem; font-weight: 600; position: relative; }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--accent); transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.language-switch {
    display: flex; border: 1px solid var(--secondary);
    border-radius: 20px; overflow: hidden; margin-left: 1rem;
}
.lang-btn {
    background: none; border: none; padding: 0.4rem 0.8rem;
    cursor: pointer; font-family: var(--font-body); font-size: 0.85rem;
    font-weight: 700; color: var(--primary);
}
.lang-btn.active { background: var(--primary); color: white; }

.mobile-menu-toggle { display: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 2px; background: var(--primary); margin: 5px 0; }

/* --- HERO --- */
.hero {
    height: 85vh; min-height: 600px; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)), url('images/pension-bauer-eichstaett-aussenansicht.jpg'); 
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero { background-color: var(--primary); }

.hero-content {
    max-width: 800px; padding: 2.5rem;
    background: rgba(44, 74, 59, 0.45); backdrop-filter: blur(4px);
    border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem;
    color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem); margin-bottom: 1.5rem;
    font-weight: 300; color: rgba(255,255,255,0.95);
}

.price-advantage {
    display: inline-block;
    background: rgba(198, 142, 104, 0.9); /* Accent color */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- SECTIONS --- */
section { padding: 6rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle {
    text-align: center; color: var(--text-muted);
    max-width: 600px; margin: 0 auto 4rem auto; font-size: 1.1rem;
}

/* --- FEATURES --- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.feature-card {
    background: var(--bg-white); padding: 2.5rem; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-soft); transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); }

/* --- ROOMS --- */
.rooms { background-color: white; } 
.rooms-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem;
}
.room-card {
    background: var(--bg-body); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-soft);
    transition: all 0.4s ease; position: relative;
}
.room-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.room-image-container { height: 250px; overflow: hidden; position: relative; }
.room-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-image { transform: scale(1.05); }
.room-info { padding: 2rem; }
.room-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin: 1rem 0; color: var(--text-muted); font-size: 0.9rem;
}
.room-meta svg { width: 18px; height: 18px; margin-right: 5px; stroke: currentColor; vertical-align: text-bottom;}

.price-badge {
    background-color: var(--primary); color: white;
    padding: 0.5rem 1rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
}

.amenities-box {
    background: rgba(143, 166, 152, 0.1); border: 1px solid var(--secondary);
    border-radius: var(--radius-md); padding: 2rem; margin-bottom: 3rem; text-align: center;
}
.amenities-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.5rem;
}
.amenity-item { display: flex; align-items: center; font-weight: 500; }
.breakfast-note { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

/* --- CONTACT --- */
.contact { background-color: var(--primary); color: white; padding-bottom: 6rem; }
.contact .section-title { color: white; }
.contact .section-subtitle { color: rgba(255,255,255,0.8); }

.contact-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    background: var(--bg-white); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-hover); color: var(--text-main);
}
.contact-info-panel {
    background: var(--secondary); padding: 3rem; color: white;
    display: flex; flex-direction: column; justify-content: space-between;
}
.contact-info-panel h3 { color: white; font-size: 1.8rem; margin-bottom: 1.5rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.1rem; }
.contact-form-panel { padding: 3rem; }

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--primary);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.8rem 0; border: none; border-bottom: 2px solid #ddd;
    background: transparent; font-family: var(--font-body); font-size: 1rem;
    transition: border-color 0.3s; border-radius: 0; color: var(--text-main);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-bottom-color: var(--primary);
}
.checkbox-group {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin-top: 1.5rem; margin-bottom: 1.5rem; font-size: 0.9rem;
}
.checkbox-group input { width: auto; margin-top: 4px; }
.message { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: none; }
.message.success { background: #d4edda; color: #155724; }
.message.error { background: #f8d7da; color: #721c24; }

/* --- FOOTER --- */
footer { background: #233b2f; color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer h4 { 
    color: #F9F7F2; /* Das helle Creme der Seite */
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 1; /* Volle Deckkraft sicherstellen */
}
.footer-links a { display: block; margin-bottom: 0.5rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(44, 74, 59, 0.6); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: white; margin: 5% auto; padding: 2.5rem;
    border-radius: var(--radius-md); width: 90%; max-width: 800px;
    max-height: 85vh; overflow-y: auto; position: relative;
}
.close-modal {
    position: absolute; right: 1.5rem; top: 1.5rem; font-size: 2rem;
    border: none; background: none; cursor: pointer; color: var(--text-muted);
}

/* --- UTILS --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.loading-spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: white; flex-direction: column; justify-content: center; padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease;
    }
    .nav-menu.active { right: 0; }
    .mobile-menu-toggle { display: block; z-index: 1001; }
}