/*
Theme Name: 2BuddiesOnTour
Theme URI: https://2buddiesontour.com
Author: 2BuddiesOnTour
Version: 1.0.0
*/

@import url("/includes/fonts/fonts.css");

:root {
    --ink: #080808;
    --paper: #f8f5ef;
    --accent: #f05a2a;
    --line: #dedbd4;
    --muted: #6d6b66;
    --max: 1400px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    margin-top: 30px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.link {
    text-decoration: underline;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site {
    overflow: hidden;
}

.wrap {
    width: min(calc(100% - 9vw), var(--max));
    margin: auto;
}

/* --------------------------------------------------
   Preloader
-------------------------------------------------- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.paw-trail {
    position: relative;
    width: 180px;
    height: 220px;
}

.paw {
    position: absolute;
    width: 28px;
    height: 28px;
    fill: #111;
    opacity: 0;
    animation: pawAppear 1.8s ease-in-out infinite;
}

.paw-1 {
    left: 25px;
    top: 160px;
    transform: rotate(-20deg);
}

.paw-2 {
    left: 90px;
    top: 125px;
    transform: rotate(15deg);
    animation-delay: .18s;
}

.paw-3 {
    left: 45px;
    top: 90px;
    transform: rotate(-20deg);
    animation-delay: .36s;
}

.paw-4 {
    left: 110px;
    top: 55px;
    transform: rotate(15deg);
    animation-delay: .54s;
}

.paw-5 {
    left: 65px;
    top: 20px;
    transform: rotate(-20deg);
    animation-delay: .72s;
}

.paw-6 {
    left: 130px;
    top: -10px;
    transform: rotate(15deg);
    animation-delay: .90s;
}

@keyframes pawAppear {
    0%, 100% {
        opacity: 0;
        transform: scale(.75) rotate(-10deg);
    }

    20%, 65% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
    padding: 25px 0 16px;
}

.brand {
    font-family: Impact, "Arial Narrow Bold", sans-serif;
    font-size: 1.65rem;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

/* ==========================================================
   Language Switcher
   ========================================================== */

.language-header {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 8px;
	margin-bottom:35px;
}

.language-header__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.language-switcher a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s ease;
}

.language-switcher a:hover {
    color: #000;
}

.language-switcher__active {
    color: #000;
    font-weight: 700;
}

.language-switcher__separator {
    color: #bbb;
}

/* --------------------------------------------------
   Hero
-------------------------------------------------- */

.hero {
    padding: 5px 0 58px;
    display: grid;
    grid-template-columns: 0.98fr 1fr;
    gap: 3.8vw;
    align-items: center;
}

.hero__copy h1,
.section-title,
.footer-cta h2 {
    font-family: "Oswald", "Arial Narrow Bold", sans-serif;
    letter-spacing: -0.040em;
    line-height: 0.95;
    margin: 0;
}

.hero__copy h1 span {
    display: block;
    white-space: nowrap;
}

.hero__copy h1 {
    font-size: clamp(3.7rem, 5.7vw, 6.7rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    max-width: 750px;
}

.hero__copy p {
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    line-height: 1.45;
    max-width: 600px;
    margin: 30px 0;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 2px solid var(--ink);
    font-weight: 750;
    padding: 17px 26px;
    min-height: 57px;
    transition: 0.2s;
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.button--outline {
    background: transparent;
}

/* --------------------------------------------------
   Hero Gallery
-------------------------------------------------- */

.hero__gallery {
    position: relative;
    min-height: 430px;
}

.hero__primary {
    width: 100%;
    height: 100%;
    min-height: 430px;
    margin-left: auto;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 23px;
    box-shadow: 0 7px 22px #0002;
}

.hero__stamp {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 2;
    background: var(--accent);
    color: white;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 20px 0px 20px 0px;
}

.hero__tile {
    position: absolute;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 20px;
    box-shadow: 0 7px 22px #0003;
}

/* --------------------------------------------------
   Divider
-------------------------------------------------- */

.editorial-divider {
    border-top: 2px solid var(--ink);
    margin: 0;
}

.editorial-divider span {
    display: table;
    margin: -15px auto 0;
    padding: 7px 54px;
    background: var(--ink);
    color: white;
    font-weight: 750;
}

/* --------------------------------------------------
   Kooperationen
-------------------------------------------------- */

.partners {
    padding: 30px 0 70px;
}

.partners__heading {
    margin-bottom: 35px;
}

.partners__logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.partner-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.partner-logo:hover {
    background: #f0ede5;
}

.partner-logo img {
    display: block;
    max-width: 170px;
    max-height: 40px;
    width: auto;
    height: auto;
}

/* --------------------------------------------------
   Recommendations
-------------------------------------------------- */

.recommendations {
    padding: 54px 0 15px;
}

.section-kicker {
    margin-bottom: 7px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(3rem, 5vw, 5.6rem);
    letter-spacing: -0.020em;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    padding-top: 5px;
}

/* --------------------------------------------------
   Filters
-------------------------------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter {
    padding: 12px 33px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    font-weight: 650;
    color: #000000;
    width: 158px !important;
}

.filter.active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

/* --------------------------------------------------
   Products
-------------------------------------------------- */

.product-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.product {
    flex: 0 0 calc((100% - 72px) / 5);
    scroll-snap-align: start;
    min-width: 0;
    padding: 14px;
    background: #fbfaf7;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 7px;
    border: 1px solid #dedbd3;
}

.product__image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    cursor: pointer;
}

.product__placeholder {
    font-size: 3.6rem;
    filter: grayscale(1);
}

.product__category {
    margin: 17px 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.product h3 {
    margin: 0;
    font-size: 1.12rem;
    overflow-wrap: anywhere;
}

.product p {
    margin: 7px 0 14px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4c4a46;
    overflow-wrap: anywhere;
}

.product__link {
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.affiliate-note {
    margin: 28px 0 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.text {
    margin: 28px 0px 28px 0px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
}

/* --------------------------------------------------
   Footer CTA
-------------------------------------------------- */

.footer-cta {
    padding: 28px 0;
    background: #050505;
    color: white;
}

.footer-cta .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-cta h2 {
    font-size: clamp(2.3rem, 4.2vw, 4.8rem);
    letter-spacing: -0.020em;
}

.footer-cta .button {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    white-space: nowrap;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    padding: 17px 0;
    font-size: 0.82rem;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #363431;
}

.footer-links {
    display: flex;
    gap: 22px;
}

/* --------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width: 1280px) {

    .wrap {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter {
        width: 110px !important;
        padding: 15px;
    }

    .product {
        flex: 0 0 calc((100% - 54px) / 4);
    }
}

/* --------------------------------------------------
   Tablet / Small Desktop
-------------------------------------------------- */

@media (max-width: 900px) {

    body {
        text-align: center;
    }

    .wrap {
        width: min(calc(100% - 40px), var(--max));
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 18px;
        gap: 38px;
    }

    .hero__gallery {
        width: 86%;
        min-height: 390px;
        margin: 0 auto;
    }

    .hero__primary {
        width: 100%;
        min-height: 390px;
    }

    .hero__stamp {
        left: 3px;
    }

    .section-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .filters {
        gap: 8px;
    }

    .filter {
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--line);
        appearance: none;
        -webkit-appearance: none;
        padding: 9px 15px;
    }

    .footer-cta .wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --------------------------------------------------
   Product Visibility
-------------------------------------------------- */

.product[data-category="unterwegs"] {
    display: block;
}

.product {
    display: none;
}

.product.show {
    display: block;
}

/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 620px) {

    body {
        text-align: center;
    }

    .site-header {
        padding-top: 18px;
    }

    .brand {
        font-size: 1.35rem;
    }

    .hero__copy h1 {
        font-size: 3.3rem;
        letter-spacing: -0.040em;
        line-height: 1.1;
    }

    .hero__copy p {
        margin: 21px 0;
    }

    .hero__gallery {
        position: relative;
        width: 100%;
        max-width: 380px;
        min-height: auto;
        margin: 0 auto;
        display: block;
    }

    .hero__primary {
        width: 100%;
        max-width: none;
        min-height: auto;
        margin: 0;
        transform: none;
    }

    .hero__tile {
        display: none;
    }

    .hero__tile--one {
        height: 36%;
    }

    .hero__tile--two {
        height: 32%;
    }

    .hero__stamp {
        top: 3px;
        left: 3px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .editorial-divider span {
        padding: 7px 17px;
        font-size: 0.72rem;
        text-align: center;
    }

    .recommendations {
        padding-top: 38px;
    }

    .section-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-head > div:first-child {
        width: 100%;
    }

    .filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .filter {
        width: calc((100% - 24px) / 2) !important;
        padding: 9px 5px;
        font-size: 0.8rem;
    }

    .product-grid {
        display: flex;
        overflow: auto;
        margin-right: -20px;
        padding-right: 20px;
        scroll-snap-type: x mandatory;
    }

    .product {
        flex: 0 0 252px;
        scroll-snap-align: start;
    }

    .footer-cta h2 {
        font-size: 3rem;
    }

    .site-footer .wrap {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .button {
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .language-header {
        padding-top: 0px;
        padding-bottom: 0;
		margin-bottom:0px;
    }

    .language-header__inner {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .language-switcher {
        font-size: 14px;
        gap: 9px;
    }	
}

/* --------------------------------------------------
   Partner Mobile
-------------------------------------------------- */

@media (max-width: 700px) {

    .partners {
        padding: 45px 0 25px;
    }

    .partners__heading {
        margin-bottom: 28px;
    }

    .partners__logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-logo {
        height: 95px;
        padding: 12px;
    }

    .partner-logo img {
        max-width: 85px;
        max-height: 32px;
    }
}