/* H&A Gebäudereinigung — shared stylesheet
   Tokens matched to the existing live site: navy headings, muted blue accent,
   Playfair Display for display type, Inter for body/UI. */

:root {
  --navy: #0F2A4A;
  --navy-soft: #16385E;
  --accent: #2F6396;
  --accent-soft: #6FA0C7;
  --border: #C7D0D8;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --text: #3C4A5A;
  --text-muted: #6B7A8A;
  --white: #FFFFFF;
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-card: 0 12px 32px rgba(15, 42, 74, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Grid/flex children default to a content-based min-width, which is the
   classic cause of sideways scrolling/"wobble" on mobile once any label,
   badge or number is a touch wider than its column. Force them to shrink
   properly instead of pushing the page wider than the viewport. */
.wrap, .wrap * { min-width: 0; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: 52px; }
.brand-name { font-family: "Playfair Display", Georgia, serif; font-size: 19px; color: var(--navy); line-height: 1.1; }
.brand-tag { font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { text-decoration: none; color: var(--text); font-size: 15px; }
.main-nav a:hover { color: var(--navy); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(15, 42, 74, 0.28); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(34px, 4.2vw, 50px); margin-bottom: 22px; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 54ch; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.review-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 28px;
  background: var(--white);
  max-width: 100%;
}
.review-badge:hover { border-color: var(--accent-soft); }
.review-badge .stars { display: inline-flex; gap: 2px; }
.review-badge .stars svg { width: 15px; height: 15px; fill: #E3A008; }
.review-badge strong { color: var(--navy); }

.trust-line { display: flex; flex-wrap: wrap; gap: 20px 28px; font-size: 14px; color: var(--text-muted); }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-cards .card-wide { grid-column: 1 / -1; }
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.mini-card .icon {
  width: 60px; height: 60px;
  border-radius: 15px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.mini-card .icon svg { width: 28px; height: 28px; }
.mini-card h3 { font-size: 19px; font-family: "Inter", sans-serif; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.mini-card p { margin: 0; font-size: 15px; color: var(--text-muted); }
.mini-card.card-wide { display: flex; align-items: center; gap: 20px; }
.mini-card.card-wide .icon { margin-bottom: 0; flex-shrink: 0; background: var(--accent); }
.mini-card.card-wide h3 { font-size: 18px; }

/* Generic section */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

/* Leistungen */
.leistungen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.leistung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
}
.leistung-card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.leistung-card .icon svg { width: 22px; height: 22px; }
.leistung-card h3 { font-size: 22px; margin-bottom: 10px; }
.leistung-card > p { color: var(--text-muted); margin-bottom: 22px; }
.leistung-card ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.leistung-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.leistung-card li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Für wen */
.zielgruppen-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.zielgruppe { text-align: center; }
.zielgruppe .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.zielgruppe .icon svg { width: 24px; height: 24px; }
.zielgruppe h3 { font-size: 16px; font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: 4px; }
.zielgruppe p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Einblick (photo gallery) */
.einblick { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.gallery-grid { align-items: start; }
.gallery-grid img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.vn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.vn-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 27 / 13;
  background: var(--navy);
}
.vn-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-label {
  position: absolute; top: 16px; left: 16px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font: 600 13px/1 "Inter", sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(15,42,74,0.18);
}
.vn-label--after { background: var(--accent-soft); color: var(--white); }
@media (max-width: 900px) {
  .vn-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Über uns */
.ueberuns .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.quote-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 24px;
}
.quote-card p { font-size: 18px; font-family: "Playfair Display", Georgia, serif; font-style: italic; margin: 0; line-height: 1.5; }
.feature-list { display: grid; gap: 20px; }
.feature-list .item { display: flex; gap: 14px; }
.feature-list .icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--bg-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.feature-list .icon svg { width: 19px; height: 19px; }
.feature-list h3 { font-size: 15px; font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: 14px; color: var(--text-muted); }
.ueberuns-body h3 { font-size: 15px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; font-family: "Inter", sans-serif; font-weight: 700; }
.ueberuns-body h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.ueberuns-body p { color: var(--text-muted); margin-bottom: 16px; }

/* Kontakt */
.kontakt .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.kontakt-side {
  display: grid; gap: 16px;
}
.side-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px;
}
.side-card h3 { font-size: 17px; margin-bottom: 6px; }
.side-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.side-card.navy { background: var(--navy); color: var(--white); border: none; }
.side-card.navy p { color: rgba(255,255,255,0.75); }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; color: var(--text-muted); }

.kontakt-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent);
}
.consent { font-size: 13px; color: var(--text-muted); margin: 16px 0 0; }
.consent a { color: var(--accent); }
.honeypot { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding: 64px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 52px; width: 52px; }
.footer-brand span { font-family: "Playfair Display", Georgia, serif; font-size: 17px; color: var(--white); }
.site-footer p { font-size: 14px; color: rgba(255,255,255,0.65); max-width: 32ch; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 14px; font-family: "Inter", sans-serif; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width); margin: 48px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}

/* Simple legal pages */
.legal-page { padding: 64px 0 96px; }
.legal-page .back-link { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--accent); text-decoration: none; }
.legal-page h1 { font-size: 34px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; margin: 36px 0 12px; }
.legal-page p { max-width: 70ch; color: var(--text); }
.legal-page a { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero .wrap, .ueberuns .wrap, .kontakt .wrap { grid-template-columns: 1fr; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .zielgruppen-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero .wrap > div:first-child { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero .review-badge { margin-left: auto; margin-right: auto; }
  .trust-line { justify-content: center; }

  /* Desktop section padding (88-96px) leaves huge dead space on a short
     mobile viewport - tighten the whole vertical rhythm down. */
  .hero { padding: 48px 0 40px; }
  .hero .wrap { gap: 36px; }
  .hero-cards { gap: 14px; }
  section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  .ueberuns .wrap { gap: 36px; }
  .ueberuns .wrap > div:first-child { margin-bottom: 4px; }

  .mini-card { padding: 22px 18px; }
}

@media (max-width: 560px) {
  /* "Gebäudereinigung" etc. need more room than a 2-up grid gives on a
     phone - stack the small cards instead of shrinking/hyphenating text. */
  .hero-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand-tag { font-size: 10px; }
  .review-badge { font-size: 13px; padding: 8px 14px 8px 12px; }
  .review-badge .stars svg { width: 13px; height: 13px; }
  .trust-line { font-size: 13px; gap: 12px 18px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero h1 { font-size: 30px; }
}
