/*
 * custom.css – Ergänzungen zum Knight-Template (style.css bleibt unverändert)
 * Pfad: assets/css/custom.css  (wird in index.html NACH style.css geladen)
 * Inhalt: einheitliche Zentrierung, Buttons/Badges im Template-Grün, Überschriften-Hierarchie (h3),
 *         Galerie-Lightbox-Klick, mobile Kontakt-Leiste, Fokus-Rahmen, Scroll-Verhalten.
 */
  /* ---- Zusätze zum Knight-Template (style.css bleibt unverändert) ---- */
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  /* Open Sans ist nicht lokal eingebunden: sauberer Fallback statt Google Fonts */
  body { font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
  a:focus-visible, button:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }

  /* Hero: Tagline als <p> mit den Werten des Template-h2 */
  #hero .hero-tagline { color: #adadad; margin-bottom: 30px; font-size: 14px; font-weight: 400; text-transform: uppercase; font-family: "Montserrat", sans-serif; }

  /* Buttons außerhalb des Hero im Template-Stil (Knight definiert .btn-get-started nur im Hero) */
  .btn-brand { display: inline-block; margin: 6px; padding: 12px 28px; border: 2px solid #7cc576; border-radius: 3px; background: #7cc576; color: #fff; font-family: "Montserrat", sans-serif; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; transition: .4s; }
  .btn-brand:hover { background: #fff; color: #7cc576; }
  .badge-brand { background: #7cc576; color: #fff; }
  .faq-chip { background: #7cc576; color: #fff !important; text-decoration: none; }
  .faq-chip:hover { background: #151515; }

  /* Überschriften-Hierarchie: h3 statt h4 mit den Werten des Templates */
  .team .member .member-info h3 { font-weight: 700; margin: 15px 0 5px 0; font-size: 18px; }
  .why-us .content h2 { font-weight: 400; font-size: 34px; }
  .why-us .content h3.faq-group-title { font-size: 20px; font-weight: 700; margin-top: 5px; }
  .why-us .content.faq-group { padding-top: 0; padding-bottom: 15px; }
  .why-us .accordion-list { padding-bottom: 30px; }

  /* Alle Sections einheitlich mittig */
  main section, #testimonials { text-align: center; }
  main section ul:not(.list-group):not(.nav) { list-style: none; padding-left: 0; }
  main .list-group-item, main .card-header, main .card-footer { text-align: center; }
  main .list-group-item.d-flex { flex-direction: column; gap: .35rem; align-items: center !important; }
  .why-us .accordion-list a { padding-left: 30px; }
  .services .icon-box i { float: none; display: block; margin-bottom: 8px; }
  .services .icon-box h3 { font-size: 20px; font-weight: 700; margin: 5px 0 10px 0; }
  .services .icon-box p { margin-left: 0; }
  .contact .info { text-align: center; }
  .contact .info i { float: none; margin: 0 auto 10px auto; }
  .contact .info h3 { padding: 0; font-size: 22px; font-weight: 600; margin-bottom: 5px; color: #151515; }
  .contact .info p { padding: 0; }
  .contact .php-email-form { text-align: left; }
  .coverup .section-title h2 a { color: inherit; }
  .coverup .section-title h2 a:hover { color: #7cc576; }
  figure { margin: 0 0 1.5rem; }

  /* Galerie: Bild ist der Link und liegt über dem Hover-Overlay des Templates */
  .portfolio-wrap > a { display: block; position: relative; z-index: 5; cursor: zoom-in; }
  .portfolio-wrap > a img { transition: transform .4s; }
  .portfolio-wrap:hover > a img { transform: scale(1.05); }

  /* Mobile Anfrage-Leiste */
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 995; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
  @media (max-width: 991.98px) { body { padding-bottom: 4.5rem; } .back-to-top { bottom: 80px !important; } }

/* =====================================================================
   Einheitliches Layout-System (ein Raster für alle Sections)
   - Raster/Karten laufen immer über die volle Container-Breite
   - Fließtext, einzelne Bilder und einzelne Karten: max. 760 px, zentriert
   - FAQ: max. 900 px, zentriert
   ===================================================================== */
:root { --text-w: 760px; --wide-w: 900px; }

.section-intro   { max-width: var(--text-w); margin: 0 auto 2.5rem; }
.content-narrow  { max-width: var(--text-w); margin-left: auto; margin-right: auto; }
.content-wide    { max-width: var(--wide-w); margin-left: auto; margin-right: auto; }
.section-grid    { margin-top: 2.5rem; }
.section-cta     { margin: 2.5rem 0 0; }
.section-intro > :last-child, .content-narrow > p:last-child { margin-bottom: 0; }
.section-title p { max-width: var(--text-w); margin-left: auto; margin-right: auto; }
.lead { font-size: 1.125rem; font-weight: 400; }

/* Einzelbilder: immer gleich gerahmt und zentriert */
.media-block { margin: 0 auto 1.5rem; max-width: 100%; }
.media-block img { display: block; margin: 0 auto; max-width: 100%; height: auto; max-height: 480px; border-radius: 6px; }

/* Karten und Bildkacheln: gleiche Höhe, gleiche Proportionen */
.team .member { margin-bottom: 0; }
.team .member .member-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-wrap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.portfolio .portfolio-item { margin-bottom: 0; }
.card { border-radius: 6px; }
.services .icon-box { width: 100%; padding: 28px 24px; background: #fff; border-radius: 6px; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }

/* FAQ im Container statt randlos */
.why-us { padding: 60px 0; }
.why-us .content, .why-us .content.faq-group { padding: 0 0 15px; }
.why-us .accordion-list { padding: 0 0 40px; }
.why-us .accordion-list p { max-width: 68ch; margin-left: auto; margin-right: auto; }
.faq-nav { text-align: center; }
.video-banner { min-height: 320px; border-radius: 6px; margin-bottom: 0; }

/* Formular: Zustimmung mittig ausgerichtet */
.php-email-form .form-check { display: flex; justify-content: center; align-items: flex-start; gap: .5rem; padding-left: 0; text-align: left; }
.php-email-form .form-check-input { float: none; margin: .25rem 0 0; flex: none; }

@media (max-width: 575.98px) {
  .section-intro { margin-bottom: 2rem; }
  .video-banner { min-height: 220px; }
}
