@import url('/custom/assets/fonts/fonts.css');

/* ================================================================
   shopping-trend.net – "Preisschild"-Magazin
   Papier-Weiß, Heart-Rot aus dem Logo, Tinten-Blau als Kontrast.
   ================================================================ */

:root {
    --primary:        #d4202c;
    --primary-dark:   #a9141f;
    --primary-soft:   #fde8ea;
    --secondary:      #1b2340;
    --secondary-soft: #2c3560;
    --body-bg:        #f7f2ea;
    --surface:        #ffffff;
    --header-bg:      #ffffff;
    --ink:            #1d1d22;
    --muted:          #6a6872;
    --line:           #e6ddd0;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Figtree', 'Segoe UI', Roboto, sans-serif;

    --radius:   14px;
    --radius-s: 8px;
    --shadow:   0 1px 2px rgba(27, 35, 64, .06), 0 10px 30px -12px rgba(27, 35, 64, .22);
    --shadow-h: 0 2px 4px rgba(27, 35, 64, .08), 0 22px 44px -16px rgba(27, 35, 64, .34);
    --logo-height: 60px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--body-bg);
    background-image: radial-gradient(rgba(27, 35, 64, .055) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--secondary);
    letter-spacing: -.01em;
}

::selection { background: var(--primary); color: #fff; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 999;
    background: var(--secondary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: #fff; }

main { min-height: 60vh; }

/* ---------- Header / Hauptmenü ---------- */
.outer-mainmenu-container,
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(27, 35, 64, .35); }

/* dezente Akzentlinie unter dem Header */
.site-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--primary); opacity: .35;
}

.site-header .navbar { padding: .75rem 0; }

.logo-wrapper { display: inline-flex; align-items: center; margin-right: 2rem; }
.logo { height: var(--logo-height); width: auto; max-width: 100%; display: block; }

.navbar-nav { gap: .25rem; align-items: center; }

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--secondary);
    padding: .55rem 1rem !important;
    border-radius: 999px;
    transition: background-color .2s, color .2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.nav-link--cta { background: var(--primary); color: #fff; margin-left: .5rem; }
.navbar-nav .nav-link.nav-link--cta,
.navbar-nav .nav-link.nav-link--cta.active { background: var(--primary); color: #fff; box-shadow: none; border-radius: 999px; }
.navbar-nav .nav-link.nav-link--cta:hover,
.navbar-nav .nav-link.nav-link--cta.active { background: var(--secondary); color: #fff; }

.navbar-toggler { border: 1.5px solid var(--secondary); border-radius: var(--radius-s); padding: .5rem .6rem; margin-left: auto; }
.hamburger-icon { display: grid; gap: 4px; width: 22px; }
.hamburger-icon span { height: 2px; background: var(--secondary); border-radius: 2px; }

@media (max-width: 991.98px) {
    :root { --logo-height: 44px; }
    .navbar-collapse { padding: 1rem 0 .5rem; }
    .navbar-nav { gap: 0; }
    .nav-link { border-radius: var(--radius-s); }
    .nav-link--cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-outer { padding: 1.25rem 0 0; }
.breadcrumb { margin: 0; font-size: .85rem; color: var(--muted); --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--secondary); font-weight: 600; }

.inner-wrapper { padding: 1.5rem 0 4.5rem; }

/* ---------- Startseite ---------- */
.home-wrapper { padding-top: 0; }
.breadcrumb-outer:has(+ main .home-wrapper) { display: none; }

.home-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    overflow: hidden;
    text-align: center;
}
.hero-kicker {
    display: inline-block;
    font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--primary);
    padding-bottom: .5rem;
    border-bottom: 2px dotted var(--primary);
    margin-bottom: 1.4rem;
}
.home-hero h1 {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(2.6rem, 7.5vw, 5.4rem);
    font-weight: 800;
    margin: 0 auto 1.4rem;
    animation: rise .8s var(--ease) both;
}
.home-hero h1::after {
    content: ''; display: block; width: 90px; height: 6px; margin: 1.2rem auto 0;
    background: var(--primary); border-radius: 6px;
}
.intro-body { max-width: 58ch; margin-inline: auto; font-size: 1.2rem; color: #3a3a44; animation: rise .8s .15s var(--ease) both; }
.intro-body p { margin-bottom: .8rem; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.home-category-section { margin-top: 3.5rem; }
.home-cat-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.home-cat-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; white-space: nowrap; }
.home-cat-header .line { flex: 1; border-top: 2px dotted var(--secondary); opacity: .35; }
.see-all {
    font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; color: var(--secondary); white-space: nowrap;
}
.see-all::after { content: ' →'; color: var(--primary); }
.see-all:hover { color: var(--primary); }

@media (max-width: 575.98px) {
    .home-cat-header { flex-wrap: wrap; }
    .home-cat-header .line { display: none; }
}

/* ---------- Kategorie-Seite ---------- */
.category-page-hero { padding: 1rem 0 2.2rem; margin-bottom: 2rem; border-bottom: 2px dotted rgba(27, 35, 64, .3); }
.category-page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: .8rem; }
.category-page-hero h1::before {
    content: ''; display: inline-block; width: .5em; height: .5em; margin-right: .25em;
    border-radius: 50%; background: var(--primary); vertical-align: .05em;
}
.hero-intro { max-width: 60ch; font-size: 1.15rem; color: #3a3a44; }
.hero-intro p { margin: 0; }

/* ---------- Artikel-Karten ---------- */
.article-list .row { row-gap: 1.75rem; }

.article-item {
    height: 100%;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-item a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.article-item:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-h); }

.article-item .image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.article-item .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-item:hover .image img { transform: scale(1.06); }

.article-item .tag {   /* Preisschild-Label */
    position: absolute; left: 0; top: 1rem;
    background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: .38rem 1.1rem .38rem .85rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}

.article-item-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.article-item .date { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.article-item h2, .article-item h3 { font-size: 1.35rem; margin: 0 0 .6rem; transition: color .2s; }
.article-item:hover h2, .article-item:hover h3 { color: var(--primary); }
.article-item .excerpt {
    color: #4a4a54; font-size: .98rem; line-height: 1.55; margin: 0 0 1rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.read-more { margin-top: auto; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.read-more::after { content: ' →'; color: var(--primary); display: inline-block; transition: transform .25s var(--ease); }
.article-item:hover .read-more::after { transform: translateX(5px); }

.no-articles { color: var(--muted); font-style: italic; }

/* Einblenden beim Scrollen (main.js) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease); }
.reveal.is-visible:hover { transform: translateY(-6px) rotate(-.4deg); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Artikel-Detail ---------- */
.article-title-section { margin-bottom: 1.6rem; }
.article-title-section h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .8rem; }
.date-line { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.modified-date { text-transform: none; letter-spacing: 0; font-weight: 500; }

.article-featured-image { margin: 0 0 2rem; }
.article-featured-image img {
    width: 100%; height: auto; aspect-ratio: 97 / 50; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}

.content { font-size: 1.1rem; }
.content > p:first-of-type { font-size: 1.25rem; color: #2e2e38; }
.content h2 { font-size: 1.9rem; margin: 2.4rem 0 .8rem; padding-left: 1rem; border-left: 5px solid var(--primary); }
.content h3 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.content p, .content ul, .content ol { margin-bottom: 1.25rem; }
.content ul { padding-left: 1.3rem; }
.content li::marker { color: var(--primary); }
.content img { border-radius: var(--radius-s); margin: .5rem 0; }
.content blockquote {
    margin: 2rem 0; padding: 1.2rem 1.6rem; background: var(--primary-soft);
    border-left: 5px solid var(--primary); border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--secondary);
}
.content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.content th, .content td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.content iframe { max-width: 100%; border-radius: var(--radius-s); }

.page-layout { background: var(--surface); padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-layout .content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.2rem; }

.related-section { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px dotted rgba(27, 35, 64, .3); }
.related-label { font-size: 1.8rem; margin-bottom: 1.4rem; }

/* ---------- Sidebar ---------- */
.custom-sidebar { position: sticky; top: 110px; display: grid; gap: 1.5rem; margin-top: .5rem; }
.sidebar-block { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.sidebar-eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }

.sidebar-block--cta { background: var(--secondary); color: #fff; position: relative; overflow: hidden; }
.sidebar-block--cta::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
    border-radius: 50%; background: var(--primary); opacity: .9;
}
.sidebar-block--cta .sidebar-eyebrow { color: #ffb3b9; position: relative; z-index: 1; }
.fi-newsletter-cta { position: relative; z-index: 1; }
.fi-newsletter-cta__text { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; margin: 0 0 1.2rem; max-width: 22ch; }

.btn-cta {
    display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
    font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .8rem 1.5rem; border-radius: 999px; transition: background-color .2s, transform .2s var(--ease), color .2s;
}
.btn-cta:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

.sidebar-cat-list { list-style: none; margin: 0; padding: 0; }
.sidebar-cat-list li + li { border-top: 1px dotted var(--line); }
.sidebar-cat-list a {
    display: flex; justify-content: space-between; padding: .7rem 0;
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--secondary); text-decoration: none;
}
.sidebar-cat-list a::after { content: '→'; color: var(--primary); transition: transform .25s var(--ease); }
.sidebar-cat-list a:hover { color: var(--primary); }
.sidebar-cat-list a:hover::after { transform: translateX(5px); }

@media (max-width: 991.98px) { .custom-sidebar { position: static; margin-top: 2.5rem; } }

/* ---------- Pagination ---------- */
.pagination { gap: .4rem; }
.page-link {
    border: 0; border-radius: 999px !important; min-width: 2.6rem; text-align: center;
    color: var(--secondary); font-weight: 600; background: var(--surface); box-shadow: var(--shadow);
}
.page-link:hover { background: var(--primary-soft); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); color: #fff; }
.page-item.disabled .page-link { background: transparent; box-shadow: none; color: var(--muted); }

/* ---------- Footer ---------- */
.footer-wrapper {
    position: relative;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.footer-logo { display: inline-block; margin-bottom: 1.2rem; }
.footer-logo-img { height: 42px; width: auto; }
.footer-copy { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { color: var(--secondary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

