/* ============================================================================
   GLOBAL BASE DESIGN
============================================================================ */

/* Globaler Bild-Reset (OHNE !important) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    margin: 0;
}

/* Brand */

.brand-pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: 2px solid #111827;
    font-size: 18px;
    letter-spacing: 0.08em;
}

/* Links */

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ============================================================================
   HERO SECTION
============================================================================ */

.hero-section {
    background: radial-gradient(circle at top left, #4f46e5, #111827);
    color: #f9fafb;
    padding: 45px 0;
    margin-bottom: 25px;
}

.hero-inner {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 60%;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-search input,
.hero-search button {
    border-radius: 999px !important;
}

.hero-search button {
    padding-left: 24px;
    padding-right: 24px;
}

/* Right side badge */

.hero-aside {
    flex: 1 1 260px;
    display: flex;
    justify-content: flex-end;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 18px;
    max-width: 260px;
    backdrop-filter: blur(6px);
}

.hero-badge .badge-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

/* ============================================================================
   PAGE WRAPPER
============================================================================ */

.page-wrapper {
    min-height: 60vh;
}

/* ============================================================================
   SECTION HEADINGS
============================================================================ */

.section-heading h2,
.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
}

/* ============================================================================
   TIP OVERVIEW GRID (STARTSEITE)
============================================================================ */

.tip-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(30, 41, 59, 0.12);
}

/* Bild oben in den Tipp-Karten */
.tip-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Card inner content */
.tip-card-inner {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.tip-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 6px;
}

.tip-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.tip-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 12px;
    flex-grow: 1;
}

/* ============================================================================
   TIP DETAIL PAGE
============================================================================ */

.tip-detail h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ======================================
   Detail Image container
====================================== */

.tipp-image-container {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.tipp-image-modern {
    width: 100%;
    max-width: 900px;
    max-height: 340px;
    height: auto;
    object-fit: contain;      /* ← KEIN Abschneiden */
    background: #f3f4f6;      /* dezenter Rand */
    border-radius: 14px;
    margin: 0 auto;
    display: block;
}


/* ============================================================================
   ARTICLE CONTENT BOX
============================================================================ */

.tip-content {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.tip-content h2 {
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.tip-content h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.tip-content p {
    line-height: 1.65;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   LISTENANSICHT "WEITERE TIPPS"
============================================================================ */

.tip-list-group .tip-list-item {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
}

.tip-list-thumb {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ============================================================================
   AFFILIATE BOXES
============================================================================ */

.affiliate-box {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin: 25px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.amazon-product-entry strong {
    font-size: 1.05rem;
}

.amazon-product-entry .badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* ============================================================================
   FOOTER
============================================================================ */

.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 25px 0;
    margin-top: 40px;
}

.site-footer a {
    color: #e5e7eb;
}
.site-footer a:hover {
    text-decoration: underline;
}
/* ===========================================
   CATEGORY SLIDER (horizontal scroll)
=========================================== */
.category-slider-section {
    margin-top: 15px;
}

.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 4px 10px;
    scroll-behavior: smooth;
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.category-chip {
    white-space: nowrap;
    padding: 8px 16px;
    background: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.category-chip:hover {
    background: #111827;
    color: #fff;
    text-decoration: none;
}
/* Aktive Kategorie im Mobile Slider */
.category-chip.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* ===========================================
   CATEGORY GRID (card-based)
=========================================== */
.category-grid-section .section-heading {
    font-size: 1.4rem;
}

.category-box {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.category-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    text-decoration: none;
}

.category-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin: 0 auto 10px;
    font-weight: 700;
    color: #374151;
}

.category-box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}
/* ============================================
   Sticky Kategorie Leiste
============================================ */
.cat-sticky-bar {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 50;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #111827;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cat-pill:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-2px);
}
/* Desktop: dezente Kategorie-Leiste */
.cat-sticky-bar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
}

.cat-pill {
    font-size: 0.85rem;
    padding: 6px 12px;
    background: #f5f7fb;
}

.cat-icon {
    font-size: 1rem;
}

.cat-icon {
    font-size: 1.1rem;
}

/* ============================================
   Scroll-to-Top Button
============================================ */
#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 25px;
    background: #111827;
    color: white;
    padding: 12px 14px;
    border-radius: 999px;
    font-size: 22px;
    cursor: pointer;
    display: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: opacity 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    transform: scale(1.08);
    background: #2563eb;
}

/* ============================================
   Sticky Kategorie-Leiste: Hide on Scroll (DESKTOP)
============================================ */
@media (min-width: 992px) {
    .cat-sticky-bar {
        transition: transform 0.25s ease, opacity 0.25s ease;
        will-change: transform;
    }

    .cat-sticky-bar.is-hidden {
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
    }
/* ============================================
   MOBILE: Kategorie-Leiste NICHT sticky
============================================ */
@media (max-width: 991px) {
    .cat-sticky-bar {
        position: relative;
        top: auto;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: none;
    }
/* ===========================================
   MOBILE CATEGORY SLIDER (FINAL)
=========================================== */
@media (max-width: 991px) {
    .category-slider-section {
        margin: 10px 0 18px;
    }

    .scrolling-wrapper {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 6px 2px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .scrolling-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 8px 16px;
        background: #ffffff;
        border-radius: 999px;
        font-size: 0.9rem;
        border: 1px solid #e5e7eb;
        color: #374151;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .category-chip:active {
        background: #111827;
        color: #ffffff;
    }
/* ============================================
   ABSOLUTER MOBILE-KILL FÜR STICKY BAR
============================================ */
@media (max-width: 991px) {
    .cat-sticky-bar {
        display: none !important;
    }
}






