/* Shared header, foreground vehicle hero and service navigation. */
.wrap {
    width: min(1360px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 40;
    color: #fff;
    background: linear-gradient(115deg, #20262e, #11161c 68%);
    box-shadow: 0 1px 0 #ffffff12;
}

.header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding-block: 4px;
}

.brand {
    display: block;
    width: clamp(288px, 23vw, 332px);
    line-height: 0;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header-promises {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2.5vw, 36px);
}

.header-promises > span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.header-promises .icon {
    width: 26px;
    height: 28px;
    color: var(--yellow);
}

.header-call {
    min-width: 220px;
    min-height: 58px;
    padding: 8px 16px;
    gap: 10px;
    border-radius: 17px;
}

.header-call .icon {
    width: 28px;
    height: 28px;
}

.call-label {
    font-size: 16px;
    line-height: 1.1;
}

.header-call strong {
    font-size: 21px;
    line-height: 1.1;
    white-space: nowrap;
}

.main-navigation {
    position: relative;
    border-top: 1px solid #ffffff1d;
    border-bottom: 1px solid #ffffff19;
    background: linear-gradient(#252c35, #1b2129);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    padding-block: 5px;
    font-size: 15px;
    font-weight: 700;
}

.nav-inner > a:not(.button),
.nav-dropdown summary {
    display: flex;
    align-items: center;
    min-height: 38px;
    white-space: nowrap;
}

.nav-home {
    padding: 7px 23px;
    border-radius: 11px;
}

.nav-home.active {
    color: #101419;
    background: linear-gradient(155deg, #fff377, #ffd200 70%);
    box-shadow: inset 0 1px 1px #fff9, 0 2px 5px #0003;
}

.nav-inner a[aria-current="page"]:not(.nav-home),
.nav-inner > a:not(.active):hover,
.nav-dropdown summary:hover {
    color: var(--yellow);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    gap: 6px;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary .icon {
    width: 17px;
    height: 17px;
}

.dropdown-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 7px);
    left: -14px;
    min-width: 255px;
    max-height: min(65vh, 570px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #454e59;
    border-radius: 13px;
    background: #202731;
    box-shadow: 0 12px 30px #0005;
    scrollbar-width: thin;
}

.dropdown-panel a {
    display: block;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--yellow);
    background: #ffffff0d;
}

.nav-request {
    min-height: 38px;
    padding: 6px 17px;
    border-radius: 11px;
    font-size: 14px;
}

.nav-request .icon {
    width: 23px;
    height: 23px;
}

.menu-toggle {
    display: none;
}

.hero {
    --hero-edge: max(40px, calc((100vw - 1360px) / 2));
    position: relative;
    isolation: isolate;
    overflow: clip;
    color: #fff;
    background:
        linear-gradient(90deg, #0e131a80, #0e131a59 38%, #0e131a14 65%, transparent),
        url("images/hero-herten-background.webp") center / 100% 100% no-repeat #0e131a;
    border-bottom: 1px solid #dab10035;
}

.hero-inner {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    grid-template-areas:
        "copy visual"
        "actions visual";
    align-items: center;
    gap: 24px 32px;
    min-height: 540px;
    padding-block: 42px 48px;
}

.hero-copy {
    grid-area: copy;
    align-self: end;
    min-width: 0;
    text-shadow: 0 2px 6px #000b;
}

.hero-eyebrow {
    margin: 0 0 17px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1px;
}

.hero-eyebrow::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 12px;
    background: var(--yellow);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 900;
    font-style: italic;
    line-height: 1.04;
    letter-spacing: -2px;
    text-shadow: 0 2px 5px #0008;
}

.hero h1 > span {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    padding: 6px 10px 8px;
    border: 1px solid #fff27b;
    border-radius: 10px;
    color: #101309;
    background: linear-gradient(170deg, #fffca8, #ffe135 19%, #ffd000 70%, #f7ba00);
    box-shadow: inset 0 1px 1px #fff, 0 3px 0 #8d6c0055, 0 0 18px #ffd5001c;
    font-size: .77em;
    line-height: 1.08;
    letter-spacing: -1.4px;
    text-shadow: 0 1px #fff5;
}

.home-hero h1 > span {
    white-space: normal;
}

.hero-description {
    max-width: 540px;
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
    color: #e8ecf1;
}

.hero-checks {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.hero-visual {
    position: relative;
    isolation: isolate;
    grid-area: visual;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    margin: -42px 0 -48px;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    display: none;
    position: absolute;
    inset: 0 calc(-1 * var(--hero-edge)) 0 -48px;
    pointer-events: none;
}

.hero-visual::before {
    z-index: -2;
    background: url("images/hero-herten-background.webp") right center / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 22%);
}

.hero-visual::after {
    z-index: -1;
    background:
        linear-gradient(90deg, #0e131a26, transparent 40%),
        linear-gradient(0deg, #0e131a40, transparent 32%);
}

.hero-picture {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: block;
    width: 100%;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 18px #0005);
}

.hero-caption {
    position: absolute;
    right: 0;
    bottom: 18px;
    margin: 0;
    color: #e0e5ec;
    font-size: 12px;
    text-align: right;
    text-shadow: 0 1px 4px #000;
}

.hero-actions {
    grid-area: actions;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hero-call {
    min-width: 212px;
    min-height: 66px;
    padding: 10px 16px;
    gap: 10px;
    border-radius: 17px;
    font-size: 16px;
}

.hero-call > span {
    line-height: 1.05;
}

.hero-call strong {
    font-size: 24px;
    line-height: 1.05;
    white-space: nowrap;
}

.hero-call .icon {
    width: 31px;
    height: 31px;
}

.hero-actions .button-glass {
    min-height: 58px;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 15px;
    white-space: nowrap;
}

.hero-actions .button-glass .icon {
    width: 24px;
    height: 24px;
}

.inner-hero h1 {
    font-size: clamp(34px, 3.5vw, 52px);
}

.inner-hero h1 > span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.inner-hero .hero-description {
    font-size: 18px;
}

.services-quick {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding-block: 28px 16px;
}

.glass-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 130px;
    padding: 12px 10px;
    border: 1px solid #e1e5eb;
    border-radius: 18px;
    background: linear-gradient(140deg, #fff, #e9edf3b3 55%, #fff);
    box-shadow: inset 1px 1px 1px #fff, 0 3px 3px #1f293314, 0 8px 20px #15243110;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.glass-tile img {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px #14203514);
}

.glass-tile > span {
    max-width: 100%;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
}

.glass-tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 1px 1px 1px #fff, 0 12px 22px #15243120;
}

.label-desktop {
    font-size: inherit;
}

.label-mobile {
    display: none;
}

.home-page .services-section {
    padding-block: 26px 46px;
}

.home-page .service-card {
    padding: 22px;
}

.home-page .service-card p {
    font-size: 16px;
}

.home-page .process-section {
    padding-block: 38px 48px;
    border-top: 1px solid #e1e5e9;
}

@media (min-width: 961px) and (max-width: 1150px) {
    .header-top {
        gap: 18px;
    }

    .header-promises {
        gap: 14px;
    }

    .header-promises > span {
        gap: 7px;
        font-size: 12px;
    }

    .header-promises .icon {
        width: 22px;
    }

    .header-call {
        min-width: 204px;
        padding-inline: 12px;
    }

    .hero-inner {
        column-gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 960px) {
    .wrap {
        width: calc(100% - 64px);
    }

    .header-top {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 18px;
        padding-block: 6px;
    }

    .brand {
        width: min(300px, 38vw);
    }

    .header-promises {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid #ffffff35;
        border-radius: 10px;
        background: #ffffff08;
    }

    .menu-toggle span {
        width: 22px;
        height: 3px;
        border-radius: 2px;
        background: #fff;
        transition: transform .2s, opacity .2s;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1c232d;
        box-shadow: 0 12px 25px #0004;
    }

    .main-navigation.is-open {
        display: block;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100dvh - 110px);
        padding-block: 14px;
        overflow-y: auto;
    }

    .nav-inner > a:not(.button),
    .nav-dropdown summary {
        min-height: 43px;
        padding: 9px 14px;
    }

    .nav-request {
        margin-top: 8px;
        min-height: 45px;
    }

    .dropdown-panel {
        position: static;
        min-width: 0;
        max-height: 36vh;
        margin-top: 3px;
        border-color: #ffffff15;
        background: #ffffff05;
        box-shadow: none;
    }

    .hero {
        --hero-edge: 32px;
        background-image:
            linear-gradient(180deg, #0e131a80, #0e131a66 38%, #0e131a26 65%, #0e131a59),
            url("images/hero-herten-background-mobile.webp");
        background-size: auto, cover;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy" "visual" "actions";
        gap: 24px;
        min-height: 0;
        padding-block: 32px 36px;
    }

    .hero-copy {
        width: 100%;
        max-width: 700px;
        margin-inline: auto;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero-description {
        max-width: 680px;
        margin-bottom: 0;
        font-size: 18px;
    }

    .hero-checks {
        display: none;
    }

    .hero-visual {
        width: calc(100% + 2 * var(--hero-edge));
        aspect-ratio: 1.5;
        margin: 0 calc(-1 * var(--hero-edge));
    }

    .hero-visual::before,
    .hero-visual::after {
        display: block;
        inset: 0;
    }

    .hero-visual::before {
        background-image: url("images/hero-herten-background-mobile.webp");
        mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    }

    .hero-visual::after {
        background: linear-gradient(180deg, #0e131a26, transparent 22%, transparent 78%, #0e131a26);
    }

    .hero-picture {
        left: var(--hero-edge);
        bottom: 24px;
        width: calc(100% - 2 * var(--hero-edge));
    }

    .hero-caption {
        right: var(--hero-edge);
        bottom: 8px;
    }

    .hero-actions {
        justify-content: center;
        width: min(100%, 640px);
        margin-inline: auto;
        gap: 16px;
    }

    .hero-actions .button {
        flex: 1;
    }

    .inner-hero h1 {
        font-size: 46px;
    }

    .services-quick {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wrap {
        width: calc(100% - 36px);
    }

    .hero {
        --hero-edge: 18px;
    }

    .header-top {
        gap: 8px;
    }

    .brand {
        width: min(232px, 58vw);
        max-width: 100%;
    }

    .header-call {
        min-width: 40px;
        width: 40px;
        min-height: 40px;
        padding: 8px;
        border-radius: 12px;
    }

    .header-call .icon {
        width: 24px;
        height: 24px;
    }

    .header-call .call-label {
        display: none;
    }

    .menu-toggle {
        width: 38px;
        height: 40px;
    }

    .nav-inner {
        max-height: calc(100dvh - 90px);
    }

    .hero-inner {
        gap: 18px;
        padding-block: 26px 28px;
    }

    .hero-eyebrow {
        margin-bottom: 16px;
        font-size: 11px;
        line-height: 1.45;
        letter-spacing: .45px;
    }

    .hero-eyebrow::after {
        width: 56px;
        margin-top: 10px;
    }

    .hero h1 {
        margin-bottom: 15px;
        font-size: clamp(33px, 10.2vw, 43px);
        letter-spacing: -1.5px;
    }

    .hero h1 > span {
        margin-top: 8px;
        padding: 5px 8px 7px;
        border-radius: 8px;
        font-size: .79em;
        letter-spacing: -1px;
    }

    .hero-description,
    .inner-hero .hero-description {
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-caption {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }

    .hero-call {
        min-height: 62px;
        width: 100%;
        padding-block: 8px;
        font-size: 17px;
    }

    .hero-actions .button-glass {
        min-height: 50px;
        width: 100%;
        font-size: 16px;
    }

    .inner-hero h1 {
        font-size: clamp(32px, 9.2vw, 39px);
    }

    .services-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding-block: 22px 14px;
    }

    .glass-tile {
        min-height: 113px;
        padding: 10px 5px;
        gap: 5px;
        border-radius: 15px;
    }

    .glass-tile img {
        width: 65px;
        height: 65px;
    }

    .glass-tile > span {
        font-size: 13px;
    }

    .glass-tile[href*="reifenservice"] > span {
        font-size: clamp(11px, 3.25vw, 13px);
        white-space: nowrap;
    }

    .glass-tile:nth-child(7) {
        grid-column: 1 / -1;
        flex-direction: row;
        min-height: 64px;
        gap: 12px;
    }

    .glass-tile:nth-child(7) img {
        width: 46px;
        height: 46px;
    }

    .glass-tile:nth-child(7) > span {
        font-size: 14px;
    }

    .label-desktop {
        display: none;
    }

    .label-mobile {
        display: inline;
    }

    .home-page .services-section {
        padding-block: 20px 35px;
    }

    .home-page .service-card {
        padding: 18px 14px;
    }

    .home-page .service-card h3 {
        font-size: 19px;
    }

    .home-page .service-card p {
        font-size: 15px;
    }
}

.quick-contact {
    position: fixed;
    z-index: 35;
    top: 50%;
    right: clamp(10px, 1.5vw, 28px);
    display: grid;
    gap: 12px;
    width: 76px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    transform: translateY(-50%);
    animation: quick-contact-reveal .2s ease-out;
}

.quick-contact[hidden] {
    display: none;
}

@media (min-width: 961px) {
    .quick-contact {
        display: none;
    }
}

.quick-contact a {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease;
}

.quick-contact img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px #0003);
}

.quick-contact a:focus-visible {
    outline: 2px solid #947600;
    outline-offset: 2px;
}

@media (hover: hover) {
    .quick-contact a:hover {
        transform: translateX(-4px) scale(1.06);
    }
}

.quick-contact a:active {
    transform: scale(.95);
}

@keyframes quick-contact-reveal {
    from { opacity: 0; transform: translate(14px, -50%); }
    to { opacity: 1; transform: translateY(-50%); }
}

@media (max-width: 600px) {
    .quick-contact {
        right: max(4px, env(safe-area-inset-right));
        width: 56px;
        gap: 8px;
    }

    .quick-contact a {
        width: 56px;
        height: 56px;
    }

    .quick-contact img {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-contact {
        animation: none;
    }
}

@media (max-width: 360px) {
    .hero-call strong {
        font-size: clamp(20px, 6.67vw, 24px);
    }
}

@media print {
    .site-header,
    .hero-actions,
    .quick-contact {
        display: none;
    }

    .hero {
        color: #111;
        background: white;
    }

    .hero-description {
        color: #333;
    }
}
