/* ============================================================
   TIP FAHRSCHULE – FILIALEN
   ============================================================ */

.tip-branches,
.tip-branches *,
.tip-branches *::before,
.tip-branches *::after {
    box-sizing: border-box;
}


.tip-branches {

    --tip-red: #e30613;
    --tip-red-dark: #bb0010;

    --tip-yellow: #ffd600;

    --tip-heading: #252e3b;
    --tip-text: #5b6572;
    --tip-muted: #858d97;

    --tip-white: #ffffff;
    --tip-bg: #f6f7f9;
    --tip-border: #e5e8ec;

    position: relative;

    width: 100%;

    padding:
        105px 0 115px;

    overflow: hidden;

    background:
        var(--tip-bg);

    font-family:
        "Inter",
        Arial,
        sans-serif;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.tip-branches__container {

    width:
        min(
            1350px,
            calc(100% - 70px)
        );

    margin:
        0 auto;
}


/* ============================================================
   INTRO GRID
   ============================================================ */

.tip-branches__intro {

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(430px, .92fr);

    align-items: stretch;

    gap: 75px;
}


/* ============================================================
   INTRO CONTENT
   ============================================================ */

.tip-branches__intro-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        25px 0;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.tip-branches__eyebrow {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 17px;

    color:
        #777f89;

    font-size: 10px;

    font-weight: 450;

    line-height: 1;

    letter-spacing: .075em;

    text-transform: uppercase;
}


.tip-branches__eyebrow > span {

    width: 31px;

    height: 1px;

    background:
        var(--tip-red);
}


/* ============================================================
   H1
   ============================================================ */

.tip-branches h1 {

    max-width: 730px;

    margin: 0;

    color:
        var(--tip-heading);

    font-size:
        clamp(
            46px,
            4.15vw,
            65px
        );

    font-weight: 620;

    line-height: 1;

    letter-spacing: -.048em;

    text-wrap: balance;
}


.tip-branches h1 strong {

    position: relative;

    display: inline-block;

    color:
        var(--tip-red);

    font-weight: 620;
}


.tip-branches h1 strong::after {

    content: "";

    position: absolute;

    left: 2px;
    bottom: -8px;

    width: 67px;
    height: 3px;

    background:
        var(--tip-yellow);
}


/* ============================================================
   LEAD
   ============================================================ */

.tip-branches__lead {

    max-width: 690px;

    margin:
        30px 0 0;

    color:
        var(--tip-text);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.75;
}


/* ============================================================
   QUICK FACTS
   ============================================================ */

.tip-branches__quickfacts {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap:
        12px 26px;

    margin-top: 31px;
}


.tip-branches__quickfacts span {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        #69727d;

    font-size: 11px;

    font-weight: 520;
}


.tip-branches__quickfacts i {

    color:
        var(--tip-red);

    font-size: 11px;
}


/* ============================================================
   BRAND PANEL
   ============================================================ */

.tip-branches__brand {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        34px;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid
        var(--tip-border);

    border-radius: 18px;

    box-shadow:
        0 22px 55px
        rgba(51,61,74,.07);
}


/* RED CORNER */

.tip-branches__brand::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 74px;
    height: 4px;

    background:
        var(--tip-red);
}


/* YELLOW FOLLOW */

.tip-branches__brand::after {

    content: "";

    position: absolute;

    top: 0;
    left: 74px;

    width: 34px;
    height: 4px;

    background:
        var(--tip-yellow);
}


/* ============================================================
   BRAND TOP
   ============================================================ */

.tip-branches__brand-top > span {

    display: block;

    color:
        var(--tip-red);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.tip-branches__brand-top > strong {

    display: block;

    margin-top: 6px;

    color:
        var(--tip-heading);

    font-size: 18px;

    font-weight: 620;

    letter-spacing: -.02em;
}


/* ============================================================
   LOGOS
   ============================================================ */

.tip-branches__logos {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 23px;
}


.tip-branches__logo {

    min-height: 108px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    background:
        #fafafa;

    border:
        1px solid
        #eeeeef;

    border-radius: 10px;
}


.tip-branches__logo img {

    display: block;

    width: 100%;

    max-width: 240px;

    height: auto;

    object-fit: contain;
}


/* ============================================================
   CENTRAL
   ============================================================ */

.tip-branches__central {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 23px;

    padding-top: 20px;

    border-top:
        1px solid #eceef0;
}


.tip-branches__central-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--tip-red);

    background:
        rgba(227,6,19,.07);

    border-radius: 10px;
}


.tip-branches__central span {

    display: block;

    color:
        var(--tip-muted);

    font-size: 8px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.tip-branches__central strong {

    display: block;

    margin-top: 5px;

    color:
        var(--tip-heading);

    font-size: 12px;

    font-weight: 600;

    line-height: 1.45;
}


/* ============================================================
   CENTRAL LINKS
   ============================================================ */

.tip-branches__central-links {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px 18px;

    margin-top: 17px;
}


.tip-branches__central-links a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        #66717d !important;

    font-size: 11px;

    font-weight: 500;

    text-decoration: none !important;

    transition:
        color .22s ease;
}


.tip-branches__central-links a:hover {

    color:
        var(--tip-red) !important;
}


.tip-branches__central-links i {

    color:
        var(--tip-red);
}


/* ============================================================
   BRAND NOTE
   ============================================================ */

.tip-branches__brandnote {

    margin:
        27px 0 0;

    color:
        #858c95;

    font-size: 10px;

    font-weight: 400;

    line-height: 1.6;
}


.tip-branches__brandnote strong {

    color:
        #69727d;

    font-weight: 600;
}


/* ============================================================
   SECTION HEAD
   ============================================================ */

.tip-branches__sectionhead {

    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(350px, .65fr);

    align-items: end;

    justify-content: space-between;

    gap: 80px;

    margin-top: 100px;
}


/* ============================================================
   H2
   ============================================================ */

.tip-branches h2 {

    margin: 0;

    color:
        var(--tip-heading);

    font-size:
        clamp(
            37px,
            3.2vw,
            51px
        );

    font-weight: 610;

    line-height: 1.04;

    letter-spacing: -.043em;
}


.tip-branches h2 strong {

    color:
        var(--tip-red);

    font-weight: 610;
}


.tip-branches__sectionhead > p {

    max-width: 520px;

    margin:
        0 0 3px auto;

    color:
        var(--tip-text);

    font-size: 13px;

    line-height: 1.7;
}


/* ============================================================
   GRID
   ============================================================ */

.tip-branches__grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    grid-auto-rows:
        1fr;

    gap: 20px;

    margin-top: 44px;
}


/* ============================================================
   CARD
   ============================================================ */

.tip-branch-card {

    position: relative;

    min-width: 0;

    min-height: 385px;

    height: 100%;

    display: flex;

    flex-direction: column;

    padding:
        28px;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid
        var(--tip-border);

    border-radius: 15px;

    box-shadow:
        0 12px 32px
        rgba(48,58,71,.045);

    transition:
        transform .32s cubic-bezier(.2,.75,.2,1),
        border-color .32s ease,
        box-shadow .32s ease;
}


/* subtle red ambience */

.tip-branch-card::before {

    content: "";

    position: absolute;

    top: -120px;
    right: -130px;

    width: 270px;
    height: 270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(227,6,19,.055),
            rgba(227,6,19,0) 68%
        );

    pointer-events: none;
}


.tip-branch-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(227,6,19,.19);

    box-shadow:
        0 24px 50px
        rgba(48,58,71,.09);
}


/* ============================================================
   HEAD
   ============================================================ */

.tip-branch-card__head {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


/* ============================================================
   ICON
   ============================================================ */

.tip-branch-card__icon {

    width: 47px;
    height: 47px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color:
        var(--tip-red);

    background:
        rgba(227,6,19,.07);

    border:
        1px solid
        rgba(227,6,19,.09);

    border-radius: 11px;

    font-size: 16px;

    transition:
        color .25s ease,
        background-color .25s ease,
        transform .25s ease;
}


.tip-branch-card:hover
.tip-branch-card__icon {

    color:
        #ffffff;

    background:
        var(--tip-red);

    transform:
        translateY(-2px);
}


/* ============================================================
   CITY LABEL
   ============================================================ */

.tip-branch-card__city-label {

    color:
        #959ca5;

    font-size: 9px;

    font-weight: 520;

    letter-spacing: .065em;

    text-transform: uppercase;
}


/* ============================================================
   CENTRAL BADGE
   ============================================================ */

.tip-branch-card__central-badge {

    align-self: flex-start;

    margin-top: 17px;

    padding:
        6px 9px;

    color:
        #655800;

    background:
        var(--tip-yellow);

    border-radius: 6px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .055em;

    text-transform: uppercase;
}


/* ============================================================
   H3
   ============================================================ */

.tip-branch-card h3 {

    position: relative;

    z-index: 2;

    margin:
        29px 0 0;

    color:
        var(--tip-heading);

    font-size: 23px;

    font-weight: 620;

    line-height: 1.2;

    letter-spacing: -.027em;
}


.tip-branch-card--central h3 {

    margin-top: 15px;
}


/* ============================================================
   ADDRESS
   ============================================================ */

.tip-branch-card address {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 21px;

    color:
        var(--tip-text);

    font-style: normal;
}


.tip-branch-card address > div,
.tip-branch-card address > a {

    display: flex;

    align-items: flex-start;

    gap: 10px;
}


.tip-branch-card address i {

    width: 16px;

    flex: 0 0 16px;

    margin-top: 3px;

    color:
        var(--tip-red);

    font-size: 11px;
}


.tip-branch-card address span {

    color:
        #626c78;

    font-size: 12px;

    font-weight: 450;

    line-height: 1.6;
}


.tip-branch-card address > a {

    color:
        var(--tip-heading) !important;

    font-size: 12px;

    font-weight: 620;

    text-decoration: none !important;
}


/* ============================================================
   ACTION AREA
   ============================================================ */

.tip-branch-card__actions {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 9px;

    margin-top: auto;

    padding-top: 28px;
}


/* ============================================================
   ROUTE BUTTON
   ============================================================ */

.tip-branch-route {

    min-height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0 15px;

    color:
        var(--tip-heading) !important;

    background:
        #f6f7f9;

    border:
        1px solid
        #e5e8eb;

    border-radius: 10px;

    font-size: 11px;

    font-weight: 560;

    text-decoration: none !important;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}


.tip-branch-route > span {

    display: inline-flex;

    align-items: center;

    gap: 8px;
}


.tip-branch-route i {

    color:
        var(--tip-red);
}


.tip-branch-route > svg {

    display: none;

    width: 18px;
    height: 18px;

    fill: none;

    stroke:
        var(--tip-red);

    stroke-width: 1.8;
}


.tip-branch-route:hover {

    transform:
        translateY(-2px);

    background:
        #ffffff;

    border-color:
        rgba(227,6,19,.25);
}


/* ============================================================
   PRIMARY FILIAL BUTTON
   ============================================================ */

.tip-branch-primary {

    min-height: 55px;

    display: flex;

    align-items: stretch;

    overflow: hidden;

    color:
        #ffffff !important;

    background:
        var(--tip-red);

    border-radius: 10px;

    text-decoration: none !important;

    box-shadow:
        0 11px 25px
        rgba(227,6,19,.15);

    transition:
        transform .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}


.tip-branch-primary > span {

    flex: 1;

    display: flex;

    align-items: center;

    padding:
        0 16px;

    font-size: 11px;

    font-weight: 620;
}


.tip-branch-primary > i {

    width: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--tip-heading);

    background:
        var(--tip-yellow);

    font-style: normal;

    transition:
        width .25s ease;
}


.tip-branch-primary svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .25s ease;
}


.tip-branch-primary:hover {

    transform:
        translateY(-2px);

    background:
        var(--tip-red-dark);

    box-shadow:
        0 15px 30px
        rgba(227,6,19,.22);
}


.tip-branch-primary:hover > i {

    width: 57px;
}


.tip-branch-primary:hover svg {

    transform:
        translateX(3px);
}


/* ============================================================
   SINGLE BUTTON CARDS
   ============================================================ */

.tip-branch-card__actions--single {

    grid-template-columns: 1fr;
}


.tip-branch-card__actions--single
.tip-branch-route {

    justify-content: space-between;

    color:
        #ffffff !important;

    background:
        var(--tip-red);

    border-color:
        var(--tip-red);

    box-shadow:
        0 11px 25px
        rgba(227,6,19,.14);
}


.tip-branch-card__actions--single
.tip-branch-route > span {

    color:
        #ffffff;
}


.tip-branch-card__actions--single
.tip-branch-route i {

    color:
        var(--tip-yellow);
}


.tip-branch-card__actions--single
.tip-branch-route > svg {

    display: block;

    stroke:
        var(--tip-yellow);
}


.tip-branch-card__actions--single
.tip-branch-route:hover {

    background:
        var(--tip-red-dark);

    border-color:
        var(--tip-red-dark);
}


/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */

.tip-branches.is-animation-ready
.tip-branch-reveal {

    opacity: 0;

    transform:
        translateY(27px);

    transition:
        opacity .7s cubic-bezier(.2,.7,.2,1),
        transform .7s cubic-bezier(.2,.7,.2,1);

    transition-delay:
        var(--branch-delay, 0ms);
}


.tip-branches.is-animation-ready
.tip-branch-reveal.is-visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* Cards slightly zoom */

.tip-branches.is-animation-ready
.tip-branch-card.tip-branch-reveal {

    transform:
        translateY(30px)
        scale(.985);
}


.tip-branches.is-animation-ready
.tip-branch-card.tip-branch-reveal.is-visible {

    transform:
        translateY(0)
        scale(1);
}


.tip-branches.is-animation-ready
.tip-branch-card.tip-branch-reveal.is-visible:hover {

    transform:
        translateY(-7px)
        scale(1);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .tip-branches {

        padding:
            88px 0 95px;
    }


    .tip-branches__container {

        width:
            calc(100% - 50px);
    }


    .tip-branches__intro {

        grid-template-columns:
            1fr;

        gap: 45px;
    }


    .tip-branches__brand {

        max-width: 720px;
    }


    .tip-branches__sectionhead {

        grid-template-columns:
            1fr;

        gap: 20px;

        margin-top: 80px;
    }


    .tip-branches__sectionhead > p {

        margin-left: 0;
    }


    .tip-branches__grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .tip-branches {

        padding:
            70px 0 78px;
    }


    .tip-branches__container {

        width:
            calc(100% - 38px);
    }


    .tip-branches__intro {

        gap: 38px;
    }


    .tip-branches h1 {

        font-size:
            clamp(
                38px,
                10.5vw,
                48px
            );

        font-weight: 600;
    }


    .tip-branches__lead {

        margin-top: 25px;

        font-size: 14px;

        line-height: 1.67;
    }


    .tip-branches__quickfacts {

        gap:
            11px 18px;

        margin-top: 25px;
    }


    .tip-branches__brand {

        padding:
            25px 22px;

        border-radius: 14px;
    }


    .tip-branches__logos {

        grid-template-columns:
            1fr;

        gap: 9px;
    }


    .tip-branches__logo {

        min-height: 96px;
    }


    .tip-branches__central-links {

        flex-direction: column;

        align-items: flex-start;
    }


    .tip-branches__sectionhead {

        margin-top: 67px;
    }


    .tip-branches h2 {

        font-size:
            clamp(
                34px,
                9vw,
                43px
            );
    }


    .tip-branches__grid {

        grid-template-columns:
            1fr;

        gap: 15px;

        margin-top: 35px;
    }


    .tip-branch-card {

        min-height: 0;

        padding:
            24px 21px;

        border-radius: 13px;
    }


    .tip-branch-card h3 {

        font-size: 21px;
    }


    .tip-branch-card__actions {

        grid-template-columns:
            1fr;

        margin-top: 28px;
    }


    .tip-branch-primary {

        min-height: 57px;
    }


    .tip-branch-route {

        min-height: 57px;
    }

}


/* ============================================================
   VERY SMALL
   ============================================================ */

@media (max-width: 410px) {

    .tip-branches__container {

        width:
            calc(100% - 30px);
    }


    .tip-branches__quickfacts {

        flex-direction: column;

        align-items: flex-start;
    }

}


/* ============================================================
   FOCUS
   ============================================================ */

.tip-branches a:focus-visible {

    outline:
        3px solid
        var(--tip-yellow);

    outline-offset: 3px;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .tip-branches.is-animation-ready
    .tip-branch-reveal,

    .tip-branches.is-animation-ready
    .tip-branch-card.tip-branch-reveal,

    .tip-branch-card,
    .tip-branch-card__icon,
    .tip-branch-primary,
    .tip-branch-route {

        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

}