/* Sanitär Notdienst — Landing Page
   Mobile-first, optimized for Google Ads CTR.
   No hidden content, no off-screen tricks, no display:none for SEO. */

:root {
  --blue: #1e40af;
  --blue-dark: #1e3a8a;
  --blue-deep: #172554;
  --blue-light: #dbeafe;
  --blue-soft: #eff6ff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #ffedd5;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --star: #fbbf24;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-orange: 0 6px 20px rgba(249, 115, 22, 0.4);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* room for sticky mobile call button */
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--blue); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}

.header-cta:hover { background: var(--orange-dark); color: #fff !important; transform: translateY(-1px); }
.header-cta svg { width: 18px; height: 18px; }
.header-cta .phone-text { display: none; }

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 60%, var(--blue) 100%);
  color: #fff;
  overflow: hidden;
  padding: 28px 0 48px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../img/6.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.rating-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}
.rating-stars svg { width: 14px; height: 14px; }
.rating-score { font-weight: 800; color: var(--text); }
.rating-meta { color: var(--text-soft); font-weight: 500; }

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.97;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-sub strong { font-weight: 700; }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  border: none;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust svg { width: 18px; height: 18px; color: #fde68a; flex-shrink: 0; }

/* ========== SECTION COMMON ========== */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-soft); }
.section-deep {
  position: relative;
  background: var(--blue-deep);
  color: #fff;
  overflow: hidden;
}
.section-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/5.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.section-deep > * { position: relative; z-index: 1; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-deep .section-head h2 { color: #fff; }
.section-deep .section-lead { color: rgba(255, 255, 255, 0.85); }

.section-lead {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ========== PAIN POINTS ========== */
.pains-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pain-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.pain-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }

.pain-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pain-icon svg { width: 28px; height: 28px; }

.pain-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.pain-text p { font-size: 14px; color: var(--text-soft); }

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.service-content {
  padding: 16px 18px 20px;
  flex: 1;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.why-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 18px;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.why-icon svg { width: 32px; height: 32px; }

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.why-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
  margin-bottom: 10px;
}
.review-stars svg { width: 18px; height: 18px; }

.review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 600;
  color: var(--text);
}

/* ========== ABOUT ========== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background-color: var(--bg-alt);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-text h2 { text-align: left; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-text .about-lead { color: var(--text); font-weight: 500; font-size: 17px; }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.about-badge svg { width: 16px; height: 16px; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 22px;
  border-radius: var(--radius);
  margin: 0 18px;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: 24px; }
.cta-banner p { font-size: 16px; opacity: 0.95; margin-bottom: 20px; }
.cta-banner .btn {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cta-banner .btn:hover { background: var(--blue-deep); color: #fff; }

/* ========== CONTACT FORM ========== */
.contact-wrap { max-width: 580px; margin: 0 auto; }

.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row { margin-bottom: 14px; }

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-row textarea { resize: vertical; min-height: 90px; }

.form-row.error input,
.form-row.error textarea { border-color: #dc2626; }

.form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 4px;
  visibility: hidden;
  height: 18px;
}

.form-row.error .form-error { visibility: visible; }

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  margin: 10px 0 18px;
  line-height: 1.5;
}

.form-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form-check.error label { color: #dc2626; }

.form .btn { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
  background: #ecfdf5;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: #065f46;
}

.form-success.show { display: block; }

.form-success svg { width: 56px; height: 56px; color: var(--success); margin: 0 auto 12px; }
.form-success h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

.form.hidden { display: none; }

.contact-or {
  text-align: center;
  margin: 22px 0 18px;
  font-size: 13px;
  color: var(--text-soft);
  position: relative;
}
.contact-or::before, .contact-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}
.contact-or::before { left: 0; }
.contact-or::after { right: 0; }

.contact-phone-cta { text-align: center; }
.contact-phone-cta .btn { width: 100%; max-width: 360px; display: inline-flex; }

/* ========== FOOTER ========== */
.footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer p, .footer li { margin-bottom: 5px; }
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: var(--orange); }
.footer ul { list-style: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ========== STICKY MOBILE CALL BUTTON ========== */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.mobile-call-bar .btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  min-height: 52px;
  font-size: 16px;
  animation: pulseShadow 2s infinite;
}

@keyframes pulseShadow {
  0%, 100% { box-shadow: var(--shadow-orange); }
  50% { box-shadow: 0 6px 28px rgba(249, 115, 22, 0.7); }
}

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 36px 0 60px; min-height: 60vh; }
.legal-page h1 { font-size: 26px; color: var(--blue-deep); margin-bottom: 20px; }
.legal-page h2 {
  font-size: 18px;
  color: var(--blue-deep);
  margin: 20px 0 10px;
  text-align: left;
}
.legal-page p, .legal-page address {
  margin-bottom: 10px;
  color: var(--text);
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
}
.legal-page ul { padding-left: 22px; margin: 0 0 14px; }
.legal-page li { margin-bottom: 6px; font-size: 15px; }
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-weight: 600;
  color: var(--blue);
}

.todo-note {
  background: #fef3c7;
  border-left: 4px solid var(--star);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 14px;
  border-radius: var(--radius-xs);
  color: #78350f;
}

/* ========== TABLET ========== */
@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .mobile-call-bar { display: none; }

  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 18px; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; min-width: 220px; }
  .header-cta .phone-text { display: inline; }
  .header-cta { padding: 10px 18px; font-size: 15px; }

  .section { padding: 64px 0; }
  .section-head h2 { font-size: 30px; }

  .pains-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr 1.4fr; gap: 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cta-banner { padding: 56px 32px; }
  .cta-banner h2 { font-size: 30px; }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
  .hero { padding: 72px 0 90px; }
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 20px; }
  .section-head h2 { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
