/* ==========================================================================
   Modul: Tipp-Box (Gut zu wissen) – modules/module-tip-box.php
   Rahmen, Trennlinie und Unterstrich sind reines CSS.
   ========================================================================== */

.tip-box {
    --tb-navy: #0f1d40;
    --tb-orange: #f7a21b;
    --tb-line: #dfe2e8;
    position: relative;
}

.tip-box__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 16px;
}

.tip-box__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 12px;
}

.tip-box__visual {
    width: 90px;
}

.tip-box__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Trennlinie: mobil horizontal unter der Grafik */
.tip-box__content {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-top: 20px;
    border-top: 2px solid var(--tb-line);
}

.tip-box .tip-box__headline {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 14px;
    color: var(--tb-navy);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    text-align: left;
    text-transform: none;
}

/* Oranger Unterstrich */
.tip-box .tip-box__headline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--tb-orange);
}

.tip-box .tip-box__text {
    margin: 0;
    color: var(--tb-navy);
    font-size: 16px;
    line-height: 1.6;
}

/* Ab Tablet: Grafik links, vertikale Trennlinie */
@media screen and (min-width: 600px) {
    .tip-box__card {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: stretch;
        align-items: center;
        column-gap: 0;
        padding: 20px 32px 20px 40px;
    }

    .tip-box__visual {
        width: 110px;
        margin-right: 40px;
    }

    .tip-box__content {
        padding: 16px 0 16px 44px;
        border-top: 0;
        border-left: 2px solid var(--tb-line);
    }

    .tip-box .tip-box__headline {
        font-size: 30px;
    }
}

@media screen and (min-width: 1024px) {
    .tip-box__inner {
        padding: 32px 40px;
    }

    .tip-box__visual {
        width: 130px;
        margin-right: 48px;
    }

    .tip-box .tip-box__headline {
        font-size: 34px;
    }

    .tip-box .tip-box__text {
        font-size: 17px;
    }
}
