:root {
  --navy: #12305e;
  --navy-dark: #0b2044;
  --blue: #3bb6e8;
  --turquoise: #4dd9d9;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #5b6b85;
  --bg-alt: #f4f9fc;
  --border: #e2ebf3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 48, 94, 0.08);
  --shadow-hover: 0 16px 40px rgba(18, 48, 94, 0.14);
  --font-head: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75em;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn-label { position: relative; z-index: 1; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.6); opacity: 0; }
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
  color: var(--navy-dark);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--turquoise));
  border-radius: 10px;
  border: 3px solid var(--bg-alt);
}
html { scrollbar-color: var(--blue) var(--bg-alt); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--turquoise));
  z-index: 200;
  transition: width 0.05s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(18, 48, 94, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner { padding: 6px 24px; }
.brand-logo { height: 46px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 36px; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(77,217,217,0.25), transparent),
              linear-gradient(160deg, var(--navy-dark), var(--navy) 60%, #1a4a86);
  color: var(--white);
  padding: 110px 0 0;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 30%), rgba(77,217,217,0.16), transparent 70%);
  transition: opacity 0.3s ease;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 70px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}
.hero-title-highlight {
  background: linear-gradient(90deg, var(--blue), var(--turquoise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(77,217,217,0.35), transparent 70%);
  filter: blur(10px);
}
.hero-logo {
  position: relative;
  width: 260px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  background: rgba(255,255,255,0.06);
  border-radius: 32px;
  padding: 24px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 24px;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--blue), var(--turquoise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-subtext { font-size: 1.02rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover { box-shadow: var(--shadow-hover); }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
  color: var(--white);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* Vorher/Nachher Vergleich */
.section-compare { padding-top: 90px; }
.compare {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.compare-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.compare-before {
  background-image: url("assets/before.jpg");
  background-size: cover;
  background-position: center;
}
.compare-after {
  background-image: url("assets/after.jpg");
  background-size: cover;
  background-position: center;
  clip-path: inset(0 50% 0 0);
}
.compare-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--white);
}
.compare-tag-before { background: rgba(20,33,61,0.55); }
.compare-tag-after { background: linear-gradient(90deg, var(--blue), var(--turquoise)); color: var(--navy-dark); margin-left: auto; }
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(18,48,94,0.25);
  pointer-events: none;
}
.compare-handle::before,
.compare-handle::after {
  content: "";
  position: absolute;
  top: -1000px;
  width: 2px;
  height: 1000px;
  background: rgba(255,255,255,0.8);
  left: 50%;
}
.compare-handle::after { top: auto; bottom: -1000px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-inner-solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}
.about-inner-solo .about-list {
  display: inline-block;
  text-align: left;
}
.about-list { padding-left: 1.1em; color: var(--muted); }
.about-list li { margin-bottom: 8px; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  text-align: center;
  padding: 20px;
}
.benefit-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--navy);
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 1.05rem; }
.benefit-card p { font-size: 0.92rem; }

/* Testimonials */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 0.95rem;
  color: var(--ink);
}
.google-rating strong { color: var(--navy); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.testimonials-more {
  text-align: center;
  margin-top: 34px;
}
.testimonials-more a {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--turquoise);
  padding-bottom: 2px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow);
}
.stars { color: var(--turquoise); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { color: var(--ink); font-style: italic; }
.testimonial-card footer { font-size: 0.85rem; color: var(--muted); font-style: normal; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.contact-details svg { color: var(--blue); flex-shrink: 0; }
.social-links { display: flex; gap: 16px; }
.social-links a {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--turquoise);
  padding-bottom: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 182, 232, 0.2);
}
.form-feedback {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--navy);
}
.form-feedback.success { color: #1b8a5a; }
.form-feedback.error { color: #c0392b; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  width: fit-content;
}
.footer-logo { height: 34px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
.footer-social { display: flex; gap: 16px; align-self: flex-start; }
.footer-social a { font-weight: 600; }
.footer-bottom {
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,0.7); }
.footer-legal a:hover { color: var(--white); }

/* Legal pages */
.legal-page { padding-top: 70px; }
.legal-content { max-width: 780px; }
.legal-content h1 { font-size: 2rem; margin-bottom: 0.6em; }
.legal-content h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal-content p { color: var(--ink); }
.legal-content a { color: var(--blue); text-decoration: underline; }

/* Floating action buttons */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(18,48,94,0.3);
  transition: transform 0.2s ease;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-call {
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
  color: var(--navy-dark);
  position: relative;
}
.fab-call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
.fab-mail { background: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .fab-call::before { animation: none; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-text { margin: 0 auto 1em; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .floating-actions { right: 14px; bottom: 14px; }
  .fab { width: 48px; height: 48px; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .phone-link span { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
}
