/* =====================================================================
   Vitodata Online-Hilfe – eigenständiges Stylesheet
   Farben, Schrift und Radien übernommen von der neuen vitodata.ch
   (Tailwind-Tokens), ersetzt das alte /assets/bstmpl/css/style.css
   ===================================================================== */

/* Schrift wird in index.html per <link> geladen (Plus Jakarta Sans 300-800) */

/* Metrik-angepasster Fallback wie auf vitodata.ch – verhindert Springen beim Laden */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial");
  ascent-override: 98.88%;
  descent-override: 21.15%;
  line-gap-override: 0%;
  size-adjust: 104.98%;
}

:root {
  --primary-50: #f2f6f9;
  --primary-100: #c9dbe6;
  --primary-500: #33678a;
  --primary-600: #23506f;
  --primary-700: #173a56;
  --primary-900: #04203e;
  --teal-50: #f0faf8;
  --teal-100: #e2f6f3;
  --teal-500: #0ab0a6;
  --teal-700: #02818f;
  --teal-800: #036e79;
  --accent-400: #f2b512;
  --accent-500: #f4961f;
  --link-500: #0b6099;
  --surface-100: #f8fafc;
  --surface-200: #f4f7f8;
  --surface-300: #e3edf1;
  --white: #fff;

  --text: var(--primary-900);
  --text-muted: rgb(4 32 62 / 0.72);
  --border: rgb(4 32 62 / 0.1);

  --radius-btn: 7px;
  --radius-card: 12px;
  --radius-card-lg: 16px;
  --shadow-card: 0 1px 2px rgb(4 32 62 / 0.04), 0 8px 24px rgb(4 32 62 / 0.06);
  --shadow-card-hover: 0 2px 4px rgb(4 32 62 / 0.06), 0 16px 40px rgb(4 32 62 / 0.12);

  --font: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-max: 1200px;
  --gutter: 20px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.body-child { min-height: 100vh; display: flex; flex-direction: column; }

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--link-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--teal-700); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

p { margin: 0 0 1rem; }

h1, h2, h3, h4 { margin: 0 0 .75rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--primary-900); }

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 2rem; }
h2, .vd-h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.5rem; }
h3, .vd-h3 { font-size: 1.375rem; }

.page-kicker {
  display: table;
  margin-bottom: 1.1rem;
  padding: .35rem .9rem;
  border: 1px solid rgb(2 129 143 / 0.3);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.page-kicker::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--teal-500);
  vertical-align: middle;
}

strong { font-weight: 700; }

/* ---------- Hilfsklassen (Bootstrap-Ersatz) ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-fill { flex: 1 1 auto !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-self-start { align-self: flex-start !important; }
.ml-auto { margin-left: auto !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-n2 { margin-top: -.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.text-right { text-align: right !important; }
.text-white { color: var(--white) !important; }
.text-nowrap { white-space: nowrap !important; }
.text-sm { font-size: .875rem; }
.font-weight-bold { font-weight: 700 !important; }
.position-relative { position: relative !important; }
.img-fluid { max-width: 100%; height: auto; }

@media (min-width: 576px) { .text-sm-right { text-align: right !important; } }

/* ---------- Layout ---------- */
.container, .container-fluid {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container { max-width: var(--page-max); }

.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) / -2); }
.row > [class*="col"] { padding: 0 calc(var(--gutter) / 2); width: 100%; min-width: 0; }

.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }

@media (min-width: 576px) {
  .col-sm-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .offset-md-1 { margin-left: 8.333%; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .col-lg { flex: 1 0 0; }
  .col-lg-auto { flex: 0 0 auto; width: auto !important; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .offset-lg-1 { margin-left: 8.333%; }
}
@media (min-width: 1200px) {
  .col-xl-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .offset-xl-2 { margin-left: 16.666%; }
}

/* ---------- SVG-Icons ---------- */
.svg-holder { display: inline-flex; align-items: center; }
.svg { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.svg-circled {
  width: 40px; height: 40px; justify-content: center;
  border-radius: 50%;
  transition: background-color .15s;
}
.svg-circled .svg { width: 20px; height: 20px; }

/* ---------- Skiplink ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: .5rem 1rem; background: var(--primary-900); color: #fff; border-radius: var(--radius-btn);
}
.skip-link:focus { left: 8px; color: #fff; }

/* Gemeinsame Seitenbreite Header/Footer (wie vitodata.ch: max-w-page 1296px) */
.vd-wrap { width: 100%; max-width: 1296px; margin: 0 auto; }
.vd-topbar, .vd-header, .vd-footer { padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px)  { .vd-topbar, .vd-header, .vd-footer { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 768px)  { .vd-topbar, .vd-header, .vd-footer { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .vd-topbar, .vd-header, .vd-footer { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1280px) { .vd-topbar, .vd-header, .vd-footer { padding-left: 72px; padding-right: 72px; } }

/* ---------- Topbar (Support / Webshop / Kontakt / Suche) ---------- */
.vd-topbar {
  display: none;
  background: var(--primary-50);
  border-bottom: 1px solid rgb(4 32 62 / 0.08);
  padding-top: 10px; padding-bottom: 10px;
  font-size: 13px; font-weight: 600;
}
@media (min-width: 768px) { .vd-topbar { display: block; } }
.vd-topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.vd-topbar a { color: rgb(4 32 62 / 0.65); text-decoration: none; transition: color .15s; }
.vd-topbar a:hover { color: var(--teal-700); }

.vd-iconbtn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -8px 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: rgb(4 32 62 / 0.65);
  transition: color .15s, background-color .15s, transform .15s;
}
.vd-iconbtn:hover { background: rgb(4 32 62 / 0.06); color: var(--teal-700); }
.vd-iconbtn:active { transform: scale(.9); background: rgb(4 32 62 / 0.1); }

.vd-search { display: flex; align-items: center; }
.vd-search__form { width: 0; overflow: hidden; transition: width .2s; }
.vd-search.is-open .vd-search__form { width: 220px; }
.vd-search input {
  width: 100%; min-height: 32px; padding: 0 12px;
  border: 1px solid rgb(4 32 62 / 0.15); border-radius: var(--radius-btn);
  background: var(--white); color: var(--primary-900);
  font: inherit; font-size: 13.5px; font-weight: 500;
  outline: none;
}
.vd-search input:focus { border-color: var(--teal-700); }

/* ---------- Hauptheader ---------- */
.vd-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(4 32 62 / 0.1);
  padding-top: 22px; padding-bottom: 22px;
}
.vd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vd-header__logo { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.vd-header__logo img { display: block; height: 22px; width: auto; }
@media (min-width: 640px) { .vd-header__logo img { height: 25px; } }

.vd-header__nav { display: none; }
.vd-header__nav a { color: var(--primary-900); text-decoration: none; transition: color .15s; }
.vd-header__nav a:hover { color: var(--teal-700); }
/* Support/Webshop/Kontakt nur im mobilen Menü, wenn die Topbar ausgeblendet ist */
.vd-header__nav-meta { display: contents; }

.vd-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (min-width: 640px) { .vd-header__actions { gap: 20px; } }

.vd-btn-demo {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 6px; background: var(--primary-700);
  color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background-color .15s;
}
.vd-btn-demo:hover { background: var(--link-500); color: var(--white); }
@media (min-width: 640px) { .vd-btn-demo { min-height: 0; padding: 10px 20px; } }

.vd-burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex-shrink: 0; border: 0; background: none; cursor: pointer;
}
.vd-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--primary-900);
  transition: transform .2s, opacity .2s;
}
.vd-header.is-open .vd-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vd-header.is-open .vd-burger span:nth-child(2) { opacity: 0; }
.vd-header.is-open .vd-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
@media (max-width: 1023px) {
  .vd-header.is-open .vd-header__nav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid rgb(4 32 62 / 0.1);
    box-shadow: 0 16px 32px rgb(4 32 62 / 0.08);
    font-size: 16px; font-weight: 600;
  }
  .vd-header.is-open .vd-header__nav a {
    display: flex; align-items: center; min-height: 48px;
    border-bottom: 1px solid rgb(4 32 62 / 0.08);
  }
  .vd-header__nav-meta a { font-size: 14px; font-weight: 500; color: rgb(4 32 62 / 0.65) !important; }
}
@media (min-width: 768px) { .vd-header__nav-meta { display: none; } }

/* Desktop */
@media (min-width: 1024px) {
  .vd-header__nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
  .vd-header__nav > a { padding: 8px 0; }
  .vd-burger { display: none; }
}

/* ---------- Footer ---------- */
.vd-footer {
  background: var(--white);
  border-top: 1px solid rgb(4 32 62 / 0.1);
  padding-top: 52px; padding-bottom: 34px;
}
.vd-footer__grid { display: grid; gap: 40px; margin-bottom: 40px; }
@media (min-width: 640px)  { .vd-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; align-items: start; } }

.vd-footer__brand > img { display: block; height: 23px; width: auto; margin-bottom: 16px; }
.vd-footer__brand p { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.65; color: rgb(4 32 62 / 0.65); }
.vd-footer__partners {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  list-style: none; margin: 24px 0 0; padding: 0;
}
.vd-footer__partners img { width: auto; opacity: .7; }
.vd-footer__sms { height: 28px; }
.vd-footer__vsfm { height: 44px; }

.vd-footer__col { display: flex; flex-direction: column; font-size: 15px; }
@media (min-width: 640px) { .vd-footer__col { gap: 12px; } }
.vd-footer__col a {
  display: flex; align-items: center; min-height: 44px;
  color: rgb(4 32 62 / 0.72); text-decoration: none; transition: color .15s;
}
@media (min-width: 640px) { .vd-footer__col a { min-height: 0; } }
.vd-footer__col a:hover { color: var(--teal-700); }
.vd-footer__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--primary-900); }
.vd-footer__col .vd-footer__title a { color: var(--primary-900); }

.vd-footer__support { padding: 28px; border-radius: 16px; background: var(--primary-50); }
.vd-footer__col .vd-footer__phone {
  gap: 12px; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgb(4 32 62 / 0.1);
  font-size: 20px; font-weight: 700; color: var(--primary-900);
}
.vd-footer__col .vd-footer__phone:hover { color: var(--teal-700); }
.vd-footer__phone-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  background: rgb(201 219 230 / 0.6); color: var(--primary-900);
}

.vd-footer__bottom {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgb(4 32 62 / 0.1);
  font-size: 13.5px; color: rgb(4 32 62 / 0.5);
}
@media (min-width: 640px) {
  .vd-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.vd-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.vd-footer__legal a {
  display: flex; align-items: center; min-height: 44px;
  color: rgb(4 32 62 / 0.5); text-decoration: none; transition: color .15s;
}
@media (min-width: 640px) { .vd-footer__legal a { min-height: 0; } }
.vd-footer__legal a:hover { color: var(--teal-700); }

/* ---------- Druck ---------- */
@media print {
  .vd-topbar, .vd-header, .vd-footer { display: none !important; }
  .ci-linkboxes-holder__box { box-shadow: none; break-inside: avoid; }
}

/* ---------- Hauptbereich ---------- */
.vd-main { flex: 1 0 auto; }

.vd-bg { padding: 3rem 0; }
.vd-bg-first { padding-top: 3.5rem; }
@media (min-width: 992px) { .vd-bg { padding: 4.5rem 0; } .vd-bg-first { padding-top: 5rem; } }

.vd-bg-transparent { background: var(--white); }
.vd-bg-petrol-light { background: var(--teal-50); border-top: 1px solid var(--teal-100); }

.vd-main p { color: var(--text-muted); font-size: 1.0625rem; }
.vd-main p strong { color: var(--primary-900); }

.vd-bg-petrol-light .vd-h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.vd-bg-petrol-light a { font-weight: 600; }

/* ---------- Linkboxen ---------- */
.ci-linkboxes-holder { margin-top: 2.5rem; }

.ci-linkboxes-holder__boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .ci-linkboxes-holder__boxes { grid-template-columns: repeat(2, 1fr); } }

.ci-linkboxes-holder__box {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  color: var(--primary-900);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ci-linkboxes-holder__box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgb(2 129 143 / 0.35);
  color: var(--primary-900);
}

.ci-linkboxes-holder__box-title {
  margin: 0 0 .6rem;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3;
}
.ci-linkboxes-holder__box p { font-size: .95rem; margin-bottom: 1rem; }

/* gesamter Kasten ist Link → Link-Zeile unten */
a.ci-linkboxes-holder__box > .text-right { margin-top: auto; padding-top: 1rem; }

/* Links innerhalb der Kästen (DE / IT / FR) */
.ci-linkboxes-holder__links {
  margin-top: auto !important;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  align-items: stretch !important;
  gap: 0 !important;
}
.ci-linkboxes-holder__links .ci-link { display: block; }
.ci-linkboxes-holder__links .link-more-pseudo { display: flex; width: 100%; padding: .45rem 0; }

.link-more-pseudo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600;
  color: var(--teal-700);
}
.link-more-pseudo .svg-holder { transition: transform .2s; }
.link-more-pseudo .svg { width: 1.15em; height: 1.15em; }

.ci-link:hover .link-more-pseudo,
.ci-linkboxes-holder__box:hover > .text-right .link-more-pseudo { color: var(--teal-800); }
.ci-link:hover .link-more-pseudo .svg-holder,
.ci-linkboxes-holder__box:hover > .text-right .svg-holder { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  text-decoration: none; background: none; color: inherit;
  transition: background-color .2s, transform .2s, color .2s;
}
.btn-round-lg { width: 56px; height: 56px; border-radius: 50%; }
.btn-secondary { background: var(--accent-500); color: var(--primary-900); box-shadow: 0 8px 24px rgb(244 150 31 / 0.35); }
.btn-secondary:hover { background: var(--accent-400); }
.btn-primary { background: var(--primary-700); color: var(--white); }
.btn-primary:hover { background: var(--link-500); color: var(--white); }

