/* CSS Variables for Premium Design - Berg Ambiente */
:root {
    --primary-color: #325a48; /* Etwas helleres Tannen-Grün - für Überschriften, Footer, Outlines */
    --primary-light: #44745d; /* Helleres Tannen-Grün (für Hover-Effekte) */
    --accent-color: #d8964c; /* Bergsonne/Holz - für Buttons, Zierlinien */
    --text-color: #435c4e; /* Etwas helleres, sattes Grün-Grau - für normale Schrift */
    --text-light: #647b6c; /* Helles Stein-Grün - für dezenten Text */
    --bg-color: #fbfaf8; /* Warmer Nebel/Fast Weiß - Haupt-Hintergrund */
    --bg-alt: #f2efe9; /* Heller Stein - für abwechselnde Bereiche */
    --footer-bg: #d2c1ae; /* Natürliches helles Holz-Braun - nur für den Footer */
    --bg-card: rgba(255, 255, 255, 0.92); /* Milchglas für Boxen */
    
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-color); /* Updated to the orange color used in the footer/buttons */
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 3rem 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-alt);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled, .navbar.solid-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1800px; /* Increased from 1200px to push logos out to the edges */
    margin: 0 auto;
    padding: 0 3rem; /* Gives it a clean margin from the extreme screen edge */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-brand {
    display: flex;
    align-items: center;
}

.header-logo-main {
    height: 90px; /* Logo is now significantly larger */
    width: auto;
    transition: var(--transition);
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-logo-partner {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .header-logo-main, .navbar.solid-nav .header-logo-main,
.navbar.scrolled .header-logo-partner, .navbar.solid-nav .header-logo-partner {
    filter: none;
}

.header-logo-main:hover, .header-logo-partner:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-links {
    color: #fff;
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    position: relative;
}

.navbar.scrolled .nav-links, .navbar.solid-nav .nav-links {
    color: var(--text-color);
    text-shadow: none;
}

.nav-links::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.navbar.scrolled .bar, .navbar.solid-nav .bar {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.05)), url('../004-sennalpe-breitengehren-.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.6fr;
    gap: 4rem; /* Pushes images away from the center text */
    margin: 0 -3rem; /* Pushes the entire grid out to the edge of the container padding */
    align-items: center;
}

.about-text {
    padding: 1.5rem 1.25rem; /* Retains reduced padding to keep the box compact */
}

.about-text h3 {
    margin-bottom: 0.75rem;
}

.about-text p {
    font-size: 1.1rem; /* Reverted back to the original text size */
    color: var(--text-light);
}

.about-image-left img, .about-image-right img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    transition: var(--transition);
}

#img-hut {
    aspect-ratio: 1 / 1; /* Square format crops the bottom third */
    object-position: center top;
    filter: brightness(1.05) saturate(1.1);
}

#img-view {
    aspect-ratio: 1 / 1; /* Matches the left image */
    object-position: right center; /* Anchors right, cropping the unimportant left quarter */
    filter: brightness(1.15) saturate(1.2);
}

.about-image-left img:hover, .about-image-right img:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

/* Hours Section */
.hours-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Menu Section */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-item h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.menu-item li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.menu-item li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.menu-item strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
}

.menu-download {
    text-align: center;
}

/* PDF Rendering */
.pdf-container canvas {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    transition: transform 0.3s ease;
}
.pdf-container:hover canvas {
    transform: scale(1.02);
}
.pdf-container.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.95) !important;
    padding: 60px 20px 20px 20px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    cursor: default !important;
}
.pdf-container.fullscreen-mode canvas {
    max-width: 1200px;
    width: 100%;
    display: block;
    margin: 0 auto 20px auto;
}
.pdf-container.fullscreen-mode:hover canvas {
    transform: none;
}
.close-fullscreen {
    transition: color 0.3s ease;
}
.close-fullscreen:hover {
    color: var(--accent-color) !important;
}

/* Location */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 12px;
    margin-top: 2rem;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 12px;
}

/* ─── Google Maps DSGVO-Einwilligungs-Overlay ─── */
.map-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f2efe9 0%, #e8e2d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.map-consent-box {
    text-align: center;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 90%;
}

.map-consent-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.map-consent-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.map-consent-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.map-consent-hint {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
}

.map-consent-hint a {
    color: var(--primary-color);
    text-decoration: underline;
}

#map-consent-btn {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: #fff;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer h3 {
    color: #fff;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Subpages */
.subpage {
    padding-top: 100px;
}
.page-content {
    padding: 4rem 2rem;
    min-height: 70vh;
}
.page-content h1, 
.page-content h2, 
.page-content h3, 
.page-content h4, 
.page-content strong, 
.page-content b {
    font-family: var(--font-main) !important;
    font-weight: 400 !important;
}
.page-content h2 {
    margin-top: 2rem;
}

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

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: -100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-sm);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        color: var(--text-color);
        text-shadow: none;
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero {
        /* Removes the fixed parallax on mobile which causes extreme zooming on iOS/Mobile browsers */
        background-attachment: scroll !important;
        background-position: center center !important;
    }
    
    .about-grid, .menu-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center !important;
        align-items: center !important;
        gap: 1.5rem;
    }
    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* ─── CookieConsent v3 – Design-Anpassung ans Sennalpe-Layout ─── */
:root {
    /* Consent-Modal */
    --cc-bg:                    #fbfaf8;
    --cc-primary-color:         #325a48;
    --cc-secondary-color:       #647b6c;
    --cc-btn-primary-bg:        #d8964c;
    --cc-btn-primary-color:     #ffffff;
    --cc-btn-primary-hover-bg:  #c07e3a;
    --cc-btn-secondary-bg:      transparent;
    --cc-btn-secondary-color:   #325a48;
    --cc-btn-secondary-border-color: #325a48;
    --cc-btn-secondary-hover-bg:     #325a48;
    --cc-btn-secondary-hover-color:  #ffffff;
    --cc-toggle-on-bg:          #d8964c;
    --cc-toggle-off-bg:         #d1c9bc;
    --cc-toggle-readonly-bg:    #b5c9be;
    --cc-separator-border-color: rgba(50, 90, 72, 0.12);
    --cc-footer-color:          #647b6c;
    --cc-footer-border-color:   rgba(50, 90, 72, 0.12);
    --cc-overlay-bg:            rgba(30, 50, 40, 0.55);
    --cc-modal-border-radius:   16px;
    --cc-btn-border-radius:     30px;
    --cc-font-family:           'Outfit', sans-serif;
}
