/* CFS-Reinigung Premium Design System */
@import url("fonts.css");
:root {
  --primary: #0D6EFD;
  --primary-dark: #0a58ca;
  --secondary: #00C896;
  --accent: #FFD700;
  --text: #1B1B1B;
  --text-muted: #5a6474;
  --bg: #F8FAFC;
  --bg-dark: #0a0f1a;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow: 0 4px 24px rgba(13, 110, 253, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-dark { background: var(--bg-dark); color: #e8ecf4; }
.section-dark a { color: var(--secondary); }
.section-alt { background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 65ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1102;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled,
.header.menu-open {
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.header.scrolled {
  background: var(--glass);
}
.header.menu-open {
  background: #ffffff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo span { color: var(--primary); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-desktop a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-desktop a:hover, .nav-desktop a.active {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  z-index: 1104;
  position: relative;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 15, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100vw - 2.5rem, 320px);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform var(--transition), visibility var(--transition);
  z-index: 1101;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}
.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}
.nav-mobile a {
  display: block;
  padding: 0.95rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
}
.nav-mobile a.active {
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  border-color: rgba(13, 110, 253, 0.15);
}
.nav-mobile .nav-mobile-cta,
.nav-mobile a.btn-primary {
  margin-top: 1.25rem;
  text-align: center;
  width: 100%;
  color: #fff !important;
  border: none;
}
.nav-mobile-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-toggle,
  .nav-mobile,
  .nav-overlay { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3d8bfd);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 32px rgba(13, 110, 253, 0.45); }
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #00e6a8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.3);
}
.btn-secondary:hover { color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(27, 27, 27, 0.15);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 110, 253, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 200, 150, 0.12), transparent),
    linear-gradient(165deg, #f0f6ff 0%, var(--bg) 50%, #e8f4f0 100%);
  z-index: -2;
}
.hero-parallax {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
  will-change: transform;
}
.hero-parallax-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; right: -10%; }
.hero-parallax-2 { width: 300px; height: 300px; background: var(--secondary); bottom: 20%; left: -5%; }
.hero-content { position: relative; z-index: 1; padding: 2rem 0 4rem; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(0, 200, 150, 0.12));
  border-radius: 14px;
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-card-body { padding: 1.5rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-dark), #141c2e);
  border-radius: var(--radius);
  color: #fff;
}
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: #94a3b8; margin-top: 0.25rem; }

/* Reviews */
.review-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
}
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.review-author { font-weight: 700; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.faq-question svg { flex-shrink: 0; transition: transform var(--transition); color: var(--primary); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Breadcrumbs */
.breadcrumbs {
  padding: calc(var(--header-h) + 1rem) 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Content page */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(165deg, #f0f6ff, var(--bg));
  position: relative;
  overflow: hidden;
}
.content-prose { max-width: 75ch; }
.content-prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content-prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.content-prose p { margin-bottom: 1.25rem; color: var(--text-muted); }
.content-prose ul { list-style: disc; margin: 1rem 0 1.25rem 1.5rem; color: var(--text-muted); }
.content-prose li { margin-bottom: 0.5rem; }
.content-prose strong { color: var(--text); }

.feature-list { display: grid; gap: 1rem; margin: 2rem 0; }
.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-item svg { width: 24px; height: 24px; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

.process-steps { counter-reset: step; }
.process-step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid rgba(13, 110, 253, 0.2);
  margin-left: 1rem;
}
.process-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.15rem;
  width: 2.3rem;
  height: 2.3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark), #1a2744);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.2;
  border-radius: 50%;
  top: -100px;
  right: -50px;
  filter: blur(60px);
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: #94a3b8; margin-bottom: 1.5rem; max-width: 50ch; margin-inline: auto; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: #94a3b8; }
.footer a:hover { color: var(--secondary); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Sticky CTA – volle Breite unten am Bildschirmrand */
body.nav-open .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1005;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  transition: opacity var(--transition), bottom var(--transition);
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.15);
}

body.cookie-visible .sticky-cta {
  bottom: max(4.25rem, calc(3.25rem + env(safe-area-inset-bottom, 0px)));
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 1;
  width: 100%;
  padding: 1rem 1.5rem;
  min-height: 56px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
  border: none;
  border-top: 3px solid rgba(255, 255, 255, 0.3);
}

.sticky-cta a:hover,
.sticky-cta a:active,
.sticky-cta a:focus-visible {
  filter: brightness(1.06);
}

.sticky-phone {
  background: linear-gradient(145deg, #00a67a, var(--secondary));
  color: #fff;
}

.sticky-mail {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: none;
}

.sticky-phone-label {
  display: inline;
  letter-spacing: 0.02em;
}

.sticky-cta svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .sticky-mail {
    display: flex;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .sticky-mail .sticky-phone-label {
    display: none;
  }
  .sticky-mail::after {
    content: "E-Mail";
    font-weight: 700;
    font-size: 1.05rem;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #e8ecf4;
  padding: 1.25rem;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--secondary); text-decoration: underline; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.floating { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Areas tags */
.area-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.area-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Google rating widget */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.google-rating-score { font-size: 2rem; font-weight: 800; color: var(--text); }
.google-rating-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Legal */
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 0.75rem; }
.legal-content ul { list-style: disc; margin-left: 1.5rem; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating { animation: none; }
}
