/* ==========================================================================
   CNS-IT GmbH — Startseite (Variante V4)
   Bootstrap 5.3.8 · projekteigenes Stylesheet
   ========================================================================== */

:root {
  --cns-blue: #1e3ac8;          /* Leitfarbe (logonah, flächentauglich) */
  --cns-blue-dark: #1329a8;
  --cns-accent: #2020f8;        /* reines Logo-Blau, nur als Akzent */
  --cns-ink: #12283d;           /* dunkles Petrol für dunkle Flächen */
  --cns-body: #4a5666;          /* Fließtext */
  --cns-rule: #c9c3b8;          /* Trennlinien */
  --cns-rule-light: #e8e5df;
  --cns-muted: #5a6472;

  --bs-body-font-family: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-color: var(--cns-ink);
  --bs-link-color-rgb: 32, 32, 248;
  --bs-link-hover-color-rgb: 19, 41, 168;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--cns-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cns-ink); color: #fff; }

.container-cns { max-width: 1400px; padding-inline: clamp(20px, 4vw, 44px); margin-inline: auto; }

/* --- Typografie ---------------------------------------------------------- */
.font-display { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: -.028em; }
.h-hero    { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.0;  letter-spacing: -.028em; }
.h-section { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; }
.h-contact { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.0;  letter-spacing: -.03em; }
.eyebrow   { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }
.lead-cns { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }

.text-cns-blue  { color: var(--cns-blue) !important; }
.text-cns-body  { color: var(--cns-body) !important; }
.text-cns-muted { color: var(--cns-muted) !important; }
.bg-cns-blue    { background-color: var(--cns-blue) !important; }
.bg-cns-ink     { background-color: var(--cns-ink) !important; }

.section-pad { padding-block: clamp(64px, 8vw, 112px); }

/* --- Buttons ------------------------------------------------------------- */
.btn-cns,
.btn-cns-outline,
.btn-cns-light,
.btn-cns-ink {
  --bs-btn-border-radius: 0;
  border-radius: 0;
  text-decoration: none; display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 17px 32px;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-cns          { background: var(--cns-blue); color: #fff; }
.btn-cns:hover    { background: var(--cns-blue-dark); color: #fff; }
.btn-cns-ink       { background: var(--cns-ink); color: #f2f4f7; }
.btn-cns-ink:hover { background: var(--cns-blue); color: #fff; }
.btn-cns-light       { background: #fff; color: var(--cns-ink); }
.btn-cns-light:hover { background: #fff; color: var(--cns-blue); }
.btn-cns-outline       { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-cns-outline:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

.link-more {
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cns-accent); text-decoration: none;
}
.link-more:hover { color: var(--cns-blue-dark); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cns-rule-light);
}
.site-header .nav-link {
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cns-ink); padding: 6px 0;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--cns-blue); }
.header-phone { font-size: 15px; font-weight: 700; color: var(--cns-ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--cns-blue); }
.btn-header {
  text-decoration: none; display: inline-block;
  border: 1px solid var(--cns-ink); color: var(--cns-ink); background: transparent;
  padding: 11px 22px; font-size: 14px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; border-radius: 0; white-space: nowrap; transition: background-color .2s, color .2s;
}
.btn-header:hover { background: var(--cns-ink); color: #f2f4f7; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(88deg, rgba(9,20,32,.93) 0%, rgba(9,20,32,.82) 42%, rgba(9,20,32,.35) 74%, rgba(9,20,32,.15) 100%);
}
.hero__inner { position: relative; width: 100%; padding-block: clamp(72px,10vw,120px) clamp(44px,5vw,64px); }
.hero__rule { width: clamp(28px, 5vw, 64px); height: 1px; background: #8f9dff; display: block; }
.hero h1 em { font-style: normal; color: #9aa7ff; }

/* --- Faktenband ---------------------------------------------------------- */
.facts { background: var(--cns-ink); color: #f2f4f7; }
.facts__item { padding: 34px 30px; }
.facts__item + .facts__item { border-left: 1px solid rgba(255,255,255,.18); }
.facts__num { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; }
.facts__label { font-size: 15px; color: #a8b6c6; }
@media (max-width: 991.98px) { .facts__item:nth-child(odd) { border-left: 0; } }

/* --- Leistungen ---------------------------------------------------------- */
.service {
  padding-block: 40px;
  border-bottom: 1px solid var(--cns-rule);
  display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.service h3 { font-size: 23px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.service p  { font-size: 16px; color: var(--cns-body); flex: 1; margin: 0; }
.service svg { stroke: var(--cns-blue); }

/* --- Zitate-Slider ------------------------------------------------------- */
.quotes { background: var(--cns-blue); color: #fff; overflow: hidden; }
.quotes__viewport { overflow: hidden; }
.quotes__track { display: flex; gap: 24px; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.quote {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff; color: var(--cns-ink);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.quote__title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(22px,2vw,27px); line-height: 1.14; letter-spacing: -.02em; margin-bottom: 16px; }
.quote p { font-size: 16.5px; color: var(--cns-body); flex: 1; margin-bottom: 24px; }
@media (max-width: 1079.98px) { .quote { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 719.98px)  { .quote { flex-basis: 100%; } }

.quotes__btn {
  width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.85);
  background: transparent; color: #fff; font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.quotes__btn:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.quotes__btn:disabled { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.35); cursor: default; }
.quotes__dot { width: 22px; height: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.4); transition: width .3s, background-color .3s; }
.quotes__dot.is-active { width: 46px; background: #fff; }

/* --- CAD & BIM ----------------------------------------------------------- */
.spec-list { border-top: 1px solid var(--cns-rule); }
.spec-list__item { padding-block: 14px; border-bottom: 1px solid var(--cns-rule); font-size: 15.5px; font-weight: 600; }

/* --- Support ------------------------------------------------------------- */
.support { background: var(--cns-ink); color: #f2f4f7; }
.support__list { border-top: 1px solid rgba(255,255,255,.26); }
.support__item { padding-block: 22px; border-bottom: 1px solid rgba(255,255,255,.26); font-size: 19px; font-weight: 600; }
.support__item--accent { color: #9aa7ff; }

/* --- Branchen ------------------------------------------------------------ */
.branche__media { position: relative; margin-bottom: 16px; }
.branche__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.branche__overlay { position: absolute; inset: 0; background: rgba(30,58,200,.55); }
.branche__icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 30%; stroke: #fff; }
.branche h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 7px; }
.branche p  { font-size: 15px; color: var(--cns-body); margin: 0; }

/* --- Kontakt ------------------------------------------------------------- */
.contact { background: var(--cns-blue); color: #fff; padding-block: clamp(72px, 9vw, 124px); }
.contact p { color: #dcdcff; }
.contact__phone {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.contact__phone:hover { color: #cdd3ff; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: #fff; color: var(--cns-ink); border-top: 1px solid var(--cns-ink); }
.partner-tile { display: flex; align-items: center; justify-content: center; padding: 18px 22px; min-height: 96px; border: 1px solid var(--cns-rule-light); }
.partner-tile img { max-width: 100%; max-height: 60px; width: auto; height: auto; display: block; }
.footer-head { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cns-muted); margin-bottom: 18px; }
.footer-link { color: var(--cns-ink); text-decoration: none; font-size: 15.5px; }
.footer-link:hover { color: var(--cns-blue); }
.footer-legal { font-size: 14px; color: var(--cns-muted); }
.footer-legal a { color: var(--cns-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--cns-blue); }

/* --------------------------------------------------------------------------
   Scroll-Reveal: Elemente mit [data-reveal] werden beim Erscheinen im
   Viewport sanft nach oben eingeblendet. Die Klasse .reveal setzt js/main.js,
   damit ohne JavaScript alles sichtbar bleibt. Staffelung über --reveal-delay.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
