/* --- 1. GRUNDLAGEN & VARIABLEN --- */
:root {
    --primary-color: #1a365d; 
    --accent-color: #1c64b5; 
    --accent-hover: #154d8c;
    --highlight-color: #f59e0b; /* Knalliges Gold/Amber für Highlights */
    --text-color: #333333;
    --text-light: #4a5568;
    --bg-main: #ffffff; 
    --bg-gray: #f8f9fa; 
    --bg-pastel: #eef5fc;
    --border-color: #e2e8f0;
    
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 60px; 
    --spacing-xl: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { color: var(--text-color); background-color: var(--bg-main); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

/* --- 2. HEADER & NAVIGATION --- */
.site-header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); color: var(--primary-color); padding: 10px 0; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary-color); text-decoration: none; font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.logo-image { height: 40px; width: auto; display: block; transition: transform 0.3s; }
.logo:hover .logo-image { transform: scale(1.05); }

.btn-primary { background-color: var(--accent-color); color: #ffffff; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-block; border: none; cursor: pointer; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(42, 122, 230, 0.25); position: relative; overflow: hidden; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: left 0.6s ease-in-out; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(28, 91, 176, 0.35); }
.btn-primary:hover::after { left: 150%; }
.btn-header { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; padding: 12px 18px; }

/* SCHWEBENDES MENÜ (MOBILE) */
.main-nav { 
    position: absolute; 
    top: calc(100% + 15px); 
    left: 15px; 
    right: 15px; 
    width: auto; 
    background-color: rgba(255, 255, 255, 0.96); 
    backdrop-filter: blur(8px);
    padding: 25px 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.12); 
    border-radius: 25px; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.main-nav.active { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
} 

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 0; text-align: center; }
.nav-links li { border-bottom: 1px solid var(--border-color); }
.nav-links li:last-child { border-bottom: none; margin-top: 20px; }
.nav-links a { display: block; color: var(--primary-color); text-decoration: none; font-size: 1.2rem; font-weight: 700; padding: 15px 0; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links .btn-header { width: 100%; padding: 15px 0; }

.menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: var(--bg-gray); border-radius: 50%; border: 1px solid var(--border-color); cursor: pointer; transition: all 0.3s ease; }
.menu-toggle:hover { background-color: var(--bg-pastel); border-color: var(--accent-color); }
.hamburger { display: block; width: 22px; height: 2.5px; background-color: var(--primary-color); position: relative; transition: 0.3s; border-radius: 5px; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 22px; height: 2.5px; background-color: var(--primary-color); transition: 0.3s; border-radius: 5px; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle.open .hamburger { background-color: transparent; }
.menu-toggle.open .hamburger::before { top: 0; transform: rotate(45deg); background-color: var(--highlight-color); }
.menu-toggle.open .hamburger::after { top: 0; transform: rotate(-45deg); background-color: var(--highlight-color); }

/* --- 3. HERO SECTIONS --- */
.hero-section { position: relative; background-color: var(--primary-color); background-image: url('img/hauptbild.jpg'); background-size: cover; background-position: center; height: 85vh; min-height: 550px; display: flex; align-items: center; justify-content: center; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; overflow: hidden; margin-bottom: var(--spacing-lg); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #ffffff; max-width: 800px; padding-top: 60px; }
.hero-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 30px; text-shadow: 0 4px 8px rgba(0,0,0,0.6); letter-spacing: 1px; }

.hero-small { position: relative; background-color: var(--primary-color); background-image: url('img/hauptbild.jpg'); background-size: cover; background-position: center; height: 40vh; min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; overflow: hidden; margin-bottom: 40px; }
.hero-content-small { position: relative; z-index: 2; color: #ffffff; padding-top: 50px; }
.hero-content-small h1 { font-size: 2rem; font-weight: 800; text-shadow: 0 4px 8px rgba(0,0,0,0.6); margin-bottom: 5px; }

.scroll-indicator-container { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; animation: bounce 2s infinite; transition: opacity 0.3s ease; }
.scroll-indicator-mouse { display: flex; justify-content: center; align-items: center; width: 34px; height: 54px; border: 2px solid #ffffff; border-radius: 20px; background-color: transparent; }
.scroll-indicator-arrow { display: inline-block; width: 12px; height: 12px; border-right: 3px solid #ffffff; border-bottom: 3px solid #ffffff; transform: rotate(45deg); margin-top: -8px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-15px) translateX(-50%); } 60% { transform: translateY(-7px) translateX(-50%); } }

.page-header { background-color: var(--primary-color); color: white; padding: 120px 0 60px 0; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; margin-bottom: 40px; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-header p { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; padding: 0 15px; }

/* --- ANIMIERTER BOGEN (Gold & Dick) --- */
.title-underline-wrapper { width: 260px; height: 24px; margin-bottom: 20px; overflow: visible; color: var(--highlight-color); }
.curved-underline path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-anim-target.draw .curved-underline path, .draw-on-load.draw .curved-underline path { stroke-dashoffset: 0; }

/* --- 4. DYNAMIC TEXT SECTION (produkte.html) --- */
.dynamic-text-section { text-align: center; padding: 40px 15px 60px 15px; }
.dynamic-headline { font-size: 2.5rem; font-weight: 900; color: var(--primary-color); line-height: 1.2; margin-bottom: 20px; }
.changing-word-wrapper { display: block; margin-bottom: 20px; }
.changing-word { color: var(--accent-color); display: inline-block; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.static-text { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.dynamic-subtext { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* --- 5. PRODUKTE KARTEN & SPLIT DESIGN --- */
.products-grid-section { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 0 15px 60px 15px; }
.product-card { background-color: var(--bg-main); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.split-img-container { display: flex; gap: 4px; width: 100%; height: 250px; background-color: var(--bg-main); overflow: hidden; }
.split-img-container img { width: calc(50% - 2px); height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.product-card:hover .split-img-container img { transform: scale(1.08); }

.product-info { padding: 30px; }
.product-info h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 15px; }
.product-info p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.product-features { list-style: none; padding: 0; margin: 0; }
.product-features li { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

.seo-text-section { background-color: var(--bg-pastel); border-radius: 30px; padding: 50px 30px; margin: 0 15px 80px 15px; }
.seo-text-section h2 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 20px; text-align: center; }
.seo-text-content { column-count: 1; color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.seo-text-content p { margin-bottom: 15px; }

/* Scroll Animationen Klassen */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- 6. STATISTIKEN --- */
.stats-section { padding: 20px 0 var(--spacing-xl) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } 
.stat-card { background-color: var(--bg-main); padding: 25px 15px; border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.stat-icon svg { width: 35px; height: 35px; color: var(--accent-color); margin-bottom: 10px; }

/* Animationen für die goldenen Icons */
@keyframes sparkWiggle {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
    50% { transform: scale(1.15) translate(-1px, -1px); opacity: 0.8; filter: drop-shadow(0 0 2px var(--highlight-color)); }
}
.lightning-sparks { transform-box: fill-box; transform-origin: center; animation: sparkWiggle 1.5s infinite ease-in-out; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 4px var(--highlight-color)); }
}
.shield-star { transform-box: fill-box; transform-origin: center; animation: starTwinkle 2s infinite ease-in-out; }

.stat-number-wrapper { font-size: 2.2rem; font-weight: 800; color: var(--accent-color); margin-bottom: 5px; line-height: 1; display: flex; justify-content: center; align-items: center; }
.stat-card h3 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 10px; }
.stat-card p { font-size: 0.85rem; color: var(--text-light); }

/* --- 7. PORTFOLIO TEASER --- */
.portfolio-teaser-section { padding: var(--spacing-xl) 0; background-color: var(--bg-gray); border-radius: 40px; margin: 0 10px var(--spacing-xl) 10px; }
.teaser-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
.teaser-text-box h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; position: relative; display: inline-block; }
.teaser-text-box p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 15px; }
.teaser-cards-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.t-card { background-color: var(--bg-main); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; display: flex; flex-direction: row; align-items: stretch; }
.t-card:hover { transform: translateY(-5px); }
.t-card-img { width: 130px; flex-shrink: 0; background-color: #ddd; }
.t-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.t-card:hover .t-card-img img { transform: scale(1.1); }
.t-card-content { padding: 15px; }
.t-card-content h3 { color: var(--primary-color); margin-bottom: 5px; font-size: 1.1rem; }
.t-card-content p { color: var(--text-light); font-size: 0.85rem; line-height: 1.4; }

/* --- 8. DER ABLAUF --- */
.process-section { padding: 20px 0 var(--spacing-xl) 0; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 30px; position: relative; }
.process-step { text-align: center; padding: 20px; }
.step-number { width: 65px; height: 65px; background-color: var(--bg-pastel); color: var(--accent-color); font-size: 1.6rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; transition: all 0.3s ease; }
@keyframes stepGlow { 
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(28, 100, 181, 0); background-color: var(--bg-pastel); color: var(--accent-color); } 
    50% { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(28, 100, 181, 0.4); background-color: var(--accent-color); color: var(--highlight-color); } 
}
.process-step:nth-child(1) .step-number { animation: stepGlow 4.5s infinite 0s; }
.process-step:nth-child(2) .step-number { animation: stepGlow 4.5s infinite 1.5s; }
.process-step:nth-child(3) .step-number { animation: stepGlow 4.5s infinite 3.0s; }
.process-step h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.3rem; }
.process-step p { color: var(--text-light); }

/* --- 9. VORTEILE / FEATURES --- */
.features-section { padding: 40px 0 var(--spacing-xl) 0; background-color: var(--bg-pastel); border-radius: 40px; margin: 0 10px var(--spacing-xl) 10px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } 
.feature-card { background-color: var(--bg-main); padding: 20px 15px; border-radius: 12px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid var(--border-color); transition: transform 0.3s ease, border-color 0.3s ease; }
.feature-card:hover, .feature-card.touch-active { transform: translateY(-8px) rotate(1.5deg); border-color: var(--highlight-color); }
.icon-wrapper { margin-bottom: 15px; display: inline-flex; align-items: center; justify-content: center; background-color: var(--bg-pastel); width: 45px; height: 45px; border-radius: 50%; color: var(--accent-color); }
.icon-wrapper svg { width: 24px; height: 24px; } 
.feature-card h3 { color: var(--primary-color); font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* --- 10. FAQ AKKORDEON --- */
.faq-section { padding: 20px 0 var(--spacing-xl) 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-main); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: box-shadow 0.3s; }
.faq-item:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
.faq-question { padding: 20px; font-weight: 700; color: var(--primary-color); font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--accent-color); }
.faq-question::after { content: '+'; font-size: 1.8rem; font-weight: 300; transition: transform 0.3s ease; color: var(--accent-color); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; color: var(--text-light); line-height: 1.6; }
.faq-item.active .faq-answer { padding: 0 20px 20px 20px; max-height: 500px; }

/* --- 11. FOOTER --- */
.site-footer { background-color: var(--primary-color); color: #ffffff; padding: 60px 0 20px 0; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-weight: 800; font-size: 1.4rem; margin-bottom: 15px; }
.footer-logo img { height: 45px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 20px; color: #ffffff; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: #cbd5e0; font-size: 0.95rem; margin-bottom: 10px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--accent-color); }
.footer-links { list-style: none; }
.footer-links a { color: #cbd5e0; text-decoration: none; font-size: 0.95rem; transition: color 0.3s; display: block; margin-bottom: 10px; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #a0aec0; font-size: 0.9rem; }

/* --- 12. BLAUES HILFE-WIDGET --- */
.widget-container { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.floating-btn { background-color: var(--accent-color); color: #ffffff; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(42, 122, 230, 0.4); border: none; cursor: pointer; transition: transform 0.3s, background-color 0.3s; position: relative; }
.floating-btn:hover { transform: scale(1.05); background-color: var(--accent-hover); }
.notification-dot { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; background-color: #ff3b30; border-radius: 50%; border: 2px solid #ffffff; animation: pulse 2s infinite; }
.widget-popup { position: absolute; bottom: 85px; right: 0; width: 320px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; transform: scale(0.9); opacity: 0; pointer-events: none; transition: 0.3s ease; transform-origin: bottom right; }
.widget-popup.show { transform: scale(1); opacity: 1; pointer-events: all; }
.widget-header { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: #ffffff; padding: 15px 20px; font-weight: bold; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.widget-title { display: flex; align-items: center; gap: 10px; }
.widget-logo-small { height: 25px; width: auto; background-color: white; border-radius: 50%; padding: 2px; } 
.widget-close { background: none; border: none; color: #ffffff; font-size: 1.2rem; cursor: pointer; }
.widget-list { list-style: none; padding: 10px 0; }
.widget-list li a { display: flex; align-items: center; padding: 12px 20px; text-decoration: none; color: var(--text-color); font-weight: 600; transition: background 0.2s; font-size: 0.95rem; }
.widget-list li a:hover { background-color: var(--bg-gray); color: var(--accent-color); }
.w-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background-color: var(--bg-pastel); color: var(--accent-color); margin-right: 15px; }
.w-icon svg { width: 18px; height: 18px; }

/* --- 13. MULTI-STEP FORMULAR (PREMIUM DESIGN) --- */
.form-container { max-width: 850px; margin: -40px auto 80px auto; position: relative; z-index: 5; }
.form-wrapper { background-color: #ffffff; padding: 40px 30px; border-radius: 25px; box-shadow: 0 15px 40px rgba(28, 100, 181, 0.08); border: 2px solid var(--bg-pastel); }
.form-title { text-align: center; color: var(--primary-color); margin-bottom: 30px; font-size: 1.6rem; font-weight: 800; }

.btn-bubble { background-color: var(--accent-color); color: #ffffff; padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; font-size: 1rem; box-shadow: 0 6px 15px rgba(28, 100, 181, 0.3); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-align: center; display: inline-flex; align-items: center; justify-content: center;}
.btn-bubble:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(28, 100, 181, 0.4); background-color: var(--accent-hover); }
.btn-secondary { background-color: #e2e8f0; color: var(--text-color); padding: 14px 30px; border-radius: 50px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; text-align: center; display: inline-block;}
.btn-secondary:hover { background-color: #cbd5e0; }
.btn-outline-bubbly { background-color: var(--bg-pastel); color: var(--accent-color); border: 2px dashed var(--accent-color); padding: 15px 25px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; width: 100%; display: block; font-size: 1.05rem; }
.btn-outline-bubbly:hover { background-color: var(--accent-color); color: white; border-style: solid; transform: scale(1.02); }

.form-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--primary-color); font-size: 0.95rem; }
.input-group input[type="text"], .input-group input[type="number"], .input-group input[type="email"], .input-group input[type="tel"], .input-group select, .input-group textarea { width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 15px; font-size: 1rem; background-color: #fcfcfc; transition: all 0.3s ease; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: var(--accent-color); background-color: #fff; box-shadow: 0 0 0 4px var(--bg-pastel); }
label.required::after, .radio-label.required::after { content: ' *'; color: #ff4757; font-weight: 900; font-size: 1.1rem;}

.input-error { border-color: #ff4757 !important; background-color: #fff5f5 !important; box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.2) !important; }
.error-msg { color: #ff4757; font-weight: bold; text-align: center; margin-bottom: 20px; display: none; background: #fff5f5; padding: 10px; border-radius: 10px; border: 1px solid #ff4757; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake 0.3s ease-in-out; }

.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.checkbox-group input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent-color); flex-shrink: 0; }
.checkbox-group label { margin-bottom: 0; font-weight: normal; cursor: pointer; color: var(--text-color); }
.radio-group { margin-bottom: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;}
.radio-label { font-weight: 600; color: var(--primary-color); }

.bubble-box { background-color: var(--bg-pastel); padding: 20px; border-radius: 20px; border: 1px solid rgba(28, 100, 181, 0.1); }
.tor-box { background-color: #ffffff; border: 2px solid var(--border-color); padding: 20px; border-radius: 20px; margin-bottom: 20px; position: relative; }
.tor-box-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--bg-pastel); padding-bottom: 10px; margin-bottom: 15px; }
.tor-box-header h4 { color: var(--accent-color); margin: 0; font-size: 1.2rem; }
.btn-remove-tor { background: #fee2e2; color: #e53e3e; border: none; padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-remove-tor:hover { background: #e53e3e; color: #fff; }

.phone-wrapper { display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 15px; background-color: #fcfcfc; overflow: hidden; transition: all 0.3s ease; }
.phone-wrapper:focus-within { border-color: var(--accent-color); box-shadow: 0 0 0 4px var(--bg-pastel); background-color: #fff; }
.phone-flag { background-color: #f1f5f9; padding: 14px 15px; color: #4a5568; font-weight: 600; border-right: 2px solid #e2e8f0; font-size: 1rem; }
.phone-input-field { border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 10px !important; }

.visual-picker-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 15px; align-items: flex-start; }
.visual-radio, .visual-img-radio { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; cursor: pointer; width: 85px; margin: 0; padding: 0; }
.visual-radio input[type="radio"], .visual-img-radio input[type="radio"] { display: none; }

.visual-radio .swatch, .visual-img-radio .img-wrapper, .img-wrapper { 
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid #e2e8f0; margin: 0 auto 10px auto; 
    box-sizing: border-box; flex-shrink: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: block; overflow: hidden;
}
.swatch-verzinkt { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.visual-img-radio img, .img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.visual-radio span, .visual-img-radio span { font-size: 0.85rem; font-weight: 600; color: var(--text-light); line-height: 1.3; text-align: center; width: 100%; display: block; }
.visual-radio input[type="radio"]:checked + .swatch, .visual-img-radio input[type="radio"]:checked + .img-wrapper { border-color: var(--accent-color); box-shadow: 0 0 0 5px var(--bg-pastel); transform: scale(1.1); }
.visual-radio input[type="radio"]:checked ~ span, .visual-img-radio input[type="radio"]:checked ~ span { color: var(--accent-color); font-weight: 800; }

.info-btn { background-color: var(--bg-gray); border: 1px solid var(--border-color); color: var(--text-light); width: 22px; height: 22px; border-radius: 50%; font-size: 0.8rem; font-weight: bold; font-family: serif; cursor: pointer; margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; transition: 0.3s; vertical-align: middle; }
.info-btn:hover, .info-btn.active { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }
.info-panel { display: none; background-color: var(--bg-pastel); border-left: 4px solid var(--accent-color); padding: 12px 15px; border-radius: 0 10px 10px 0; margin-top: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); animation: fadeInDown 0.3s ease; }
.info-panel.show { display: block; }
.info-panel h4 { color: var(--primary-color); margin-bottom: 8px; font-size: 0.95rem; }
.info-panel p { margin-bottom: 8px; }

.hidden-section { display: none; margin-top: 15px; animation: fadeInDown 0.4s ease; }
.hidden-section.show { display: block; }
.config-panel { background-color: var(--bg-gray); border: 1px solid var(--border-color); padding: 20px; border-radius: 20px; margin-bottom: 20px; }
.section-label { font-weight: bold; color: var(--primary-color); margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }

.progress-bar-modern { display: flex; justify-content: space-between; position: relative; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.progress-line { position: absolute; top: 22px; left: 0; width: 100%; height: 4px; background-color: #e2e8f0; z-index: 1; border-radius: 2px; }
.progress-line-fill { position: absolute; top: 22px; left: 0; width: 0%; height: 4px; background-color: var(--accent-color); z-index: 2; transition: width 0.5s ease-in-out; border-radius: 2px; }
.step-circle { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 33.33%; }
.circle-num { width: 48px; height: 48px; border-radius: 50%; background-color: #ffffff; border: 3px solid #e2e8f0; color: #a0aec0; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 1.2rem; transition: all 0.4s ease; }
.circle-text { font-size: 0.85rem; font-weight: 700; color: #a0aec0; transition: 0.4s; }
.step-circle.active .circle-num { background-color: var(--accent-color); border-color: var(--accent-color); color: #ffffff; box-shadow: 0 0 0 5px var(--bg-pastel); transform: scale(1.1); }
.step-circle.active .circle-text { color: var(--accent-color); }
.step-circle.done .circle-num { background-color: var(--accent-color); border-color: var(--accent-color); color: #ffffff; }

#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10005; }
#success-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
#contact-success-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
#success-overlay.hidden, #contact-success-overlay.hidden { display: none; }
.success-box { text-align: center; background: white; padding: 50px 30px; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); max-width: 500px; animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin: 20px; border: 2px solid #10b981; }
.success-icon { width: 80px; height: 80px; margin: 0 auto 20px auto; background-color: #ecfdf5; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.success-icon svg { width: 40px; height: 40px; }
.success-box h2 { color: #10b981; font-size: 2rem; margin-bottom: 15px; }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.form-buttons { display: flex; gap: 15px; }
.form-buttons.right { justify-content: flex-end; }
.form-buttons.space-between { justify-content: space-between; }

/* =========================================
   PINTEREST GALERIE (Masonry Layout)
   ========================================= */
.masonry-grid { column-count: 1; column-gap: 20px; padding: 20px 15px 60px 15px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; cursor: pointer; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; }
.masonry-item:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.masonry-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.masonry-item:hover img { transform: scale(1.05); }

.masonry-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(28, 100, 181, 0.6); color: white; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.masonry-item:hover .masonry-overlay { opacity: 1; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 11000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.8); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; background: none; border: none; transition: transform 0.3s ease, color 0.3s; }
.lightbox-close:hover { transform: scale(1.2) rotate(90deg); color: var(--highlight-color); }

/* =========================================
   NEU: KONTAKT SEITE (kontakt.html)
   ========================================= */
.contact-split-section { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 20px 15px 60px 15px; }

/* Kacheln Links */
.contact-direct-card { display: flex; align-items: center; gap: 20px; background-color: var(--bg-main); padding: 20px; border-radius: 15px; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-color); margin-bottom: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-direct-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--accent-color); }
.c-icon { background-color: var(--bg-pastel); color: var(--accent-color); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 24px; height: 24px; }
.contact-direct-card h4 { color: var(--primary-color); margin-bottom: 2px; }

/* Öffnungszeiten */
.opening-hours { background-color: var(--bg-gray); padding: 20px; border-radius: 15px; margin-top: 20px; }
.opening-hours h4 { color: var(--primary-color); margin-bottom: 10px; }
.opening-hours p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 5px; }

/* Smart Redirect Box (Der Konfigurator Hinweis) */
.smart-redirect-box { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); padding: 30px 20px; border-radius: 20px; color: white; text-align: center; margin-top: 30px; box-shadow: 0 15px 30px rgba(28, 100, 181, 0.2); position: relative; overflow: hidden; }
.redirect-icon { font-size: 3rem; margin-bottom: 10px; }
.smart-redirect-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.smart-redirect-box p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 20px; }

/* Maps Section */
.map-section { padding: 0 15px 80px 15px; text-align: center; }
.map-text h2 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 10px; }
.map-text p { color: var(--text-light); max-width: 700px; margin: 0 auto 30px auto; }
.map-container { width: 100%; height: 400px; border-radius: 25px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 2px solid var(--border-color); }


/* --- 14. ERWEITERUNG FÜR TABLET & DESKTOP --- */
@media (min-width: 768px) {
    .site-header { padding: 15px 0; border-bottom-left-radius: 35px; border-bottom-right-radius: 35px; }
    .logo { font-size: 1.4rem; }
    .logo-image { height: 60px; }

    /* Desktop Navigation */
    .main-nav { display: block; position: static; width: auto; padding: 0; box-shadow: none; background: transparent; margin-left: auto; opacity: 1; visibility: visible; transform: none; }
    .nav-links { flex-direction: row; align-items: center; gap: 35px; padding: 0; }
    .nav-links li { border: none; display: flex; align-items: center; } 
    .nav-links li:last-child { margin-top: 0; margin-left: 10px; }
    .nav-links a { padding: 0; font-size: 1.1rem; }
    .nav-links .btn-header { display: inline-block; width: auto; padding: 12px 18px; font-size: 0.8rem; }

    .hero-content h1 { font-size: 3.2rem; }
    .hero-section { border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; height: 85vh; }
    .hero-small { border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; height: 40vh; }
    .hero-content-small h1 { font-size: 3rem; }
    
    .title-underline-wrapper { width: 400px; height: 28px; }
    
    .dynamic-headline { font-size: 4rem; }
    .static-text { font-size: 3rem; }
    .changing-word-wrapper { margin-bottom: 25px; }
    .dynamic-text-section { padding: 60px 15px 80px 15px; }
    
    .products-grid-section { grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 0 30px 80px 30px; }
    .seo-text-content { column-count: 2; column-gap: 40px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .teaser-layout { grid-template-columns: 1fr 1.5fr; align-items: center; }
    .teaser-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .t-card { display: block; } 
    .t-card-img { width: 100%; height: 200px; }
    .t-card-content { padding: 25px; }
    .t-card-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .t-card-content p { font-size: 0.95rem; }

    .process-grid { grid-template-columns: repeat(3, 1fr); }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1.1rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .feature-card { padding: 30px 25px; }
    .icon-wrapper { width: 65px; height: 65px; margin-bottom: 20px; }
    .icon-wrapper svg { width: 32px; height: 32px; }
    .feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
    .feature-card p { font-size: 0.95rem; }

    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Masonry Desktop */
    .masonry-grid { column-count: 2; }
    
    /* Kontakt Split Desktop */
    .contact-split-section { grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 0 30px 80px 30px; }
    
    /* Formular Desktop Anpassungen */
    .page-header h1 { font-size: 2.8rem; }
    .page-header p { font-size: 1.1rem; }
    .form-wrapper { padding: 50px 40px; }
    .form-title { font-size: 1.8rem; }
    .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
    
    .visual-radio, .visual-img-radio { width: 110px; }
    .visual-radio .swatch, .visual-img-radio .img-wrapper, .img-wrapper { width: 90px; height: 90px; }
    .visual-radio span, .visual-img-radio span { font-size: 0.9rem; }
    
    .info-panel { padding: 15px 20px; font-size: 0.9rem; }
    .info-panel h4 { font-size: 1rem; }
}

@media (min-width: 1024px) {
    .masonry-grid { column-count: 3; }
}

@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); } 
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Spezifische Mobile Anpassungen Formular (Bis 767px) */
@media (max-width: 767px) {
    .form-wrapper { padding: 30px 15px; }
    
    .visual-picker-grid { gap: 15px; justify-content: center; }
    
    .visual-radio, .visual-img-radio { width: 80px; }
    .visual-radio .swatch, .visual-img-radio .img-wrapper, .img-wrapper { width: 70px; height: 70px; }
    
    .form-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .form-buttons button { width: 100%; }
    .btn-secondary { order: 2; } 
    .btn-bubble { order: 1; } 
    
    .phone-flag { padding: 14px 10px; font-size: 0.9rem; }
    .progress-bar-modern { margin-bottom: 30px; }
    .circle-num { width: 40px; height: 40px; font-size: 1rem; }
    .progress-line, .progress-line-fill { top: 18px; }
}