/* --- SELBST GEHOSTETE FONTS (DSGVO-konform, kein Google-Server-Kontakt) --- */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/lato-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/playfair-display-variable.woff2') format('woff2');
}

/* --- 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;
    text-wrap: balance;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Anker-Sprünge landen nicht unter der Sticky-Navigation */
section[id], header[id] { scroll-margin-top: 90px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    background: var(--primary); color: white; padding: 0.8rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.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;
    font-family: var(--font-body);
}

.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); }
.logo img { height: auto; max-width: 100px; }

.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;
    background: none; border: none; padding: 0.5rem;
}
.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-color: var(--primary);
    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;
}
@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)),
            image-set(
                url('images/pension-bauer-eichstaett-aussenansicht.webp') type('image/webp'),
                url('images/pension-bauer-eichstaett-aussenansicht.jpg') type('image/jpeg')
            );
    }
}

.hero-content {
    max-width: 800px; padding: 2.5rem; margin: 0 1rem;
    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);
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem;
    margin-top: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.9);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-badges svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }

/* --- SECTIONS --- */
section { padding: 6rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: var(--accent); margin: 1rem auto 0; border-radius: 2px;
}
.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; border-radius: 0; }
.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; }

.rooms-cta { text-align: center; margin-top: 4rem; }
.rooms-cta p { margin-bottom: 1rem; }

/* --- ZIELGRUPPEN (Radfahrer, Pilger, Monteure) --- */
.audience-card {
    background: var(--bg-white); padding: 2.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.audience-card:hover { transform: translateY(-5px); }
.audience-card .feature-icon { text-align: center; }
.audience-card h3 { text-align: center; margin-bottom: 0.75rem; }
.audience-card > p { text-align: center; color: var(--text-muted); margin-bottom: 1.25rem; }
.audience-list { list-style: none; margin-top: auto; }
.audience-list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.4rem 0; font-size: 0.95rem;
}
.audience-list svg {
    width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 5px;
}

/* --- GALERIE --- */
.gallery { background: var(--bg-body); }
.gallery figure { margin: 0; }
.gallery-img { width: 100%; height: 250px; object-fit: cover; }
.gallery figcaption {
    text-align: center; font-size: 0.9rem; margin-top: 0.5rem; color: var(--text-muted);
}

/* --- BEWERTUNGEN --- */
.review-card {
    background: var(--bg-white); padding: 2.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
    transition: transform 0.3s ease;
}
.review-card:hover { transform: translateY(-5px); }
.review-rating { margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text-main); flex-grow: 1; }
.review-author { margin-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 1rem; }
.review-author h3 { font-family: var(--font-body); font-size: 1rem; color: var(--primary); }
.review-author small { color: var(--text-muted); }

/* --- FAQ --- */
.faq { background: var(--bg-white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-body); border-radius: var(--radius-sm);
    margin-bottom: 1rem; border: 1px solid rgba(143, 166, 152, 0.3);
    overflow: hidden;
}
.faq-item summary {
    padding: 1.2rem 3rem 1.2rem 1.5rem; cursor: pointer; font-weight: 700;
    color: var(--primary); list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 1.5rem; top: 50%;
    transform: translateY(-50%); font-size: 1.5rem; color: var(--accent);
    font-weight: 400; transition: transform 0.3s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: rgba(143, 166, 152, 0.12); }
.faq-answer { padding: 0 1.5rem 1.2rem; color: var(--text-main); }

/* --- 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; }
.info-item a:hover { text-decoration: underline; }
.contact-form-panel { padding: 3rem; }
.contact-map { margin-top: 2rem; border-radius: 8px; overflow: hidden; height: 200px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* 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);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.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;
}
.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;
    overscroll-behavior: contain;
}
.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; }
    section { padding: 4rem 0; }
    .hero-content { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-panel, .contact-info-panel { padding: 2rem; }
}

/* --- UNTERSEITEN (Landingpages) --- */
.page-hero {
    padding: 5rem 0 4rem; text-align: center; color: white;
    background-color: var(--primary);
    background-image: linear-gradient(rgba(30, 50, 40, 0.6), rgba(30, 50, 40, 0.78)), url('images/pension-bauer-eichstaett-aussenansicht.jpg');
    background-size: cover; background-position: center;
}
@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
    .page-hero {
        background-image: linear-gradient(rgba(30, 50, 40, 0.6), rgba(30, 50, 40, 0.78)),
            image-set(
                url('images/pension-bauer-eichstaett-aussenansicht.webp') type('image/webp'),
                url('images/pension-bauer-eichstaett-aussenansicht.jpg') type('image/jpeg')
            );
    }
}
.page-hero h1 {
    color: white; font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 1rem;
}
.page-hero .lead {
    color: rgba(255,255,255,0.95); max-width: 720px;
    margin: 0 auto 2rem; font-size: 1.15rem;
}
.breadcrumb { font-size: 0.85rem; margin-bottom: 1.5rem; color: rgba(255,255,255,0.85); }
.breadcrumb a { text-decoration: underline; }
.breadcrumb a:hover { color: white; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.price-table {
    width: 100%; border-collapse: collapse; background: var(--bg-white);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
}
.price-table th, .price-table td { padding: 1rem 1.25rem; text-align: left; }
.price-table th { background: var(--primary); color: white; font-family: var(--font-body); font-weight: 700; }
.price-table tr:nth-child(even) td { background: rgba(143, 166, 152, 0.08); }
.price-note { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }

.cta-banner {
    text-align: center; background: var(--bg-white); padding: 3rem 2rem;
    border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
}
.cta-banner .cta-buttons { margin-top: 1.5rem; }
.card-link { display: inline-block; margin-top: 1.25rem; color: var(--accent); font-weight: 700; }
.card-link:hover { text-decoration: underline; }
.audience-card .card-link { align-self: center; }

/* --- REDUZIERTE BEWEGUNG --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
