/* ==========================================================================
   Intecso theme — design system
   Derived from design-tokens.json (SSOT). Swiss de-CH, Inter, slate-blue.
   ========================================================================== */

:root {
  /* Brand */
  --c-dark-slate: #294B5E;
  --c-mid-blue: #457590;
  --c-blue-deep: #395E73;
  --c-light-blue: #99B3C2;
  --c-light-blue-2: #9CB4BE;
  --c-pale-blue: #B7CAD4;
  --c-mist: #CEDADF;
  --c-kachel-blue: #395E73; /* war #7FA6BA – weisse Schrift lag bei 2.6:1 */

  /* Backgrounds */
  --bg-page: #FFFFFF;
  --bg-neutral: #EEF1F2;
  --bg-article: #F5F7F8;
  --bg-band-dark: #294B5E;
  --bg-band-mid: #457590;

  /* Text */
  --t-primary: #294B5E;
  --t-secondary: #4A6B7E;
  --t-heading: #457590;
  --t-nav: #3C5C74;
  --t-inverse: #FFFFFF;
  --t-inverse-70: rgba(255, 255, 255, 0.72);
  --t-inverse-60: rgba(255, 255, 255, 0.6);

  /* Interactive */
  --btn-primary-bg: #294B5E;
  --btn-primary-bg-hover: #457590;
  --btn-ghost-bg: rgba(41, 75, 94, 0.35);
  --btn-ghost-bg-hover: rgba(41, 75, 94, 0.65);
  --btn-ghost-border: rgba(255, 255, 255, 0.85);
  --link: #457590;
  --focus-ring: #457590;
  --err: #C0392B;
  --ok: #2E7D32;

  /* Layout */
  --gutter: clamp(20px, 2.6vw, 50px);
  --maxw: 1840px;
  --header-h: 58px;
  --header-top: 22px;

  /* Radius */
  --r-accordion: 14px;
  --r-pill: 999px;
  --r-input: 6px;
  --r-card: 14px;

  /* Elevation */
  --sh-header: 0 2px 12px rgba(20, 35, 45, 0.10);
  --sh-card: 0 1px 6px rgba(20, 35, 45, 0.08);
  --sh-pop: 0 12px 48px rgba(20, 35, 45, 0.25);

  /* Motion */
  --e: cubic-bezier(0.4, 0, 0.2, 1);
  --d-fast: 150ms;
  --d-base: 250ms;
  --d-acc: 350ms;

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* iOS-Overscroll (Rubber-Banding): kein Gummiband über die Seitenränder hinaus —
   der weisse/graue Streifen unter dem dunklen Footer entfällt komplett. Safari malt
   die Overscroll-Zone nur mit einer soliden Hintergrundfarbe (Verläufe ignoriert es),
   deshalb ist Abschalten die einzig verlässliche Lösung. Der Verlauf bleibt als
   Fallback für Browser, die overscroll-behavior nicht kennen, aber Verläufe malen. */
html, body { overscroll-behavior-y: none; }
html { scroll-behavior: smooth; background: linear-gradient(#fff 50%, var(--c-dark-slate) 50%); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--t-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3, h4, p { margin: 0; }
/* de-CH typography: long German compounds hyphenate (lang="de-CH" enables the
   dictionary) and can never overflow their box — global policy, all sections. */
/* Hyphenate only long words with substantial halves (≥6 chars each side) —
   anything shorter wraps whole, so hyphens stay rare and unobtrusive. */
h1, h2, h3, h4, h5, p, li, blockquote, figcaption {
  overflow-wrap: break-word; hyphens: auto;
  -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6;
  hyphenate-limit-chars: 12 6 6;
}
a, button, span, label, td, th, dt, dd { overflow-wrap: break-word; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* WordPress admin bar offset */
.admin-bar .site-header { top: calc(var(--header-top) + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(var(--header-top) + 46px); } }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; }
/* Mehr Luft über Text-Abschnitten (netpulse-UX; moderat statt 180px) */
.section { padding: clamp(80px, 10vw, 120px) var(--gutter) 80px; }
.section--compact { padding: 56px var(--gutter); background: var(--bg-neutral); }
.section--neutral { background: var(--bg-neutral); }
.section--article { background: var(--bg-article); }
.section--dark { background: var(--bg-band-dark); color: var(--t-inverse); }
.section--mid { background: var(--bg-band-mid); color: var(--t-inverse); }
.measure { max-width: 880px; }
.measure-wide { max-width: 980px; }

/* ---------- Typography ---------- */
/* 18px statt 15px und das tiefe Blau: 5.9:1 statt 4.4:1. Kundenkorrektur
   Startseite Punkt 33 - hier an der einzigen Stelle, nicht als Nachtrag. */
.eyebrow { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--c-blue-deep); }
.h1-hero { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; color: var(--t-inverse); }
.h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.25; color: var(--t-heading); }
.h2--dark { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; color: var(--t-inverse); }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.35; }
.lead { font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--t-heading); }
.body { font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.body-sm { font-size: 15px; line-height: 1.7; }
.on-dark { color: var(--t-inverse); }
.on-dark .h2, .on-dark .eyebrow { color: var(--t-inverse); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  text-decoration: none; cursor: pointer; border: none;
  border-radius: var(--r-pill); padding: 12px 28px;
  transition: background var(--d-base) var(--e), color var(--d-base) var(--e);
}
.btn-primary { background: var(--btn-primary-bg); color: var(--t-inverse); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
.btn-ghost {
  background: var(--btn-ghost-bg); color: var(--t-inverse);
  border: 1px solid var(--btn-ghost-border); padding: 14px 30px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--btn-ghost-bg-hover); }
.btn-arrow::after { content: "→"; }

/* ==========================================================================
   Site header + mega menu
   ========================================================================== */
.site-header {
  position: fixed; top: var(--header-top); left: var(--gutter); right: var(--gutter);
  z-index: 50; height: var(--header-h);
  background: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a, .site-nav button {
  font-size: 16px; font-weight: 700; color: var(--t-nav);
  text-decoration: none; background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: color var(--d-base) var(--e);
}
.site-nav a:hover, .site-nav button:hover { color: var(--c-mid-blue); }
.site-header__right { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 15px; font-weight: 700; color: var(--t-nav); text-decoration: none; white-space: nowrap; }
.mega-chev { display: inline-block; font-size: 12px; transition: transform var(--d-base) var(--e); }
[aria-expanded="true"] .mega-chev { transform: rotate(180deg); }

.mega-overlay { position: fixed; inset: 0; z-index: 48; }
.mega-menu {
  position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 49;
  width: min(1360px, calc(100vw - 2 * var(--gutter)));
  background: #fff; border-radius: 20px; box-shadow: var(--sh-pop); padding: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-height: calc(100vh - 120px); overflow: auto;
}
/* Below this, 4 columns no longer have room for the longest title on one
   line (measured ~304px/column minimum) — drop to 2 columns instead. */
@media (max-width: 1420px) { .mega-menu { grid-template-columns: repeat(2, 1fr); } }
.admin-bar .mega-menu { top: 124px; }
.mega-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; text-decoration: none;
  transition: background var(--d-fast) var(--e);
}
.mega-menu a:hover { background: var(--bg-neutral); }
.mega-menu__link-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mega-menu__title {
  font-size: 15px; font-weight: 700; color: var(--c-dark-slate);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-menu__desc { font-size: 13px; line-height: 1.45; color: var(--t-secondary); }
.mega-menu[hidden] { display: none; }
.mega-overlay[hidden] { display: none; }

/* ---------- Hamburger + mobile nav drawer ---------- */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; flex-shrink: 0;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--c-dark-slate);
  transition: transform var(--d-base) var(--e), opacity var(--d-base) var(--e);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay { position: fixed; inset: 0; z-index: 48; background: rgba(20,35,45,0.35); }
.mobile-nav-overlay[hidden] { display: none; }
.mobile-nav {
  position: fixed; top: 92px; left: clamp(16px, 4vw, 24px); right: clamp(16px, 4vw, 24px); z-index: 49;
  background: #fff; border-radius: 20px; box-shadow: var(--sh-pop);
  max-height: calc(100vh - 120px); overflow-y: auto; padding: 12px;
}
.mobile-nav[hidden] { display: none; }
.admin-bar .mobile-nav { top: 124px; }
.mobile-nav__link, .mobile-nav__accordion-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  box-sizing: border-box; padding: 16px 14px; border-radius: 12px;
  background: transparent; border: none; text-align: left;
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--c-dark-slate);
  text-decoration: none; cursor: pointer; transition: background var(--d-fast) var(--e);
}
.mobile-nav__link:hover, .mobile-nav__link:active,
.mobile-nav__accordion-btn:hover, .mobile-nav__accordion-btn:active { background: var(--bg-neutral); }
.mobile-nav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-acc) var(--e); }
.mobile-nav__accordion-item[data-expanded="true"] .mobile-nav__sub { grid-template-rows: 1fr; }
.mobile-nav__sub > div { overflow: hidden; }
.mobile-nav__sub a {
  display: block; padding: 12px 14px 12px 28px; margin: 0 0 2px;
  border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--t-nav); text-decoration: none;
}
.mobile-nav__sub a:hover, .mobile-nav__sub a:active { background: var(--bg-neutral); }
.mobile-nav__sub .d { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--t-secondary); }
.mobile-nav__divider { height: 1px; background: #E3E9EC; margin: 8px 6px; }
.mobile-nav__foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 6px; }
.mobile-nav__foot .header-phone { display: block !important; text-align: center; font-size: 16px; }
.mobile-nav__foot .btn { justify-content: center; }
html.mobile-nav-open, html.mobile-nav-open body { overflow: hidden; }

@media (max-width: 1080px) { .header-phone { display: none; } }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  /* Mobil nur Logo + Hamburger in der Leiste; Kontakt lebt im Menü-Fuss —
     dort dezent: transparente Fläche mit Rand statt Vollfarbe. */
  .site-header .btn-primary { display: none; }
  .mobile-nav__foot .btn-primary { background: transparent; border: 2px solid var(--c-dark-slate); color: var(--c-dark-slate); }
  .mobile-nav__foot .btn-primary:hover, .mobile-nav__foot .btn-primary:active { background: var(--bg-neutral); color: var(--c-dark-slate); }
}
@media (min-width: 861px) {
  .mobile-nav, .mobile-nav-overlay, .hamburger { display: none !important; }
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
  background: var(--bg-band-dark); color: #fff;
  padding: 64px var(--gutter) 40px;
}
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px 32px; }
.footer-wordmark-img { display: block; height: 100px; width: auto; max-width: 100%; align-self: flex-start; flex: 0 0 auto; object-fit: contain; }
.footer-wordmark { font-size: 17px; font-weight: 400; line-height: 1.5; letter-spacing: 0.08em; color: var(--t-inverse-60); }
.footer-wordmark b { color: #fff; font-weight: 700; }
.footer-col-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .footer-contact a { color: var(--t-inverse-70); text-decoration: none; }
.footer-links a { font-size: 14px; line-height: 2.0; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 14px; line-height: 2.0; color: var(--t-inverse-70); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700;
}
.footer-support-btn { margin-top: 24px; display: inline-block; background: #5A7484; color: #fff; }
.footer-support-btn:hover { background: var(--c-mid-blue); }
.footer-copy { margin-top: 48px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: min(88vh, 880px); min-height: 620px;
  background: var(--c-dark-slate) center / cover no-repeat;
  display: flex; align-items: flex-end;
}

/* Admin-Seiten (AGB, Impressum, Datenschutz, Datenschutz Support):
   flache, einfarbige Kopfzone statt Bild-Hero. Der fixierte Header endet
   bei 112 px, das padding-top hält die H1 frei darunter. */
.hero--compact {
  height: auto; min-height: 0;
  background: var(--c-dark-slate);
  padding-top: 132px;
}
.hero--compact .hero__inner { padding-bottom: 40px; }
.hero--compact .h1-hero { font-size: clamp(26px, 3.2vw, 34px); }

/* Schrittnummer in nummerierten Karten. Einmal definiert, genutzt von
   Azure Cloud Migration (.flip .front) und Microsoft 365 Copilot (.cop-phase).
   Grosse halbtransparente Ziffer auf dunkler Karte – kein Badge. */
.step-num { margin: 0; font-size: 30px; font-weight: 700; color: rgba(255,255,255,0.6); line-height: 1; }
/* Fallback anchor: upper third keeps faces in frame in the wide hero crop.
   The exact per-photo focal point comes inline from intecso_hero_focus(). */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; pointer-events: none; }
/* Untere Deckung von 0.45 auf 0.68 erhoeht. Gemessen an den hellsten Hero-Bildern:
   Vorspann lag bei 2.6-2.8:1, noetig sind 4.5:1. Mit 0.68 erreichen alle Seiten
   die Schwelle; es ist zugleich der kleinste Wert, der das schafft. */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(20,35,45,0.10) 0%, rgba(20,35,45,0.68) 100%); }
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  /* content box must equal the sections' (gutter on section, container inside),
     otherwise hero text drifts right of the body content on wide screens */
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  padding: 0 var(--gutter) 48px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__kicker { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hero__inner, .hero__inner * { color: #fff; }

/* ==========================================================================
   Kacheln (split image / text bands)
   ========================================================================== */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.kachel {
  padding: 64px clamp(20px, 3.4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  color: #fff;
}
.kachel h3 { font-size: 22px; font-weight: 700; }
.kachel p { font-size: 15px; line-height: 1.7; }
.kachel--img { min-height: 320px; padding: 0; background: var(--bg-neutral) center / cover no-repeat; }
.kachel--blue { background: var(--c-kachel-blue); }
.kachel--mid { background: var(--c-mid-blue); }
.kachel--dark { background: var(--c-dark-slate); }

/* Split (image left/right + content) with equal-height columns */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); align-items: stretch; }
.split--rtl { direction: rtl; }
.split--rtl > * { direction: ltr; }
/* Image column of a split renders as a square (equal to its own width, capped),
   and grid stretch keeps both columns exactly equal in height — no more short,
   panoramic-stretched photos beside tall text. cover crops, never distorts. */
/* Square-ish via viewport-based min-height — deliberately NO aspect-ratio:
   Safari mis-sizes aspect-ratio'd grid items (partial-width images with a
   white strip). Grid stretch fills taller rows flush; never clipped. */
.split__img { min-height: clamp(380px, 42vw, 720px); background: var(--bg-neutral) center / cover no-repeat; }
@media (max-width: 900px) {
  .split__img { min-height: 300px; height: 72vw; max-height: 460px; }
}
.split__body { padding: 64px clamp(20px, 3vw, 56px); min-height: 380px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.split__body--panel { color: #fff; }
/* Splits whose text side can grow (toggles, long copy): the image keeps a
   stable rectangle, vertically centred beside the text, instead of being
   stretched/zoomed by the equal-height grid when content expands. */
/* stretch statt center: sonst bleibt das Bild auf seiner clamp-Höhe stehen und
   wird zentriert – oben und unten entstehen dann gleich grosse Leerräume,
   sobald die Textspalte höher wird (schmale Viewports, langer Text). */
.split--fit { align-items: stretch; }
.split--fit .split__img { min-height: clamp(360px, 38vw, 560px); height: auto; width: 100%; }
/* body matches the image rectangle, so short rows stay flush; long text may
   outgrow it and the image simply stays centred beside it. */
.split--fit .split__body { min-height: clamp(360px, 38vw, 560px); }
@media (max-width: 900px) {
  .split--fit .split__img { height: 72vw; max-height: 460px; min-height: 300px; }
}

/* ==========================================================================
   Accordion
   ========================================================================== */
.accordion { background: var(--c-mid-blue); border-radius: var(--r-accordion); overflow: hidden; }
.accordion + .accordion { margin-top: 12px; }
/* Full-width kachel box grid — replaces the old split layout; short texts sit
   open in colored boxes instead of hiding behind side-by-side toggles. */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
/* Fixed 3-up variant: text boxes three per row, photos as plain grid tiles. */
.acc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.acc-grid__img { background: var(--bg-neutral) center 30% / cover no-repeat; min-height: 240px; }
@media (max-width: 1000px) { .acc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .acc-grid--3 { grid-template-columns: 1fr; } .acc-grid__img { min-height: 200px; } }
/* Vier-Spalten-Variante: zwei Textkacheln und zwei Fotos in einer Reihe.
   Die Fotozellen sind quadratisch – als flacher Streifen blieb vom Bild
   nur ein Band, obwohl die Vorlagen fast quadratisch sind. */
.acc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.acc-grid--4 .acc-grid__img { aspect-ratio: 1; min-height: 0; }
@media (max-width: 1200px) { .acc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .acc-grid--4 { grid-template-columns: 1fr; } }
/* Zweites Thema in derselben Kachel braucht Abstand nach oben, sonst klebt
   die Überschrift am Absatz davor. */
.acc-box p + h3 { margin-top: 14px; }
.acc-box { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.acc-box h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: #fff; }
.acc-box p { margin: 0; font-size: 15px; line-height: 1.7; color: #fff; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; gap: 16px;
  background: transparent; border: none; padding: 16px 24px; cursor: pointer; text-align: left;
}
.accordion__title { font-size: 17px; font-weight: 700; color: #fff; flex: 1; }
.accordion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-acc) var(--e); }
.accordion[data-expanded="true"] .accordion__body { grid-template-rows: 1fr; }
.accordion__body > div { overflow: hidden; }
.accordion__body p { margin: 0; padding: 0 24px 24px; font-size: 15px; line-height: 1.7; color: #fff; }
.chev {
  width: 22px; height: 22px; border-radius: var(--r-pill); border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform var(--d-acc) var(--e);
}
/* Generic: any toggle container marked open rotates its chevron. */
[data-expanded="true"] > .accordion__btn .chev,
.accordion[data-expanded="true"] .chev,
.level-row[data-expanded="true"] .chev,
.mobile-nav__accordion-item[data-expanded="true"] .chev { transform: rotate(180deg); }

/* ==========================================================================
   Cards / Vorteile
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 24px; }
.card {
  background: var(--c-mid-blue); padding: 32px; color: #fff;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none;
}
.card:hover { text-decoration: none; }
.card, .card * { text-decoration: none; }
.card svg { color: #fff; }
/* Long German compounds (Softwareverteilungslösungen …) must never overflow
   their box: hyphenate when needed. */
.card__title, .accordion__title, .wissen-split__head h3, .wissen-split__sub {
  hyphens: auto; overflow-wrap: break-word;
  -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6;
  hyphenate-limit-chars: 12 6 6;
}
.card__title { font-size: 17px; font-weight: 700; }
.card__body { font-size: 14px; line-height: 1.65; font-weight: 600; } /* halbfett wie auf intecso.ch */

/* Karriere job cards — auto-fill keeps a single opening at a normal card width
   (left-aligned) instead of stretching it across the whole row. */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); gap: 20px; justify-content: start; margin-top: 4px; }
.job-card { background: #395E73; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.job-card h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
.job-card p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.job-card .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--c-dark-slate); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  /* upper-third anchor: the wide band crop keeps faces in frame */
  position: relative; min-height: 360px; background: var(--c-blue-deep) center 30% / cover no-repeat;
  display: flex; align-items: flex-end;
}
.cta-band__scrim { position: absolute; inset: 0; background: rgba(20,35,45,0.62); }  /* war 0.35 – sechs von neun Baendern lagen darunter unter 4.5:1 */
.cta-band__inner {
  position: relative; width: 100%; padding: 48px var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.cta-band__kicker { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-band__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.25; color: #fff; max-width: 720px; }

/* ==========================================================================
   Support-Ebenen expandable level rows (ServiceDesk)
   ========================================================================== */
.level-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); align-items: stretch; }
.level-row--rtl { direction: rtl; }
.level-row--rtl > * { direction: ltr; }
.level-row__img { min-height: 380px; background: var(--bg-neutral) center / cover no-repeat; }
.level-row__panel { padding: 64px clamp(20px, 3.4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 16px; color: #fff; }
.level-row__panel h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.level-row__panel p { font-size: 15px; line-height: 1.7; }
.level-toggle {
  display: flex; align-items: center; gap: 12px; background: transparent; border: none; padding: 0;
  font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
}
.level-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-acc) var(--e); }
.level-detail > div { overflow: hidden; }
.level-detail p { padding-top: 8px; }
.level-row[data-expanded="true"] .level-detail { grid-template-rows: 1fr; }

/* ==========================================================================
   Wissenswertes im Detail (PageArticle)
   ========================================================================== */
/* Topics render as joined split rows: brand photo | colored content panel,
   alternating direction and colour — one visual language, no toggles. */
/* Wissenswertes im Detail v5: one full-bleed kacheln row per topic — a photo
   tile (alternating left/right, cover crop: can never distort) plus 2–3
   colored text kacheln. Titles pin to the top edge, body text/toggles align
   to the bottom edge, so the row reads as one neat band. */
.wissen-kacheln { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* Inhalt unten ausgerichtet (netpulse-UX): Titel sitzt direkt über seinem Text
   am unteren Rand — gestreckte Kacheln zeigen Freiraum oben statt einer Lücke
   in der Mitte, und die Unterkanten der Reihe fluchten. */
.wissen-kacheln .kachel { padding: clamp(28px, 3vw, 44px); justify-content: flex-end; gap: 14px; min-height: clamp(380px, 30vw, 560px); }
/* Nur-Titel-Kachel (Inhalt lebt in den Nachbar-Kacheln): kompakt, Titel oben. */
.wissen-kacheln .kachel--headonly { justify-content: flex-start; min-height: 0; }
/* Reihen ohne Fotokachel: der Text richtet sich oben aus und die Kachel
   waechst nur so hoch wie ihr Inhalt. Sonst klafft oben eine Luecke, denn
   die Bodenkante muesste keinem Foto mehr folgen. */
.wissen-kacheln:not(:has(.kachel--img)) .kachel { justify-content: flex-start; min-height: 0; }
/* The photo tile keeps a fixed rectangle: collapsed rows sit flush with it,
   and when toggles expand only the text kacheln grow — the photo never
   stretches or re-crops. Not sticky: iOS Safari fails to clamp sticky items
   inside grid cells, letting the photo slide down over the next kachel. */
.wissen-kacheln .kachel--img { padding: 0; align-self: start; min-height: 0; height: clamp(380px, 30vw, 560px); }
.wissen-kachel__body { display: flex; flex-direction: column; gap: 14px; }
.wissen-kacheln .accordion { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 700px) {
  /* stacked column: cap photo tiles, and drop the leading tile of a row that
     directly follows another row — otherwise two photos stack back-to-back */
  .wissen-kacheln .kachel--img { min-height: 220px; height: 60vw; max-height: 340px; }
  .wissen-kacheln + .wissen-kacheln .kachel--img:first-child { display: none; }
}
.wissen-split__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.wissen-split__head h3 { margin: 0; font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; line-height: 1.35; color: #fff; }
.wissen-split__sub { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: #fff; }
.wissen-split__p { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.92); text-wrap: pretty; }
/* Toggles inside the colored panel: same .accordion element, white-tinted so
   it stands out against all three panel blues. */
.wissen__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--c-mid-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wissen__icon--onblue { width: 34px; height: 34px; background: rgba(255,255,255,0.16); }

/* Multi-paragraph accordion content (shared with the wissen toggles). */
.accordion__content { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.accordion__content p { margin: 0; font-size: 15px; line-height: 1.7; color: #fff; }
.accordion .check-row, .accordion .check-row svg,
.split__body--panel .check-row, .split__body--panel .check-row svg,
.kachel .check-row, .kachel .check-row svg { color: #fff; }

.check-row { font-size: 14px; line-height: 1.6; color: var(--t-nav); display: flex; gap: 10px; align-items: flex-start; }
.check-row svg { flex-shrink: 0; margin-top: 3px; color: var(--c-mid-blue); }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.chev--light { border-color: #C4CDD2; width: 24px; height: 24px; }
.chev--light svg { stroke: var(--c-dark-slate); }

/* pill slider (Wissenswertes + Zero Trust "Wichtige Elemente") */
.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill-tab {
  background: #fff; color: var(--c-dark-slate); border: 1px solid #C4CDD2; border-radius: var(--r-pill);
  padding: 10px 20px; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; text-align: left;
  transition: background var(--d-base) var(--e), box-shadow var(--d-base) var(--e);
}
.pill-tab[aria-pressed="true"] { background: var(--c-mid-blue); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(20,35,45,0.18); }
.pill-panel { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-card); }
/* .pill-panel's own display:flex would otherwise beat the native [hidden]
   attribute at equal specificity — without this, every panel of the
   Werte/Wichtige-Elemente sliders stayed visible regardless of active tab. */
.pill-panel[hidden] { display: none; }
.pill-panel p { font-size: 14.5px; line-height: 1.7; color: var(--t-nav); text-wrap: pretty; }

/* Über uns "Unsere Werte" — advanced split slider (text left, image right)
   with overlaid pill tabs and a conic-gradient progress ring on the active
   pill. Reuses the shared [data-slider]/[data-tab]/[data-panel] behaviour. */
.werte-section { position: relative; }
.werte-slider { position: relative; }
.werte-slider__label {
  position: absolute; top: 32px; left: var(--gutter); z-index: 3; margin: 0;
  font-size: 15px; font-weight: 700; color: var(--c-mid-blue); /* steht auf Weiss, nicht auf dem Bild */
}
.werte-slider__tabs {
  position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); z-index: 3;
  gap: 12px; margin-bottom: 0;
}
.werte-slider__tabs .pill-tab {
  display: inline-flex; align-items: center; gap: 10px; position: relative;
  background: var(--c-dark-slate); color: #fff; border-color: transparent;
}
.werte-slider__tabs .pill-tab[aria-pressed="true"] {
  background: #fff; color: var(--c-dark-slate); border-color: transparent; box-shadow: 0 6px 18px rgba(20,35,45,0.25);
}
.werte-tab__chev { position: relative; display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex-shrink: 0; }
.werte-ring {
  position: absolute; inset: -6px; border-radius: 999px; pointer-events: none; display: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
}
.werte-slider__tabs .pill-tab[aria-pressed="true"] .werte-ring { display: block; }
.werte-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(transparent 0deg, transparent 300deg, var(--c-mid-blue) 340deg, var(--c-mid-blue) 360deg);
  animation: zt-loader-spin 10s linear infinite;
}
@keyframes zt-loader-spin { to { transform: rotate(360deg); } }
@keyframes fade-in-werte { from { opacity: 0; } to { opacity: 1; } }
.werte-slide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); min-height: 520px; }
.werte-slide[hidden] { display: none; }
.werte-slide__text { background: #1E3140; padding: 100px var(--gutter) 44px; display: flex; flex-direction: column; }
.werte-slide__text p { margin: auto 0 0; font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.85); text-wrap: pretty; max-width: 620px; }
.werte-slide__img { min-height: 320px; background: var(--c-dark-slate) center / cover no-repeat; animation: fade-in-werte 600ms ease both; }
@media (max-width: 640px) {
  /* Stop overlaying on narrow screens (pills wrap to several rows): give the
     whole section the dark panel colour and let label + tabs flow at the top. */
  .werte-section { background: #1E3140; }
  .werte-slider__label { position: static; padding: 24px var(--gutter) 0; }
  .werte-slider__tabs { position: static; padding: 12px var(--gutter) 4px; margin: 0; }
  .werte-slide__text { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .werte-ring::before { animation: none; } .werte-slide__img { animation: none; } }

/* ==========================================================================
   Logo marquee (clients / partners)
   ========================================================================== */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 55s linear infinite; }
.marquee--rev .marquee__track { animation-name: marquee-rev; animation-duration: 50s; }
.marquee img { height: 168px; width: auto; max-width: 360px; object-fit: contain; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Responsive: smaller logos, tighter gap, faster loop and a lighter edge mask,
   so the strip is filled and visible immediately on phones. */
@media (max-width: 860px) {
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .marquee img { height: 96px; max-width: 240px; }
  .marquee__track { gap: 40px; animation-duration: 38s; }
  .marquee--rev .marquee__track { animation-duration: 34s; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   Stat rings
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stat__ring { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.stat__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.stat__num { font-size: 30px; font-weight: 500; line-height: 1.1; color: #fff; }
.stat__label { font-size: 13px; line-height: 1.3; color: var(--t-inverse-70); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
/* Fluid snap slider (Referenzen, Home news): all items in one scrollable row —
   square corners, one card at a time on phones with a peek of the next card,
   about three per view on desktop. Native momentum scrolling, no JS. */
.snap-row {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 12px;
}
.snap-row::-webkit-scrollbar { display: none; }
/* Desktop slider controls, injected by initSnapRows (theme.js). Hidden on
   touch devices — there swiping is the native gesture. */
.snap-wrap { position: relative; }
.snap-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--c-dark-slate); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 30, 40, 0.25);
  transition: background 200ms var(--e), opacity 200ms var(--e);
}
.snap-btn:hover { background: var(--c-mid-blue); }
.snap-btn--prev { left: -10px; }
.snap-btn--next { right: -10px; }
.snap-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .snap-btn { width: 38px; height: 38px; } .snap-btn--prev { left: 4px; } .snap-btn--next { right: 4px; } }
.snap-row > * { scroll-snap-align: start; flex: 0 0 clamp(300px, 31%, 460px); min-width: 0; }
@media (max-width: 860px) {
  /* One box at a time, ~12% of the next visible as the "load more" hint. */
  .snap-row > * { flex-basis: 86%; }
}

.testimonial { background: var(--c-blue-deep); padding: 40px; color: #fff; display: flex; flex-direction: column; gap: 20px; }
.testimonial__head { display: flex; align-items: center; gap: 16px; }
.testimonial__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--c-light-blue); }
.testimonial__name { font-size: 18px; font-weight: 700; }
.testimonial__role { font-size: 13px; color: var(--t-inverse-70); }
.testimonial__quote { font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   News / blog
   ========================================================================== */
/* Always a fixed 4-up grid so 1–2 posts keep their normal box size instead of
   stretching across the row (auto-fit would collapse the empty tracks). */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: #fff; overflow: hidden; box-shadow: var(--sh-card); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
/* Home news row: fixed grid on desktop, fluid one-at-a-time snap row on phones. */
@media (max-width: 860px) {
  .news-grid--snap { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 12px; }
  .news-grid--snap::-webkit-scrollbar { display: none; }
  .news-grid--snap > * { scroll-snap-align: start; flex: 0 0 86%; min-width: 0; }
}
.news-card__thumb { aspect-ratio: 4 / 3; background: var(--c-mist) center / cover no-repeat; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__cat { align-self: flex-start; font-size: 14px; font-weight: 700; color: #fff; background: var(--c-mid-blue); border-radius: var(--r-pill); padding: 4px 12px; }
.news-card__date { font-size: 13px; color: var(--t-secondary); }
.news-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--c-dark-slate); }
.news-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--t-secondary); }
.news-card__more { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--c-mid-blue); }

.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.cat-filter a { font-size: 14px; font-weight: 700; color: var(--c-dark-slate); background: #fff; border: 1px solid #C4CDD2; border-radius: var(--r-pill); padding: 8px 18px; text-decoration: none; }
.cat-filter a.is-active { background: var(--c-mid-blue); color: #fff; border-color: transparent; }

/* single post */
/* Post featured image: a real <img> at its natural aspect ratio — the full
   picture is always visible (never cropped by a fixed-height cover box), and
   square corners like every other box. Brand/logo images get a contained,
   padded slate stage instead of blowing up to full width. */
/* Natural size, never upscaled: small images stay crisp, large ones cap at the column. */
.post-hero { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.post-hero--contain { height: 380px; object-fit: contain; background: var(--c-dark-slate); padding: 24px; box-sizing: border-box; }
.post { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter); }
/* Breadcrumb trail (News › Kategorie › Titel) — mirrors the BreadcrumbList schema. */
.post__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--t-secondary); }
.post__crumbs a { color: var(--t-secondary); text-decoration: none; font-weight: 500; }
.post__crumbs a:hover { color: var(--c-mid-blue); text-decoration: underline; }
.post__crumbs .sep { color: #C4CDD2; }
.post__crumbs .current { color: var(--c-dark-slate); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.post__cat { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--c-mid-blue); border-radius: var(--r-pill); padding: 4px 14px; }
.post__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; color: var(--c-dark-slate); margin: 16px 0; }
.post__meta { display: flex; align-items: center; gap: 12px; color: var(--t-secondary); font-size: 14px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #E3E9EC; }
.post__meta-col { display: flex; flex-direction: column; }
.post__meta-name { font-weight: 700; color: var(--c-dark-slate); }
.post__author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--c-light-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--c-mid-blue); overflow: hidden; }
.post__author-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-wrap { max-width: 900px; margin: 0 auto 48px; padding: 0 var(--gutter); }
.post__lead { font-size: 20px; line-height: 1.6; color: var(--c-dark-slate); font-weight: 500; margin-bottom: 24px; }
.post__content { font-size: 17px; line-height: 1.8; color: var(--t-primary); }
.post__content p { margin: 0 0 20px; }
/* scroll-margin keeps TOC anchor targets clear of the fixed header. */
.post__content h2 { font-size: 26px; margin: 40px 0 16px; color: var(--c-mid-blue); scroll-margin-top: 110px; }
.post__content h3 { font-size: 21px; margin: 32px 0 12px; color: var(--c-dark-slate); }
.post__content > a, .post__content p a, .post__content li a, .post__content td a { color: var(--c-mid-blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(77, 121, 144, 0.4); text-underline-offset: 3px; }
.post__content p a:hover, .post__content li a:hover, .post__content td a:hover { text-decoration-color: currentColor; }
.post__content blockquote { margin: 28px 0; padding: 20px 28px; background: var(--bg-article); border-left: 4px solid var(--c-mid-blue); font-size: 18px; line-height: 1.7; color: var(--c-dark-slate); }
.post__content blockquote p:last-child { margin-bottom: 0; }
.post__content blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--t-secondary); }
.post__content figcaption, .post__content .wp-caption-text { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--t-secondary); }
.post__content .wp-caption { max-width: 100%; }
/* In-content images always show fully at the content-column width. */
.post__content figure { margin: 24px 0; }
.post__content img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; }
.post__content figure img { margin: 0 auto; }
.post__content ul, .post__content ol { padding-left: 1.4em; }
.post__content li { margin-bottom: 8px; }
.post__content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post__content th { background: var(--c-dark-slate); color: #fff; text-align: left; padding: 12px; }
.post__content td { padding: 12px; border-bottom: 1px solid var(--bg-neutral); }
.post__content tr:nth-child(even) td { background: var(--bg-article); }

/* Table of contents — shared by the AGB template and the auto-generated
   post TOC (intecso_post_toc). Square box, like every other kachel. */
.toc { margin: 0 0 56px; padding: 32px; background: var(--bg-neutral); }
.toc__title { margin: 0 0 20px; font-size: 19px; font-weight: 700; color: var(--c-dark-slate); }
.toc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 32px; }
.toc__link { display: flex; gap: 10px; padding: 6px 0; color: var(--c-dark-slate); text-decoration: none; font-size: 14px; line-height: 1.5; }
.toc__link:hover { color: var(--c-mid-blue); text-decoration: underline; }
.toc__num { flex: 0 0 24px; font-weight: 700; color: var(--c-mid-blue); }
/* Inside a post the generic .post__content h2/link rules would win on
   specificity — restore the TOC's own type styles there. */
.post__content .toc { margin: 8px 0 40px; }
.post__content .toc__title { font-size: 19px; margin: 0 0 20px; color: var(--c-dark-slate); scroll-margin-top: 0; }
.post__content .toc__link { font-weight: 500; text-decoration: none; color: var(--c-dark-slate); }
.post__content .toc__link:hover { color: var(--c-mid-blue); text-decoration: underline; }

/* Tag pills after the article body: internal links to tag archives. */
.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.post__tags-label { font-size: 14px; font-weight: 700; color: var(--c-dark-slate); }
.post__tags a { font-size: 13px; font-weight: 700; color: var(--c-dark-slate); background: var(--bg-neutral); border-radius: var(--r-pill); padding: 6px 14px; text-decoration: none; }
.post__tags a:hover { background: var(--c-mid-blue); color: #fff; }

.post__share { display: flex; align-items: center; gap: 16px; padding: 32px 0 0; border-top: 1px solid #E3E9EC; margin-top: 32px; }
.post__share-label { font-size: 14px; font-weight: 700; color: var(--c-dark-slate); }
.share-btn { width: 36px; height: 36px; border-radius: 999px; background: var(--bg-neutral); display: flex; align-items: center; justify-content: center; color: var(--c-dark-slate); text-decoration: none; font-weight: 700; }
.share-btn:hover { background: var(--c-mid-blue); color: #fff; }

/* Author box (E-E-A-T): photo + name + role + one line from the team bio. */
.author-box { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding: 28px; background: var(--bg-article); }
.author-box__img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--c-light-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: var(--c-mid-blue); }
.author-box__img img { width: 100%; height: 100%; object-fit: cover; }
.author-box__kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-secondary); }
.author-box__name { font-size: 17px; font-weight: 700; color: var(--c-dark-slate); margin-top: 2px; }
.author-box__role { font-size: 14px; color: var(--t-secondary); margin-top: 2px; }
.author-box__line { font-size: 14.5px; line-height: 1.6; color: var(--t-primary); margin-top: 8px; }
@media (max-width: 520px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* Previous / next post navigation. */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: var(--bg-neutral); text-decoration: none; }
.post-nav a:hover { background: var(--c-light-blue); }
.post-nav__dir { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-secondary); }
.post-nav__title { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--c-dark-slate); }
.post-nav a.post-nav--next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.post-nav--next { text-align: left; } }

/* ==========================================================================
   Team flip cards (About)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.flip { position: relative; perspective: 1200px; aspect-ratio: 5 / 6; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform 650ms var(--e); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
/* Team photos: straight corners (no radius), 4 per row via .team-grid above. */
.team-grid .flip__face { border-radius: 0; }
.flip__front { background: var(--c-light-blue) center / cover no-repeat; display: flex; align-items: flex-end; }
.flip__front-cap { width: 100%; padding: 24px; background: linear-gradient(0deg, rgba(20,35,45,0.85), transparent); color: #fff; }
.flip__front-cap .n { font-size: 18px; font-weight: 700; }
.flip__front-cap .r { font-size: 13px; color: var(--t-inverse-70); }
/* Vertically centred so a short bio sits in the middle (clear of the mail
   badge at top-right); `safe center` falls back to top alignment when a bio
   is taller than the card, so long bios never clip their first lines. Extra
   top padding keeps even top-aligned long bios below the mail icon. */
.flip__back { background: var(--c-mid-blue); color: #fff; transform: rotateY(180deg); padding: 52px 26px 26px; display: flex; align-items: safe center; overflow-y: auto; }
.flip__back p { font-size: 13.5px; line-height: 1.6; }
/* Mail icon overlay: sits OUTSIDE .flip__inner (not on the rotating faces) so
   it's always visible and clickable, front or back, no 3D-transform clipping.
   Icon is deliberately smaller than the badge for visible breathing room. */
.flip__mail {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-card); text-decoration: none;
  transition: background var(--d-fast) var(--e), transform var(--d-fast) var(--e);
}
.flip__mail svg { display: block; }
.flip__mail:hover { background: var(--c-mid-blue); transform: scale(1.08); }
.flip__mail:hover svg { stroke: #fff; }

/* ==========================================================================
   Forms (Kontakt / Support / Jobs / Workshop)
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--c-dark-slate); }
.form input, .form select, .form textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; font-weight: 400;
  color: var(--t-primary); background: #fff; border: 1px solid #C4CDD2; border-radius: var(--r-input);
  padding: 12px 14px; transition: border-color var(--d-base) var(--e), box-shadow var(--d-base) var(--e);
}
/* Date fields: iOS/WebKit gives them intrinsic width, own chrome and centered text
   — normalise them to behave like every other field, especially in .form-grid. */
.form-grid > label { min-width: 0; }
.form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 45px;
  text-align: left;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px rgba(69,117,144,0.18); }
.form input:not([type="date"]):invalid:not(:placeholder-shown), .form textarea:invalid:not(:placeholder-shown) { border-color: var(--err); }
.form textarea { min-height: 140px; resize: vertical; }
/* Consent row: block flow, NOT flex — in a flex label every text fragment
   around the inline link becomes its own flex column and the sentence breaks
   into an ugly word-stack. Inline checkbox + naturally wrapping text instead. */
.form .consent { display: block; font-weight: 400; font-size: 13px; line-height: 1.7; color: var(--t-secondary); }
.form .consent input { width: auto; display: inline-block; vertical-align: -2px; margin: 0 8px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
/* Unter 16px zoomt iOS beim Fokussieren in das Feld hinein — auf Mobile deshalb 16px. */
@media (max-width: 780px) { .form input, .form select, .form textarea { font-size: 16px; } }
/* .form uses flex-direction:column, whose default align-items:stretch would
   otherwise force the submit button to the full field width — size it to its
   own content instead, like any other button. */
.form > button[type="submit"], .form > .btn { align-self: flex-start; }
@media (max-width: 480px) { .form > button[type="submit"], .form > .btn { align-self: stretch; } }

/* ==========================================================================
   Scroll reveal (progressive enhancement)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--e), transform 700ms var(--e); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-24 { margin-top: 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 20px; z-index: 100; }
.skip-link:focus { left: var(--gutter); top: 8px; }


/* ---------------------------------------------------------------------------
   Lesbarkeit – Referenz intecso.ch: Fliesstext dort 15–16 px, Gewicht 500–600.
   Bei uns lagen mehrere Textsorten bei 13–14 px / 400 und waren besonders auf
   dunklen Flächen schwer zu lesen. Eine Stelle für alle betroffenen Sorten.
   -------------------------------------------------------------------------- */
.check-row, .check-row p,
.card__body,
.job-card p,
.footer-contact p,
.az-card p, .az-compliance p,
.cop-card p, .cop-row p { font-size: 15px; line-height: 1.7; }

/* Kräftiger, wo Text auf Farbfläche oder Foto sitzt. */
.kachel p, .kachel li,
.split__body p { font-weight: 500; }
.kachel p, .kachel li { color: #FFFFFF; }

.flip__back, .flip__back p, .flip__face p { font-size: 15px; font-weight: 600; line-height: 1.6; }

/* ---------------------------------------------------------------
   Lesbarkeit II - Korrekturen Kunde (Startseite Punkt 33, 55)
   Die Vorspann-Zeilen und die kleinen Metatexte waren mit 12-13px
   zu klein. Alles hier zentral, damit es fuer jede Seite gilt.
   --------------------------------------------------------------- */

/* Metatexte: Kennzahl-Beschriftung, Zitatrolle, News-Datum, Fusszeile. */
.stat__label,
.testimonial__role,
.news-card__date,
.mega-menu__desc,
.footer-copy { font-size: 15px; line-height: 1.6; }

/* ---------------------------------------------------------------
   Weissflaechen - Korrekturen Kunde (Startseite 39 und 59, Ueber uns 63)
   Die Logo-Baender lagen auf reinem Weiss; der Kunde empfand die
   Flaeche als blendend. Gleicher ruhiger Ton wie section--neutral.
   --------------------------------------------------------------- */


/* ---------------------------------------------------------------
   Kontrast – Korrekturen Kunde
   Gemessen nach WCAG 2.1: 4.5:1 für Fliesstext, 3:1 für grosse
   Schrift. Grundsatz wie vom Kunden vorgegeben: helle Flächen mit
   weisser Schrift werden abgedunkelt, nicht die Schrift aufgehellt.
   --------------------------------------------------------------- */

/* Mitarbeiter-Manifest: dunkelblaue Fläche, weisse halbfette Schrift. */
#manifest { background: var(--c-dark-slate); }
#manifest .eyebrow { color: #B7CAD4; }
#manifest .h2, #manifest h2, #manifest h3 { color: #FFFFFF; }
#manifest p, #manifest li { color: #FFFFFF; font-weight: 600; }

/* «Unsere Werte» stand weiss auf weiss (1:1). */

/* Geisterknopf auf hellen Abschnitten: weisse Schrift lag bei 1.14:1.
   Auf hellem Grund wird daraus der normale dunkle Knopf. */
.section--neutral .btn-ghost,
.section--compact .btn-ghost,
.werte-section .btn-ghost { background: var(--c-dark-slate); border-color: var(--c-dark-slate); }
.section--neutral .btn-ghost:hover,
.section--compact .btn-ghost:hover,
.werte-section .btn-ghost:hover { background: var(--c-blue-deep); border-color: var(--c-blue-deep); }

/* Preisrechner: Titel und Knopf waren zu blass. */
.tpl-mmw-calc__title { color: var(--c-dark-slate); }
.tpl-mmw-calc__btn { background: var(--c-mid-blue); }
.tpl-mmw-calc__btn:hover { background: var(--c-blue-deep); }

/* Dritte Kontaktkachel: Der Farbton #859BA6 ist die vom Kunden
   gewählte dritte Farbe und bleibt. Stattdessen dunkler Text (4.6:1). */
.kk-channel--blue { color: #1E3140; }
.kk-channel--blue .kk-channel__lbl,
.kk-channel--blue .kk-channel__val { color: #1E3140; }
.kk-channel--blue svg { stroke: #1E3140; }

/* Markenblau #457590 erreicht auf dem hellen Grau #EEF1F2 nur 4.4:1.
   Betroffen sind genau zwei Stellen: die Pille auf der Karriere-Seite
   und der Datenschutz-Link unter den Formularen. Beide bekommen den
   dunkleren Markenton (5.9:1). Eine pauschale a-Regel wäre falsch,
   sie würde auch die weissen Links in den farbigen Seitenspalten
   der Kontaktkarten treffen. */
.section--neutral .body-sm,
.section--compact .body-sm { color: var(--c-blue-deep); }
.form .consent a { color: var(--c-blue-deep); }

/* ---------------------------------------------------------------
   Vollbild-Flaechen auf schmalen Schirmen
   Der Hero behielt bis hinunter zu 360 px eine Hoehe von 88vh bzw.
   mindestens 620 px. Bei 390 px Fensterbreite ergab das eine
   hochkante Box (0,63:1) fuer ein Bild im Verhaeltnis 2,17:1 –
   sichtbar blieben **20 Prozent der Bildbreite**, stark vergroessert.
   Jetzt waechst die Hoehe mit der Breite mit (66vw, mindestens 440px):
   und der ganze Hero samt Knopf passt auf einen Bildschirm.
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { height: max(440px, 66vw); min-height: 0; }
}

/* Das Fussband ist ein breiter Streifen; auf dem Handy wird der
   Ausschnitt sonst quadratisch. Etwas flacher halten. */
@media (max-width: 700px) {
  .cta-band { min-height: 300px; background-position: center 35%; }
  .cta-band__inner { padding: 32px var(--gutter); }
}

/* Go-live-Feedback: Kontakt-Fussband zeigt Zitat vollstaendig; Footer-Wortmarke feste Groesse */
.page-template-template-service-desk .cta-band{height:clamp(360px,28vw,545px);background-position:center 15%}
.footer-wordmark-img{width:206px;max-width:60%;height:auto}

/* min-Build stillgelegt: theme.css ist massgeblich (SSOT) */
