/*
Theme Name: Treppenbarriere
Theme URI: https://ytreppenbarriere.com
Description: Eine Treppenbarriere für sensible Bereiche.
Author: Dirk Wißler
Author URI: https://optimuxx.de
Template: Total
Version: 1.0
*/


/* === TOPBAR === */
#top-bar-content > div > span > span > svg {
    fill: #d1382e;
}


/* === HERO === */
.tb-hero {
    background: #fff;
    color: #242424;
    padding: 34px 0 72px;
}

.tb-hero__inner {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.25fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
}

.tb-hero__content {
    padding-top: 24px;
}

.tb-eyebrow {
    margin: 0 0 28px;
    color: #d1382e;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tb-hero h1 {
    max-width: 620px;
    margin: 0;
    color: #202020;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(46px, 4.2vw, 64px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: 0;
}

.tb-hero__text {
    max-width: 520px;
    margin: 28px 0 0;
    color: #686868;
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.55;
}

.tb-hero__actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 34px;
}

.tb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    background: #202020;
    color: #fff;
    border-radius: 6px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.tb-button:hover {
    background: #000;
    transform: translateY(-1px);
    color: #fff;
}

.tb-textlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #242424;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.tb-textlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #d1382e;
  transition: width 180ms ease;
}

.tb-textlink span {
  color: #d1382e;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.tb-textlink:hover {
  color: #242424;
}

.tb-textlink:hover::after {
  width: calc(100% - 28px);
}

.tb-textlink:hover span {
  transform: translateX(4px);
}

.tb-textlink,
.tb-textlink:visited,
.tb-textlink:hover,
.tb-textlink:focus,
.tb-textlink:active {
  text-decoration: none;
}

.tb-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0;
    width: fit-content;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid #d9d9d6;
    color: #242424;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.tb-hero__facts > span {
    padding: 0 34px;
    border-right: 1px solid #d9d9d6;
}

.tb-hero__facts span:first-child {
    padding-left: 0;
}

.tb-hero__facts > span:last-child {
    padding-right: 0;
    border-right: 0;
}

.tb-hero__image {
    margin: 0;
}

.tb-hero__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    border-radius: 28px;
}

.tb-hero__fact--material {
    display: flex;
    align-items: flex-start;
}

.tb-hero__fact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tb-hero__fact-text small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    white-space: nowrap;
}

/* === HERO RESPONSIVE === */

@media (max-width: 900px) {

    .tb-hero {
        padding: 24px 0 56px;
    }

    .tb-hero__inner {
        width: min(100% - 32px, 680px);
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tb-hero__content {
        padding-top: 12px;
    }

    .tb-hero h1 {
        max-width: none;
        font-size: clamp(40px, 8vw, 54px);
    }

    .tb-hero__text {
        max-width: none;
        font-size: 17px;
    }

    .tb-hero__actions {
        flex-wrap: wrap;
        gap: 22px 30px;
    }

    .tb-hero__facts {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tb-hero__facts span {
        padding: 0 18px;
    }

    .tb-hero__facts span:first-child {
        padding-left: 0;
    }

    .tb-hero__facts span:last-child {
        padding-right: 0;
    }

    .tb-hero__image img {
        aspect-ratio: auto;
    }
}


@media (max-width: 560px) {

    .tb-hero {
        padding: 20px 0 44px;
    }

    .tb-hero__inner {
        width: calc(100% - 32px);
        gap: 32px;
    }

    .tb-eyebrow {
        margin-bottom: 26px;
        font-size: 12px;
    }

    .tb-hero h1 {
        font-size: clamp(38px, 11vw, 48px);
        line-height: 1.04;
    }

    .tb-hero__text {
        margin-top: 26px;
        font-size: 17px;
        line-height: 1.55;
    }

    .tb-hero__actions {
        margin-top: 30px;
        gap: 18px 30px;
    }

    .tb-button {
        min-height: 56px;
        padding: 0 28px;
    }

    /* Facts untereinander statt seitlich rauszulaufen */
    .tb-hero__facts {
        grid-template-columns: 1fr;
        margin-top: 40px;
        padding-top: 0;
        border-top: 1px solid #d9d9d6;
    }

    .tb-hero__facts span {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid #d9d9d6;
    }

    .tb-hero__facts span:last-child {
        border-bottom: 0;
    }

    .tb-hero__image {
        width: 100%;
    }

    .tb-hero__image img {
        width: 100%;
        border-radius: 18px;
    }
}

/* === TEXT-CONTENT === */
.betterReadable {
    width: 70% !important;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .betterReadable {
        width: 100% !important;
    }
}

/* === PRODUCTDETAILS === */
.tb-details {
    background: #fff;
    color: #242424;
}

.tb-details__inner {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
}

.tb-details h4 {
    margin: 0 0 34px;
    color: #202020;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(30px, 2.4vw, 42px);
    font-weight: 500;
    line-height: 1.15;
}

.tb-detail-list {
    border-top: 1px solid #e7e7e5;
}

.tb-detail-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 100px;
    border-bottom: 1px solid #e7e7e5;
}

.tb-detail-row span {
    color: #d1382e;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.tb-detail-row p {
    margin: 0;
    color: #242424;
    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
}

/* === AREAS OF APPLICATION ===*/
.tb-usecases {
    background: #fff;
    color: #242424;
    padding: 88px 0;
}

.tb-usecases__inner {
    /* width: min(100% - 48px, 1180px); */
    margin: 0 auto;
}

.tb-usecases h4 {
    margin: 0 0 42px;
    color: #202020;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(30px, 2.4vw, 42px);
    font-weight: 500;
    line-height: 1.15;
}

.tb-usecases__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e7e7e5;
    border-bottom: 1px solid #e7e7e5;
}

.tb-usecase {
    min-height: 150px;
    padding: 28px 30px;
    border-right: 1px solid #e7e7e5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tb-usecase:last-child {
    border-right: 0;
}

.tb-usecase span {
    color: #d1382e;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.tb-usecase p {
    margin: 0;
    color: #242424;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(18px, 1.4vw, 23px);
    font-weight: 500;
    line-height: 1.25;
}

@media (max-width: 900px) {
  .tb-usecases {
    padding: 64px 0;
  }

  .tb-usecases__inner {
    width: min(100% - 32px, 680px);
  }

  .tb-usecases__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tb-usecase:nth-child(2) {
    border-right: 0;
  }

  .tb-usecase:nth-child(-n + 2) {
    border-bottom: 1px solid #e7e7e5;
  }
}

@media (max-width: 560px) {
  .tb-usecases__grid {
    grid-template-columns: 1fr;
  }

  .tb-usecase {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid #e7e7e5;
  }

  .tb-usecase:last-child {
    border-bottom: 0;
  }
}

/* === CALL2ACTION === */
.tb-call2actionHeading {
    color: white !important;
    margin-bottom: 0;
    line-height: 20px;
}

.call2actionParagraph {
    font-size: 18px;
    margin-top: 10px;
}


/* === CONTACT FORM === */

.tb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 48px;
}

.tb-form-field label {
    display: block;
    color: #242424;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* Eingabefelder */
.tb-form-field input,
.tb-form-field select,
.tb-form-field textarea {
    width: 100%;
    margin-top: 9px;
    padding: 0 16px;
    border: 1px solid #d9d9d6;
    border-radius: 6px;
    background: #fff;
    color: #242424;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color 180ms ease;
}

.tb-form-field input,
.tb-form-field select {
    height: 56px;
}

/* Nachricht */
.tb-form-field textarea {
    min-height: 200px;
    padding: 16px;
    resize: vertical;
}

/* Fokus */
.tb-form-field input:focus,
.tb-form-field select:focus,
.tb-form-field textarea:focus {
    border-color: #d1382e;
    outline: none;
    box-shadow: none;
}

/* Nachricht volle Breite */
.tb-form-field--message {
    margin-top: 28px;
}

/* Datenschutz */
.tb-form-privacy {
    margin-top: 20px;
    color: #686868;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.tb-form-privacy a {
    color: #242424;
    text-decoration: underline;
    text-decoration-color: #d1382e;
    text-underline-offset: 3px;
}

/* Submit */
.tb-form-submit {
    margin-top: 24px;
}

.tb-form-submit input[type="submit"] {
    min-height: 56px;
    padding: 0 30px;
    border: 0;
    border-radius: 6px;
    background: #202020;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.tb-form-submit input[type="submit"]:hover {
    background: #000;
    transform: translateY(-1px);
}

/* CF7 Fehlermeldungen */
.wpcf7-not-valid-tip {
    margin-top: 7px;
    color: #d1382e;
    font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 18px;
    border: 1px solid #d9d9d6;
    border-radius: 6px;
}

/* Feld über beide Spalten */
.tb-form-field--full {
    grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 700px) {
    .tb-form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tb-form-field--full {
        grid-column: auto;
    }
}


/* === COMPLIANCE === */
#cmplz-document {
  max-width: none;
}

#cmplz-document p,
#cmplz-document li,
#cmplz-manage-consent-container-nojavascript {
  font-size: 18px !important;
}

.cmplz-category-title {
  font-size: 18px;
  font-weight: 600;
}

.cmplz-description-functional,
.cmplz-description-preferences,
.cmplz-description-statistics {
  font-size: 18px;
}

#cmplz-cookiebanner-1-optin .cmplz-accept:hover,
#cmplz-cookiebanner-1-optin .cmplz-deny:hover,
#cmplz-cookiebanner-1-optin .cmplz-view-preferences:hover {
    background-color: #d1382e;
    border-color: #d1382e;
}

/* === VORTEILE === */
.yourAdvantage {
    padding: 25px;
    border-top: 1px solid #e5e5e5;
    min-height: 300px;
    box-sizing: border-box;
}

.yourAdvantage.advantageTop {
    border-top: none;
}

.advantageIcon .yourAdvantage-number {
    padding-bottom: 0;
}

.yourAdvantage-number {
    color: #d1382e;
    display: block;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding-bottom: clamp(30px, 4vw, 70px);
}

.yourAdvantage h4 {
    margin: 0 0 12px;
    font-size: 20px;
}

.yourAdvantage p {
    margin: 0;
    color: #777;
    line-height: 1.5;
    min-height: 80px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
}

@media (max-width: 1342px) {
    .advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .advantages {
        grid-template-columns: 1fr;
    }
}

.tb-optional {
    min-height: 520px;
}