/*
Theme Name: ContacT A2 V6.3.2
Theme URI: https://contact-sicherheitsdienst.com/
Update URI: https://contact-sicherheitsdienst.com/themes/contact-a2-v6-3-2/
Author: AliveGroup
Description: Kundenfreigegebenes A2-Design mit animierter Startseite und universellem WordPress-Rahmen. 6.3.1: durchgehendes Blau-Weiß-Farbschema, Scroll-Intro halb so lang, Kopfzeile als Blattkante, saubere Zeilenumbrüche auf allen Seiten, echte ContacT-Fotos statt Stock- und KI-Bildern, Team-Porträts im 4:5-Format. 6.3.0: neue Rufnummern (24-h-Service-Hotline, Durchwahlen, Fax), Leistungen neu geordnet (Jugendschutz zuerst, Objekt- & Werkschutz zusammengefasst, fünf Leistungen entfernt mit Weiterleitung), Siegel und Mitgliedschaften, mitgelieferte Überschriftenschrift gegen Textüberlauf. Rollback-faehig und ohne Aktivierungs- oder Datenbankmigration.
Version: 6.3.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: contact-a2-v6-3-2
*/

/* Display face shipped with the theme: Roboto Condensed Bold (SIL OFL 1.1,
   see assets/fonts/OFL-roboto-condensed.txt). First in every display stack,
   so all devices set headings with the metrics inc/typography.php measures;
   "Arial Narrow" and "Roboto Condensed" only cover the time until the file
   has loaded or a blocked download. */
@font-face {
  font-family: "ContacT Display";
  src: url("assets/fonts/roboto-condensed-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 6.3.1 – one light surface scheme for every page (front page and subpages).
   Reference is the team section on /ueber-uns (.cta2v6-section--tint): white
   mixed with blue instead of plain white or neutral grey sections. Dark hero,
   blue bands and the footer stay as accents. */
:root {
  --cta2-surface: #edf3f8;
  --cta2-surface-2: #f2f7fc;
  --cta2-surface-glow: rgba(220, 234, 247, .62);
  --cta2-surface-a: linear-gradient(135deg, rgba(220, 234, 247, .62), transparent 56%), #edf3f8;
  --cta2-surface-b: linear-gradient(315deg, rgba(220, 234, 247, .66), transparent 58%), #f2f7fc;
  --cta2-surface-rule: rgba(46, 111, 176, .14);
  --cta2-card: #fff;
  --cta2-card-border: rgba(46, 111, 176, .18);
  --cta2-card-shadow: 0 18px 44px rgba(33, 73, 111, .10);
  --cta2-header-bg: rgba(237, 243, 248, .94);
}

html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; min-width: 320px; overflow-x: clip; }
/* 6.3.1 – inner pages sit on the blue-white surface (no grey page ground). */
body.cta2v6-inner { background: var(--cta2-surface); color: #182634; }

.cta2v6-site,
.cta2v6-site *,
.cta2v6-site *::before,
.cta2v6-site *::after { box-sizing: border-box; }

.cta2v6-site {
  --cta2-blue: #2e6fb0;
  --cta2-blue-deep: #21496f;
  --cta2-blue-light: #6fa8de;
  /* Small blue text (12–15 px labels, numbers, active menu item): #2e6fb0
     reaches only 4.4:1 in the tinted corner of the blue-white surfaces and
     4.1:1 in the header above dark bands; this shade keeps at least 4.9:1. */
  --cta2-blue-text: #28629d;
  --cta2-bg: var(--cta2-surface);
  --cta2-panel: var(--cta2-card);
  --cta2-ink: #182634;
  /* 6.3.1 – a touch darker than #5a6b7c: running text keeps at least
     4.7:1 on the most tinted parts of the blue-white surfaces (measured
     4.44:1 in the page opening at 390 px with the former shade). */
  --cta2-muted: #546577;
  --cta2-line: var(--cta2-card-border);
  --cta2-max: 1160px;
  --cta2-gutter: clamp(18px, 4vw, 34px);
  min-height: 100vh;
  overflow-x: clip;
  background: var(--cta2-bg);
  color: var(--cta2-ink);
  font: 400 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cta2v6-header,
.cta2v6-footer {
  --cta2-blue: #2e6fb0;
  --cta2-blue-deep: #21496f;
  --cta2-blue-light: #6fa8de;
  --cta2-blue-text: #28629d;
  --cta2-bg: var(--cta2-surface);
  --cta2-panel: var(--cta2-card);
  --cta2-ink: #182634;
  --cta2-muted: #546577;
  --cta2-line: var(--cta2-card-border);
  --cta2-max: 1160px;
  --cta2-gutter: clamp(18px, 4vw, 34px);
  box-sizing: border-box;
  color: var(--cta2-ink);
  font: 400 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cta2v6-header *,
.cta2v6-header *::before,
.cta2v6-header *::after,
.cta2v6-footer *,
.cta2v6-footer *::before,
.cta2v6-footer *::after { box-sizing: border-box; }

.cta2v6-site img,
.cta2v6-site video,
.cta2v6-site iframe,
.cta2v6-site svg { max-width: 100%; }
.cta2v6-site img { height: auto; }
.cta2v6-site a { color: inherit; }
.cta2v6-container {
  width: min(var(--cta2-max), calc(100% - (2 * var(--cta2-gutter))));
  margin-inline: auto;
}
.cta2v6-skip {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cta2-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}
.cta2v6-skip:focus { transform: none; }
/* Dark blue ring on the light surfaces (about 8:1 or more on white,
   --cta2-bg and the tinted sections); blue bands switch it to white in
   subpages.css. */
.cta2v6-site :focus-visible { outline: 3px solid var(--cta2-blue-deep); outline-offset: 3px; }

.cta2v6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--cta2-surface-rule);
  background: var(--cta2-header-bg);
  box-shadow: 0 8px 28px rgba(33, 73, 111, .09);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}
.admin-bar .cta2v6-header { top: 32px; }
.cta2v6-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta2v6-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.cta2v6-brand img { display: block; width: 164px; height: auto; }
.cta2v6-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(15px, 2vw, 27px); }
.cta2v6-nav > a,
.cta2v6-mobile__panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--cta2-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta2v6-nav > a:hover,
.cta2v6-nav > a[aria-current="page"] { color: var(--cta2-blue-text); }
.cta2v6-nav .cta2v6-nav__cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border-radius: 999px;
  background: var(--cta2-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 111, 176, .2);
}
.cta2v6-nav .cta2v6-nav__cta:hover { background: var(--cta2-blue-deep); color: #fff; }
.cta2v6-mobile { display: none; position: relative; }
.cta2v6-mobile summary {
  min-width: 82px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cta2-line);
  border-radius: 999px;
  color: var(--cta2-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}
.cta2v6-mobile summary::-webkit-details-marker { display: none; }
.cta2v6-mobile__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100dvh - 112px);
  display: grid;
  gap: 4px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cta2-line);
  border-radius: 18px;
  background: var(--cta2-card);
  box-shadow: 0 22px 55px rgba(33, 73, 111, .18);
}
/* A closed <details> never shows its panel; saying so keeps the hidden menu
   out of layout measurements and text checks. */
.cta2v6-mobile:not([open]) > .cta2v6-mobile__panel { display: none; }
.cta2v6-mobile__panel a { padding: 13px 14px; border-radius: 11px; }
.cta2v6-mobile__panel a:hover { background: #eaf2fb; color: var(--cta2-blue-text); }

.cta2v6-main { min-height: 48vh; background: var(--cta2-bg); }
.cta2v6-main--elementor { width: 100%; overflow-x: clip; }
.cta2v6-page-hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(46px, 7vw, 82px);
  background:
    radial-gradient(circle at 80% 15%, rgba(111, 168, 222, .3), transparent 32%),
    var(--cta2-surface-a);
  border-bottom: 1px solid var(--cta2-surface-rule);
}
.cta2v6-page-hero__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--cta2-blue-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.cta2v6-page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--cta2-ink);
  font-family: "ContacT Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .96;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.cta2v6-prose { padding-block: clamp(50px, 8vw, 96px); background: var(--cta2-surface-b); }
.cta2v6-prose__inner {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--cta2-card-border);
  border-radius: 28px;
  background: var(--cta2-card);
  box-shadow: var(--cta2-card-shadow);
}
.cta2v6-prose__inner > :first-child { margin-top: 0; }
.cta2v6-prose__inner > :last-child { margin-bottom: 0; }
.cta2v6-prose__inner h2,
.cta2v6-prose__inner h3 { color: var(--cta2-ink); line-height: 1.12; }
.cta2v6-prose__inner a { color: var(--cta2-blue-text); }

/* The footer stays a quiet accent: a slightly deeper blue-white than the
   sections above, with blue rules instead of grey ones. */
.cta2v6-footer {
  border-top: 1px solid var(--cta2-surface-rule);
  background: linear-gradient(180deg, #ebf2fa, #e6eff9);
}
.cta2v6-footer__cta {
  padding-block: clamp(48px, 7vw, 82px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.cta2v6-footer__eyebrow {
  margin: 0 0 12px;
  color: var(--cta2-blue-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
/* Two classes: must not be overridden by leftover Elementor kit rules (.elementor-kit-12 h2). */
.cta2v6-footer .cta2v6-footer__cta h2 {
  max-width: 700px;
  margin: 0;
  color: var(--cta2-ink);
  font-family: "ContacT Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.cta2v6-footer :where(p, span, a) { text-wrap: pretty; }
/* Button text and arrow are separate flex items; the gap replaces the
   collapsed space ("Kontakt aufnehmen→"). */
.cta2v6-footer .cta2v6-button { gap: 12px; }
.cta2v6-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cta2-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.cta2v6-button:hover { background: var(--cta2-blue-deep); }
.cta2v6-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(170px, .7fr));
  gap: clamp(30px, 6vw, 80px);
  padding-block: 42px;
  border-top: 1px solid var(--cta2-surface-rule);
}
.cta2v6-footer__brand img { display: block; width: 190px; height: auto; margin-bottom: 18px; }
.cta2v6-footer__brand p { max-width: 340px; margin: 0; color: var(--cta2-muted); }
.cta2v6-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cta2v6-footer__socials a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--cta2-card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--cta2-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.cta2v6-footer__socials a:hover { border-color: var(--cta2-blue-light); color: var(--cta2-blue-text); }
.cta2v6-footer__nav { display: grid; align-content: start; gap: 8px; }
.cta2v6-footer__nav strong { margin-bottom: 8px; color: var(--cta2-ink); }
.cta2v6-footer__nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--cta2-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cta2v6-footer__nav a:hover { color: var(--cta2-blue-text); }
/* The two address lines flow as text, so the ↗ follows "Nürnberg" instead
   of floating beside both lines. */
.cta2v6-footer__nav .cta2v6-footer__map { display: block; padding-block: 7px; line-height: 1.5; }
.cta2v6-footer__legal {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--cta2-surface-rule);
  color: var(--cta2-muted);
  font-size: 14px;
}
.cta2v6-footer__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.cta2v6-footer__legal a { min-height: 38px; display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 1220px) {
  .cta2v6-nav { display: none; }
  .cta2v6-mobile { display: block; }
  .cta2v6-header__inner { min-height: 74px; }
  .cta2v6-brand img { width: 146px; }
  .cta2v6-footer__cta { align-items: start; flex-direction: column; }
  .cta2v6-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta2v6-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1220px) {
  html.cta2v6-menu-open,
  html.cta2v6-menu-open body { overflow: hidden; overscroll-behavior: none; }
}

@media (max-width: 782px) {
  .admin-bar .cta2v6-header { top: 46px; }
}

@media (max-width: 620px) {
  .cta2v6-header__inner { min-height: 70px; }
  .cta2v6-brand img { width: 132px; }
  .cta2v6-mobile summary { min-width: 72px; min-height: 44px; }
  .cta2v6-footer__grid { grid-template-columns: 1fr; }
  .cta2v6-footer__brand { grid-column: auto; }
  .cta2v6-footer__legal { align-items: flex-start; flex-direction: column; padding-block: 22px; }
  .cta2v6-footer__nav a,
  .cta2v6-footer__legal a { min-height: 44px; }
  .cta2v6-page-hero { padding-top: 62px; }
}

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

/* Active page state of the header call-to-action (formerly Customizer CSS of
   6.2.9, now part of the theme so it survives the theme switch). */
.cta2v6-nav .cta2v6-nav__cta[aria-current="page"] { background: var(--cta2-blue-deep); color: #fff; }

/* Footer: seals and memberships, contact hints. */
.cta2v6-footer__trust {
  padding-block: 30px;
  border-top: 1px solid var(--cta2-surface-rule);
}
.cta2v6-footer__hint {
  color: var(--cta2-muted);
  font-size: 14px;
  line-height: 1.4;
}
.cta2v6-footer__nav .cta2v6-footer__hint:first-of-type { margin-bottom: -6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Fixed terms ("24-h-Service-Hotline", the two halves of an e-mail address)
   never wrap inside; the templates set this class. */
.cta2v6-nowrap { white-space: nowrap; }

/* 6.3.1 – the space between the last two words of a heading does not break
   from 600 px up (inc/typography.php: cta2v6_heading_html), so no heading
   ends with a single word; on narrow phones the pair may wrap again. Only
   the space is protected: the words can still break as a last resort. */
@media (min-width: 600px) {
  .cta2v6-keep { white-space: nowrap; }
}

/* Seals and memberships (template-parts/trust-marks.php). Order fixed by
   ContacT: DEKRA certificates, master craftsman seal, memberships.
   6.3.2 – a balanced band across the full width: five equally wide tiles,
   2 : 1 : 2 under their labels, instead of a block on the left with empty
   space beside it (footer, /zertifikate, front page). Two rows below
   1100 px. Image heights and width caps set here are the displayed seal
   widths that trust-marks.php names in sizes; every tile stays wider. */
.cta2v6-trust {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px 24px;
  align-items: end;
}
.cta2v6-trust__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
/* 6.3.2 – at least 12 px (was 11.5 px). */
.cta2v6-trust__label {
  color: #21496f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta2v6-trust__items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cta2v6-trust__items li {
  min-width: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--cta2-card-border);
  border-radius: 14px;
  background: var(--cta2-card);
  box-shadow: 0 8px 20px rgba(33, 73, 111, .06);
}
.cta2v6-trust__items img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 132px;
  object-fit: contain;
}
.cta2v6-trust--section .cta2v6-trust__items li { height: 112px; padding: 10px 16px; }
.cta2v6-trust--section .cta2v6-trust__items img { max-width: 150px; }

/* Certificates and master seal side by side, memberships below. */
@media (max-width: 1099px) {
  .cta2v6-trust { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .cta2v6-trust__group--mitgliedschaften { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .cta2v6-trust { gap: 16px; }
  .cta2v6-trust__label { font-size: 12px; letter-spacing: .1em; }
  /* "Meisterbetrieb" is wider than its single tile: the label ends flush
     with the tile and extends to the left, clear of "Zertifiziert". */
  .cta2v6-trust__group--meister .cta2v6-trust__label { justify-self: end; }
  .cta2v6-trust__items li { height: 72px; padding: 7px 10px; }
  .cta2v6-trust--section .cta2v6-trust__items li { height: 88px; padding: 10px; }
  .cta2v6-trust__items img,
  .cta2v6-trust--section .cta2v6-trust__items img { max-width: 112px; }
}
