/* DESIGN KONZEPT & UX OPTIMISATIONS */
:root {
  --primary-color: #0b1a30;     
  --primary-light: #16325c;
  --accent-color: #ff6b00;      
  --accent-hover: #e05e00;
  --bg-color: #ffffff;          
  --bg-light: #f4f6f9;          
  --text-dark: #2c3e50;
  --text-light: #475569; /* Darkened for accessibility (WCAG AA Contrast) */
  --font-main: 'Poppins', sans-serif;
  --border-radius: 16px;
  --box-shadow: 0 20px 40px rgba(11, 26, 48, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --primary-dark: #050d1a; /* Fixed missing variable for footer contrast */
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky bar */
  position: relative;
}

h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.2; }
.accent { color: var(--accent-color); }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: #fff; }
.text-white h2, .text-white p { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 16px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 1.1rem;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
  background-color: var(--accent-color); color: #fff;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover {
  background-color: var(--accent-hover); transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 107, 0, 0.4);
}
.btn-outline {
  background-color: transparent; color: var(--primary-color);
  border: 2px solid var(--primary-color); padding: 10px 24px;
}
.btn-outline:hover { background-color: var(--primary-color); color: #fff; }
.btn-block { width: 100%; display: block; }

/* NAVBAR */
.navbar {
  padding: 20px 0; background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: -0.5px; white-space: nowrap; }

/* HERO */
.hero { padding: 60px 0 80px; overflow: hidden; position: relative; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.hero-content { flex: 1; max-width: 600px; }
.badge {
  display: inline-block; background: rgba(255, 107, 0, 0.1); color: var(--accent-color);
  padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; }
.hero-buttons { display: flex; flex-direction: column; gap: 15px; }
.trust-indicators { display: flex; gap: 20px; font-weight: 500; font-size: 0.95rem; color: var(--text-dark); }
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image img { width: 100%; max-width: 550px; height: auto; z-index: 2; transform: scale(1.05); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }
.glow-bg {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.2) 0%, rgba(255,255,255,0) 70%);
  z-index: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
@keyframes float { 0%, 100% { transform: translateY(0px) scale(1.05); } 50% { transform: translateY(-15px) scale(1.05); } }

/* TRUST STATS BAR (NEW) */
.trust-stats { padding: 40px 0; background: var(--primary-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 5px; }
.stat-item p { font-size: 1rem; color: #fff; opacity: 0.9; font-weight: 500; }

/* GLASSMORPHISM CARDS (Warum wir) */
.glass-section { position: relative; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.glass-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--box-shadow);
  padding: 40px 30px; border-radius: var(--border-radius);
  text-align: center; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.glass-card:hover { transform: translateY(-10px); }
.card-icon { width: 120px; height: 120px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.card-icon img { width: 100%; height: auto; max-width: 100px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
.glass-card:hover .card-icon { transform: scale(1.1) rotate(2deg); }
.glass-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-color); }

/* VS TABLE (NEW) */
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 900px; margin: 0 auto;
  border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow);
}
.vs-col { padding: 40px; }
.vs-privat { background: #fff; border: 1px solid #eee; }
.vs-pro { background: var(--primary-color); color: #fff; }
.vs-col h3 { font-size: 1.5rem; margin-bottom: 25px; text-align: center; }
.vs-pro h3 { color: var(--accent-color); }
.vs-list { list-style: none; }
.vs-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.vs-list.bad li::before { content: '❌'; font-size: 1.2rem; }
.vs-list.good li::before { content: '✅'; font-size: 1.2rem; }

/* E-E-A-T EXPERT PROFILE (NEW) */
.eeat-box {
  background: #fff; padding: 40px; border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow); display: flex; align-items: center; gap: 30px;
  max-width: 900px; margin: 0 auto 60px; border-left: 5px solid var(--accent-color);
}
.expert-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #eee; }
.expert-info h3 { font-size: 1.4rem; margin-bottom: 5px; }
.expert-info .role { color: var(--accent-color); font-weight: 600; margin-bottom: 10px; display: block; }
.trust-badges { display: flex; gap: 15px; margin-top: 15px; }
.trust-badges span { background: var(--bg-light); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--primary-color); }

/* FAQ ACCORDION (NEW) */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 12px; margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #efefef;
  overflow: hidden; transition: all 0.3s ease;
}
.faq-item summary {
  padding: 20px 25px; font-weight: 600; font-size: 1.1rem; color: var(--primary-color);
  cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-color); font-weight: 300; transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-content { padding: 0 25px 20px; color: var(--text-light); line-height: 1.7; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* LOCAL SEO SILO */
.seo-silo { background: var(--bg-light); padding: 60px 0; border-top: 1px solid #eee; }
.silo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; list-style: none; margin-top: 30px; }
.silo-grid li a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.silo-grid li a::before { content: '📍'; font-size: 0.8rem; }
.silo-grid li a:hover { color: var(--accent-color); text-decoration: underline; }

/* STICKY MOBILE CTA (NEW) */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  background: #fff; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); z-index: 1000;
  padding: 10px; gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; text-align: center; padding: 12px; font-size: 1rem; border-radius: 8px; }
.btn-mobile-call { background: var(--primary-color); color: #fff; }
.btn-mobile-form { background: var(--accent-color); color: #fff; }

/* CTA SECTIONS AND OTHERS */
.cta-form-wrap {
  max-width: 700px; margin: 0 auto; background: #fff; padding: 40px; border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); color: var(--text-dark); text-align: left;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
.form-group label { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group select {
  padding: 15px; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fafafa;
  width: 100%; box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-color); background: #fff; }

footer { background: var(--primary-dark); padding: 40px 0; border-top: 1px solid #eee; text-align: center; }

/* BRAND SLIDER (Infinite Loop) */
.brand-slider { background: #fff; padding: 30px 0; border-bottom: 1px solid #eee; overflow: hidden; position: relative; }
.brand-slider-inner { display: flex; align-items: center; white-space: nowrap; animation: scrollBrands 30s linear infinite; gap: 60px; width: max-content; }
.brand-logo { font-size: 1.8rem; font-weight: 800; color: #cbd5e0; letter-spacing: -1px; text-transform: uppercase; filter: grayscale(1); opacity: 0.6; transition: all 0.3s ease; display: inline-block; cursor: default; }
.brand-logo:hover { filter: grayscale(0); opacity: 1; color: var(--primary-color); }
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* INTERACTIVE ESTIMATOR WIZARD */
.estimator-section { background: #fff; padding: 100px 0; }
.wizard-card {
  max-width: 800px; margin: 0 auto; background: #fff; border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1); border: 1px solid #eee; overflow: hidden;
}
.wizard-header { background: var(--primary-color); color: #fff; padding: 30px; text-align: center; }
.wizard-body { padding: 40px; }
.wizard-step { display: none; transition: opacity 0.3s ease; }
.wizard-step.active { display: block; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 25px; }
.option-btn {
  padding: 30px 15px; border: 2px solid #edf2f7; border-radius: 12px; text-align: center;
  cursor: pointer; transition: all 0.2s ease; font-weight: 600; font-size: 1rem; color: var(--text-dark);
}
.option-btn i { font-size: 2.5rem; display: block; margin-bottom: 15px; color: var(--accent-color); opacity: 0.3; }
.option-btn:hover { border-color: var(--accent-color); background: #fffaf0; transform: translateY(-5px); }
.option-btn.selected { border-color: var(--accent-color); background: #fffaf0; box-shadow: 0 10px 20px rgba(255,107,0,0.1); }

.wizard-footer { padding: 25px 40px; background: #f8fafc; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.progress-bar { height: 6px; background: #e2e8f0; border-radius: 10px; width: 100px; position: relative; }
.progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent-color); width: 33%; border-radius: 10px; transition: width 0.3s ease; }

@media(max-width: 900px) {
  .hero-inner, .comparison-grid, .option-grid { flex-direction: column; text-align: center; grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .eeat-box { flex-direction: column; text-align: center; }
  .trust-badges { justify-content: center; flex-wrap: wrap; }
  .navbar .btn-outline { display: none; } /* Hide redundant phone button in header on mobile */
  .hero-content { padding: 0; }
  .cta-form-wrap { padding: 25px 20px; }
}
@media(max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 80px; }
  section { padding: 50px 0; }
  .section-title h2 { font-size: 2rem; }
}
@media(max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
}
