/* =========================================================
   Schlüsseldienst – Landingpage (Google Ads, Mobile First)
   Aufbau: 1) Variablen 2) Reset/Basis 3) Layout/Container
   4) Buttons 5) Header 6) Hero 7) Trustbar 8) Sections
   9) Cards 10) Steps 11) Why 12) FAQ 13) Final CTA
   14) Footer 15) Sticky Call Bar 16) Responsive
   ========================================================= */

/* ---------- 1) Variablen ---------- */
:root {
  --c-navy: #0b2545;
  --c-navy-700: #13315c;
  --c-accent: #ff7a00;      /* Signalfarbe für CTA – hoher Kontrast = höhere CTR */
  --c-accent-700: #e96d00;
  --c-green: #1f9d55;
  --c-text: #1d2733;
  --c-muted: #5b6b7b;
  --c-line: #e4e9ef;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f7fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .10);
  --shadow-sm: 0 4px 14px rgba(11, 37, 69, .08);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2) Reset / Basis ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* Platz für die fixe Call-Bar auf dem Handy */
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }

/* ---------- 3) Layout / Container ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__title { font-size: clamp(26px, 5vw, 38px); color: var(--c-navy); }
.section__lead { margin-top: 12px; color: var(--c-muted); font-size: 18px; }
.section__more { text-align: center; color: var(--c-muted); margin-top: 28px; font-size: 16px; }
.section__cta { text-align: center; margin-top: 28px; }

/* ---------- 4) Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(255,122,0,.35); }
.btn--primary:hover { background: var(--c-accent-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--c-navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); }

/* ---------- 5) Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-navy); font-weight: 800; font-size: 20px; }
.brand__icon { color: var(--c-accent); display: inline-flex; }
.brand__text span { color: var(--c-accent); }
.header__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy); }
.header__phone-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.header__phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone-text small { color: var(--c-green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.header__phone-text strong { font-size: 18px; }

/* ---------- 6) Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255,122,0,.18), transparent 60%),
    linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-700) 100%);
  color: #fff; padding: 56px 0 64px; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(40px, 8vw, 68px); margin: 14px 0 16px; }
.hero__subtitle { font-size: clamp(17px, 2.4vw, 20px); color: #d7e0ec; max-width: 600px; }
.hero__subtitle strong { color: #fff; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 28px; }
.hero__points li { position: relative; padding-left: 26px; color: #eaf0f7; font-weight: 600; font-size: 15px; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 18px; font-size: 14px; color: #aebccd; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 rgba(31,157,85,.7); }
.badge--pulse .dot { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,85,.7); }
  70% { box-shadow: 0 0 0 10px rgba(31,157,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}

/* ---------- Fotos ---------- */
.media-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  display: block; background: var(--c-bg-alt);
}
.media-img--hero { aspect-ratio: 6 / 5; box-shadow: var(--shadow); }

/* Bewertungs-Badge über dem Hero-Foto */
.hero__media { position: relative; }
.rating-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 9px 15px; border-radius: 14px;
  box-shadow: 0 12px 28px rgba(11,37,69,.30), 0 2px 6px rgba(11,37,69,.18);
}
.rating-badge__score {
  font-size: 28px; font-weight: 800; color: var(--c-navy); line-height: 1;
  letter-spacing: -.01em;
}
.rating-badge__meta { display: flex; flex-direction: column; line-height: 1.2; }
.rating-badge__stars { color: #ffb400; font-size: 15px; letter-spacing: 2px; }
.rating-badge__meta small { color: var(--c-muted); font-size: 12px; font-weight: 700; }
.media-img--why { aspect-ratio: 6 / 5; box-shadow: var(--shadow-sm); }
.media-img--article { aspect-ratio: 6 / 5; box-shadow: var(--shadow-sm); }

/* ---------- 7) Trustbar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--c-line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.trust { display: flex; align-items: center; gap: 14px; }
.trust__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: rgba(255,122,0,.12); color: var(--c-accent-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust strong { display: block; color: var(--c-navy); font-size: 16px; }
.trust span { color: var(--c-muted); font-size: 13px; }

/* ---------- 9) Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7dee7; }
.card:hover .card__img { transform: scale(1.04); }
.card__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  background: var(--c-bg-alt); transition: transform .4s ease;
}
.card__title { font-size: 20px; color: var(--c-navy); margin: 20px 24px 8px; }
.card p { color: var(--c-muted); font-size: 15.5px; margin: 0 24px 24px; }

/* ---------- 10) Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--c-accent); color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step__title { color: var(--c-navy); font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: 15.5px; }

/* ---------- 11) Why ---------- */
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.why__list { margin-top: 22px; display: grid; gap: 18px; }
.why__list li { position: relative; padding-left: 38px; }
.why__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.why__list strong { display: block; color: var(--c-navy); font-size: 17px; }
.why__list span { color: var(--c-muted); font-size: 15px; }

/* ---------- 11b) Artikel-Blöcke (Ratgeber) ---------- */
.article {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.article + .article { margin-top: 56px; }
.article--reverse .article__media { order: 2; }   /* Bild nach rechts */
.article__title { font-size: clamp(23px, 3.4vw, 30px); color: var(--c-navy); margin-bottom: 14px; }
.article__content p { color: var(--c-muted); margin-bottom: 14px; font-size: 16.5px; }
.article__content p strong { color: var(--c-text); }
.article__content .btn { margin-top: 6px; }

/* ---------- 12) FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--c-navy); font-size: 16.5px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--c-accent); font-weight: 400; transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--c-muted); padding: 0 0 18px; font-size: 15.5px; }

/* ---------- 13) Final CTA ---------- */
.cta-final {
  background:
    radial-gradient(800px 300px at 50% 120%, rgba(255,122,0,.22), transparent 60%),
    linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-700) 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-final h2 { font-size: clamp(26px, 5vw, 38px); }
.cta-final p { color: #d7e0ec; margin: 12px 0 28px; font-size: 18px; }

/* ---------- 14) Footer ---------- */
.site-footer { background: #081a31; color: #b9c6d6; padding: 28px 0; }
.site-footer__inner { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.site-footer__brand { font-weight: 700; color: #fff; }
.site-footer__note a { color: var(--c-accent); font-weight: 700; }

/* ---------- 15) Floating Call Button (Mobile) ---------- */
.callbar {
  position: fixed; z-index: 50;
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));   /* Abstand zum Home-Indicator (iPhone) */
  display: none; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff9128 0%, #ff7a00 55%, #ef6f00 100%);
  color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,110,0,.45), 0 3px 10px rgba(11,37,69,.25);
  transition: transform .26s ease, opacity .26s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.callbar__icon {
  position: relative;
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
}
.callbar__icon::before {
  content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55); animation: ring 2s infinite;
}
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.callbar__text { display: flex; flex-direction: column; line-height: 1.2; }
.callbar__text strong { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.callbar__text small { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.92); }
/* Druck-Feedback ohne transform (transform wird per Klasse fürs Ein-/Ausblenden genutzt) */
.callbar:active { box-shadow: 0 6px 16px rgba(255,110,0,.4); filter: brightness(.95); }
/* Ein-/Ausblenden (per JS-Klasse), sauber unter den Bildschirm geschoben */
.callbar--hidden { transform: translateY(180%); opacity: 0; pointer-events: none; }

/* ---------- 16) Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__inner { grid-template-columns: 1fr; gap: 28px; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  /* Artikel gestapelt, Bild immer oben */
  .article { grid-template-columns: 1fr; gap: 24px; }
  .article--reverse .article__media { order: -1; }
  .article + .article { margin-top: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  /* Telefonnummer im Header auf kleinen Screens kompakter */
  .header__phone-text { display: none; }
  .header__phone-icon { width: 44px; height: 44px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  /* Auf dem Handy nur Icon + Nummer (Label "Jetzt anrufen:" ausblenden) */
  .btn__label { display: none; }
  /* Vertrauens-Leiste auf dem Handy einspaltig – mehr Luft, kein gedrängter Umbruch */
  .trustbar__grid { grid-template-columns: 1fr; gap: 16px; }
  .trust { gap: 16px; }

  /* Floating Call Button nur auf dem Handy zeigen */
  .callbar { display: flex; }
  /* Platz unten, damit der Button nichts überdeckt (Button + Abstand + Safe-Area) */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Hero-Foto randlos über die volle Bildschirmbreite (full-bleed) */
  .hero__media {
    margin-left: -20px;            /* Container-Padding aufheben */
    margin-right: -20px;
    width: calc(100% + 40px);
    margin-top: -56px;             /* bündig an die Kopfzeile */
    margin-bottom: 28px;
  }
  .media-img--hero {
    border-radius: 0;              /* keine runden Ecken an den Rändern */
    box-shadow: none;
    aspect-ratio: 4 / 3;
  }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bild-Platzhalter (bis echte Fotos eingefügt werden) ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e6ebf2 12px, #e6ebf2 24px);
  border: 2px dashed #b9c5d3; border-radius: var(--radius);
  color: #7c8a9a; text-align: center; padding: 18px; width: 100%;
}
.ph span { font-weight: 800; letter-spacing: .06em; font-size: 12px; }
.ph small { font-size: 11px; line-height: 1.4; }
.ph--hero { aspect-ratio: 6 / 5; box-shadow: var(--shadow); }
.ph--why { aspect-ratio: 6 / 5; }
.ph--article { aspect-ratio: 6 / 5; box-shadow: var(--shadow-sm); }
.ph--card { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 2px 0; }
