/* ------------------------------------------------------------------
   strack.css – Ergaenzungen zum bestehenden Design (assets/bundle.css).
   Verwendet ausschliesslich die vorhandenen Design-Tokens:
   Text #2D2D2D · Sekundaer #7A7A7A · H2 #6D6D6D · Akzent #2E3094 (Logo-Blau)
   Flaeche #FFF · Linie #d9d9d9 · Schrift Arial
   ------------------------------------------------------------------ */

:root {
  --st-text: #2D2D2D;
  --st-muted: #7A7A7A;
  --st-h2: #6D6D6D;
  /* Akzent = das Blau aus dem Wortbildmarken-Zusatz "KOMMUNIKATION &
     SICHERHEIT" im Logo. Aus assets/logo.png ausgemessen: rgb(46,48,148).
     Kontrastverhaeltnis auf Weiss 10,7:1 – erfuellt WCAG AAA. */
  --st-accent: #2E3094;
  --st-accent-hell: #4346D7;
  --st-line: #d9d9d9;
  --st-flaeche: #fafafa;
}

/* Das Original-Stylesheet setzt fuer Link-Hover ein Tuerkis (#05cbff),
   das nicht zum Logo passt. Hier auf das Logo-Blau gezogen. */
#content a:not(.button):not(.fancybox):not(.zpnolayoutlinkstyles):hover,
#content #breadcrumb a:hover,
#afterfooter a:hover,
#xmenu a:hover,
#banner a:not(.fancybox):not(.zpnolayoutlinkstyles):hover,
#slider a:hover {
  color: var(--st-accent);
}

/* --- Sprungmarke fuer Tastatur / Screenreader --------------------- */
.st-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--st-text); padding: .75em 1.25em;
  border: 1px solid var(--st-muted);
}
.st-skip:focus { left: 0; }

/* --- Lead / Einleitungstext --------------------------------------- */
#content .st-lead {
  font-size: 1.15em; line-height: 1.6; color: var(--st-text);
  margin-bottom: 1em;
}

/* --- Kennzahlen / Fakten-Zeile ------------------------------------ */
.st-fakten {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--st-line); border: 1px solid var(--st-line);
  margin: 0 0 1.5em 0;
}
.st-fakten > div {
  flex: 1 1 150px; background: #fff; padding: 1.1em 1em; text-align: center;
}
.st-fakten strong {
  display: block; font-size: 1.6em; font-weight: lighter;
  color: var(--st-text); line-height: 1.2; margin-bottom: .15em;
}
.st-fakten span { font-size: .85em; color: var(--st-muted); }

/* --- Karten (Stellen, Leistungen, Blog) --------------------------- */
.st-karten { display: flex; flex-wrap: wrap; gap: 1.5em; margin-bottom: 1em; }
.st-karte {
  flex: 1 1 260px; border: 1px solid var(--st-line); background: #fff;
  padding: 1.5em; box-sizing: border-box; display: flex; flex-direction: column;
}
.st-karte h3 { margin-bottom: .35em; }
#content .st-karte p { color: var(--st-text); }
.st-karte .st-meta {
  font-size: .85em; color: var(--st-muted); margin-bottom: .75em;
  text-transform: uppercase; letter-spacing: .08em;
}
.st-karte .st-karte-fuss { margin-top: auto; padding-top: 1em; }
.st-karte a.button { margin-bottom: 0 !important; }

/* --- Merkmalsliste mit Haken --------------------------------------- */
#content ul.st-haken { list-style: none; margin: 0 0 1em 0; padding: 0; }
#content ul.st-haken li {
  position: relative; padding-left: 1.6em; margin-bottom: .45em;
}
#content ul.st-haken li::before {
  content: "\2014"; position: absolute; left: 0; top: 0;
  color: var(--st-accent); font-weight: bold;
}

/* --- Definitionsliste / Infobox ------------------------------------ */
.st-infobox {
  border: 1px solid var(--st-line); background: var(--st-flaeche);
  padding: 1.25em 1.5em; margin-bottom: 1em;
}
.st-infobox h3 { margin-bottom: .6em; }
.st-kvlist { margin: 0; }
.st-kv {
  display: flex; flex-wrap: wrap; gap: .5em 1em;
  padding: .45em 0; border-bottom: 1px solid var(--st-line);
}
.st-kv:last-child { border-bottom: 0; }
.st-kv dt { flex: 0 0 11em; color: var(--st-muted); }
.st-kv dd { flex: 1 1 14em; margin: 0; color: var(--st-text); }

/* --- FAQ ------------------------------------------------------------ */
details.st-faq {
  border-bottom: 1px solid var(--st-line); padding: .85em 0;
}
details.st-faq summary {
  cursor: pointer; font-weight: bold; color: var(--st-text);
  list-style: none; position: relative; padding-right: 2em;
}
details.st-faq summary::-webkit-details-marker { display: none; }
details.st-faq summary::after {
  content: "+"; position: absolute; right: .25em; top: -.1em;
  font-size: 1.4em; font-weight: lighter; color: var(--st-accent);
}
details.st-faq[open] summary::after { content: "\2013"; }
details.st-faq summary:hover { color: var(--st-accent); }
.st-faq-a { padding-top: .6em; color: var(--st-text); }
.st-faq-a p:last-child { margin-bottom: 0; }

/* --- Zitat / Stimme aus dem Team ------------------------------------ */
.st-zitat {
  border-left: 4px solid var(--st-accent); padding: .5em 0 .5em 1.5em;
  margin: 0 0 1em 0; font-style: italic; color: var(--st-text);
}
.st-zitat cite { display: block; font-style: normal; font-size: .9em;
  color: var(--st-muted); margin-top: .5em; }

/* --- Hinweis-/Statusleiste (intern, Test) ---------------------------- */
.st-hinweis {
  border: 1px solid var(--st-muted); background: var(--st-flaeche);
  padding: 1em 1.25em; margin-bottom: 1.5em; font-size: .95em;
}
.st-hinweis strong { color: var(--st-text); }

/* --- Blog ------------------------------------------------------------ */
.st-beitrag { border-bottom: 1px solid var(--st-line); padding: 1.5em 0; }
.st-beitrag:first-of-type { padding-top: 0; }
.st-beitrag h3 { margin-bottom: .25em; }
.st-beitrag .st-meta {
  font-size: .85em; color: var(--st-muted); margin-bottom: .6em;
  text-transform: uppercase; letter-spacing: .08em;
}
#content .st-beitrag p { color: var(--st-text); }

/* --- Landingpage (Instagram-Kampagnen) ------------------------------- */
body.st-landing #nav { display: none; }
body.st-landing #slider { display: none; }
body.st-landing #header #webdescription { padding: 1.25em 2em; }
.st-lp-hero {
  border: 1px solid var(--st-line); padding: 2em; margin-bottom: 1.5em;
  background: var(--st-flaeche);
}
.st-lp-hero h1 { margin-bottom: .35em; }
.st-lp-cta { margin-top: 1.5em; }
#content .st-lp-cta a.button {
  font-size: 1.1em; height: auto !important; line-height: 2.6 !important;
  padding: 0 2em !important;
}

/* --- Formular-Feinschliff ------------------------------------------- */
#content .zp-form .st-pflicht { font-size: .85em; color: var(--st-muted); }

/* --- Tabellen -------------------------------------------------------- */
#content table.st-tabelle { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
#content table.st-tabelle th,
#content table.st-tabelle td {
  border: 1px solid var(--st-line); padding: .6em .8em; text-align: left;
  vertical-align: top;
}
#content table.st-tabelle th { background: var(--st-flaeche); color: var(--st-muted); font-weight: normal; }

/* --- Mobil ----------------------------------------------------------- */
@media screen and (max-width: 860px) {
  /* Banner: Text muss auch auf schmalen Schirmen hineinpassen.
     Das Original rechnet mit fester Hoehe von 21,8 % der Breite –
     das reicht auf dem Telefon nicht fuer zwei Zeilen. */
  #slider .flex-container { height: auto !important; padding-bottom: 0 !important; }
  #slider .slides > li { position: relative; min-height: 8em; }
  #slider .slides > li img { display: none; }
  #slider .flex-caption {
    position: static; transform: none; width: auto;
    max-height: none; padding: 1.75em 1em;
  }
  #slider { font-size: 1.15em; }
  #slider .flex-direction-nav { display: none; }
}

@media screen and (max-width: 640px) {
  /* Lange Komposita wie "Sicherheitstechnik" duerfen nicht mitten im Wort
     umbrechen – die Schrift skaliert stattdessen mit der Schirmbreite. */
  #content h1 { font-size: clamp(1.3rem, 6vw, 2.5em) !important; hyphens: manual; }
  #content h2 { font-size: clamp(1.15rem, 5vw, 2em) !important; hyphens: manual; }
  #content h3 { hyphens: manual; }
  body #header #webdescription #webtext #webname {
    font-size: clamp(1rem, 4.6vw, 2.5em) !important;
  }
  body #header #webdescription { padding: 1.25em 1em !important; }
  .st-karten { gap: 1em; }
  .st-karte { flex: 1 1 100%; padding: 1.25em; }
  .st-kv dt { flex: 1 1 100%; }
  .st-fakten > div { flex: 1 1 45%; padding: .9em .5em; }
  .st-lp-hero { padding: 1.25em; }
}

/* --- Druck ------------------------------------------------------------ */
@media print {
  details.st-faq { border: 0; }
  details.st-faq .st-faq-a { display: block !important; }
  .st-karte { border: 1px solid #999; }
}

/* --- Hauptaktion: nutzt die im Original bereits definierte Primaerfarbe --- */
#content a.button.primary,
#content input.button.primary {
  background-color: var(--st-accent) !important;
  border: 1px solid var(--st-accent) !important;
  color: #fff !important;
  font-weight: bold;
}
#content a.button.primary:hover,
#content input.button.primary:hover {
  background-color: #2D2D2D !important;
  border-color: #2D2D2D !important;
  color: #fff !important;
}

/* ------------------------------------------------------------------
   Formulare: Ankreuzfelder untereinander statt im Fliesstext.
   Das Original laesst sie umbrechen wie Woerter – bei laengeren
   Beschriftungen wird daraus eine unlesbare Textwand.
   ------------------------------------------------------------------ */
/* Zweispaltiges Raster: Kaestchen links, Beschriftung rechts.
   Die Ueberschrift des Feldes laeuft ueber beide Spalten. Dadurch steht
   jede Option in einer eigenen Zeile, auch wenn der Text umbricht. */
#content .zp-form .resizablefield.zpcheckbox,
#content .zp-form .resizablefield.zpradio {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .65em; row-gap: .45em;
  align-items: start;
  float: none !important; width: 100% !important;
  margin-bottom: 1em;
}
#content .zp-form .resizablefield.zpcheckbox > label.field,
#content .zp-form .resizablefield.zpradio > label.field {
  grid-column: 1 / -1;
  display: block !important; float: none !important;
  width: auto !important; text-align: left !important;
  font-weight: bold; color: var(--st-text); margin: 0 0 .15em 0 !important;
}
#content .zp-form .resizablefield.zpcheckbox > label.field:empty,
#content .zp-form .resizablefield.zpradio > label.field:empty { display: none !important; }
#content .zp-form .resizablefield.zpcheckbox > input[type="checkbox"],
#content .zp-form .resizablefield.zpradio > input[type="radio"] {
  grid-column: 1;
  float: none !important; display: block !important;
  width: 1.05em !important; height: 1.05em; margin: .25em 0 0 0 !important;
  accent-color: var(--st-accent); cursor: pointer;
}
#content .zp-form .resizablefield.zpcheckbox > label.default,
#content .zp-form .resizablefield.zpradio > label.default {
  grid-column: 2;
  display: block !important; float: none !important;
  width: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
  text-align: left !important; line-height: 1.45; cursor: pointer;
  color: var(--st-text);
}

/* Alle Eingabefelder auf gleiche Breite – das Original mischt feste
   500-Pixel-Felder mit vollbreiten, was unruhig wirkt. */
#content .zp-form input.typetext,
#content .zp-form textarea,
#content .zp-form select {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
}
#content .zp-form input.typetext:focus,
#content .zp-form textarea:focus,
#content .zp-form select:focus {
  outline: 2px solid var(--st-accent); outline-offset: 1px;
}

/* Die DSGVO-Zustimmung ist ein langer Absatz – etwas absetzen */
#content .zp-form .resizablefield.zpcheckbox.st-dsgvo {
  border-top: 1px solid var(--st-line); padding-top: 1em; margin-top: .5em;
}
#content .zp-form .resizablefield.zpcheckbox.st-dsgvo > label.default {
  font-size: .85em; color: var(--st-muted);
}

/* ------------------------------------------------------------------
   Abstaende zwischen den Zeilen des Rasters vereinheitlichen.
   Ohne das entstehen je nach Spalteninhalt sehr ungleiche Luecken.
   ------------------------------------------------------------------ */
#content .zpRow + .zpRow > .zpRowInner { padding-top: .5em; }
#content .articlearea.zpwText + .articlearea.zpwText { margin-top: 1em; }
#content .zpwText h2 { margin-top: 1.25em; }
#content .zpwText > h1:first-child,
#content .zpwText > h2:first-child,
#content .zpwText > h3:first-child { margin-top: 0; }
#content .zpwText p + h2 { margin-top: 1.5em; }
#content .zpwText p + h3 { margin-top: 1.25em; }
#content .zpwText ul + h2,
#content .zpwText ul + h3 { margin-top: 1.5em; }
