/* ElbPerle Reinigungsservice – Website
   Layout: ruhiger Perlweiß-Grund, Dunkelblau als Markenfarbe, Petrol für alles,
   was man anklicken kann. „Perlen“ (Kreise, Pillen) als einziges Schmuckmotiv. */

@font-face { font-family: "Quicksand"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/quicksand-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Farben aus dem ElbPerle-Design-System */
  --pearl: #f7f4ee;
  --pearl-200: #ebe5d9;
  --pearl-50: #fbf9f5;
  --elbe: #172832;
  --elbe-700: #2a4256;
  --wasser: #1f6f7f;
  --wasser-dark: #185a67;
  --frisch: #8fd3c1;
  --perlmutt: #d8c39a;
  --ink-muted: #4f5f70;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d3da;
  --line: #ded6c6;

  --font-display: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--elbe);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
a { color: var(--wasser); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--wasser); outline-offset: 3px; border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw + 0.6rem, 3.9rem); }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.7rem, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: var(--section); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wasser);
}
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--frisch); box-shadow: 0 0 0 3px rgba(143, 211, 193, 0.35); }
.on-dark .label { color: var(--frisch); }
.lead { font-size: clamp(1.06rem, 0.5vw + 0.95rem, 1.22rem); color: var(--ink-muted); max-width: 58ch; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--wasser); color: var(--on-dark); }
.btn-primary:hover { background: var(--wasser-dark); }
.btn-ghost { background: transparent; color: var(--elbe); border-color: var(--elbe); }
.btn-ghost:hover { background: var(--elbe); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--elbe); }
.btn-light:hover { background: var(--frisch); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: var(--on-dark); background: rgba(255,255,255,.08); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 244, 238, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: block; flex: none; }
.brand img { width: 196px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--elbe); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.main-nav a:hover { color: var(--wasser); }
.header-call { min-height: 46px; padding: 0 20px; font-size: 0.97rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--elbe); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--wasser); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.hero-facts svg { width: 20px; height: 20px; color: var(--wasser); flex: none; }
.hero-media { position: relative; min-width: 0; }
.hero-photo {
  aspect-ratio: 4 / 4.3; width: 100%; max-width: 100%; object-fit: cover;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
}
.pearl-badge {
  position: absolute; left: -22px; bottom: 42px;
  width: 148px; height: 148px; border-radius: 50%;
  background: var(--elbe); color: var(--on-dark);
  display: grid; place-content: center; text-align: center; gap: 2px;
  border: 6px solid var(--pearl);
}
.pearl-badge strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--frisch); }
.pearl-badge span { font-size: 0.82rem; font-weight: 600; line-height: 1.3; padding-inline: 14px; }

/* Leistungen */
.services { background: var(--pearl-50); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service {
  display: flex; flex-direction: column; background: var(--on-dark);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; min-width: 0;
}
.service img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.service-body p { color: var(--ink-muted); }
.service-for { font-size: 0.9rem; color: var(--elbe); font-weight: 600; }
.service ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: 0.95rem; }
.service li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.service li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wasser); margin-top: 0.62em; justify-self: center; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; display: grid; gap: 12px; padding-top: 74px; min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--elbe); color: var(--on-dark);
  font: 700 1.35rem/1 var(--font-display);
}
.step::after { content: ""; position: absolute; top: 27px; left: 70px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--perlmutt) 0 6px, transparent 6px 14px); }
.step:last-child::after { display: none; }
.step p { color: var(--ink-muted); }

/* Warum ElbPerle (dunkel) */
.on-dark { background: var(--elbe); color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-muted); }
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-media { position: relative; min-width: 0; }
.why-media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 50%; border: 10px solid var(--elbe-700); }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.why-list li { display: grid; gap: 8px; min-width: 0; }
.why-list h3 { color: var(--on-dark); font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.why-list h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--frisch); flex: none; }

/* Einsatzgebiet */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.districts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.districts li { padding: 10px 18px; border-radius: var(--radius-pill); background: var(--on-dark); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.districts li.core { background: var(--elbe); color: var(--on-dark); border-color: var(--elbe); }
.area-note { margin-top: 18px; color: var(--ink-muted); font-size: 0.95rem; }

/* FAQ */
.faq { background: var(--pearl-50); border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--on-dark); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--pearl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f7f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-muted); display: grid; gap: 10px; max-width: 70ch; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-ways { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-ways a, .contact-ways div { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--on-dark); }
.contact-ways .icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--elbe-700); flex: none; }
.contact-ways .icon svg { width: 22px; height: 22px; color: var(--frisch); }
.contact-ways small { display: block; color: var(--on-dark-muted); font-size: 0.82rem; font-weight: 500; }
.contact-ways strong { font-size: 1.08rem; }
.contact-ways a:hover strong { color: var(--frisch); }

.form-card { background: var(--pearl); color: var(--elbe); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--ink-muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--font-body); color: var(--elbe);
  background: var(--on-dark); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; min-height: 50px;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wasser); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 127, 0.18); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.88rem; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wasser); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-hint { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-muted); }
.form-error { grid-column: 1 / -1; color: #9b2c2c; font-weight: 600; font-size: 0.92rem; }
.form-done { grid-column: 1 / -1; background: var(--on-dark); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: grid; gap: 8px; }
.form-done pre { white-space: pre-wrap; font: 500 0.9rem/1.5 var(--font-body); margin: 0; color: var(--elbe); }

/* Footer */
.site-footer { background: var(--elbe); color: var(--on-dark-muted); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 36px 40px; }
.footer-inner img { width: 170px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--frisch); }
.footer-copy { font-size: 0.85rem; width: 100%; }

/* Fester Kontaktbalken am Handy */
.mobile-bar { display: none; }

/* Rechtstexte */
.legal { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-muted); max-width: 72ch; }
.legal p + p { margin-top: 10px; }
.legal address { font-style: normal; color: var(--elbe); line-height: 1.7; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 26px; }

/* Responsiv */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--pearl); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 20px var(--gutter-l);
  }
  .site-header.open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-header.open .main-nav .header-call { margin-top: 16px; border-bottom: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .why-grid, .area-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .why-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding-top: 0; padding-left: 74px; min-height: 54px; }
  .step::after { top: 64px; bottom: -22px; left: 26px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--perlmutt) 0 6px, transparent 6px 14px); }
}
@media (max-width: 640px) {
  .brand img { width: 158px; }
  .header-inner { min-height: 66px; }
  .service-grid, .why-list, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pearl-badge { width: 116px; height: 116px; left: -6px; bottom: 18px; border-width: 5px; }
  .pearl-badge strong { font-size: 1.8rem; }
  .pearl-badge span { font-size: 0.72rem; padding-inline: 10px; }
  .hero-photo { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .hero-actions .btn { flex: 1 1 100%; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--elbe); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px;
    border-radius: 12px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 0.78rem; background: var(--elbe-700);
  }
  .mobile-bar a.primary { background: var(--wasser); }
  .mobile-bar svg { width: 20px; height: 20px; }
}
