:root {
    --bg-color: #faf8f5;
    --text-color: #000000;
    --accent-color: #000000;
    
    --mountain-opacity: 0.75; 
    --menu-mountain-opacity: 0.85; 

    --scrollfade-start: 0.5; 
    --scrollfade-end: 1.0;   
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

/* Sprach-Umschalter Logik */
body.lang-de .fr, body.lang-de .en { display: none !important; }
body.lang-fr .de, body.lang-fr .en { display: none !important; }
body.lang-en .de, body.lang-en .fr { display: none !important; }

/* --- HAMBURGER BUTTON --- */
.hamburger-btn {
    position: fixed; 
    top: 20px;
    left: 20px;
    z-index: 101; 
    background: rgba(250, 248, 245, 0.9); 
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    backdrop-filter: blur(5px); 
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover { background-color: rgba(0, 0, 0, 0.05); }
.hamburger-btn:active { transform: scale(0.95); }
.hamburger-btn .icon { font-size: 1.1rem; line-height: 1; transition: transform 0.3s ease; }

/* --- FULLSCREEN OVERLAY MENÜ --- */
.overlay-menu {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color); 
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("hintergrund01.png");
    background-repeat: no-repeat;
    background-position: center 140px;
    background-size: min(1400px, 100vw);
    opacity: var(--menu-mountain-opacity);
    pointer-events: none;
    z-index: 0; 
}

.overlay-menu.open {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: relative;
    z-index: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100vh;
    overflow-y: auto;
    padding: 40px 0;
    width: 100%;
}

.overlay-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.6;
    margin-bottom: 30px; 
    text-align: center;
}

.overlay-logo::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    opacity: 0.4;
}

.overlay-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }

.overlay-menu li { margin: 8px 0; } 
.overlay-menu li:not(:last-child)::after {
    content: "❖"; display: block; margin: 8px auto 0; font-size: 0.8rem; opacity: 0.3; color: var(--accent-color);
}

.overlay-menu a.nav-link {
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.overlay-menu a.nav-link:hover { opacity: 0.5; transform: scale(1.05); }

.overlay-divider { margin: 25px 0 20px 0; font-size: 1.2rem; color: var(--accent-color); opacity: 0.3; }

.overlay-lang-switcher { display: flex; gap: 30px; font-family: 'Playfair Display', serif; }
.overlay-lang-switcher a {
    font-size: 1.2rem; color: rgba(0, 0, 0, 0.35); text-decoration: none; letter-spacing: 2px; padding: 5px 10px; border-bottom: 2px solid transparent; transition: all 0.3s ease;
}
.overlay-lang-switcher a.active { color: var(--text-color); font-weight: 600; border-bottom: 2px solid var(--accent-color); }
.overlay-lang-switcher a:hover:not(.active) { color: rgba(0, 0, 0, 0.7); }

/* --- Hintergrund der normalen Seite --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("hintergrund01.png");
    background-repeat: no-repeat;
    background-position: center 140px;
    background-size: min(1400px, 100vw);
    
    opacity: calc(var(--mountain-opacity) * (var(--scrollfade-end) + (var(--scrollfade-start) - var(--scrollfade-end)) * var(--scroll-fade, 1)));
    transform: translateY(calc((1 - var(--scroll-fade, 1)) * -60px));
    
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: ""; position: fixed; inset: 0; background: rgba(250, 248, 245, 0.18); pointer-events: none; z-index: -1;
}

.header-edelweiss, .content-container, .scherenschnitt-grafik { position: relative; z-index: 1; }

.header-edelweiss { text-align: center; margin-top: 60px; margin-bottom: 0; }
.header-edelweiss img { width: 100%; max-width: 320px; height: auto; }

.content-container { 
    max-width: 650px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 20px 10px 20px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

h1 {
    font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 400; margin-top: 0; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2.5px; display: inline-block;
}

/* WIEDERHERGESTELLT: Regulärer Abstand (35px) für alle Unterseiten */
.title-separator { width: 100%; border-top: 1px solid rgba(0, 0, 0, 0.2); margin: 0 auto 35px auto; }

/* --- SCHERENSCHNITT BILD (Startseite) --- */
/* NEU: Zieht die Grafik auf der Startseite mit negativem margin-top künstlich nach oben */
.scherenschnitt-grafik { 
    width: 100%; 
    margin-top: -30px; 
    margin-bottom: 10px; 
    background-color: transparent; 
    text-align: center; 
}
.scherenschnitt-grafik img { 
    width: 70%; 
    max-width: 380px; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
    opacity: 0.85; 
}

.text-content, .contact-section { 
    background: rgba(250, 248, 245, 0.45); 
    padding-left: 15px; 
    padding-right: 15px; 
    border-radius: 4px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}
.text-content { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0; font-weight: 400; padding-top: 5px; padding-bottom: 5px;}

/* --- MULTILINGUALER WILLKOMMENSTEXT --- */
body.lang-de .welcome-text .fr, body.lang-de .welcome-text .en,
body.lang-fr .welcome-text .de, body.lang-fr .welcome-text .en,
body.lang-en .welcome-text .de, body.lang-en .welcome-text .fr { display: block !important; }

.welcome-text { display: flex; flex-direction: column; padding-top: 15px; padding-bottom: 15px; }
.lang-block { transition: all 0.4s ease; line-height: 1.7; font-size: 0.9rem; opacity: 0.5; font-style: italic; }

body.lang-de .lang-block.de, body.lang-fr .lang-block.fr, body.lang-en .lang-block.en {
    font-size: 1.05rem; opacity: 1; font-style: normal; line-height: 1.9; font-weight: 400;
}

body.lang-de .lang-block.de .inline-lang-link, body.lang-fr .lang-block.fr .inline-lang-link, body.lang-en .lang-block.en .inline-lang-link { display: none; }

.inline-lang-link {
    display: inline-block; margin-left: 8px; font-size: 0.8rem; font-style: normal; font-family: 'Playfair Display', serif; font-weight: 600; color: var(--text-color); text-decoration: none; letter-spacing: 1px; border-bottom: 1px solid transparent; transition: all 0.3s ease; white-space: nowrap; opacity: 0.8;
}
.inline-lang-link:hover { border-bottom: 1px solid var(--text-color); opacity: 1; }

.lang-separator { width: 30px; height: 1px; background-color: var(--accent-color); opacity: 0.15; margin: 15px auto; }
.text-divider { text-align: center; font-size: 0.85rem; color: var(--accent-color); opacity: 0.4; margin: 20px auto 10px auto; letter-spacing: 15px; padding-left: 15px; }

.contact-section { margin-top: 0; margin-bottom: 30px; font-size: 1.05rem; letter-spacing: 1px; padding-top: 15px; padding-bottom: 15px; }
.contact-section strong { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; }
.contact-section a { color: var(--text-color); text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, 0.3); padding-bottom: 2px; transition: all 0.2s ease; }
.contact-section a:hover { opacity: 0.6; }
.contact-section a:active { opacity: 1; border-bottom-width: 2px; }

/* --- FOOTER --- */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 50px 20px;
    margin-top: auto; 
    position: relative;
    z-index: 10;
}

.footer-separator {
    font-size: 0.8rem;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: 25px;
}

.footer-wappen {
    margin-bottom: 20px;
    opacity: 0.6; 
    transition: opacity 0.3s ease;
}

.footer-wappen:hover { opacity: 1; }
.footer-wappen img { height: 45px; width: auto; }

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.5;
    margin: 0 0 15px 0;
    text-align: center;
}

.footer-link {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.5;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-style: italic;
}

.footer-link:hover {
    opacity: 1;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

/* --- RESPONSIVE ANPASSUNGEN (Smartphones) --- */
@media (max-width: 768px) {
    :root { --mountain-opacity: 0.65; }
    
    body::before, .overlay-menu::before { 
        background-position: center bottom; 
        background-size: 150vw; 
    }

    .hamburger-btn { top: 10px; left: 10px; padding: 4px 8px; font-size: 0.75rem; }
    
    .overlay-logo { font-size: 0.85rem; letter-spacing: 4px; margin-bottom: 25px; }
    .overlay-menu li { margin: 5px 0; }
    .overlay-menu li:not(:last-child)::after { margin: 5px auto 0; }
    .overlay-divider { margin: 15px 0; }

    h1 { font-size: 1.6rem; letter-spacing: 1.5px; margin-bottom: 15px; margin-top: 5px; } 
    
    /* WIEDERHERGESTELLT: Regulärer Abstand (25px) auf Mobile für alle Unterseiten */
    .title-separator { margin-bottom: 25px; } 
    
    .text-divider { margin: 25px auto 15px auto; font-size: 0.75rem; letter-spacing: 12px; padding-left: 12px; }
    .header-edelweiss { margin-top: 15px; } 
    .header-edelweiss img { max-width: 200px; }
    .overlay-menu a.nav-link { font-size: 1.3rem; }
    .overlay-lang-switcher { gap: 20px; }
    .overlay-lang-switcher a { font-size: 1.1rem; }
    .text-content { text-align: left; hyphens: auto; }
    .lang-block { font-size: 0.85rem; }
    body.lang-de .lang-block.de, body.lang-fr .lang-block.fr, body.lang-en .lang-block.en { font-size: 1rem; }
    
    .content-container { padding: 0 15px 10px 15px; }

    /* NEU: Auch hier zieht negativer margin-top die Grafik näher an den Titel ran */
    .scherenschnitt-grafik { width: 100%; margin-top: -20px; margin-bottom: 10px; }
    .scherenschnitt-grafik img { width: 85%; max-width: 280px; }

    .site-footer { padding: 20px 15px 40px 15px; }
    .footer-wappen img { height: 35px; }
    .footer-text { font-size: 0.7rem; letter-spacing: 1.5px; line-height: 1.6; }
}