/* =========================================================================
   APPLE STYLE REDESIGN - BIKEPACKINGSTUFF.DE
   ========================================================================= */

/* --- 1. VARIABLES & RESET --- */
:root {
    --apple-dark: #1d1d1f;
    --apple-dark-secondary: #000000;
    --apple-light: #f5f5f7;
    --apple-white: #ffffff;
    --apple-text-dark: #1d1d1f;
    --apple-text-light: #86868b;
    --apple-text-white: #f5f5f7;
    --apple-blue: #0066cc;
    --apple-blue-hover: #0077ed;
    --apple-border: #d2d2d7;

    /* Brand Colors extracted from logo */
    --brand-green: #6b9e3b;
    --brand-dark: #1a1e29;

    --nav-height: 48px;
    --product-nav-height: 52px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--apple-white);
    color: var(--apple-text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- 2. TYPOGRAPHY (Apple "Statement" Style) --- */
h1,
h2,
h3,
h4,
h5 {
    letter-spacing: -0.015em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 0.5em;
}

.massive-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.15;
}

.statement-text {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--apple-dark);
}

.micro-headline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--apple-text-light);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.3;
    color: var(--apple-text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--apple-text-light);
}

.dark-theme p {
    color: #a1a1a6;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme .massive-title {
    color: var(--apple-white);
}

/* --- 3. LAYOUT & SPACING --- */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.measure-large {
    max-width: 980px;
}

.measure-common {
    max-width: 700px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 2rem;
}

.mt-8 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 3rem;
}

.bg-white {
    background-color: var(--apple-white);
}

.bg-light {
    background-color: var(--apple-light);
}

.dark-theme {
    background-color: var(--apple-dark-secondary);
    color: var(--apple-text-white);
}

/* --- 4. NAVIGATION --- */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(29, 29, 31, 0.8);
    /* Apple Dark Nav */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
}

.global-nav .nav-container {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo-green {
    color: var(--brand-green);
}

.logo-grey {
    color: #86868b;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #f5f5f7;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    color: #f5f5f7;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.icon-btn:hover {
    opacity: 1;
}

/* Product Nav (Sticky beneath global nav) */
.product-nav {
    position: sticky;
    top: var(--nav-height);
    width: 100%;
    height: var(--product-nav-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-border);
    z-index: 9998;
}

.product-nav .nav-container {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.product-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--apple-text-dark);
}

.product-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
}

.product-links a:not(.btn) {
    color: var(--apple-dark);
}

.product-links a:not(.btn):hover {
    color: var(--apple-blue);
}

/* --- 5. BUTTONS (CTAs) --- */
.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.split-layout .cta-group {
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--apple-blue);
    color: white;
    padding: 12px 22px;
}

.btn-primary:hover {
    background-color: var(--apple-blue-hover);
}

.btn-small {
    font-size: 0.85rem;
    padding: 4px 12px;
}

.btn-large {
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-link {
    color: var(--apple-blue);
    font-size: 1.1rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link span {
    margin-left: 5px;
    transition: transform 0.2s;
}

.btn-link:hover span {
    transform: translateX(3px);
}

.dark-theme .btn-primary {
    background-color: var(--apple-white);
    color: var(--apple-dark);
    font-weight: 500;
}

.dark-theme .btn-primary:hover {
    background-color: #f0f0f0;
}

/* --- 6. SECTIONS --- */

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(100px + var(--nav-height) + var(--product-nav-height));
}

/* Fluid Mesh Gradient Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 102, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(107, 158, 59, 0.15) 0%, transparent 40%),
        radial-gradient(circle at center, #1a1a1c 0%, #000 100%);
    background-size: 200% 200%;
    animation: flow-gradient 15s ease infinite;
    z-index: 0;
}

@keyframes flow-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* Statement Section */
.statement-section {
    padding: 150px 0;
    display: flex;
    align-items: center;
}

/* Product Focus (Split Layout) */
.product-focus {
    padding: 100px 20px;
}

.split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
    max-width: 500px;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.placeholder-box {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-text-light);
    font-size: 0.9rem;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.dark-theme .placeholder-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Bento Box Grid */
.bento-section {
    padding: 120px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 24px;
    max-width: 1000px;
}

.bento-card {
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.card-large {
    grid-column: span 2;
    min-height: 400px;
}

.card-medium {
    grid-column: span 1;
    min-height: 350px;
}

.black-card {
    background-color: var(--apple-dark-secondary);
    color: var(--apple-white);
}

.black-card h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.white-card {
    background-color: var(--apple-white);
}

.white-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--apple-dark);
    font-weight: 500;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

/* Ultimate CTA */
.ultimate-cta {
    padding: 150px 0 100px;
}

/* --- 7. FOOTER (Apple Style Docs & Legal) --- */
.apple-footer {
    background-color: var(--apple-light);
    padding: 60px 0 20px;
    font-size: 0.75rem;
    color: var(--apple-text-light);
    border-top: 1px solid var(--apple-border);
}

.footer-quicklinks {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-quicklinks a {
    color: var(--apple-text-dark);
    font-size: 0.85rem;
}

.footer-quicklinks .highlight-link {
    color: var(--brand-green);
    font-weight: 500;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--apple-border);
    margin: 0 0 30px;
}

/* Accordion for Legal Texts */
.legal-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: left;
}

.accordion-item {
    border-bottom: 1px solid var(--apple-border);
}

.accordion-header {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--apple-text-dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--apple-blue);
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.legal-text-block {
    padding: 10px 0 30px;
    color: var(--apple-text-light);
}

.legal-text-block h5 {
    color: var(--apple-text-dark);
    font-size: 0.85rem;
    margin: 20px 0 5px;
}

.legal-text-block h6 {
    color: var(--apple-text-dark);
    font-size: 0.75rem;
    margin: 15px 0 5px;
}

.legal-text-block p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-text-block ul {
    margin: 10px 0 10px 20px;
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 30px;
}

.footer-column h4 {
    color: var(--apple-text-dark);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--apple-text-dark);
    text-decoration: underline;
}

/* Specific styling for the Impressum block if inserted directly */
.legal-text-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--apple-border);
    color: var(--apple-text-light);
}

.legal-text-block h5 {
    color: var(--apple-text-dark);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.legal-text-block p {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--apple-border);
}

.footer-legal-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.legal-links-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.legal-links-inline a {
    color: var(--apple-text-dark);
}

.legal-links-inline .sep {
    margin: 0 10px;
    color: var(--apple-border);
}

/* --- 8. ANIMATIONS & RESPONSIVE --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@media (max-width: 768px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        text-align: center;
    }

    .split-layout .cta-group {
        justify-content: center;
    }

    .split-image {
        margin-top: 40px;
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
        min-height: auto;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-only {
        display: none;
    }

    .global-nav .nav-container {
        justify-content: space-between;
    }

    .product-links a:not(.btn) {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* --- 9. COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 700px;
    background-color: rgba(29, 29, 31, 0.95);
    color: var(--apple-white);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: #f5f5f7;
}

.cookie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    color: #a1a1a6;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--apple-white);
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-content p {
        flex: 1;
        padding-right: 20px;
    }

    .cookie-actions {
        flex-shrink: 0;
        gap: 20px;
    }
}