/* ==========================================================================
   COORDINET – Modernisierungs-Layer
   Wird NACH main.css geladen und überschreibt gezielt. main.css bleibt
   unverändert, damit ein Rollback = diese Datei aus header.php entfernen.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  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;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B2135;        /* Hafen-Navy: Hero, Footer, dunkle Flächen */
  --ink-2: #13314D;      /* leicht hellere Navy-Stufe */
  --blue: #006AB2;       /* Markenblau (Logo/alte Seite) */
  --sky: #6CC0EE;        /* helles Blau für Akzente auf Navy */
  --mist: #EEF4F9;       /* ruhige Sektionsfläche */
  --line: #D6E2ED;
  --text: #1E2D3C;
  --muted: #5A6B7C;
  --radius: 14px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Basis & Typografie ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { body { font-size: 16px; } }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--muted); font-size: 18px; max-width: 46ch; }
p, li { max-width: 72ch; }

/* Alles in Versalien zurück auf normale Schreibung */
.template-wrap [class],
.template-wrap a,
.template-wrap strong { text-transform: none !important; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* Dekorative Vertikallinien raus */
.lines-container { display: none !important; }

/* ---------- Links / CTAs ---------- */
.link__caption {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.link__inner { padding-bottom: 4px; }
.link__inner::after { height: 2px !important; }
.link__icon { margin-left: 8px; }
.link__icon svg { width: 11px; transition: transform .2s ease; }
.link:hover .link__icon svg { transform: translate(2px, -2px); }
.link.link-dark .link__caption { color: var(--ink); }
.link.link-dark .link__inner::after { background-color: var(--blue); }
.link.link-dark .link__icon svg path { stroke: var(--blue); }
.link.link-blue .link__caption { color: var(--blue); }

/* ---------- Navigation ---------- */
.nav-main { top: 28px; }
.nav-main__logo img { max-height: 58px; }
.nav-main .menu > li { margin-left: 34px; }
.nav-main .menu > li > a {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .86);
  transition: color .2s;
}
.nav-main .menu > li > a:hover { color: #fff; }
.nav-main .menu > li .sub-menu {
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(11, 33, 53, .35);
  padding: 14px 18px;
  width: 230px;
  left: -18px;
}
.nav-main .menu > li .sub-menu li a {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 2.3;
  color: var(--text);
}
.nav-side { background: var(--ink) !important; }
.nav-side .menu a { font-family: var(--font); letter-spacing: -0.01em; }

/* ---------- Hero (Startseite) & Seitenköpfe ---------- */
.page-home .hero-section,
.page-hero-section {
  position: relative;
  background: var(--ink);
  isolation: isolate;
}
.page-home .hero-section .bg,
.page-hero-section .bg {
  filter: grayscale(1) contrast(1.15) brightness(1.1);
  opacity: .22;
  mix-blend-mode: luminosity;
}
.page-home .hero-section::after,
.page-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(0, 106, 178, .45), transparent 60%),
    linear-gradient(90deg, rgba(11, 33, 53, .85) 0%, rgba(11, 33, 53, .2) 70%);
}
.page-home .hero-section .container,
.page-home .hero-section .slider-about,
.page-home .hero-section .scroll-circle { z-index: 10; }

.page-home .hero-section .sub-heading,
.page-hero-section .sub-heading {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sky);
  margin-bottom: 22px;
}
.page-home .hero-section .heading {
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  max-width: 24ch;
  text-wrap: balance;
}
.page-hero-section .heading {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  max-width: 20ch;
  text-wrap: balance;
}
.page-hero-section .heading + p,
.page-hero-section .container > p:not(.sub-heading) { color: rgba(255, 255, 255, .78); max-width: 58ch; }
.page-hero-section { min-height: 560px; }
.page-hero-section .links-wrap .link { margin-right: 36px; }

/* Faktenleiste im Hero: Nummern raus (keine Reihenfolge), ruhige Kacheln */
.page-home .hero-section .slider-about { margin-top: 64px; }
.page-home .hero-section .slider-about .swiper-slide {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding: 22px 8px 0 0;
  width: 260px;
}
.page-home .hero-section .slider-about .swiper-slide .number,
.page-home .hero-section .slider-about .swiper-slide .notice { display: none; }
.page-home .hero-section .slider-about .about-item__content {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

/* Scroll-Kreis kollidiert mit der Faktenleiste -> weg */
.page-home .hero-section .scroll-circle { display: none; }
.page-home .hero-section { padding-bottom: 90px; height: auto; min-height: 0; }
.page-home .hero-section .scroll-circle .section-label {
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Startseite: zwei Leistungs-Kacheln ---------- */
.page-home .services-grid .service-item { background: var(--ink-2); isolation: isolate; }
.page-home .services-grid .service-item.service-item__small { background: var(--blue); }
.page-home .services-grid .service-item .bg {
  filter: grayscale(1) contrast(1.1);
  opacity: .16;
  mix-blend-mode: luminosity;
}
.page-home .services-grid .service-item__title {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.page-home .services-grid .service-item__description { color: rgba(255, 255, 255, .85); }
.page-home .services-grid .service-item__content { color: rgba(255, 255, 255, .78); }
.page-home .services-grid .service-item__content li { line-height: 1.9; }

/* Flächen-Verläufe -> ruhige, flache Flächen */
.page-home .section-about .bg,
.page-home .services-section .bg { display: none !important; }
.page-home .section-about,
.page-home .services-section { background: var(--mist) !important; }
.section-refs,
.page-about .section-about,
.page-about .section-job,
.page-services .section-progress { background: #fff !important; }
.page-services .section-benefits,
.page-services .section-it-support { background: var(--mist) !important; }
.page-references .section-refs { background: var(--mist) !important; }

/* Team-Slider */
.team-slider-about .swiper-slide .avatar img { filter: grayscale(.2); }
.team-slider-about .swiper-slide .info .position { color: var(--blue); font-weight: 500; }
.team-slider-about .swiper-slide .info .description { color: var(--muted); }

/* Kundenlogos */
.page-home .section-clients .client-group__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  border-color: var(--line) !important;
}
.page-home .section-clients .client-group img {
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s, opacity .25s;
}
.page-home .section-clients .client-group img:hover { filter: none; opacity: 1; }

/* Kundenstimmen */
.refs-slider .ref-item .message {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.refs-slider .ref-item .position { font-weight: 500; }

/* Leistungs-Karten (Slider) */
.page-home .slider-services .service-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none !important;
  transition: border-color .2s, transform .2s;
}
.page-home .slider-services .service-item:hover { border-color: var(--blue); }
.page-home .slider-services .service-item__icon { border-radius: 12px; }
.page-home .slider-services .service-item__title { font-weight: 650; letter-spacing: -0.015em; }
.page-home .slider-services .service-item__description { color: var(--muted); }
.page-home .slider-services .service-item__permalink { font-weight: 600; }

/* ---------- Unterseiten ---------- */
.consultation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.benefit-item .h6.benefit { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.grid-item__image img,
.grid-item img { border-radius: 0; }

.case-study-item,
.case-study-item__inner { border-radius: 10px; overflow: hidden; }
.case-study-item { background: var(--ink); isolation: isolate; }
.case-study-item img {
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: .35;
  transition: opacity .3s;
}
.case-study-item:hover img { opacity: .5; }
.case-study-item .overlay { background: linear-gradient(180deg, rgba(11, 33, 53, .35), rgba(11, 33, 53, .85)) !important; opacity: 1 !important; }
.case-study-item .overlay::after { display: none !important; }
.grid-item__back { background: var(--ink-2) !important; }

.acc-item { border-radius: 12px; }
.acc-item__header { font-weight: 600; }
.progress-item, .benefit-item { color: var(--text); }

.testimonial-block .text-content,
.review-item__message { color: var(--ink); letter-spacing: -0.015em; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--ink) !important;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 80% at 100% 0%, rgba(0, 106, 178, .35), transparent 65%);
}
.footer .section-title { font-size: clamp(32px, 3.6vw, 50px); }
.footer .contact-info-list .list-item .caption { font-size: 17px; font-weight: 500; }
.footer .contact-info-list .list-item:hover .caption { color: var(--sky); }
.footer .form .form-row .form-group label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .8);
}
.footer .form .form-row .form-group input,
.footer .form .form-row .form-group textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .06) !important;
  font-family: var(--font);
  font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.footer .form .form-row .form-group input:focus,
.footer .form .form-row .form-group textarea:focus {
  border-color: var(--sky) !important;
  background: rgba(255, 255, 255, .1) !important;
  outline: none;
}
.footer .form .submit-group button[type="submit"] {
  background: var(--sky);
  border-radius: 999px;
  padding: 14px 28px;
}
.footer .form .submit-group button[type="submit"] .link__caption { color: var(--ink); }
.footer .form .submit-group button[type="submit"] .link__inner::after { display: none; }
.footer .form .submit-group button[type="submit"] .link__icon svg path { stroke: var(--ink); }
.footer .form .submit-group button[type="submit"]:disabled { opacity: .5; }

.footer__bot { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 40px; }
.footer__bot-col .caption {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.footer__bot-col ul li a:hover { color: #fff; }
.footer .copyright { letter-spacing: 0 !important; font-size: 14px !important; }

.footer-light__bot-col .caption { letter-spacing: 0 !important; font-weight: 600 !important; }
.footer-light .copyright { letter-spacing: 0 !important; }

/* Honeypot (Spam-Schutz) unsichtbar, aber nicht display:none */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Cookie-Hinweis kompakt ---------- */
.cookie-banner {
  width: 380px;
  height: auto;
  right: auto;
  left: 28px;
  bottom: 28px;
  border-radius: var(--radius);
  filter: none;
  box-shadow: 0 24px 60px -20px rgba(11, 33, 53, .45);
}
.cookie-banner .cookie-img { display: none; }
.cookie-banner__wrap { padding: 22px 24px; }
.cookie-banner p {
  max-width: none;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}
.cookie-banner .btn-accept-cookie { margin-top: 12px; }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-banner__wrap { padding: 20px; }
  .cookie-banner .btn-accept-cookie { left: auto; transform: none; margin-top: 14px; }
}

/* ---------- SweetAlert passend ---------- */
.swal2-popup { font-family: var(--font) !important; border-radius: 16px !important; }
.swal2-styled.swal2-confirm { background: var(--blue) !important; border-radius: 999px !important; }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .page-home .hero-section .heading { max-width: none; }
  .page-hero-section .heading,
  .page-hero-section .sub-heading { text-align: left !important; }
  .page-hero-section .links-wrap { align-items: flex-start !important; }
  .page-hero-section .links-wrap .link { margin-left: 0 !important; }
}
.swal2-styled { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }

/* ---------- Team-Slider: Pfeile für Desktop (Wischen allein reicht nur am Handy) ---------- */
.team-slider-about .team-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  position: relative;
  z-index: 5;
}
.team-slider-about .team-controls .slider-dots {
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: flex;
  align-items: center;
}
.team-arrow {
  width: 46px;
  height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.team-arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.team-arrow.swiper-button-disabled { opacity: .35; pointer-events: none; }
@media (min-width: 992px) {
  /* Steuerung unter der Textspalte ausrichten (Avatar-Spalte links) */
  .team-slider-about .team-controls { padding-left: calc(41.666% + 15px); }
}
@media (max-width: 767px) {
  .team-slider-about .team-controls { justify-content: center; }
}

/* ---------- Über uns: Team-Raster statt Slider ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(.2);
}
.team-card__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.team-card__role {
  margin: 2px 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}
.team-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
/* Gründer: volle Breite, Foto links, Zitat größer */
.team-card--lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
  background: var(--ink);
  border-color: var(--ink);
}
.team-card--lead .team-card__photo { width: 160px; height: 160px; flex: none; }
.team-card--lead .team-card__name { color: #fff; font-size: 30px; }
.team-card--lead .team-card__role { color: var(--sky); font-size: 16px; }
.team-card--lead .team-card__text {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.55;
  max-width: 62ch;
}
@media (max-width: 1199px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .team-card--lead { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .team-card--lead .team-card__photo { width: 112px; height: 112px; }
  .team-card--lead .team-card__name { font-size: 26px; }
  .team-card--lead .team-card__text { font-size: 16px; }
}

/* ---------- Fester Header ---------- */
.nav-main {
  position: fixed !important;
  top: 0 !important;
  z-index: 120;
  padding: 26px 0;
  transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav-main.is-scrolled {
  padding: 10px 0;
  background: rgba(11, 33, 53, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.nav-main__logo img { transition: max-height .25s ease; }
.nav-main.is-scrolled .nav-main__logo img { max-height: 42px; }
.nav-main .menu { align-items: center; }
.nav-main .menu > li.menu-cta > a {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
}
.nav-main .menu > li.menu-cta > a:hover { background: #fff; color: var(--ink); }
.nav-side .menu > li.menu-cta > a {
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink) !important;
  font-weight: 600;
}
@media (max-width: 1199px) {
  .nav-main .menu > li { margin-left: 24px; }
}
/* Sprungziele nicht unter dem Header verstecken (z. B. Aufruf von services#it) */
[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  .nav-main, .nav-main__logo img { transition: none; }
}
