/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #ffffff;
  --c-bg-light: #f7f7f5;
  --c-bg-dark:  #111111;
  --c-text:     #1a1a1a;
  --c-text-inv: #ffffff;
  --c-muted:    #555555;
  --c-wa:       #25D366;
  --c-wa-dark:  #1ebe5d;
  --c-accent:   #111111;
  --c-border:   #e5e5e5;

  --font: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 8px;
  --radius-btn: 50px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── CONTAINERS ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.container-narrow { max-width: 680px; }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-wa {
  background: var(--c-wa);
  color: #fff;
}
.btn-wa:hover { background: var(--c-wa-dark); }

.btn-sm  { padding: 0.45rem 1.1rem; font-size: 0.875rem; }
.btn-lg  { padding: 0.85rem 2rem;   font-size: 1rem;     }
.btn-xl  { padding: 1rem 2.4rem;    font-size: 1.125rem; }

.wa-icon {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── NAV ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--space-md);
}
.nav-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--c-text);
}

.wa-sprite { display: none; }

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  padding: var(--space-xl) 0;
  text-align: center;
}
.hero-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  max-width: 820px;
  margin-inline: auto;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.75;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}
.hero-note {
  font-size: 0.85rem;
  opacity: 0.45;
  margin-top: var(--space-xs);
}

/* ─── SECTIONS ──────────────────────────────────────────────────────────────── */
.section { padding: var(--space-xl) 0; }
.section-light { background: var(--c-bg-light); }
.section-dark  { background: var(--c-bg-dark); color: var(--c-text-inv); }
.section-accent {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  text-align: center;
}

.section-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.section-headline-alt {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--c-text);
}

/* ─── PROBLEM CARDS ─────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.card-icon { font-size: 1.75rem; display: block; margin-bottom: var(--space-xs); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p   { color: var(--c-muted); font-size: 0.95rem; }

/* ─── STEPS ─────────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-wa);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.step p  { font-size: 0.9rem; opacity: 0.65; }
.step-arrow {
  font-size: 1.5rem;
  opacity: 0.3;
  align-self: center;
  flex-shrink: 0;
}

.leistungen-note {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--c-muted);
  max-width: 680px;
}

/* ─── LEISTUNGEN ─────────────────────────────────────────────────────────────── */
.leistungen {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xs) var(--space-md);
}
.leistungen li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
}
.check {
  color: var(--c-wa);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── REFERENZEN ─────────────────────────────────────────────────────────────── */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
}
.ref-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.ref-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}
.ref-preview {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.ref-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s;
}
.ref-card:hover .ref-preview img { transform: scale(1.03); }
/* Placeholder wenn kein Bild vorhanden */
.ref-preview:not(:has(img[src])),
.ref-preview:has(img[style*="display:none"]) {
  min-height: 140px;
}
.ref-body {
  padding: 0.875rem var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ref-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-wa);
}
.ref-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.ref-url-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}
.ref-card:hover .ref-url-text { color: rgba(255,255,255,0.6); }

/* ─── PREIS ──────────────────────────────────────────────────────────────────── */
.preis-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}
.preis-zahl {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-xs);
  color: var(--c-wa);
}
.preis-sub {
  font-size: 1.05rem;
  opacity: 0.6;
  margin-bottom: var(--space-md);
}

/* ─── ÜBER ───────────────────────────────────────────────────────────────────── */
.ueber-text {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin-bottom: var(--space-sm);
}

/* ─── KONTAKT ────────────────────────────────────────────────────────────────── */
.kontakt-sub {
  font-size: 1.05rem;
  opacity: 0.65;
  margin-bottom: var(--space-md);
}
.kontakt-note {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  opacity: 0.45;
}
.kontakt-note a { color: inherit; }

/* ─── FLOATING WHATSAPP ──────────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-wa);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.15s, opacity 0.3s, box-shadow 0.15s;
  opacity: 0;
  pointer-events: none;
}
.wa-float.visible {
  opacity: 1;
  pointer-events: auto;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.wa-float:active { transform: scale(0.95); }
.wa-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  padding: var(--space-md) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: var(--space-sm); }
.footer-nav a {
  color: inherit;
  text-decoration: none;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding-inline: var(--space-sm); }
  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; }
  .step { min-width: unset; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
