/* MB Meisterbetrieb KFZ – simple static site */
:root {
  --navy: #0f2438;
  --navy-soft: #1b3a57;
  --accent: #e63b2e;
  --accent-dark: #c22c21;
  --bg: #ffffff;
  --bg-alt: #f2f5f8;
  --text: #22303c;
  --muted: #66788a;
  --star: #f5a623;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 36, 56, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 70px; width: auto; display: block; padding: 4px 0; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #dbe6f0; text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.main-nav a:hover { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 14px; border-radius: 8px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,36,56,0.18) 0%, rgba(15,36,56,0.10) 34%, rgba(15,36,56,0.68) 70%, rgba(15,36,56,0.92) 100%);
}
.hero-content { position: relative; color: #fff; padding: 40px 20px 56px; text-shadow: 0 2px 12px rgba(15,36,56,0.55); }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: #ffb4ad; font-weight: 700; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 16px; }
.hero-sub { max-width: 540px; font-size: 1.1rem; color: #e3ecf4; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; color: #cfe0ee; font-weight: 600; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--navy); margin-bottom: 28px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid #e6ecf1;
}
.card-icon { font-size: 1.5rem; line-height: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 8px; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Service tiles (Pitstop-Stil) */
.service-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid #e6ecf1; border-radius: 16px;
  padding: 44px 28px 34px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,36,56,0.16); border-color: #d5dee6; }
.tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 104px; height: 104px; border-radius: 50%;
  background: #fdecea; color: var(--accent); margin-bottom: 22px;
  transition: background 0.18s ease;
}
.service-tile:hover .tile-icon { background: var(--accent); color: #fff; }
.tile-icon svg { width: 54px; height: 54px; }
.service-tile h3 { color: var(--navy); font-size: 1.32rem; margin-bottom: 12px; }
.service-tile p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; margin-top: 16px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img {
  border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Testimonials */
.rating-strip {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  background: #fff; border: 1px solid #e6ecf1; border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow); width: fit-content;
}
.rating-score { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.1rem; }
.rating-count { color: var(--muted); font-weight: 600; }
.testimonial p { color: var(--text); font-size: 0.97rem; margin: 10px 0 14px; }
.testimonial-author { color: var(--muted); font-weight: 700; font-size: 0.92rem; }

/* Anfrage form */
.form-intro { max-width: 640px; color: var(--muted); margin-bottom: 26px; }
.anfrage-form { background: #fff; border: 1px solid #e6ecf1; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 860px; }
.anfrage-form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.anfrage-form fieldset + fieldset { border-top: 1px solid #edf1f5; padding-top: 26px; }
.anfrage-form legend { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.08rem; padding: 0; margin-bottom: 16px; }
.step-nr { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 800; flex: none; }
.label-hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.form-grid label[hidden] { display: none; }
.form-grid .form-full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-weight: 400; color: var(--text);
  border: 1.5px solid #d4dee6; border-radius: 9px; padding: 11px 12px; background: #fbfcfd;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--navy-soft); background: #fff;
}
.field-pair { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ez-pair { grid-template-columns: 1fr 1fr; }
.rating-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: -8px 0 28px; }
.rating-actions[hidden] { display: none; }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .btn { border: none; cursor: pointer; font: inherit; font-weight: 700; }
.btn-outline { border: 2px solid var(--navy) !important; color: var(--navy); background: transparent; padding: 11px 24px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; transform: translateY(-1px); }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.form-note { margin-top: 14px; }

/* Contact */
.contact-block { margin-top: 20px; }
.contact-block p { margin-bottom: 14px; }
.contact-block a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; margin: 12px 0 14px; }
.hours td { padding: 10px 4px; border-bottom: 1px solid #e0e7ee; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.contact-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 18px; }
.muted { color: var(--muted); font-size: 0.92rem; }

/* Map embed (Zwei-Klick Google Maps) */
.map-embed { margin-top: 18px; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-alt); border: 1px solid #dde5ec; border-radius: 12px;
  padding: 46px 22px; text-align: center; color: var(--navy);
}
.map-pin { font-size: 2.2rem; line-height: 1; }
.map-hint { font-size: 0.8rem; }

/* Floating WhatsApp button */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3); transition: transform 0.15s ease, background 0.15s ease;
}
.wa-fab:hover { background: #1da851; transform: scale(1.06); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 90;
  width: min(330px, calc(100vw - 44px));
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(15,36,56,0.30); border: 1px solid #e0e8ef;
}
.wa-panel[hidden] { display: none; }
.wa-panel-head { background: #075e54; color: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.wa-panel-head span { font-size: 0.78rem; opacity: 0.85; }
.wa-panel-body { padding: 16px 18px 18px; background: #ece5dd; }
.wa-bubble {
  background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 14px;
  font-size: 0.92rem; color: var(--text); margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.wa-panel-cta { width: 100%; justify-content: center; margin-top: 6px; padding: 12px 18px; font-size: 0.98rem; }

/* Legal pages */
.legal h1 { color: var(--navy); margin: 30px 0 18px; font-size: 1.8rem; }
.legal h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal p { margin-bottom: 10px; }
.legal a { color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--navy); color: #cfe0ee; padding: 26px 0; margin-top: 20px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row > div { display: flex; align-items: center; gap: 14px; }
.site-footer .brand-logo { height: 56px; }
.footer-info { line-height: 1.65; font-size: 0.94rem; }
.footer-info strong { color: #fff; }
.footer-contact { display: block; margin-top: 10px; }
.footer-copy { display: block; margin-top: 10px; font-size: 0.88rem; color: #9fb6cb; }
.site-footer a { color: #cfe0ee; text-decoration: none; margin-left: 18px; font-weight: 600; }
.footer-info a { margin-left: 0; }
.footer-info a:hover { text-decoration: underline; }
.site-footer a:hover { color: #fff; }

@media (max-width: 1000px) and (min-width: 801px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 18px 20px; gap: 16px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: 1fr; gap: 18px; }
  .service-tile { padding: 34px 24px 28px; }
  .hero { min-height: 92vh; background: var(--navy); }
  .hero-bg { bottom: auto; height: auto; }
  .hero-bg img { width: 100%; height: auto; object-fit: unset; object-position: center top; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(15,36,56,0.0) 0%, rgba(15,36,56,0.0) 30%, rgba(15,36,56,0.45) 46%, rgba(15,36,56,0.92) 56%, #0f2438 63%); }
  .hero-content { padding-bottom: 44px; }
  .hero h1 { font-size: 2rem; margin-bottom: 12px; }
  .hero-sub { font-size: 1rem; margin-bottom: 20px; }
  .hero-actions { margin-bottom: 22px; }
}
