img{ width: 100%;}
.certificates img{ width: auto;}
.labeling img{ width: auto;}
.position{ position: static !important;}  
.mod-form .option label:before{ border: 1px solid #00822d;}  
.fieldset{ padding-bottom: 0px !important;}
.ce-table thead th { border: none; }
.indexed { margin-top: 30%;
}
.newsletter-subscription .mod-subscription__form .subscriptionsubmit{
    background: 0 0;
    border: none;
    float: right;
    height: 35px;
    margin-top: -18px;
    outline: 0;
    position: absolute;
    right: 0;
    text-indent: -999em;
    top: 20px;
    width: 35px;
}
.newsletter-subscription .mod-subscription__form .subscriptionsubmit::before {
    font-size: 26px;
    font-size: 1.625rem;
    position: absolute;
    text-indent: 0;
    width: 35px;
    line-height: 35px;
    left: 0;
    top: 0;
    color: #666;
}
 .mod-form input[type=checkbox] {  position: relative; left: 0;} 
.mod-form .option label:before {
    border: none;
}

/*31-7-2023*/
.col-s-12 .mod-form__field input#option-fax { display:none; }
.col-s-12 .mod-form__field input#option-ldt { display:none; }


/* .mod-form__addUserForm .femanager_fieldset.femanager_usergroup{display: inline-block;} */
.tx-bra-externaldata-wisplinghoff .mod-form .typo3-messages {
    list-style-type: none;
    padding-inline-start: 0;
    margin-top: 0;
    margin-bottom: 0;
}
.tx-bra-externaldata-wisplinghoff .mod-form .typo3-messages .alert-notice .alert-message, .tx-bra-externaldata-wisplinghoff .mod-form .typo3-messages .alert-danger .alert-message{
    margin-bottom: 24px !important;
    font-size: 16px;
}
.tx-bra-externaldata-wisplinghoff .mod-form .typo3-messages .alert-danger .alert-message{
    color: red;
}
.btn-logout { margin-top: 20px; }
.birthdate-error{display:none!important;}
.error-show{display:block!important;}

/* ##### Custom CSS -- Start ##### */
#authenticate-form .mod-form__field .mod-form__input-box { position: relative; }
#authenticate-form .mod-form__field .mod-form__input-box p.error { position: absolute;  top: 100%; left: 0px; margin: 0px; }
.mod-form .powermail_field .checkbox  input[type=checkbox]{position: inherit;}
/* 04-09-2020 */
.mod-form .check_mark{
  position: relative;
  padding-bottom: 24px;
}
.mod-form .check_mark p.error{
  position: absolute;
  left: 0px;
  bottom: 0;
  margin: 0px !important;
  padding-bottom: 0px;
}
.tx-powermail .checkbox {
    display: flex;
    align-items: center;
    padding: 10px 0; /* Padding oben und unten */
}

.tx-powermail .checkbox label {
    margin-left: 5px; /* Abstand zwischen Checkbox und Label */
    padding: 0; /* Entfernt zusätzliches Padding */
    line-height: normal; /* Normale Zeilenhöhe für vertikale Zentrierung */
}

.tx-powermail .checkbox input[type="checkbox"] {
    margin: 0; /* Entfernt zusätzliche Margen */
}

.tx-powermail .checkbox:last-child {
    padding-bottom: 20px; /* Größeres Padding nach dem letzten .checkbox */
}

.job-form .powermail_fieldset .powermail_field_error, .tx-powermail .powermail_fieldset .parsley-error, .tx-powermail .powermail_fieldset .powermail_form .parsley-error:focus, .tx-powermail .powermail_fieldset div.error {
  background-color: inherit;
  border-color: #A94442;
}
.job-form .powermail_fieldset .parsley-errors-list {
  margin-top: 0;
  margin-bottom: 5px;
  border: none;
  background-color: inherit;
}
.job-form .powermail_fieldset .parsley-errors-list>li {
  padding: 0;
}
.job-form .powermail_fieldset .powermail_field_error_container .parsley-errors-list {
  background-color: inherit;
}
.job-form .powermail_fieldset .powermail_field_error_container .parsley-errors-list>li {
  padding-left: 0;
}
.job-form .check_mark {padding-bottom: 0;}
.job-form input[type=file] {padding: 0;}
.mod-searchresults .tx-indexedsearch-browsebox .f3-widget-paginator .current a { color: #fff; padding: 2px 10px; background-color: #00822d;}
.mod-searchresults .tx-indexedsearch-form-center { margin: 0 auto; float: none; }
.femanager_new .bg-danger { color: #da1e1c; font-size: .6875rem; }
/* ##### Custom CSS -- End ##### */


.tx-bra-externaldata-wisplinghoff footer {
    transition: all .5s cubic-bezier(.31,.08,.29,.98);
    position: relative;
}
.tx-bra-externaldata-wisplinghoff footer nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tx-bra-externaldata-wisplinghoff footer nav ul li a {
    color: #666;
    text-transform: uppercase;
}
.tx-bra-externaldata-wisplinghoff footer nav ul li a:hover,
.tx-bra-externaldata-wisplinghoff footer nav ul li a:active {
    color: #00822f;
}

.tx-bra-externaldata-wisplinghoff footer .footer-copyright,
.tx-bra-externaldata-wisplinghoff footer .footer-links {
    background: #e5f5ed;
    padding-top: 40px;
}
.tx-bra-externaldata-wisplinghoff footer .container {
    margin: 0 auto;
}
.tx-bra-externaldata-wisplinghoff footer .footer-copyright {
    padding-bottom: 0px !important;
    padding-top: 10px;
}
.tx-bra-externaldata-wisplinghoff footer .footer-copyright p {
  font-size: .875rem;
}

.tx-bra-externaldata-wisplinghoff footer nav ul li {
    margin-bottom: 0.5rem;
}
table.tx-labreportvalidation-table {
  border-collapse: separate;
      border-style: hidden;
    border-spacing: 0;
}
table.tx-labreportvalidation-table {
  border: 1px solid #f4f4f4;
  border-radius: 1em;
}
table.tx-labreportvalidation-table tr:first-child td:first-child {border-top-left-radius: 1em;}
table.tx-labreportvalidation-table tr:first-child td:last-child { border-top-right-radius: 1em; }
table.tx-labreportvalidation-table tr:last-child td:first-child { border-bottom-left-radius: 1em; }
table.tx-labreportvalidation-table tr:last-child td:last-child { border-bottom-right-radius: 1em; }

/* Removed and consolidated at end of file */
/*25-5-2022*/
.newsletter-subscription .form-content-section .powermail_fieldwrap .powermail_field { margin-bottom: 15px; }
/*25-5-2022*/

@media only screen and (max-width: 767px) {
  .tx-bra-externaldata-wisplinghoff .mod-table tbody td:nth-child(even) {
    display: block;
    padding-top: 0 !important;
  }
  .tx-bra-externaldata-wisplinghoff .mod-table .certificate-expired-txt {display: block;}
}

@media screen and (max-width: 767px) {
.job-form { margin-left: 0 !important;}
.mod-form.job-form fieldset { margin: 0; min-width: 100%; width: 100%;}
.mod-form.job-form fieldset .row { margin-left: 0; margin-right: 0;}
.mod-form.job-form fieldset .row > .col-s-6 { padding: 0;}
}

/*15-06-2022*/
.mod-form .option.sample-radio input {
    margin-top: 10px;
}
.mod-form .option.sample-radio label input {
    margin: 6px 6px 0 0px;
}
.job-form {margin-left: 16px;}

.btn.right {float: right; }
.col-s-3.datepicker {
    margin-bottom: 30px;
}
.col-s-3.mod-form__input-box {
    margin-bottom: 15px;
}
.row .row .col-s-6 .mod-form__field {
    margin-bottom: 15px;
}
.mod-form .option.sample-radio label {margin: 5px 0 30px 0;}
.row .col-s-12 #c12974 .row {margin-bottom: 0px;}



/*table css 16/05/2022*/

.ce-table{

    text-align: left;
    width: 100%;
    margin-bottom: 60px;
}
.ce-table thead {
    background: #00822d;
}
.ce-table thead tr {
    color: #fff;
}
.ce-table thead th {
    padding: 2em 1em;
    vertical-align: top;
    font-weight: 500;
    text-align: left;
}
.ce-table tbody tr {
    background: #e5f5ed;
    border-bottom: 2px solid #fff;
}
.ce-table tbody td {
    min-height: 62px;
    padding: 1em;
    vertical-align: top;
    width: 25%;
}
.ce-table tbody td:nth-child(even) {
    width: 20%;
}
.ce-table tbody tr:nth-child(even) {
    background: #fff;
}
#formelsammlung{
    margin-bottom: 45px;
}
/*.mod-form fieldset#company {margin-left: -32px;}
*/
form.powermail_form.powermail_form_3.form-horizontal.formhandler.validate {
    padding: 15px;
}
.mod-form.job-form.newsletter-subscription input[type=checkbox] {
    left: 0;
}
form.powermail_form.mod-form input[type=checkbox] {
    left: 0;
}

.mod-form input[type=date], 
.mod-form input[type=email], 
.mod-form input[type=file], 
.mod-form input[type=number], 
.mod-form input[type=password], 
.mod-form input[type=tel], 
.mod-form input[type=text], 
.mod-form input[type=url], 
.mod-form select, 
.mod-form textarea {
    border-radius: 0;
    box-shadow: none;
}
.mod-form select {
    height: 38px;
}

.mod-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-indent: 1px;
    text-overflow: '';
    padding-right: 30px;
    background: url(../img/select-arrow.svg) no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.mod-form input:focus-visible,
.mod-form select:focus-visible,
.mod-form textarea:focus-visible{
  outline:2px solid #005FCC;
}
.mod-form input:focus,
.mod-form select:focus,
.mod-form textarea:focus{
  outline:2px solid #005FCC;
}




/*1-8-2022*/
.powermail_fieldset > .row { margin-bottom: 0; }

.medical-team-bio .row {display: flex;flex-flow: row wrap;}
.mod-flex-row {display: flex;flex-flow: row wrap;}
.medical-team-bio .mod-slider--center .mod-slider__slide__content {margin-bottom: 20px;}
.medical-team-bio .mod-slider--center .mod-person > img {margin-bottom: 10px; width: 100%; height: 239px; object-fit: contain; object-position: left;}
.medical-team-bio .mod-person__name {color: #00822D;font-size: 18px;font-weight: 600;line-height: 28px;margin-bottom: 10px !important;/}
.medical-team-bio .mod-person__department {color: #666;font-size: 18px;font-weight: 600;line-height: 24px;margin-bottom: 8px !important;-moz-hyphens: auto;-ms-hyphens: auto;-o-hyphens: auto;-webkit-hyphens: auto;hyphens: auto;hyphenate-limit-chars:9 3 4;}
.medical-team-bio .mod-person__contact {color: #666;font-size: 18px;font-weight: normal;line-height: 28px;}
.medical-team-bio .mod-person__contact > a {text-decoration: underline;padding-left: 31px;}
.medical-team-bio .mod-person__contact-item:before {font-size: 26px;}
.medical-team-bio .mod-person .more-user-info {text-align: left;}
.medical-team-bio .mod-person .more-user-info .more-description {display: none;text-align: left;padding: 23px 0 0 0;}
.more-description .mod-person__priorities {font-size: 18px;font-weight: normal;line-height: 24px;text-align: left;color: #666;margin-bottom: 19px;-moz-hyphens: auto;-ms-hyphens: auto;-o-hyphens: auto;-webkit-hyphens: auto;hyphens: auto;hyphenate-limit-chars:9 3 4;}
button.bordered-link-btn, a.bordered-link-btn {font-size: 18px;font-weight: normal;line-height: 22px;text-align: left;letter-spacing: 0.02em;color: #666;padding: 8px 28px;border: 1px solid #666;border-radius: 45px;display: inline-flex;align-items: center;justify-content: center;text-align: center;}
.bordered-link-btn:hover {color: #00822D;border-color: #00822D;}
.medical-team-bio .mod-person .more-user-info .bottom-more-icon {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s all ease;
    background: transparent;
    border: none;
    cursor: pointer;
}
.medical-team-bio .mod-person .more-user-info.active .bottom-more-icon {transform: rotate(180deg);}
.medical-team-bio .mod-person .more-user-info .bottom-more-icon > img {margin: 0;}

body.modal-popup-open {overflow: hidden;}
.modal-popup-open .modal-popup {overflow-x: hidden;overflow-y: auto;}
.modal-popup {display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: #fff;width: 100%;height: 100%;z-index: 1050;}
.modal-popup .close-popup-button {position: absolute;top: 32px;right: 42px;background: transparent;padding: 0;}
.modal-popup .close-popup-button > img {width: 42px;}
.modal-popup .modal-popup-dialog {max-width: 844px;margin: 104px auto;transition: -webkit-transform 0.3s ease-out;transition: transform 0.3s ease-out;transition: transform 0.3s ease-out,-webkit-transform 0.3s ease-out;-webkit-transform: translate(0,-50px);transform: translate(0,-50px);}
.modal-popup.show .modal-popup-dialog {-webkit-transform: none;transform: none;}

.medteam-details-info {position: relative;}
.medteam-details-info .med-person-img {width: 324px;height: 270px;margin: 0 auto 13px auto;}
.medteam-details-info .med-person-img > img {width: 100%;height: 100%;object-position: top;object-fit: cover;}
.medteam-details-info .person-name {color: #666;font-size: 36px;font-weight: normal;line-height: 1;text-align: left;margin-bottom: 30px !important;text-transform: none !important;}
.medteam-details-info .details-desc p {color: #666;font-size: 18px;font-weight: normal;line-height: 24px;text-align: left;margin-bottom: 30px !important;}
.medteam-details-info .details-desc p strong {font-weight: 600;}
.medteam-details-info .bordered-link-btn {padding: 13px 28px;min-width: 140px;}

@media (max-width: 991px) {
    .modal-popup .close-popup-button > img {width: 32px;}
    .modal-popup .modal-popup-dialog {margin: 70px 0 50px 0;}
}

@media (max-width: 575px) {
    .mod-flex-row .col-s-6 {width: 100%;max-width: 100%;flex: 0 0 100%;}
}

/*30-01-2024*/
.med-desc-modal .modal-popup-body { padding: 0 20px;}
.tx-bra-person-wisplinghoff a.mod-person__contact-item.icon-contact.icon-before:hover { color: #00822D;}

/*18-03-2024*/
table.tx-labreportvalidation-table { overflow: hidden; }

@media screen and (max-width: 1000px) {

    .tx-bra-externaldata-wisplinghoff .mod-table .tx-labreportvalidation-table tbody td:first-child {
        display: revert;
    }
}

@media screen and (max-width: 767px) {

    .tx-bra-externaldata-wisplinghoff .mod-table .tx-labreportvalidation-table tbody td:first-child {
      display: block;
    }
    .tx-bra-externaldata-wisplinghoff .mod-table .tx-labreportvalidation-table tbody td:nth-child(odd):not(:first-child) {
        display: block;
        padding-top: 0 !important;
    }
   .mod-table tbody td br{ display: block !important;}
}

/*15-04-2024*/
.formbnpegfr .btn { padding-right: 12px; } 
.formbnpegfr table:not(.contenttable) td { padding: 5px 0; }
.formbnpegfr { margin-bottom: 45px; }

/*13-06-2024*/

.flex-wrap {
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}

.footer-last .row,
.footer-last .col-md-6.d-flex,
ul.d-flex {
    display: flex;
    align-items: center; /* Vertically center align items */
}

ul.d-flex,
ul.footer-logo {
    height: 100%; /* Ensure ul takes full height of its container */
}

ul.footer-logo {
    justify-content: flex-end !important; /* Align the footer logos to the right */
    width: 100%; /* Ensure ul takes full width of its container */
}

.footer .footer-last ul {
    padding: 0;
    margin-left: -12px;
    margin-right: -12px;
}

.footer .footer-last ul li {
    list-style: none;
    padding: 0 12px;
    font-weight: 700;
    letter-spacing: 0.32px;
}

.footer .footer-last ul li a {
    text-decoration: none;
}

.footer .footer-last .footer-logo {
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.footer .footer-last .footer-logo li {
    margin: 0 15px 0 0;
    padding: 0;
    list-style: none;
}

.footer .footer-last .footer-logo li img {
    height: 90px;
    width: auto;
}

.footer-last .col-md-6:first-child {
    justify-content: flex-start; /* Align the first column to the left */
}

.footer-last .col-md-6:last-child {
    justify-content: flex-end; /* Align the second column to the right */
}

.patho h4 {
    color: #00822d;
}

.patho ul {
    padding-inline-start: 20px;
}

.patho .frame-layout-1 ::marker {
    color: #00822d;
}

.patho .mod-teaser.mod-teaser--image .headline-1,
.patho .mod-teaser.mod-teaser--image .headline-2,
.patho .mod-teaser.mod-teaser--image .headline-3,
.patho .mod-teaser.mod-teaser--image .headline-4,
.patho .mod-teaser.mod-teaser--image .headline-5,
.patho .mod-teaser.mod-teaser--image .headline-6,
.patho .mod-teaser.mod-teaser--image h1,
.patho .mod-teaser.mod-teaser--image h2,
.patho .mod-teaser.mod-teaser--image h3,
.patho .mod-teaser.mod-teaser--image h4,
.patho .mod-teaser.mod-teaser--image h5,
.patho .mod-teaser.mod-teaser--image h6,
.patho .mod-teaser.mod-teaser--image p {
    margin-top: 0;
    margin-bottom: 0 !important;
}

.mod-teaser .border {
    border: 2px solid;
    padding: 10px;
}

.patho .footer-text a {
    color: #00822d;
    text-decoration: none;
}



/* 18-06-2024  footer image adjustment*/
.footer .patho .ce-gallery img {
    max-height: 90px;
    width: auto;
}

/* 21-06-2024 smart phone issue */
@media (max-width:768px){
    main.maintenance {padding-top:65px;}
    .header-banner .header-content .mainnav {
        background-color: #fff;
    }

}
@media (max-width:575px){
    .footer-last .row { flex-direction:column; }
    .footer-last .col-m-6 { width: 100%; }
    .footer .footer-last .footer-logo { justify-content: flex-start !important; }
}

@media (max-width:540px){
    .footer .patho .ce-gallery img {
        height: auto;
        width: auto;
    }
}

.patho .mod-fullwidth-container .scroll-down {
    display: none;
}

/*19-07-2024*/
.powermail_fieldwrap_type_submit input[type=submit] { background-image:url(../img/icons/chevron-right.svg); background-position: right 10px center; background-repeat: no-repeat;padding: 7px 35px 7px 20px; background-size: 18px;}

/*22-07-2024*/

.tx-bra-externaldata-wisplinghoff .btn-set .btn {
    background-image: url(../img/icons/chevron-right.svg);
    background-position: right 10px center;
    background-repeat: no-repeat;
    padding: 7px 35px 7px 20px;
    background-size: 18px;
    line-height: 20px;
} 

/* 02-08-2024 */
.mod-fullwidth-container.no-image .container {
    padding: 20px 0 100px 15px;
    position: relative;
}

/* 24-03-2025 */
/* Lab report salutation text styling */
.text-salutation {
  font-size: 1.125rem;
  color: #333;
  line-height: normal;
  margin-top: 0;
  margin-bottom: 1rem !important;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-style: normal;
  speak-as: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: block;
  padding: 0;
}

/* Ensure the no-caps class works the same on p as it did on h3 */
p.no-caps {
  text-transform: none;
}

/* Ensure grey and light classes work the same on p as they did on h3 */
p.grey {
  color: #666;
}

p.light {
  font-weight: 300;
}

/* Spezifische Stile für Veranstaltungsdetails-Tabelle */
.event-details table.contenttable {
    width: 100%;
    max-width: 600px;  /* Optimale Breite für bessere Lesbarkeit */
    margin: 0;    /* Linksbündig */
    border-collapse: collapse;
    table-layout: auto;
}

.event-details table.contenttable td {
    padding: 8px;
    vertical-align: top;
}

/* Label-Spalte: fett und schmaler */
.event-details table.contenttable td.label {
    white-space: nowrap;
    font-weight: bold;
    width: 30%;  /* Labels nehmen ca. 30% ein */
}

/* Inhalts-Spalte */
.event-details table.contenttable td.value {
    width: 70%;  /* Inhalte nehmen ca. 70% ein */
    word-wrap: break-word;
}

/* Responsive Darstellung: Bei kleineren Bildschirmen werden die Zeilen gestapelt */
@media screen and (max-width: 600px) {
    .event-details table.contenttable,
    .event-details table.contenttable tbody,
    .event-details table.contenttable tr,
    .event-details table.contenttable td {
        display: block;
        width: 100%;
    }
    .event-details table.contenttable tr {
        margin-bottom: 10px;
    }
    .event-details table.contenttable td {
        box-sizing: border-box;
        padding: 6px 0;
    }
    .event-details table.contenttable td.label {
        margin-bottom: 4px;
    }
}

.frame-default > :not(header):not(div):not(p):not(ul):not(ol):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(table):not(a), 
.frame-type-text > :not(header):not(div):not(p):not(ul):not(ol):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(table):not(a), 
.frame-type-textpic > :not(header):not(div):not(p):not(ul):not(ol):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(table):not(a), 
.frame-type-textmedia > :not(header):not(div):not(p):not(ul):not(ol):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(table):not(a) {
    display: block;
    margin-bottom: 1rem !important;
    line-height: 1.5;
}

/* Fix for buttons displaying full width - more specific selectors */
.frame-default > a.btn,
.frame-type-text > a.btn, 
.frame-type-textpic > a.btn,
.frame-type-textmedia > a.btn,
.frame-type-list > a.btn {
    display: inline-block !important;
    width: auto !important;
}

/* Additional targeting to cover all possible button placements */
a.btn {
    display: inline-block !important;
    width: auto !important;
}

.powermail_fieldset h3 {
    position: relative; 
    margin-left: -15px !important;
}

/* Ensure the label and input are properly formatted */
.mod-widgets-sidebar--ol .login label {
  display: block;
  margin-bottom: 5px;
}

/* Style input fields in login form with ECF8F3 background and white border */
.mod-widgets-sidebar--ol .login input[type="text"],
.mod-widgets-sidebar--ol .login input[type="password"],
.mod-widgets-sidebar--ol .login input[type="email"],
.mod-widgets-sidebar--ol .login input {
  background-color: #ECF8F3;
  border: 2px solid #fff;
  padding: 5px 10px 5px 35px;
  color: #00822d;
  width: 240px;
  box-sizing: border-box;
  display: block; /* Ensure each input is on its own line */
  margin-bottom: 10px; /* Add spacing between inputs */
}

/* Fix layout for the form elements */
.mod-widgets-sidebar--ol .login fieldset > div {
  display: block;
  width: 100%;
  clear: both;
  margin-bottom: 15px;
}


/* ========== WCAG Keyboard Focus Styling ========== */
/*
 * This section contains styles for keyboard focus indicators to improve accessibility.
 * These styles ensure that keyboard users can see which element has focus,
 * while hiding focus outlines for mouse users.
 */

/* Hide outlines by default */
a:focus:not(.keyboard-focus),
button:focus:not(.keyboard-focus),
input:focus:not(.keyboard-focus),
select:focus:not(.keyboard-focus),
textarea:focus:not(.keyboard-focus),
[tabindex]:focus:not(.keyboard-focus) {
  outline: none !important;
  outline-offset: 0 !important;
}

/* Show outlines only for keyboard navigation */
a.keyboard-focus,
button.keyboard-focus,
input.keyboard-focus,
select.keyboard-focus,
textarea.keyboard-focus,
[tabindex].keyboard-focus {
  outline: 2px solid #005FCC !important;
  outline-offset: -1px !important;
}

/* Specific styles for navigation items with keyboard focus */
.mainnav__list-item a.keyboard-focus {
  outline: 2px solid #005FCC !important;
  outline-offset: 2px !important;
  background-color: rgba(0, 95, 204, 0.1) !important;
}

/* Make sure subnavigation items are visible when parent has keyboard focus */
.mainnav__list-item a.keyboard-focus + .mainnav__sublist {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Sidebar toggle button keyboard focus */
.sidebar-toggle.keyboard-focus {
  outline: 2px solid #005FCC !important;
  outline-offset: 2px !important;
  background-color: rgba(0, 95, 204, 0.1) !important;
}

/* Ensure sidebar opens when toggle button has keyboard focus and Enter/Space is pressed */
.sidebar-toggle.keyboard-focus.active {
  background-color: rgba(0, 130, 45, 0.1) !important;
}

/* ========== Link Styling Rules ========== */
/*
 * These rules control link underlines and hover colors throughout the site:
 * 
 * 1. Normal state:
 *    - Regular content links have underlines by default
 *    - Links with chevrons/arrows do NOT have underlines
 *    - Buttons do NOT have underlines
 * 
 * 2. Hover state:
 *    - ALL links turn to a darker green (#006328)
 *    - ALL content links get underlines on hover (including those with chevrons)
 *    - Buttons remain without underlines on hover
 *    - Only the text part gets underlined, not the chevron/icon itself
 *
 * These styles work in conjunction with the WCAG focus styles above
 * to maintain both visual consistency and accessibility.
 */

/* NORMAL STATE: Define exceptions that should NOT have underlines in normal state */
main a.icon-arrow-right,
main a.icon-arrow-left,
main a.icon-chevron-right,
main a.icon-chevron-left,
main a.icon-before,
main a.icon-after,
main a[class*="icon-"],
main a.btn,
main a > span[class*="icon-"],
main span[class*="icon-"] > a,
main a:has(span[class*="icon-"]) {
  text-decoration: none !important;
}

/* Special case for Humangenetik links - never have underlines */
main .mod-teaser a.icon-arrow-right.icon-before.link.center {
  text-decoration: none !important;
}

/* HOVER STATE: Links that should NEVER have underlines, even on hover */
main a.btn:hover,
main .mod-teaser a.icon-arrow-right.icon-before.link.center:hover {
  text-decoration: none !important;
}

/* HOVER STATE: All other links get underlines on hover */
main a:not(.btn):hover,
main a.icon-arrow-right:not(.btn):hover,
main a.icon-arrow-left:not(.btn):hover, 
main a.icon-chevron-right:not(.btn):hover,
main a.icon-chevron-left:not(.btn):hover,
main a.icon-before:not(.btn):hover,
main a.icon-after:not(.btn):hover,
main a[class*="icon-"]:not(.btn):hover,
main a:has(span.icon-arrow-right):not(.btn):hover,
main a:has(span.icon-before):not(.btn):hover,
main a:has(span.icon-after):not(.btn):hover {
  text-decoration: underline !important;
}

/* Special handling for the Weiterlesen links with nested spans */
main a:has(span.icon-arrow-right.icon-before > span),
main a:has(span.icon-before > span) {
  text-decoration: none !important;
}

main a:has(span.icon-arrow-right.icon-before > span):hover,
main a:has(span.icon-before > span):hover {
  text-decoration: underline !important;
}

/* Ensure person profile email links always have underlines */
.mod-person__contact .mod-person__contact-item.icon-contact.icon-before {
  text-decoration: underline !important;
}

/* Other global exceptions */
.no-underline,
.no-underline a,
.no-underline:hover,
.no-underline a:hover,
.btn,
.btn a,
.btn:hover,
.btn a:hover,
.icon,
.icon a,
.icon:hover,
.icon a:hover,
.logo a,
.logo a:hover,
.navigation-toggle,
.navigation-toggle:hover,
.mainnav__toggle,
.mainnav__toggle:hover,
.sidebar-toggle,
.sidebar-toggle:hover,
header a,
header a:hover,
footer a,
footer a:hover,
nav a,
nav a:hover,
.sidebar a,
.sidebar a:hover,
.mainnav a,
.mainnav a:hover {
  text-decoration: none !important;
}

/* Now define the general styling for standard content links */
/* Content area link styling - applies to links that don't match the exceptions above */
main a {
  text-decoration: underline !important;
}

/* Hover state color for all links except buttons */
main a:not(.btn):hover {
  color: #006328 !important;
  text-decoration: underline !important;
}

/* Ensure buttons maintain white text color on hover */
main a.btn:hover {
  color: white !important;
}

main a:has(span.icon-arrow-right.icon-before > span):hover { text-decoration: none !important; }
main a:hover span.icon-arrow-right.icon-before > span {
    text-decoration: underline !important;
}
main a.icon-before:not(.btn):hover {
    text-decoration: none !important;
}

/* Add underlines to links in sidebar-content */
.sidebar-content a {
    text-decoration: underline !important;
}

/* Font size for contact items in sidebar */
.sidebar .mod-teaser .contact-item {
    font-size: 1.0625rem;
}

/* Font size for contact numbers */
.mod-teaser--contact .contact-number {
    font-size: 1.0625rem;
}

/* Font size and weight for additional contact area in sidebar */
.mod-widgets-sidebar--contact .additional-contact-area {
    font-size: 1.125rem;
    font-weight: 600;
    display: block; /* Add line break after the heading */
    margin-bottom: 5px; /* Add some spacing between heading and phone number */
}

/* Define exceptions for sidebar-content - elements that should NOT have underlines */
.sidebar-content a.btn,
.sidebar-content a.icon-arrow-right,
.sidebar-content a.icon-arrow-left,
.sidebar-content a.icon-chevron-right,
.sidebar-content a.icon-chevron-left,
.sidebar-content a.icon-before,
.sidebar-content a.icon-after,
.sidebar-content a[class*="icon-"],
.sidebar-content a > span[class*="icon-"],
.sidebar-content span[class*="icon-"] > a,
.sidebar-content a:has(span[class*="icon-"]),
.sidebar-content .toggle,
.sidebar-content .sidebar-toggle,
.sidebar-content button a,
.sidebar-content .close-popup-button a,
.sidebar-content form a,
.sidebar-content .tx-indexedsearch-searchbox-button a,
.sidebar-content #sidebartabs a,
.sidebar-content .sidebar-2nd-level-search a,
.sidebar-content .sidebar-2nd-level-news a,
.sidebar-content .sidebar-2nd-level-career a,
.sidebar-content .sidebar-2nd-level-laboratory a,
.sidebar-content .sidebar-2nd-level-directory a,
.sidebar-content .sidebar-2nd-level-contact a {
    text-decoration: none !important;
}

/* Also ensure no underlines on hover for these excluded elements */
.sidebar-content a.btn:hover,
.sidebar-content a.icon-arrow-right:hover,
.sidebar-content a.icon-arrow-left:hover,
.sidebar-content a.icon-chevron-right:hover,
.sidebar-content a.icon-chevron-left:hover,
.sidebar-content a.icon-before:hover,
.sidebar-content a.icon-after:hover,
.sidebar-content a[class*="icon-"]:hover,
.sidebar-content button a:hover,
.sidebar-content .close-popup-button a:hover,
.sidebar-content form a:hover,
.sidebar-content #sidebartabs a:hover,
.sidebar-content .sidebar-2nd-level-search a:hover,
.sidebar-content .sidebar-2nd-level-news a:hover,
.sidebar-content .sidebar-2nd-level-career a:hover,
.sidebar-content .sidebar-2nd-level-laboratory a:hover,
.sidebar-content .sidebar-2nd-level-directory a:hover,
.sidebar-content .sidebar-2nd-level-contact a:hover {
    text-decoration: none !important;
}

/* Sidebar scrollbar styling */
.sidebar-content {
    position: absolute;
    top: 5px; /* Position from top to leave space for the X icon */
    bottom: 20px; /* Some space at bottom */
    left: 0;
    right: 0;
    overflow-y: auto;
    padding-right: 5px; /* Add padding to prevent content from touching scrollbar */
    padding-top: 10px; /* Additional padding at top */
}

/* Webkit browsers scrollbar styling (Chrome, Safari, Edge) */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #e5f5ed; /* Light green background matching your theme */
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #00822d; /* Green color matching your theme */
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #006328; /* Slightly darker green on hover */
}

/* Firefox scrollbar styling */
.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: #00822d #e5f5ed;
}

/* 26-08-2025 Link styling of Kontakt section in sidebar */
.sidebar-2nd-level-contact .sidebar-content a { text-decoration: none !important; }
.sidebar-2nd-level-contact .sidebar-content a:hover { text-decoration: underline !important; }
.sidebar-2nd-level-contact .mod-widgets-sidebar--contact .contact-email:hover span,
.sidebar-2nd-level-contact .mod-widgets-sidebar--contact .contact-number:hover span { border-bottom:0; }

/* Additional qualification styling for person profiles */
.mod-person__qualification {
    color: #666;
    text-align: left;
    margin: 0 0 15px;
    text-transform: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 9 3 4;
}

/* Ensure consistent styling in medical team bio section */
.medical-team-bio .mod-person__qualification {
    min-height: auto;
}

/* Default spacing for qualification */
.mod-person__qualification {
    margin: 0 0 15px;
}

/* If a qualification appears anywhere after a department, pull it up a bit */
.mod-person__department ~ .mod-person__qualification {
    margin-top: -8px;
}

/* Scoped variant for medical team bio */
.medical-team-bio .mod-person__department ~ .mod-person__qualification {
    margin-top: -8px;
}

.sidebar-2nd-level-contact .mod-widgets-sidebar--contact .contact-number:hover span { border-bottom:0; } 

/*28-08-2025*/
.sidebarnav a.toggle.icon-only.icon-close {z-index: 1;}
