/* --- GLAS & STEIN SERVICES - OPTIMIZED V8.0 --- */
/* --- Performance, Accessibility, SEO & Browser-Kompatibilität --- */

/* =========================================
   1. VARIABLEN & RESET
   ========================================= */
:root {
    --bg-color: #050505;
    --card-bg: #101010;
    --text-main: #ffffff;
    --text-muted: #888888;
    --primary-blue: #3fa9f5;
    --primary-green: #82c341;
    --brand-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --blue-glow: rgba(63, 169, 245, 0.3);
    --green-glow: rgba(130, 195, 65, 0.2);
    --border: rgba(255, 255, 255, 0.1);
    --font-stack: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    -webkit-hyphens: auto; 
    -moz-hyphens: auto; 
    -ms-hyphens: auto; 
    hyphens: auto;
    scroll-behavior: smooth;
}

body { 
    background: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%; 
    position: relative; 
    min-height: 100vh;
    font-family: var(--font-stack);
}

p, h1, h2, h3, h4, h5, h6, span, div, a, li, label {
    overflow-wrap: break-word; 
    word-wrap: break-word; 
    max-width: 100%;
}

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

a:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

button:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* =========================================
   2. WETTER & HINTERGRUND
   ========================================= */
.weather-background {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2; 
    pointer-events: none;
    background: radial-gradient(circle at 50% -20%, #0a1128 0%, #050505 100%);
    transition: background 2s ease;
    will-change: background;
}

body.is-day .weather-background { 
    background: radial-gradient(circle at 50% -20%, #1a3a5a 0%, #050505 80%); 
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px 20px 10px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 10px;
}


/* Himmelskörper */
.celestial-body {
    position: absolute; 
    width: 500px; 
    height: 500px; 
    border-radius: 50%;
    filter: blur(100px); 
    opacity: 0.4; 
    transition: all 3s ease; 
    top: -100px; 
    left: -100px;
    will-change: transform, opacity;
}

body.is-day .celestial-body.main-light {
    background: #ffcc00; 
    box-shadow: 0 0 200px #ff9900; 
    opacity: 0.6; 
    transform: translate(10vw, 5vh);
}

.celestial-body.secondary-light {
    top: auto; 
    bottom: -100px; 
    right: -100px; 
    left: auto; 
    background: var(--primary-green); 
    opacity: 0.2;
}

/* Overlays */
.weather-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 10; 
    display: none; 
}

/* Regen */
body.is-raining .weather-overlay.rain { display: block; }
body.is-raining .weather-overlay.rain::before {
    content: ''; 
    position: absolute; 
    top: -10%; 
    left: -10%; 
    width: 120%; 
    height: 120%;
    background-image: 
        radial-gradient(1px 15px at 10% 10%, rgba(255,255,255,0.3), transparent), 
        radial-gradient(1px 10px at 30% 50%, rgba(255,255,255,0.2), transparent);
    background-size: 200px 200px; 
    transform: rotate(15deg);
    animation: rain-loop 0.5s linear infinite; 
    filter: blur(0.5px);
}

@keyframes rain-loop { 
    from { transform: rotate(15deg) translateY(0); } 
    to { transform: rotate(15deg) translateY(200px); } 
}

/* Schnee */
body.is-snowing .weather-overlay.snow { display: block; }
body.is-snowing .weather-overlay.snow::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent), 
        radial-gradient(4px 4px at 50% 50%, rgba(255,255,255,0.6), transparent);
    background-size: 400px 400px; 
    animation: snow-loop 10s linear infinite; 
    filter: blur(1px);
}

@keyframes snow-loop { 
    from { background-position: 0 0; } 
    to { background-position: 0 400px; } 
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1200px; 
    background: rgba(15, 15, 15, 0.95); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 10px 25px; 
    z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding-left: 5px; 
    flex-shrink: 0; 
}

.nav-logo { 
    height: 40px; 
    width: auto; 
}

.brand-name { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: white; 
    white-space: nowrap; 
}

nav { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

nav a { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    font-weight: 500; 
    white-space: nowrap; 
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition-speed);
}

nav a:hover, 
nav a.active { 
    color: white; 
}

.btn-nav { 
    background: var(--brand-gradient); 
    color: #000 !important; 
    padding: 8px 20px; 
    border-radius: var(--border-radius); 
    font-weight: 700; 
}

/* =========================================
   4. LAYOUT & SECTIONS
   ========================================= */
.section { 
    padding: 150px 20px 80px; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    width: 100%; 
}

.bento-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 30px; 
    transition: all 0.4s ease; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
}

.bento-card:hover { 
    border-color: var(--primary-blue); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px -10px var(--blue-glow); 
}

.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.h-auto { height: auto; }

.bento-icon {
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    flex-shrink: 0;
    background: var(--brand-gradient); 
    color: #000; 
    width: 45px; 
    height: 45px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--border-radius);
}

/* =========================================
   5. TYPOGRAPHIE & BUTTONS
   ========================================= */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    line-height: 1.2; 
    font-weight: 700; 
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #888); 
    background-clip: text;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.subtitle { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto; 
}

.btn-primary, 
.btn-secondary { 
    padding: 15px 40px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-block; 
    text-align: center; 
    transition: all var(--transition-speed); 
    cursor: pointer;
}

.btn-primary { 
    background: var(--brand-gradient); 
    color: #000; 
    border: none; 
}

.btn-primary:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 30px -10px var(--green-glow); 
}

.btn-secondary { 
    background: transparent; 
    color: white; 
    border: 2px solid var(--primary-blue); 
}

.btn-secondary:hover { 
    background: var(--blue-glow); 
    border-color: var(--primary-green); 
}

.hero-btns {
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    margin-top: 30px;
}

/* =========================================
   6. MODULE (Marquee, FAQ, Forms)
   ========================================= */

/* Marquee */
.marquee-wrapper, 
.marquee-container { 
    background: rgba(10, 10, 10, 0.5); 
    padding: 10px 0; 
    margin: 15px 0; 
    overflow: hidden; 
    white-space: nowrap; 
    width: 100%; 
    position: relative;
}

.marquee-content { 
    display: inline-block; 
    animation: scroll 8s linear infinite; 
    will-change: transform;
}

.marquee-content img { 
    display: inline-block; 
    margin: 0 10px; 
}

.marquee-item { 
    color: white; 
    margin: 0 30px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block; 
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* FAQ */
.faq-container { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 100%; 
}

.faq-item { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--primary-green); 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    transition: all var(--transition-speed); 
}

.faq-question { 
    width: 100%;
    text-align: left;
    padding: 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 600; 
    transition: background var(--transition-speed);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon { 
    transition: transform var(--transition-speed) ease; 
    color: var(--primary-green); 
}

.faq-item.active .faq-icon { 
    transform: rotate(180deg); 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease, padding 0.4s ease; 
    padding: 0 20px; 
    color: var(--text-muted); 
}

.faq-item.active .faq-answer { 
    padding-bottom: 20px; 
    max-height: 500px; 
}

.faq-answer a {
    color: white;
    text-decoration: underline;
}

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.review-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; padding: 25px; display: flex; flex-direction: column; transition: 0.3s; }
.review-card:hover { border-color: var(--primary-green); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; flex-shrink: 0; }
.stars { color: #ffb400; font-size: 0.9rem; margin-bottom: 10px; }
.bg-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-2 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.bg-4 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }

/* Formulare */
.form-group { 
    margin-bottom: 20px; 
    width: 100%; 
}

.form-control { 
    width: 100%; 
    padding: 12px 15px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--border); 
    color: white; 
    border-radius: 8px; 
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary-green); 
}

select.form-control { 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 15px top 50%; 
    background-size: 12px auto; 
}

option { 
    background: #1a1a1a; 
    color: white; 
}

/* =========================================
   6b. VERTRAUENS-SIGNALE & WARUM WIR
   ========================================= */

.trust-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(130,195,65,0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.trust-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
}

.trust-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.trust-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    min-height: 1.4rem;
}

.trust-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-section { padding-top: 10px; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 22px;
    transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(130,195,65,0.12);
    border: 1px solid rgba(130,195,65,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .why-grid   { grid-template-columns: 1fr; }
    .trust-number { font-size: 2rem; }
}

/* =========================================
   7. FOOTER & MOBILE NAV
   ========================================= */

footer { 
    border-top: 1px solid var(--border); 
    padding: 50px 20px; 
    text-align: center; 
    color: var(--text-muted); 
    margin-top: 60px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer img {
    opacity: 0.5;
}

footer nav {
    display: flex;
    gap: 20px;
    justify-content: center;
}

footer nav a {
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

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

.mobile-nav {
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(15, 15, 15, 0.98); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border); 
    z-index: 999;
    padding: 10px 0; 
    justify-content: space-around; 
    align-items: center;
}

.mobile-nav a {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    color: var(--text-muted); 
    font-size: 0.75rem; 
    text-decoration: none; 
    padding: 5px 10px; 
    transition: color var(--transition-speed); 
    min-width: 60px;
}

.mobile-nav a i { 
    font-size: 1.2rem; 
    margin-bottom: 3px; 
}

.mobile-nav a.active { 
    color: var(--primary-green); 
    font-weight: bold; 
}

.mobile-nav a:hover { 
    color: white; 
}

/* =========================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .span-4 { 
        grid-column: span 2; 
    }
}

@media (max-width: 768px) {
    header {
        top: 0; 
        width: 100%; 
        border-radius: 0 0 20px 20px; 
        padding: 15px 20px;
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px;
    }
    
    .logo-container { 
        width: 100%; 
        justify-content: flex-start; 
    }
    
    nav {
        display: flex; 
        width: 100%; 
        overflow-x: auto; 
        padding-bottom: 5px; 
        gap: 10px;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none;
    }
    
    nav::-webkit-scrollbar { 
        display: none; 
    }
    
    nav a {
        background: rgba(255,255,255,0.08); 
        padding: 8px 16px; 
        border-radius: 20px; 
        font-size: 0.85rem; 
        flex-shrink: 0;
    }
    
    nav a.active { 
        background: var(--primary-green); 
        color: black; 
        font-weight: bold; 
    }
    
    .mobile-nav { 
        display: flex; 
    }
    
    .section { 
        padding-top: 180px; 
        padding-bottom: 100px; 
    }
    
    .bento-grid { 
        grid-template-columns: 1fr; 
    }
    
    .span-2, 
    .span-4 { 
        grid-column: span 1; 
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    .hero-btns { 
        flex-direction: column; 
        width: 100%; 
    }
    
    .btn-primary, 
    .btn-secondary { 
        width: 100%; 
    }
}