/*
 * Ergänzungen zur statischen Version.
 * base.css enthält das unveränderte Layout aus dem onpage-Export,
 * diese Datei ersetzt das, was vorher deren JavaScript-Laufzeit erledigt hat.
 */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------
 * Responsive Umschaltung
 * onpage lieferte je nach Gerät unterschiedliches HTML aus (Header + Hero).
 * Hier sind beide Varianten im Markup und werden per Media Query gewählt.
 * ------------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .con-kit-molecule-header-v2__atoms { display: none !important; }
}
@media (min-width: 992px) {
  .con-kit-molecule-header-v2-mobile-view,
  #burger-menu-panel { display: none !important; }
}
@media (max-width: 767.98px) {
  section.only-desktop { display: none !important; }
}
@media (min-width: 768px) {
  section.only-mobile { display: none !important; }
}

/* Listen und Kacheln auf dem Handy untereinander (vorher per Geräteklasse) */
@media (max-width: 767.98px) {
  .con-kit-atom-menu-v2--device-desktop:not(.con-kit-atom-menu-v2--in-header) ul { flex-direction: column; }
  .con-kit-atom-menu-v2--device-desktop:not(.con-kit-atom-menu-v2--in-header) ul li { margin-left: 0; }
  .con-kit-component-masonry { flex-direction: column; }
  .con-kit-component-masonry .con-kit-component-masonry__column { width: 100% !important; }
}

/* Überschriften waren bei onpage <div>s – als h1–h3 gleiche Optik behalten */
.con-kit-component-header > h1.con-kit-quark-paragraph,
.con-kit-component-header > h2.con-kit-quark-paragraph,
.con-kit-component-header > h3.con-kit-quark-paragraph { margin: 0; }

/* Listenpunkte ohne Link sind keine Buttons */
.con-kit-atom-menu-v2-item-inside.is-static { cursor: default; }

/* Burger-Menü */
#burger-menu-panel .con-kit-component-burger-menu__background { height: 100%; }

/* ---------------------------------------------------------------------------
 * Kontaktformular
 * ------------------------------------------------------------------------ */
.con-kit-component-checkbox__hidden-checkbox:checked + .con-kit-component-checkbox__styled-checkbox {
  background: rgba(var(--color-bg), 1);
  border-color: transparent;
  box-shadow: none;
}
.con-kit-component-checkbox__hidden-checkbox:checked + .con-kit-component-checkbox__styled-checkbox svg {
  visibility: visible;
  width: 80%;
  height: 80%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  max-width: 12px;
  max-height: 12px;
}
.con-kit-component-checkbox__hidden-checkbox:checked + .con-kit-component-checkbox__styled-checkbox svg path {
  fill: rgba(var(--color-text), 1);
}
.con-kit-component-checkbox__hidden-checkbox:focus-visible + .con-kit-component-checkbox__styled-checkbox {
  outline: 2px solid rgba(var(--color-border), 1);
  outline-offset: 2px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
}
/* data-ns-state setzt das SDK der Plattform (success|error), ebenso site.js ohne SDK */
.form-status[data-ns-state="success"] { background: #e7f4ec; color: #14532d; }
.form-status[data-ns-state="error"] { background: #fdecec; color: #7f1d1d; }
.form-status[data-ns-state="sending"] { background: #f2f2f2; color: #191919; }
.form-status a { color: inherit; text-decoration: underline; }

/* Fester Hinweis unter dem Formular (Telefon) */
.form-hint { margin: 16px 0 0; font-size: 16px; line-height: 1.5; }
.form-hint a { color: inherit; text-decoration: underline; }

button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Cloudflare Turnstile: nur Platz einnehmen, wenn wirklich eine Prüfung angezeigt wird */
.cf-turnstile { margin-bottom: 16px; }
.cf-turnstile:empty { display: none; }

/* ---------------------------------------------------------------------------
 * Kundenstimmen (Google-Bewertungs-Widget, googlewidget) – reserviert Platz,
 * damit das Nachladen beim Scrollen die Seite nicht springen lässt
 * ------------------------------------------------------------------------ */
.reviews-widget { display: block; width: 100%; min-height: 320px; }

/* ---------------------------------------------------------------------------
 * Nicht klickbare Listeneinträge (Leistungslisten) – kein Hover-Punkt
 * ------------------------------------------------------------------------ */
.con-kit-atom-menu-v2-item-inside.is-static .con-kit-atom-menu-v2-item-inside__decorator { display: none; }
.con-kit-atom-menu-v2-item-inside.is-static { cursor: default; }

/* ---------------------------------------------------------------------------
 * Impressum / Datenschutz aus legal/*.html (eRecht24, siehe scripts/apply-legal.mjs).
 * Steht auf dem blauen Seitenhintergrund – Farben werden geerbt (weiß).
 * ------------------------------------------------------------------------ */
.legal-text { width: 100%; text-align: left; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.legal-text h1, .legal-text h2, .legal-text h3, .legal-text h4 {
  font-family: var(--font-kit-header-font, inherit);
  font-weight: 600;
  color: inherit;
}
.legal-text h1 { margin: 0 0 24px; font-size: 32px; line-height: 1.2; }
.legal-text h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.3; }
.legal-text h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.35; }
.legal-text h4 { margin: 20px 0 6px; font-size: 16px; line-height: 1.4; }
.legal-text p, .legal-text ul, .legal-text ol { margin: 0 0 16px; }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.legal-text li { margin-bottom: 4px; }
.legal-text a { color: inherit; text-decoration: underline; }
.legal-text strong, .legal-text b { font-weight: 700; }

/* ---------------------------------------------------------------------------
 * Eigene Abschnitte (Einsatzgebiet, Text über den Kundenstimmen).
 * Werte aus den onpage-Abschnitten übernommen: Golos Text, Containerbreite
 * 1150px, Titel wie „Mein Angebot für Sie“, Karten wie dessen Kacheln.
 * ------------------------------------------------------------------------ */
.con-kit-component-header > p.con-kit-quark-paragraph { margin: 0; }

.site-section {
  width: 100%;
  padding: 100px 24px 40px;
  background: #fff;
  color: rgb(25, 25, 25);
  font-family: "Golos Text", sans-serif;
  letter-spacing: 0.2px;
}
.site-section__inner { max-width: 1150px; margin: 0 auto; }
.site-section__title {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.site-section__lead {
  margin: 24px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.einsatzgebiet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.einsatzgebiet__card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 16px;
  background: rgb(232, 239, 255);
}
.einsatzgebiet__card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.4px;
}
.einsatzgebiet__card p { margin: 0; font-size: 16.8px; line-height: 1.5; }
.einsatzgebiet__card--akzent { background: rgb(79, 108, 179); color: #fff; }
.einsatzgebiet__tel {
  align-self: flex-start;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #fff;
  color: rgb(25, 25, 25);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.einsatzgebiet__tel:hover { background: rgb(232, 239, 255); }

.kundenstimmen-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.kundenstimmen-intro p {
  margin: 0;
  font-family: "Golos Text", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: rgb(25, 25, 25);
}
.kundenstimmen-intro a, .site-section__lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 991.98px) {
  .einsatzgebiet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .site-section { padding: 64px 32px 48px; }
  .site-section__title { font-size: 28.7px; line-height: 1.4; }
  .site-section__lead, .kundenstimmen-intro p { font-size: 16px; }
  .einsatzgebiet__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .einsatzgebiet__card { padding: 28px; }
  .einsatzgebiet__card h3 { font-size: 20px; }
}
