/* ==========================================================================
   SAN TECHNOLOGIES - GLOBAL STYLES
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
    --primary: #006064;
    --accent: #00BCD4;
    --dark: #333333;
    --light: #f8f9fa;
    --white: #ffffff;
    --bg-suite: #f0f4f8; 
    --container-width: 1150px;
}

/* --- GLOBAL RESET & LAYOUT --- */
* { box-sizing: border-box; }
body { 
    margin: 0; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    background-color: var(--light); 
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

h1, h2, h3, h4 { font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; margin-top: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
p { margin: 0 0 20px 0; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; width: 100%; }
.btn { display: inline-block; background: var(--accent); color: var(--white); padding: 15px 45px; border-radius: 50px; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3); }
.btn:hover { transform: translateY(-3px); background-color: #00acc1; }

/* --- PAGE LOADER & FADE --- */
#page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--white); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
#page-loader.loader-hidden { opacity: 0; visibility: hidden; }
#page-loader img { width: 100px; animation: breathe 1.5s infinite ease-in-out; }
@keyframes breathe {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.site-content { opacity: 0; transition: opacity 1.5s ease-in-out; }
.content-visible { opacity: 1 !important; }

/* --- HEADER & DESKTOP NAV --- */
header { background: var(--white); height: 90px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.08); display: flex; align-items: center; }
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { display: flex; align-items: center; cursor: pointer; }
.logo img { height: 65px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-desktop ul { display: flex; gap: 30px; }
.nav-desktop a { font-weight: 600; font-size: 0.95rem; position: relative; color: #555; }
.nav-desktop a:hover { color: var(--primary); }
.nav-desktop a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent); transition: 0.3s; }
.nav-desktop a:hover:after { width: 100%; }

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: var(--white); min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 12px; z-index: 2000; padding: 8px 0; border: 1px solid #eee; margin-top: 15px; 
}
.dropdown-content::before { content: ""; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: transparent; }
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dropdown-content a { color: var(--dark); padding: 12px 25px; text-decoration: none; display: block; font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease; }
.dropdown-content a:hover { background-color: #f0fbfc; color: var(--primary); padding-left: 30px; }
.dropdown .dropbtn { position: relative; top: 1px; }

/* --- MOBILE MENU & HAMBURGER --- */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.bar { width: 25px; height: 3px; background-color: var(--dark); transition: 0.3s; }
.mobile-menu {
    position: fixed; top: 90px; left: 0; width: 100%; background: var(--white);
    box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding: 20px;
    transform: translateY(-150%); transition: transform 0.3s ease-in-out;
    text-align: center; z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu li { margin: 15px 0; }
.mobile-menu a { font-size: 1.2rem; font-weight: bold; }

/* --- LANG TOGGLE (Universal) --- */
.lang-switch-container { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.85rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #eee; transition: .4s; border-radius: 34px; border: 2px solid #ddd; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 2px; background-color: var(--primary); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #E0F7FA; border-color: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }
.flag-icon { height: 14px; width: auto; vertical-align: middle; }

/* --- FOOTER --- */
footer { background: #111; color: #666; padding: 60px 0; font-size: 0.85rem; border-top: 1px solid #333; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.impressum p { margin-bottom: 8px; }

/* --- COOKIE BANNER --- */
#cookieBanner {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #222; color: white;
    padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 20px;
    z-index: 2000; border-top: 2px solid var(--accent); box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}
.cookie-btn { background: var(--accent); color: white; border: none; padding: 8px 25px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* --- RESPONSIVE HELPERS --- */
.desktop-lang { display: flex; }
.mobile-lang { display: none; }

@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .desktop-lang { display: none; }
    .mobile-lang { display: flex; margin-top: 20px; }
    #cookieBanner { flex-direction: column; gap: 15px; text-align: center; }
    .nav-right { gap: 20px; }
}

/* ==========================================================================
   SAN LAXA AI CHATBOT STYLES
   ========================================================================== */
#chat-widget {
    position: fixed; bottom: 20px; right: 20px; z-index: 99999;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex; flex-direction: column; align-items: flex-end;
    opacity: 0; pointer-events: none; transition: opacity 1s ease;
}
#chat-prompt {
    background: white; padding: 12px 20px; border-radius: 12px 12px 0 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 12px;
    font-size: 14px; font-weight: bold; color: #333; cursor: pointer;
    border: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px;
}
#chat-window {
    display: none; flex-direction: column; position: absolute; bottom: 85px; right: 0;
    width: 350px; height: 500px; background: white; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2); border: 1px solid #eee; overflow: hidden;
}
.chat-header {
    background: linear-gradient(135deg, #006064 0%, #004d50 100%);
    color: white; padding: 15px; font-size: 15px; font-weight: bold;
    display: flex; align-items: center; justify-content: space-between;
}
.close-chat { cursor: pointer; font-size: 22px; line-height: 1; opacity: 0.8; }
.chat-messages {
    flex: 1; padding: 15px; overflow-y: auto; font-size: 14px; background: #fafafa;
    display: flex; flex-direction: column; gap: 10px;
}
.msg { padding: 10px 14px; border-radius: 10px; max-width: 80%; line-height: 1.5; font-size: 13.5px; word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; }
.bot { background: #E0F2F1; color: #004d50; align-self: flex-start; border-bottom-left-radius: 2px; }
.user { background: #006064; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.msg a { color: #00838F; font-weight: bold; text-decoration: none; }
.chat-input-area { display: flex; border-top: 1px solid #eee; padding: 12px; background: white; }
#chat-input { flex: 1; border: 1px solid #ddd; padding: 10px 14px; border-radius: 20px; outline: none; font-size: 14px; background: #f9f9f9; }
#chat-input:focus { border-color: #006064; background: white; }
#send-btn { background: #006064; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; margin-left: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.typing { font-style: italic; color: #999; font-size: 12px; margin-left: 20px; margin-bottom: 5px; display: none; }
.chat-footer-disclaimer { font-size: 10px; color: #aaa; text-align: center; padding: 6px; background: #fdfdfd; border-top: 1px solid #f0f0f0; }
#chat-btn { width: 65px; height: 65px; border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); padding: 0; overflow: hidden; background: white; transition: transform 0.3s ease; }
#chat-btn:hover { transform: scale(1.1); }
@media (max-width: 450px) { #chat-window { width: 90vw; right: 0; bottom: 85px; height: 65vh; } }

@media (max-width: 600px) {
    .logo img { height: 45px; } 
    .nav-right { gap: 15px; } 
    .nav-desktop a span[data-translate="nav_back"] { display: none; }
    .nav-desktop a span:first-child { 
        font-size: 1.8rem; 
        line-height: 1;
    }
    .header-content { padding: 0 15px; }
}