/* ================================================================
   SECTIONS – Ergänzungen & Verbesserungen (nutzt die bestehenden
   Variablen aus global.css; keine neuen Farben)
   ================================================================ */

/* ---------- Basis / Barrierefreiheit ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
h1, h2, h3, p, li { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.hero-slider :focus-visible, .section--dark :focus-visible, .footer :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.skip-link:focus { top: 8px; }
.section-badge { color: var(--teal-dark); }
.section--dark .section-badge, .section-badge--light { color: var(--teal); }
.nav__link.is-current { color: var(--teal-dark); }
.logo { min-width: 0; }

/* ---------- Hero ---------- */
.hero__title { font-size: clamp(32px, 5vw, 54px); }
.hero__lead { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; color: #fff; margin-bottom: 12px; }
.hero__sub { margin-bottom: 30px; }

/* ---------- Leistungen ---------- */
.services-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid--4 .service-card { display: flex; flex-direction: column; }
.services-grid--4 .service-card__img-wrap { height: 170px; }
.services-grid--4 .service-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.services-grid--4 .service-card__title { font-size: 18px; }
.service-card__link { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.service-card__link:hover { text-decoration: underline; }

/* ---------- Gemeinsame Foto-Rahmen ---------- */
.photo-frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--light-bg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(8,21,41,.86); color: #fff; font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-sm); }

/* ---------- C: Typische Probleme ---------- */
.problem-layout { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.problem-layout .photo-frame { aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h) + 24px); }
.problem-layout .photo-frame img { object-position: 62% 52%; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.problem-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px 18px; display: flex; gap: 14px; align-items: flex-start; transition: box-shadow .2s, border-color .2s; }
.problem-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.problem-card__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.problem-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.problem-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.problem-foot p { font-size: 14px; color: var(--text-muted); flex: 1 1 260px; }

/* ---------- D: Schlosswechsel & Zylindertausch ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo-frame { aspect-ratio: 4 / 3; }
.split .photo-frame img { object-position: 60% 60%; }
.split__intro { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.compare__item { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius-md); padding: 14px 16px; }
.compare__item h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 5px; }
.compare__item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.check-list { display: grid; gap: 9px; margin-bottom: 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.check-list svg { flex: 0 0 18px; margin-top: 3px; color: var(--teal-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-size: 13px; font-weight: 500; color: var(--navy); background: var(--teal-light); border: 1px solid rgba(35,159,154,.3); border-radius: 40px; padding: 5px 12px; }
.note-small { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

/* ---------- E: Schlossmechanik ---------- */
.mech-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 36px; }
.mech-top .photo-frame { aspect-ratio: 5 / 4; }
.mech-top .photo-frame img { object-position: 50% 45%; }
.mech-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.mech-point { background: var(--light-bg); border-radius: var(--radius-md); padding: 20px 20px 22px; }
.mech-point__num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.mech-point h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.mech-point p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.security-panel { background: var(--navy); color: #fff; border-radius: var(--radius-xl); padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; }
.security-panel h3 { font-size: 20px; margin-bottom: 8px; }
.security-panel p { font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.65; max-width: 640px; }

/* ---------- Ablauf / Preise / Vertrauen ---------- */
.step__title { font-size: 16px; }
.price-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 0 auto 24px; }
.price-extra { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 16px 18px; }
.price-extra h3 { font-size: 14.5px; color: #fff; margin-bottom: 6px; }
.price-extra p { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.55; }
.price-note a, .price-note { color: rgba(255,255,255,.7); }

/* ---------- FAQ (zugänglicher Akkordeon) ---------- */
.faq-item__q { font-size: inherit; font-weight: inherit; margin: 0; }
.faq-item__answer[hidden] { display: none; }
.faq-item__btn { min-height: 56px; }

/* ---------- Einsatzgebiet ---------- */
.area-groups { display: grid; gap: 26px; max-width: 900px; margin: 0 auto 24px; }
.area-group h3 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); text-align: center; margin-bottom: 12px; }
.area-group .city-tags { margin-bottom: 0; gap: 10px; }

/* ---------- Kontakt ---------- */
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 24px; }
.contact-quick a.mail { font-weight: 500; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.form-hint { display: block; margin-top: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.form-check label a { text-decoration: underline; }
.form-field input, .form-field textarea { min-height: 46px; }
.map-consent { height: 100%; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px; background: var(--teal-lighter); }
.map-consent p { font-size: 14px; color: var(--text-muted); max-width: 380px; line-height: 1.6; }
.map-consent a { text-decoration: underline; }
.contact-map.is-loaded .map-consent { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .services-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .problem-layout, .split, .mech-top { grid-template-columns: 1fr; gap: 28px; }
  .problem-layout .photo-frame { position: relative; top: 0; aspect-ratio: 4 / 3; max-height: 420px; }
  .problem-layout .photo-frame img { object-position: 60% 55%; }
  .mech-points, .price-extras { grid-template-columns: 1fr; }
  .mech-top .photo-frame { order: -1; }
  .security-panel { grid-template-columns: 1fr; }
  .price-row__label { white-space: normal; }
}
@media (max-width: 640px) {
  .services-grid--4, .problem-grid, .compare { grid-template-columns: 1fr; }
  .security-panel { padding: 22px 20px; }
  .security-panel .btn, .problem-foot .btn, .split .btn { width: 100%; justify-content: center; }
  .btn { white-space: normal; }
  .section-header { margin-bottom: 36px; }
  .map-consent { min-height: 300px; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .service-card:hover, .feature-card:hover, .review-card:hover, .social-card:hover, .float-btn:hover { transform: none; }
  .slider__slide .hero__badge, .slider__slide .hero__title, .slider__slide .hero__lead, .slider__slide .hero__sub, .slider__slide .hero__cta, .slider__slide .hero__badges { opacity: 1; transform: none; }
}

/* Footer-Überschriften sind jetzt h2 (vorher h4 ohne h2/h3 davor) */
.footer__links h2 { font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: .5px; margin-bottom: 18px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
