body {
    background-color: #FFF;
    color: #64666b;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
}

.btn-primary-specialEdition {
    background: #ff0000 url(pix/dsg1_ksk_vermittlerportal_icon_cta.png) no-repeat 95% 10px;
    color: #fff;
    font: bold 16px Arial, sans-serif;
    line-height: normal;
    display: inline-block;
    /*float: right;*/
    line-height: 1.5;
    padding: 9px 45px 9px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out 0s;
    width: 100%;
    margin-bottom: 25px;
}

    /*.btn-primary-specialEdition span {
    color: #000;
}*/

    .btn-primary-specialEdition:hover {
        background: #ff0000 url(pix/dsg1_ksk_vermittlerportal_icon_cta_hover.png) no-repeat 95% 10px;
        color: #fff !important;
        text-decoration: none !important;
    }

/*.btn-primary-specialEdition:hover span {
    color: #bfc0c2;
    }*/

html:not(.is-touch) .btn-primary-specialEdition:not(:disabled):active {
    background: #ff0000 url(pix/dsg1_ksk_vermittlerportal_icon_cta_hover.png) no-repeat 95% 10px;
    color: #fff !important;
    text-decoration: none !important;
}

.btn-primary-specialEdition:focus {
    background: #ff0000 url(pix/dsg1_ksk_vermittlerportal_icon_cta_hover.png) no-repeat 95% 10px;
    color: #fff !important;
    text-decoration: none !important;
}


.panel-footer a,
.header-hero a {
    text-decoration: none;
    color: #fff;
}

.panel-footer a:hover,
.panel-footer a:focus,
.panel-footer a:visited,
.panel-footer a:active {
    text-decoration: underline;
    color: #fff;
}

main a {
    color: rgb(216, 32, 32);
    text-decoration: underline;
}

main a:hover,
main a:focus {
    color: #b81616;
}

.glyphicon-menu-right::before {
    position: absolute;
    left: -16px;
    top: 5px;
    font-size: 50px;
    line-height: 56px;
}

.panel-heading img {
        max-width: 200px;

}

.panel-footer-top {
    background-image: url("pix/background.png");
}


.panel-footer {
    background-color: #666;
}

    /* HEADLINES*/
    .hl-1, .hl-2, .hl-3, .hl-4, .hl-5, .hl-6 {
    font-family: Arial, sans-serif !important;
    /*letter-spacing: -.02em;*/
    font-style: normal;
    text-rendering: optimizeLegibility;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

.color--white {
    color: #fff !important;
}

.color--black {
    color: #000 !important;
}

.color--red {
    color: rgb(216, 32, 32) !important;
}

.color--darkblue {
    color: #002e5f !important;
}

.color--light-blue {
    color: #008ecf !important;
}

.bgcolor--lightgray25w {
    background-color: #efeff0 !important;
}

.hl-1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.5;
}

.hl-2 {
    font-size: 24px;
    line-height: 1.2;
}

.hl-3 {
    font-size: 18px;
    line-height: 1;
    margin-top: 15px;
}

.fs-intro {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

.lead {
    color: #777;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 25px;
    margin-left: 0px;
    margin-right: 0px;
}

@media (min-width: 768px) {
    .hl-1 {
        font-size: 32px;
        font-weight: bold;
        line-height: 1.5;
    }

    .hl-2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hl-3 {
        font-size: 22px;
        line-height: 1;
    }


    .fs-intro {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .lead {
        color: #777;
        font-size: 18px;
        font-weight: 300;
        line-height: 1.5;
        margin-top: 25px;
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media (min-width: 992px) {
    .hl-1 {
        font-size: 36px;
        font-weight: bold;
        line-height: 1.5;
    }

    .hl-2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hl-3 {
        font-size: 24px;
        line-height: 1;
    }


    .fs-intro {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .lead {
        color: #777;
        font-size: 20px;
        font-weight: 300;
        line-height: 1.5;
        margin-top: 25px;
        margin-left: 0px;
        margin-right: 0px;
    }
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.visually-hidden-focusable:focus {
  position:static !important;
  width:auto; height:auto;
  margin:1rem 0;
  padding:.5rem .75rem;
  background:#fff;
  outline:2px solid #000;
  border-radius:.25rem;
}

.btn-primary-specialEdition:focus-visible {
  outline: 3px solid #000;     /* gut sichtbar auf Rot */
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary-specialEdition {
    transition: none;
  }
}

@media (forced-colors: active) {
  .btn-primary-specialEdition {
    background-image: none !important; /* Deko-Icon ausblenden */
  }
}

/* Falls Branding es erlaubt: Rot leicht abdunkeln für AA */
.btn-primary-specialEdition,
.btn-primary-specialEdition:hover,
.btn-primary-specialEdition:focus,
html:not(.is-touch) .btn-primary-specialEdition:not(:disabled):active {
  background-color: rgb(216, 32, 32);
  background-image: url(pix/dsg1_ksk_vermittlerportal_icon_cta.png);
  background-repeat: no-repeat;
  background-position: 95% 10px;
}
.btn-primary-specialEdition:hover,
.btn-primary-specialEdition:focus,
html:not(.is-touch) .btn-primary-specialEdition:not(:disabled):active {
  background-image: url(pix/dsg1_ksk_vermittlerportal_icon_cta_hover.png);
}

.panel-footer a:focus,
.panel-footer button:focus {
  outline: 3px solid #fff;         
  outline-offset: 2px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@supports selector(:focus-visible) {
  .panel-footer a:focus:not(:focus-visible),
  .panel-footer button:focus:not(:focus-visible) {
    outline: none;
    text-decoration: none;
  }
  .panel-footer a:focus-visible,
  .panel-footer button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
}


.panel-footer a:focus img,
.panel-footer a:focus-visible img {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;              
}


@media (forced-colors: active) {
  .panel-footer a:focus,
  .panel-footer a:focus-visible,
  .panel-footer button:focus,
  .panel-footer button:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
  .panel-footer a:focus img,
  .panel-footer a:focus-visible img {
    outline: 2px solid CanvasText;
  }
}

.panel-footer .link-light {
  display: inline-block;
  padding: 2px 2px;
}

/* Card-Bilder einheitliche Höhe */
.card-img-fixed {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

/* Zurück-Button (z.B. iSFP-Seite) */
.btn-back {
  display: inline-block;
  padding: 8px 16px;
  background: rgb(216, 32, 32);
  color: #fff !important;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}
.btn-back:hover,
.btn-back:focus {
  background: #b81616;
  color: #fff !important;
  text-decoration: none;
}

/* Header Hero mit Text-Overlay */
.header-hero {
  position: relative;
  overflow: hidden;
}

.header-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
}

.header-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: #fff;
  text-align: center;
}

.header-hero-text h1 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
  .header-hero-text {
    padding: 32px 24px;
  }
  .header-hero-text h1 {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .header-hero-text h1 {
    font-size: 48px;
  }
}

#febis-questionizer legend {
  float:inherit;
}


/* FMA / Questionizer Widget: Work Sans → Arial */
.fbq .questionizer-root h1,
.fbq .questionizer-root h2,
.fbq .questionizer-root h3,
.fbq .questionizer-root h4,
.fbq .questionizer-root h5,
.fbq .questionizer-root h6,
.fbq .questionizer-root input,
.fbq .questionizer-root label,
.fbq .questionizer-root p,
.fbq .questionizer-root span,
.fbq .questionizer-root td,
.fbq .questionizer-root tr {
  font-family: Arial, sans-serif !important;
}

/* ESR / Energiesparrechner Widget: Open Sans → Arial */
.esr h1, .esr h2, .esr h3,
.esr input, .esr legend,
.esr p, .esr .view__copy,
.esr .view__title,
.esr .navigation__step-label,
.esr .navigation__step-number,
.esr .input__label,
.esr .input__hint,
.esr .statistics__label,
.esr .measure__label,
.esr .measure__info-now,
.esr .measure__info-future {
  font-family: Arial, sans-serif !important;
}

/* ESR: CSS-Variable überschreiben */
.esr {
  --font-regular: Arial, sans-serif !important;
  --font-bold: Arial, sans-serif !important;
}

/* ----------------------------------------------------------
   2. WIDGET H1-GRÖSSE angleichen (FMA: 32px → 28px wie .hl-2)
   ---------------------------------------------------------- */

/* FMA Hauptfrage-Überschrift (H1 im Widget-Kontext) */
.fbq .questionizer-root h1,
.fbq .questionizer-root .form__title {
  font-size: 24px !important;  /* entspricht .hl-2 auf Mobile */
  line-height: 1.2 !important;
}

@media (min-width: 768px) {
  .fbq .questionizer-root h1,
  .fbq .questionizer-root .form__title {
    font-size: 28px !important; /* entspricht .hl-2 auf Tablet+ */
  }
}

/* ESR H1 im Widget – von 16px auf sinnvollen Wert heben */
.esr h1 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #353535 !important;
}

/* ----------------------------------------------------------
   3. AKZENTFARBE – SwissLife-Rot (#d82020) statt Grün/Pink
   ---------------------------------------------------------- */

/* FMA: Buttons-Farbe von #83af39 (Grün) → Rot */
.fbq {
  --primary: #d82020 !important;
  --primary-light: #d82020 !important;
  --primary-dark: #a81010 !important;
  --buttons-bg: #d82020 !important;
  --active: #d82020 !important;
  --active-hover: #a81010 !important;
  --hover: #a81010 !important;
}

/* ESR: Buttons-Farbe von #c81e82 (Pink) → Rot */
.esr {
  --primary: #d82020 !important;
  --primary-light: #d82020 !important;
  --primary-dark: #a81010 !important;
  --buttons-bg: #d82020 !important;
  --buttons-bg-hover: #a81010 !important;
  --buttons-outline-stroke: #d82020 !important;
  --buttons-outline-text: #d82020 !important;
  --active: #d82020 !important;
}

/* ----------------------------------------------------------
   4. FLIESSTEXT / BODY-TEXT – Gewicht und Farbe angleichen
   ---------------------------------------------------------- */

/* FMA: Fußnote/Info-Text angleichen */
.fbq .questionizer-root .form__info-bottom {
  font-size: 14px !important;
  font-family: Arial, sans-serif !important;
  color: #64666b !important; /* Microsite-Grau */
  line-height: 1.375 !important;
}

/* FMA: Standardtext-Farbe auf Microsite-Grau */
.fbq div,
.fbq label,
.fbq p {
  color: #64666b !important;
}

.fbq .step__point.step__point--active {
  color: #ffffff !important;
}

/* ESR: Text-Farbe harmonisieren */
.esr .view__copy,
.esr .input__label,
.esr legend {
  color: #64666b !important;
}

/* ----------------------------------------------------------
   5. ZEILENHÖHE vereinheitlichen
   ---------------------------------------------------------- */

/* FMA: von 28.8px → 22px wie Microsite-Basis */
.fbq .questionizer-root p,
.fbq .questionizer-root div {
  line-height: 1.375 !important; /* ≈ 22px bei 16px */
}

/* ESR: von 24px → 22px */
.esr p,
.esr .view__copy {
  line-height: 1.375 !important;
}

/* ----------------------------------------------------------
   6. STEP-NAVIGATION – Schrittanzeige beider Widgets
   ---------------------------------------------------------- */

/* FMA Step-Punkte auf Rot */
.fbq .questionizer-root .step__point--active {
  background-color: #d82020 !important;
  border-color: #d82020 !important;
}

/* ESR aktiver Step und Step-Labels */
.esr .navigation__step--active .navigation__step-number {
  background-color: #d82020 !important;
}

/* ----------------------------------------------------------
   7. WIDGET-BUTTONS explizit überschreiben (falls Variablen 
      in manchen Browsern nicht cascaden)
   ---------------------------------------------------------- */

/* FMA Button */
.fbq .btn {
  background-color: #d82020 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  border-radius: 0.2rem;
}

.fbq .btn .icon{
  display:none;
}

.fbq .btn:hover,
.fbq .btn:focus {
  background-color: #a81010 !important;
}

.esr h2 {
  font-size:24px;
} 

.esr,
.esr *,
.esr *::before,
.esr *::after {
  box-sizing: content-box;
}


