/* --- ExiTTer | style.css (Signature Edition v2) --- */

/* --- 1. CSS-Variablen (Farbpalette & Globale Einstellungen) --- */
:root {
    --color-green: #6DE828;
    --color-yellow: #E3FB45;
    --color-anthracite: #1F1F1F;
    --color-light-gray: #F2F2F2;
    --color-white: #FFFFFF;
    --color-turquoise: #38E8E1;
    --color-orange: #FFA726;
    --text-color: #333;
    --font-primary: 'Poppins', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.05);
    --shadow-medium: 0 12px 36px rgba(0,0,0,0.1);
    --aurora-gradient: linear-gradient(120deg, var(--color-yellow), var(--color-green), var(--color-turquoise));
}

/* --- 2. Allgemeine Stile & Resets --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-anthracite); }
::-webkit-scrollbar-thumb { background: var(--aurora-gradient); border-radius: 5px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 120px 20px; }
h1, h2, h3 { color: var(--color-anthracite); margin-bottom: 25px; line-height: 1.3; font-weight: 700; }
h2 { font-size: 2.8rem; text-align: center; }
p { margin-bottom: 20px; color: #555; }
a { color: var(--color-green); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-turquoise); }

/* --- 3. Willkommens-Animation (Unverändert) --- */
#welcome-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(31, 31, 31, 0.98); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease-in-out, visibility 0.5s; visibility: visible; opacity: 1; }
#welcome-overlay.hidden { opacity: 0; visibility: hidden; }
.welcome-box { text-align: center; color: var(--color-white); }
#exibox-mascot { width: 200px; height: auto; margin-bottom: 20px; animation: fly-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
#welcome-text, #welcome-subtext { opacity: 0; animation: fade-in 0.6s ease-in-out forwards; }
#welcome-text { font-size: 2.5rem; color: var(--color-yellow); animation-delay: 0.5s; }
#welcome-subtext { font-size: 1.2rem; color: var(--color-light-gray); animation-delay: 0.7s; }
@keyframes fly-in { from { transform: translateY(-100vh) scale(0.3) rotate(-30deg); opacity: 0; } to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- 4. Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1010;
    background: transparent !important;
    padding: 20px 0;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(31, 31, 31, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: var(--shadow-soft) !important;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--color-green);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-anthracite);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    overflow-y: auto;
    padding: 80px 0;
    box-sizing: border-box;
}

.nav-menu.active {
    transform: translateX(0);
    box-shadow: 5px 0 35px rgba(0,0,0,0.3);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.nav-menu a {
    display: block;
    color: var(--color-white);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 0;
    transition: color 0.3s, transform 0.3s;
}
.nav-menu a:hover {
    color: var(--color-yellow);
    transform: scale(1.05);
}

.nav-menu .btn-mobile {
    display: inline-block;
    margin-top: 30px;
    font-size: 1rem;
    padding: 12px 24px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
}

.hamburger-menu {
    display: block;
    cursor: pointer;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    position: relative;
    z-index: 1011;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-green);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}
.hamburger-menu span:nth-child(2) {
    top: 9px;
}
.hamburger-menu span:nth-child(3) {
    top: 18px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* --- 5. Buttons --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 700; text-align: center; cursor: pointer; border: none; position: relative; overflow: hidden; letter-spacing: 0.5px; transition: all var(--transition-fast); }
.btn-primary { background: linear-gradient(45deg, var(--color-yellow), var(--color-green)); color: var(--color-anthracite); box-shadow: 0 4px 15px rgba(109, 232, 40, 0.4); }
.btn-primary:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 8px 25px rgba(227, 251, 69, 0.6); }

/* --- 6. Hero Banner Sektion --- */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-anthracite);
    height: 100vh;
    height: 100dvh;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: contain;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 750px;
    margin: 0 auto 35px auto;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9);
}

/* --- 7. Services-Sektion (Umzugskarton-Stil) --- */
.services { background-color: var(--color-light-gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; perspective: 1000px; }
.service-card {
    background: linear-gradient(160deg, #D2B48C, #C1A37C);
    border: 2px solid #A07855;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1), inset 0 0 10px rgba(255,255,255,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100%;
    background: linear-gradient(rgba(245, 222, 179, 0.5), rgba(245, 222, 179, 0.7));
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
    z-index: 2;
}
.card-content {
    padding: 40px;
    position: relative;
    z-index: 3;
}
.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 0 10px rgba(255,255,255,0.2);
}
.service-card .icon { font-size: 3.5rem; color: var(--color-anthracite); margin-bottom: 20px; transition: transform 0.4s ease; }
.service-card:hover .icon { transform: scale(1.15) rotate(-5deg); }
.service-card h3 { color: var(--color-anthracite); }

/* --- "Unser Versprechen" Sektion --- */
#promise { background-color: var(--color-white); }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.promise-item { text-align: center; }
.promise-icon { width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background-color: var(--color-green); color: var(--color-white); font-size: 2rem; font-weight: 700; margin: 0 auto 20px; }
.promise-item h3 { font-size: 1.5rem; }

/* --- "Warum wir?" Sektion --- */
.why-us-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 40px; }
.why-us-text { flex: 1; min-width: 300px; }
.why-us-image { flex: 1; min-width: 300px; }
.why-us-image img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-medium); }
.why-us-list { list-style: none; padding-left: 0; }
.why-us-list li { position: relative; padding-left: 35px; margin-bottom: 15px; font-size: 1.1rem; }
.why-us-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-white); background-color: var(--color-green); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 24px; }
.why-us-list strong { color: var(--color-anthracite); }

/* --- Testimonials Sektion --- */
#testimonials { background-color: var(--color-light-gray); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card { background-color: var(--color-white); padding: 40px; border-radius: 12px; position: relative; border-left: 5px solid var(--color-green); box-shadow: var(--shadow-soft); }
.testimonial-card::before { content: '“'; position: absolute; top: 10px; left: 20px; font-size: 6rem; color: var(--color-yellow); opacity: 0.5; line-height: 1; z-index: 0; }
.testimonial-card p { position: relative; z-index: 1; font-size: 1.1rem; font-style: italic; margin-bottom: 20px; }
.testimonial-card cite { font-weight: 700; color: var(--color-anthracite); }

/* --- 9. Statistik Sektion --- */
.stats-section { background-color: var(--color-anthracite); background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 20px 20px; color: var(--color-white); padding: 100px 20px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 4rem; font-weight: 700; color: var(--color-yellow); }
.stat-label { font-size: 1.1rem; color: var(--color-light-gray); text-transform: uppercase; letter-spacing: 1.5px; }

/* --- 10. Scroll-Animation --- */
.reveal { opacity: 0; transform: translateY(60px) scale(0.95); transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* --- 11. Footer --- */
.site-footer {
    width: 100%;
    background-color: var(--color-anthracite);
    padding: 60px 20px;
    box-sizing: border-box;
}

.site-footer,
.site-footer p,
.footer-bottom p {
    color: var(--color-white);
}

.site-footer h4 {
    color: var(--color-white);
}

.site-footer a {
    color: var(--color-green) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.footer-bottom a {
    color: var(--color-white);
}

.site-footer a:hover {
    color: var(--color-yellow) !important;
    text-decoration: underline !important;
}

/* --- 12. Responsive Anpassungen --- */
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.2rem; }
    .stats-section { flex-direction: column; align-items: center; gap: 40px; }
    h2 { font-size: 2.2rem; }
}

/* --- Live Chat Widget Styling --- */
.chat-toggle-button {
    position: fixed;
    bottom: 140px;
    right: 30px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 1003;
    transition: transform 0.3s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.chat-toggle-button:hover {
    transform: scale(1.1);
}

#chat-box-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#chat-bubble-image {
    position: absolute;
    top: -45px;
    left: -10px;
    width: 110%;
    height: auto;
    animation: bounce-bubble 2s infinite ease-in-out;
}

@keyframes bounce-bubble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.chat-widget {
    position: fixed;
    bottom: 140px!important;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
}

.chat-widget.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.chat-header {
    background-color: var(--color-anthracite);
    color: var(--color-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header-text {
    font-weight: 700;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--color-light-gray);
}

.chat-message-container {
    display: flex;
    flex-direction: column;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: 80%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.user {
    background-color: var(--color-green);
    color: var(--color-anthracite);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-message.bot {
    background-color: #f0f0f0;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-input-container {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.email-input-group, .message-input-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.email-input-group {
    margin-bottom: 10px;
}

.email-input-group input, .message-input-group input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.message-input-group button {
    background-color: var(--color-green);
    color: var(--color-anthracite);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 768px) {
    .chat-toggle-button {
        bottom: 80px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    #chat-bubble-image {
        top: -20px;
        left: -10px;
        width: 100px;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 9999;
    }
}

/* ======================================================= */
/* NEU: Schwebendes Google-Widget & Social Icons im Footer */
/* ======================================================= */

/* --- 1. Schwebendes Google-Bewertungs-Widget --- */
.google-review-widget-floating {
    position: fixed;
    top: 25px;
    left: 100px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(31, 31, 31, 0.4);
    padding: 8px 15px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.google-review-widget-floating:hover {
    transform: scale(1.05);
    background: rgba(31, 31, 31, 0.7);
}

.google-review-widget-floating img {
    width: 18px;
    height: 18px;
}

.google-review-widget-floating .stars {
    color: #fbbc05;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.google-review-widget-floating .rating-text {
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

/* Ergänzung für die Anzahl der Bewertungen im Widget */
.google-review-widget-floating .review-count-text {
    color: var(--color-light-gray);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: -2px;
}

/* --- 2. Social Media Icons (jetzt im Footer) --- */
.site-footer .social-media-icons {
     display: flex;
     justify-content: center;
     gap: 25px;
     margin-top: 20px;
     padding: 20px 0;
}
.site-footer .social-media-icons a {
     color: var(--color-light-gray);
     font-size: 22px;
     transition: transform 0.3s ease, color 0.3s ease;
}
.site-footer .social-media-icons a:hover {
     transform: scale(1.2);
     color: var(--color-green);
}

/* --- Responsive Anpassung --- */
@media (max-width: 768px) {
    .google-review-widget-floating {
        display: none;
    }
}