    /* DEVELOPMENT */
.otgs-development-site-front-end {
    display: none;
}

/* VARIABLES */
:root {
  --header-height: 145px;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
header {
    /*    position: relative;*/
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: calc(-1 * var(--header-height));;
    height: var(--header-height);
    background-color: var(--wp--preset--color--grey);
/*    padding-bottom: 25px;*/
}

.mobile-link {
    display: none!important;
}

.home header {
    background-color: unset;
}

.home #core-numbers, .home #news {
    z-index: 100;
}

:target {
  scroll-margin-top: 150px; /* height of your fixed header */
}

.home #form-container > div.wp-block-cover {
    height: 100%;
}

#leistungsfinder {
    margin-top: calc(-1 * var(--header-height));;
}

header form button {
    padding: 4px!important;
    background-color: unset!important;
}

header form {
    background-color: white!important;
    border: unset!important;
}

header form button svg {
    fill: black!important;
}

header form div {
    border: unset;
    padding: unset!important;
    padding-left: 10px!important;
    padding-right: 10px!important;
}

#very-top {
    position: relative;
    top: -2px;
}

header .wp-block-social-links {
    position: relative;
    top: 2px;
}

/* GESCHÄFTSZAHLEN */

.business-numbers {
    display: flex;
    gap: 30px;
}

.business-numbers p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.business-numbers span {
    color: var(--wp--preset--color--red);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 40px;
}

/* STANDORTE LOOP */
.standorte-container .row {
    padding-bottom: 40px;
    padding-top: 20px;
}

.standorte-container .row:nth-of-type(even) {
    background-color: #E5E5E5;
}

.standorte-container h3 {
    color: var(--wp--preset--color--red);
}

.linkliste {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    row-gap: 5px;
}

.standort-wrapper {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    flex-wrap: wrap;
    gap: 20px;
}

.standort-logo {
    text-align: center;
}

/*
.standort-logo {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.standort-logo img {
    margin: 0 auto;
    width: 190px;
    max-height: 100px;
    object-fit: contain;
}
*/

.standort-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 20px 10px;
}

.standort-logo img {
    max-height: 100%;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}


.standort-item {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.standort-item * {
    margin: 0;
    text-decoration: none;
}

.standort-item a:hover {
    text-decoration: underline;
}

.standort-item hr {
  border: none;
  height: 2px;
  background-color: var(--wp--preset--color--grey);
}


/* Base style for the company name */
.standort-item h4.company-name {
    color: var(--wp--preset--color--red);
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 8px; /* fallback if no altname */
}

/* If altname exists, remove margin under h4 and add it to altname */
.standort-item:has(.company-altname) h4.company-name {
    margin-bottom: 0;
}

.standort-item .company-altname {
    font-weight: 700;
    margin-bottom: 8px; /* only applies if altname exists */
}

.standort-item .company-link {
    font-size: 18px; 
    font-weight: 500;
    margin-top: 10px;
}

.standort-item .company-link:hover {
    text-decoration: underline;
}

.standort-item .company-link:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("../images/arrow-right-circle.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 9px;
    left: 10px;
}

.standort-item .company-website a {
    font-weight: 600;
    color: #E20D19;
}

/* Adresse */ 
.address h2 {
    font-size: 18px;
    color: #E20D19;
}

.address address p {
    margin-top: 0;
    margin-bottom: 0;
    font-style: normal;
}

.address address * {
    text-decoration: none;
}

.address .website {
    color: #E20D19;
    font-weight: 600;
}

/* Zertifikate */
h2.downloads {
    color: #E20D19;
    font-size: 30px;
    display: flex;
    margin-top: 0;
}

.download-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.download-item {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 20px;
    flex-basis: 30%;
}

.download-item img {
    /*    width: 52px;*/
    width: 42px;
    height: auto;
}

.download-item h3,
.download-item h4 {
    margin-top: 0;
    margin-bottom: 0;
    color: #E20D19;
    font-size: 18px;
}

.download-item a {
    text-decoration: none;
}

.download-item a:hover {
    font-weight: 600;
}

/* Downloads */
div.downloads-list {
    display: flex;
    flex-direction: row;
    column-gap: 45px;
    row-gap: 15px;
    flex-wrap: wrap;
    max-width: var(--wp--style--global--content-size);
    margin-bottom: 50px;
}

div.downloads-list .download-item {
    width: 22%;
}

/* Leistungen */
.services {
    margin-top: 0;
}

.services h2 {
    color: #E20D19;
    font-size: 30px;
    display: flex;
    margin-top: 0;
}

.services details,
.abfuhrplaene-accordions details {
    border-bottom: 2px solid black;
    margin-top: 10px;
    margin-bottom: 10px;
}

.services details:open,
.abfuhrplaene-accordions details:open {
    padding-bottom: 20px;
}

.services details:last-of-type,
.abfuhrplaene-accordions details:last-of-type {
    border-bottom: unset;
}

.services summary,
.abfuhrplaene-accordions summary {
    font-size: 24px;
}


.services details summary,
.abfuhrplaene-accordions details summary {
  list-style: none; 
  cursor: pointer;
  position: relative;
  padding-left: 1.5em; /* space for svg arrow */
}

.services details summary::-webkit-details-marker,
.abfuhrplaene-accordions details summary::-webkit-details-marker {
  display: none;
}

.services details summary::before,
.abfuhrplaene-accordions details summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 25px;
    transform-origin: center center; /* default */
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('../images/acc-arrow.svg');
    transition: transform 0.2s ease;
}

.services details[open] summary::before,
.abfuhrplaene-accordions details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.services ul {
    list-style: none;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    width: 100%;
    gap: 4px;
}

.abfuhrplaene-accordions .downloads-list {
    margin-top: 20px;
}

.single-download br {
    display: none;
}

.single-download .download-item {
    display: flex;
    align-items: center;
}

/*
.services ul {
    list-style: none;
    display: grid;
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
    width: 100%;
    gap: 4px;
}
*/
.search .timeline:after {
    display: none;
}

.services ul li * {
    text-decoration: none;
    font-size: 16px;   
}

.services ul li a:hover {
    font-weight: 700;
    color: #E20D19;
}

.services ul li a,
.services ul li a.btn-additional {
    position: relative;
}

.services ul li a:after,
.services ul li a.btn-additional:after {
    position: absolute;
    right: -30px;
    content: '';
    width: 20px;
    height: 21px;
    background-image: url("../images/arrow-right.svg");
    background-repeat: no-repeat;
    background-size: contain;
    bottom: -5px;
    display: inline-block;
}
.services ul .button-wrapper a {
    position: relative;
}

li.matched-service a {
    color: #E20D19;
    font-weight: 600;
}

section.additional-buttons {
/*    margin-left: 12px;*/
}

/*
section.additional-buttons a.btn-additional:after {
    all: unset!important;
}
*/

details.is-style-details-alt:target > summary {
    background-color: #fce6e8;
    outline: 3px solid #fce6e8;
    border-bottom: 2px solid black;
}



/*
.single-standort main > div:nth-of-type(odd) {
    background-color: white;
}
*/

.single-standort main > div {
    margin-top: 0;
    margin-bottom: 0;
}

/* Geschäftsführung */

.ceos h2 {
    color: #E20D19;
    font-size: 30px;
    display: flex;
    margin-top: 0;
}

/*
.related-ceos {
    display: flex;
    column-gap: 35px;
    row-gap: 40px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
*/

/*
.ceo-item {
    width: 165px;
}
*/

.related-ceos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 40px 35px; /* row gap / column gap */
}

.ceo-item {
    width: 100%;
    max-width: 230px; /* optional if you want a cap */
}

.ceo-item h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
}

.ceo-image {
    margin-bottom: 0;
}

.ceo-image img {
    width: 100%;
    height: auto;
}

.ceo-image figcaption {
    position: relative;
    top: -3px;
    font-size: 13px;
}


.single-standort section.standort {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    margin-right: calc(var(--wp--style--root--padding-right) * -1);
    margin-left: calc(var(--wp--style--root--padding-left) * -1);
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    padding-bottom: 30px;
    padding-top: 30px;
}

.single-standort section.standort:nth-of-type(odd) {
    background-color: white;
}


.single-standort section.standort  > div {    
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.single-standort section.standort.one-column section {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;       
}

.single-standort table.businesshours {
    max-width: 400px;
}

nav.sub-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 130px;
    justify-content: flex-end;
}

nav.sub-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    width: 190px;
    display: flex;
    justify-content: space-between;
}

nav.sub-nav a:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 21px;
    background-image: url("../images/arrow-right.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 6px;
    left: 10px;
}


/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: row;
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 100px;
    background-color: #E20D19;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%);
}

.timeline-item:before {
    content: '';
    background-color: #E20D19;
    width: 3px;
    height: 140%;
    position: absolute;
    top: 30%;
    left: 0;
    left: 50%;
    transform: translate(-50%);
}

.timeline-item:last-of-type:before {
    height: 70%;
}

.timeline-item:nth-of-type(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-of-type(even) .timeline-item-text {
    display: flex;
    justify-content: flex-end;
}

.timeline-item:nth-of-type(odd) .timeline-item-image {
    display: flex;
    justify-content: flex-end;
}

.timeline-item-text {
    width: 50%;
}

.timeline-item:nth-of-type(odd) .timeline-item-text .inner-content {
    margin-left: 50px;
    margin-right: 0;
}

.timeline-item:nth-of-type(even) .timeline-item-text .inner-content {
    margin-right: 50px;
    margin-left: 0;
}

.timeline-item:nth-of-type(odd) .timeline-item-image .inner-content {
    margin-right: 50px;
    margin-left: 0;
}

.timeline-item:nth-of-type(even) .timeline-item-image .inner-content {
    margin-left: 50px;
    margin-right: 0;
}

.timeline-item-text * {
    max-width: 460px;
}

.timeline-item-image {
    width: 50%;
}

.timeline-item-image .inner-content figure {
    position: relative;
}

/*
.timeline-item-image .inner-content .caption {
    position: absolute;
    bottom: 10px;
    color: white;
    right: 20px;
    font-size: 13px;
    margin-bottom: 0;
    margin-top: 0;
    text-shadow: 0 0 3px black;
}
*/

.timeline-item-text h3 {
    color: #E20D19;
    margin-bottom: 0;
}

.timeline-item-text span {
    font-weight: 700;
}

.timeline-item-image figure {
    width: 460px;
    height: auto;
    max-height: 500px;
}

.timeline-item-image figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

.timeline::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E20D19;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 1;
}

/*
 DOWNLOADS CERTIFICATES BY STORE 
.certificates-by-store .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


.certificates-by-store span.alt-name {
    display: block;
}

.certificates-by-store .title {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background 0.3s;
    position: relative;
    border-bottom: 2px solid black;
}

.certificates-by-store .title img {
    flex-basis: 4%;
}

.certificates-by-store h3 {
    font-size: 15px;
    font-weight: 600;
    padding-left: 15px;
    margin-bottom: 0;
    margin-top: 0;
}


.certificates-by-store h4 {
    color: black;
    margin-bottom: 0;
}

.title:hover {
    font-weight: 700;
}

.arrow {
    width: 20px!important;
    height: 25px;
    transition: transform 0.2s ease;
}

.arrow.open {
    transform: rotate(90deg);
}

.certificates-by-store .content {
    display: none;
    padding: 15px;
    margin-bottom: 35px;
}

.certificates-by-store .download-container {
    display: grid;
    gap: 40px;
    row-gap: 20px;
    grid-template-columns: 2fr 2fr 2fr;
}

.certificates-by-store h5 {
    font-size: 15px;
    color: var(--wp--preset--color--red);
    margin-top: 0;
    margin-bottom: 0;
}

.custom-title+p {
    display: none;
}

.certificates-by-store .standort-group h4 {
    font-size: 16px;
}

.certificates-by-store .standort-group span.alt-name {
    color: black;
    margin-bottom: 20px;
}

.certificates-by-store .standort-group:nth-of-type(even) {
    background-color: #F2F2F2;
    outline: 13px solid #F2F2F2;
}

.certificates-by-store .standort-group:not(:only-child) {
    margin-bottom: 40px;
}
*/


/* DOWNLOADS CERTIFICATES BY STORE */
.certificates-by-store .row,
.standorte-by-service .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.certificates-by-store span.alt-name,
.standorte-by-service span.alt-name {
    display: block;
}

.certificates-by-store .title,
.standorte-by-service .title {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background 0.3s;
    position: relative;
    border-bottom: 2px solid black;
}

.certificates-by-store .title img,
.standorte-by-service .title img {
    flex-basis: 4%;
}

.certificates-by-store h3,
.standorte-by-service h3 {
    font-size: 15px;
    font-weight: 600;
    padding-left: 15px;
    margin-bottom: 0;
    margin-top: 0;
}

.certificates-by-store h4,
.standorte-by-service h4 {
    color: black;
    margin-bottom: 0;
}

.title:hover {
    font-weight: 700;
}

.arrow {
    width: 20px !important;
    height: 25px;
    transition: transform 0.2s ease;
}

.arrow.open {
    transform: rotate(90deg);
}

.certificates-by-store .content,
.standorte-by-service .content {
    display: none;
    padding: 15px;
    margin-bottom: 35px;
}

.certificates-by-store .download-container,
.standorte-by-service .locations-container {
    display: grid;
    gap: 40px;
    row-gap: 20px;
    grid-template-columns: 2fr 2fr 2fr;
}

.certificates-by-store h5,
.standorte-by-service h5 {
    font-size: 15px;
    color: var(--wp--preset--color--red);
    margin-top: 0;
    margin-bottom: 0;
}

.custom-title + p {
    display: none;
}

.certificates-by-store .standort-group h4,
.standorte-by-service .standort-group h4 {
    font-size: 16px;
}

.certificates-by-store .standort-group span.alt-name,
.standorte-by-service .standort-group span.alt-name {
    color: black;
    margin-bottom: 20px;
}

.certificates-by-store .standort-group:nth-of-type(even),
.standorte-by-service .standort-group:nth-of-type(even) {
    background-color: #F2F2F2;
    outline: 13px solid #F2F2F2;
}

.certificates-by-store .standort-group:not(:only-child),
.standorte-by-service .standort-group:not(:only-child) {
    margin-bottom: 40px;
}

.location-item a {
    text-decoration: none;
}

.location-item a:hover {
    text-decoration: underline;
}


/* TABLES */

.businesshours-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.businesshours-container h2.businesshours {
    font-size: 30px;
    color: var(--wp--preset--color--red);
    margin-bottom: 10px;
}

.businesshours {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.businesshours th,
.businesshours td {
    padding: 8px 12px;
}

.businesshours th {
    text-align: left;
    font-weight: 400;
    color: var(--wp--preset--color--black);
}

.businesshours td {
    text-align: right;
    color: var(--wp--preset--color--black);
}

/* Alternate row background */
.businesshours tr:nth-child(even) {
    background-color: #F2F2F2;
}

.businesshours tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Bottom note */
.businesshours-container span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* TABELLE FIX ERSTE SPALTE */
.has-fixed-layout tr > td:first-of-type {
    white-space: nowrap;
}


/* NINJA FORMS */

.nf-form-cont {
    font-family: 'Roboto', sans-serif;
}

.nf-field-label label,
.nf-label-span {
    font-size: 16px;
    margin-bottom: 0 !important;
    display: block;
    font-weight: 400;
    color: #333;
}

.nf-field h1,
.nf-field h2,
.nf-field h3,
.nf-field h4,
.nf-field h5,
.nf-field h6 {
    color: #E20D19;
}

.nf-element[type="text"],
.nf-element[type="email"],
.nf-element[type="tel"],
.nf-element[type="url"],
.nf-element[type="number"],
.nf-element[type="password"],
.nf-element textarea,
.nf-element select {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    height: 50px;
    line-height: 1.4;
    appearance: none; /* remove default arrow for select */
}

.nf-element textarea {
    resize: vertical;
    min-height: 100px;
}

.nf-element[type="submit"] {
    background-color: #E20D19;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 18px 30px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nf-element[type="submit"]:hover {
    background-color: #cc0000;
}

.ninja-forms-req-symbol {
    color: red;
    margin-left: 2px;
}

.nf-error {
    color: red;
    font-size: 14px;
    margin-top: 4px;
}

.nf-form-fields-required {
    font-size: 14px;
    margin-bottom: 16px;
}

.nf-field-container {
    margin-bottom: 12px;
}

.nf-form-fields-required {
    display: none;
}

.field-wrap.checkbox-wrap div.nf-field-label {
    padding-left: 7px;
}

.nf-form-cont select.nf-element,
.nf-form-cont .nf-field-element select,
.nf-form-cont select.ninja-forms-field {
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px !important;
    padding: 12px !important;
    padding-right: 40px !important;
    width: 100% !important;
    height: 50px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333 !important;

    border: none !important;
    border-radius: 5px !important;
    outline: none; /* let browser provide focus */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image: url('../images/acc-arrow-down.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px auto !important;

    cursor: pointer !important;
}

/* Native dropdown (options) */
.nf-form-cont select option {
    background: #fff !important;
    color: #333 !important;
    border: none !important;
}

/* Remove Firefox text ghosting on focus */
.nf-form-cont select:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 #333 !important;
}

/* Default browser focus ring restored */
.nf-form-cont select:focus {
    outline: revert !important; /* restore native focus */
    box-shadow: none !important; /* remove custom one */
}


/* WP ACCORDION */
.wp-block-accordion-panel {
    margin-top: 0;
    margin-left: 32px;
}


.back-button {
    text-decoration: none;
}

.back-button:hover {
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
}

nav.sibling-tabs ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 0;
}

a.sibling-tabs__item {
    text-decoration: none;
    font-weight: 700;
}

.sibling-tabs li {
    list-style: none;
    background-color: white;
    padding: 4px 7px;
}

a.sibling-tabs__item.is-active, a.sibling-tabs__item:hover {
    color: #E20D19;
}



.containerdienst-standorte * {
    text-decoration: none;
}

.containerdienst-standorte a:hover {
    font-weight: 600;
} 


/* STANDORT SEITEN ROTER BANNER ABSTAND FIX */
.single-standort footer {
    margin-top: 0!important;
}

footer .wp-block-social-links {
    width: 190px;
}



/* MISC */

mark.has-inline-color {
    white-space: nowrap;
}

button {
    border-radius: 5px;
}


.wp-block-button__link:hover {
  background-color: #4a4f55;
}

.wp-block-read-more {
    border-radius: 5px;
}

.wp-block-read-more.has-red-background-color:hover,
.wp-block-button.desktop-link .has-red-background-color:hover {
    background-color: #BB0015!important;
}

.wp-block-post-excerpt__more-link {
    border-radius: 5px;
}

.wp-block-search__button-inside {
    border-radius: 5px;
}


/* BREADCRUMB */
nav.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    padding-left: 0;
}

nav.breadcrumb ol li:last-of-type {
    font-weight: 500;
}


/* LEISTUNGSFINDER AUTOCOMPLETE OVERWRITE */

#user_location_autocomplete {
    background-color: #ffffff!important;
}


#dAopener {
    right: 15px!important;
    top: 48%!important;
    filter: drop-shadow(0px 0px 6px #999)!important;
}

.ccm-settings-summoner.ccm-show button img {
    filter: grayscale(1)!important;
}

.ccm-settings-summoner.ccm-show button img:hover {
    filter: grayscale(1)!important;
}