/* ==========================
   Shining Charger Bau & Sanierung
   style.css – playful_dynamic theme (Flexbox-only)
   ========================== */

/* ---------- CSS Reset & Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Verdana, Arial, sans-serif; color: #1F2937; background: #F4F6F8; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: #C47E3A; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus { outline: 2px dashed #12B886; outline-offset: 2px; }

/* ---------- Theme Variables ---------- */
:root {
  /* Brand core */
  --brand-primary: #1F2937; /* dark slate */
  --brand-secondary: #C47E3A; /* warm copper */
  --brand-accent: #F4F6F8;   /* light neutral */
  --text: #1F2937;
  --text-inverse: #ffffff;

  /* Playful supporting brights */
  --pink: #FF4D8D;
  --mint: #12B886;
  --sky: #3AA0FF;
  --sunny: #FFD028;
  --violet: #7C4DFF;
  --lime: #8AE34D;

  /* Surfaces & shadows */
  --surface: #ffffff;
  --surface-alt: #FAFBFC;
  --shadow-sm: 0 2px 10px rgba(31,41,55,0.08);
  --shadow-md: 0 10px 20px rgba(31,41,55,0.12);
  --shadow-lg: 0 18px 40px rgba(31,41,55,0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Spacing scale */
  --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-30: 30px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px; --sp-60: 60px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Arial, sans-serif; color: var(--brand-primary); margin: 0 0 var(--sp-16); letter-spacing: 0.2px; }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 var(--sp-16); }
.small { font-size: 14px; }
.disclaimer { color: #5B6677; font-size: 14px; }

/* Fun, dynamic heading accent underline */
.h-underline, h2.h-underline, h3.h-underline { position: relative; display: inline-flex; }
.h-underline::after { content: ""; height: 8px; width: 80%; background: var(--sunny); border-radius: 6px; position: absolute; left: 10%; bottom: -6px; z-index: 0; }

/* ---------- Global Layout Containers (Flexbox only) ---------- */
.container { display: flex; width: 100%; padding: 0 var(--sp-16); justify-content: center; }
.content-wrapper { display: flex; flex-direction: column; gap: var(--sp-20); width: 100%; max-width: 1140px; position: relative; }

/* Mandatory spacing/alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-20); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ffffff; color: #1F2937; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: var(--surface); border-radius: var(--radius-md); padding: var(--sp-20); box-shadow: var(--shadow-sm); }

/* ---------- Header & Navigation ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 rgba(31,41,55,0.06); }
.main-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); padding: var(--sp-12) var(--sp-16); }
.logo-link img { height: 40px; }
.main-nav ul { display: none; align-items: center; gap: var(--sp-16); }
.main-nav li a { color: var(--brand-primary); padding: 8px 10px; border-radius: var(--radius-sm); transition: background 0.2s ease, transform 0.15s ease; }
.main-nav li a:hover { background: var(--brand-accent); transform: translateY(-1px); }
.header-ctas { display: none; align-items: center; gap: var(--sp-12); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: var(--sp-8) var(--sp-16); background: var(--sunny); color: var(--brand-primary); border: none; border-radius: 12px; font-size: 22px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.15s ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: #ffffff; transform: translateX(100%); transition: transform 0.35s ease; z-index: 100; box-shadow: var(--shadow-lg); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: var(--sp-16); width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--pink); color: #fff; font-size: 22px; cursor: pointer; box-shadow: var(--shadow-sm); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--sp-12); padding: 0 var(--sp-16) var(--sp-24); }
.mobile-nav a { display: flex; align-items: center; padding: 14px 16px; background: var(--surface-alt); border-radius: var(--radius-md); color: var(--brand-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.mobile-nav a:hover { background: var(--sunny); color: var(--brand-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-pill); border: 2px solid transparent; font-weight: 700; letter-spacing: 0.2px; transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease; cursor: pointer; }
.btn-primary { background: var(--brand-secondary); color: #fff; box-shadow: 0 6px 0 rgba(196,126,58,0.35), var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 rgba(196,126,58,0.25), var(--shadow-md); text-decoration: none; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 0 rgba(196,126,58,0.4); }

.btn-secondary { background: #ffffff; color: var(--brand-primary); border-color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--sunny); color: var(--brand-primary); text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cta-bar { display: flex; flex-wrap: wrap; gap: var(--sp-12); }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-32) 0 var(--sp-40); margin-bottom: var(--sp-48); position: relative; overflow: hidden; }
.hero .content-wrapper { padding: var(--sp-20); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero h1 { font-size: 34px; }
.hero p { font-size: 18px; color: #3A4658; }

/* Playful floating confetti (decorative only) */
.hero .content-wrapper::before,
.hero .content-wrapper::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 28px; opacity: 0.14; z-index: -1; animation: floaty 8s ease-in-out infinite; }
.hero .content-wrapper::before { background: var(--sky); top: -30px; right: -30px; animation-delay: 0.2s; }
.hero .content-wrapper::after { background: var(--pink); bottom: -30px; left: -30px; animation-delay: 1s; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* Trust list as colorful chips */
.trust-list { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.trust-list li { padding: 8px 12px; background: var(--surface-alt); border-radius: var(--radius-pill); font-weight: 600; box-shadow: var(--shadow-sm); }
.trust-list li:nth-child(3n+1) { background: rgba(58,160,255,0.15); }
.trust-list li:nth-child(3n+2) { background: rgba(255,77,141,0.15); }
.trust-list li:nth-child(3n+3) { background: rgba(255,208,40,0.25); }

/* ---------- Services / Sections ---------- */
section { padding: var(--sp-32) 0; }
.services .content-wrapper ul > li,
.service-detail .content-wrapper ul > li,
.features .content-wrapper ul > li,
.faq .content-wrapper dd,
.case-studies article ul > li { background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: var(--sp-12); box-shadow: var(--shadow-sm); }

.features .content-wrapper ul { display: flex; flex-direction: column; gap: var(--sp-12); }

/* Feature grid */
.feature-grid { display: flex; flex-wrap: wrap; gap: var(--sp-20); }
.feature-grid .feature-item img { width: 48px; height: 48px; }
.feature-grid .feature-item h3 { font-size: 18px; }
.feature-grid .feature-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); transition: transform 0.15s ease, box-shadow 0.25s ease; }

.feature-descriptions { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); }
.feature-descriptions li { background: var(--brand-accent); border-radius: var(--radius-pill); padding: 8px 12px; font-weight: 600; }

.features-extra ul { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.features-extra li { background: rgba(18,184,134,0.12); color: var(--brand-primary); border-radius: var(--radius-pill); padding: 8px 12px; font-weight: 600; }

/* ---------- Process ---------- */
.process ol { display: flex; flex-direction: column; gap: var(--sp-12); counter-reset: step; padding-left: 0; }
.process li { display: flex; align-items: center; gap: var(--sp-12); background: #fff; border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.process li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--sunny); color: var(--brand-primary); font-weight: 800; border-radius: 10px; }

/* ---------- Testimonials (high contrast, light bg) ---------- */
.testimonials { background: #FFFFFF; }
.testimonials .content-wrapper { gap: var(--sp-20); }
.testimonial-card blockquote { margin: 0; font-size: 18px; color: var(--brand-primary); }
.testimonial-card strong { margin-left: auto; color: #334155; font-size: 14px; }
.rating-summary { font-weight: 700; color: var(--brand-primary); }

/* ---------- FAQ ---------- */
.faq dl { display: flex; flex-direction: column; gap: var(--sp-12); }
.faq dt { font-weight: 800; background: rgba(124,77,255,0.12); padding: 10px 12px; border-radius: var(--radius-md); }
.faq dd { margin: 0; }

/* ---------- Contact ---------- */
.contact-list, .contact-info .contact-list { display: flex; flex-direction: column; gap: var(--sp-12); }
.contact-list li { display: flex; align-items: center; gap: var(--sp-12); background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.contact-list img { width: 22px; height: 22px; }

/* ---------- Case studies ---------- */
.case-studies article { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--sp-20); margin-bottom: var(--sp-20); }

/* ---------- Pricing tables ---------- */
.pricing table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: var(--sp-20); }
.pricing caption { text-align: left; font-weight: 800; padding: 12px 14px; background: var(--brand-accent); color: var(--brand-primary); }
.pricing td { padding: 12px 14px; border-bottom: 1px solid #E6EAF0; }
.pricing tr:nth-child(even) td { background: #FAFBFD; }
.pricing tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
footer { background: var(--brand-primary); color: #E5E7EB; padding: var(--sp-24) 0; margin-top: var(--sp-32); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--sp-20); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-12); }
.footer-brand img { width: 40px; height: 40px; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.footer-nav a, .legal-nav a { color: #E5E7EB; background: rgba(255,255,255,0.06); padding: 8px 12px; border-radius: var(--radius-pill); }
.footer-nav a:hover, .legal-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.footer-cta { display: flex; }
.footer-cta .btn-primary { background: var(--pink); box-shadow: 0 6px 0 rgba(255,77,141,0.35), var(--shadow-sm); }
.footer-cta .btn-primary:hover { box-shadow: 0 10px 0 rgba(255,77,141,0.25), var(--shadow-md); }

/* ---------- Utilities ---------- */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--brand-accent); font-weight: 700; }
.muted { color: #6B7280; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .main-nav ul { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero { padding: var(--sp-48) 0 var(--sp-60); }
  .hero h1 { font-size: 48px; }

  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .feature-grid .feature-item { flex: 1 1 calc(25% - 20px); }
  .feature-grid { justify-content: space-between; }
}

/* ---------- Micro-interactions ---------- */
@keyframes bop { 0% { transform: translateY(0); } 30% { transform: translateY(-2px); } 60% { transform: translateY(0); } 100% { transform: translateY(-1px); } }
.btn-primary:hover, .btn-secondary:hover { animation: bop 300ms ease-in-out; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: transform 0.15s ease, box-shadow 0.25s ease; }

/* ---------- Mobile Menu Animations (required) ---------- */
/* Already using transform translateX on .mobile-menu with .open state */

/* ---------- Cookie Consent (required) ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #ffffff; color: var(--brand-primary); box-shadow: 0 -8px 24px rgba(0,0,0,0.12); display: flex; flex-direction: column; gap: var(--sp-12); padding: var(--sp-16); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cookie-banner .btn-accept { background: var(--mint); color: #fff; border: none; }
.cookie-banner .btn-reject { background: #fff; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.cookie-banner .btn-settings { background: var(--sunny); color: var(--brand-primary); border: none; }

/* Cookie modal overlay */
.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 130; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { background: #fff; color: var(--brand-primary); border-radius: var(--radius-lg); width: 92%; max-width: 720px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--sp-16); padding: var(--sp-20); transform: translateY(10px); transition: transform 0.25s ease; }
.cookie-modal.open .cookie-modal-content { transform: translateY(0); }
.cookie-options { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); background: var(--surface-alt); padding: 10px 12px; border-radius: var(--radius-md); }
.cookie-row .label { font-weight: 700; }
.cookie-row .always { font-size: 12px; color: #64748B; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); justify-content: flex-end; }

/* Toggle switch (no JS dependency for style) */
.switch { position: relative; width: 46px; height: 26px; background: #E5E7EB; border-radius: 26px; display: inline-flex; align-items: center; padding: 3px; transition: background 0.2s ease; }
.switch .dot { width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: var(--shadow-sm); }
.switch.active { background: var(--mint); }
.switch.active .dot { transform: translateX(20px); }

/* ---------- Additional Generic Classes for Consistency ---------- */
.card-row { display: flex; flex-wrap: wrap; gap: var(--sp-20); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.chips .chip { background: var(--brand-accent); padding: 8px 12px; border-radius: var(--radius-pill); }

/* ---------- Page-specific Fine-tuning ---------- */
/* Hero background tints per page for playful variety while staying on-brand */
body.index .hero, body.home .hero {}
.hero { background: transparent; }
.services { background: rgba(255,208,40,0.08); }
.features { background: rgba(58,160,255,0.06); }
.process { background: rgba(18,184,134,0.06); }
.faq { background: rgba(124,77,255,0.06); }
.contact, .contact-info { background: rgba(255,77,141,0.06); }

/* Legal pages keep it calm */
.legal .content-wrapper > h2, .legal .content-wrapper > h3 { background: var(--brand-accent); padding: 8px 12px; border-radius: var(--radius-md); display: inline-flex; }

/* ---------- Lists inside content ---------- */
.content-wrapper > ul, .content-wrapper > ol, .content-wrapper > dl { margin-top: var(--sp-8); }

/* ---------- Prevent Overlaps & Z-index hygiene ---------- */
.hero, .mobile-menu, .cookie-banner, .cookie-modal { will-change: transform; }

/* ---------- Print Safe ---------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
