/*
Theme Name:  Griffpolster
Theme URI:   https://griffpolster.de
Description: Modernes Theme für griffpolster.de – Griffpolster, Krücken-Zubehör, Fitness & Mobilitätshilfen.
Version:     1.0.0
Author:      Griffpolster.de
Text Domain: gp
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    --gp-teal:        #0d7a6b;
    --gp-teal-dark:   #095c50;
    --gp-teal-light:  #e6f5f2;
    --gp-teal-mid:    #7ecfc3;

    --gp-orange:      #e8600a;
    --gp-orange-light:#fef0e6;

    --gp-ink:         #0e1c1a;
    --gp-ink-mid:     #2a3d3a;
    --gp-ink-soft:    #547068;
    --gp-ink-muted:   #8aada6;

    --gp-white:       #ffffff;
    --gp-surface:     #f4f9f8;
    --gp-surface-alt: #eaf4f2;
    --gp-border:      #d5e8e4;

    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Source Sans 3', system-ui, sans-serif;
    --font-mono:      monospace;

    --space-xs:  .375rem;
    --space-sm:  .75rem;
    --space-md:  1.25rem;
    --space-lg:  2rem;
    --space-xl:  3.5rem;

    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-full: 999px;

    --shadow-sm: 0 1px 3px rgba(14,28,26,.08);
    --shadow-md: 0 4px 12px rgba(14,28,26,.10);
    --shadow-lg: 0 8px 28px rgba(14,28,26,.13);

    --max-content: 780px;
    --max-wide:    1100px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.72;
    color: var(--gp-ink-mid);
    background: var(--gp-white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gp-teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gp-teal-dark); }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.22;
    color: var(--gp-ink);
    letter-spacing: -.02em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--gp-ink); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
li { margin-bottom: .35rem; }

blockquote {
    border-left: 3px solid var(--gp-teal);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--gp-teal-light);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: 1.05rem;
    color: var(--gp-ink);
}

hr { border: none; border-top: 1px solid var(--gp-border); margin: var(--space-lg) 0; }

/* ================================================================
   LAYOUT
   ================================================================ */
.gp-container { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--space-md); }
.gp-container--narrow { max-width: var(--max-content); }

/* ================================================================
   BUTTONS
   ================================================================ */
.gp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    padding: .7rem 1.4rem;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.gp-btn--primary { background: var(--gp-teal); color: #fff; border-color: var(--gp-teal); }
.gp-btn--primary:hover { background: var(--gp-teal-dark); border-color: var(--gp-teal-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.gp-btn--outline { background: transparent; color: var(--gp-ink); border-color: var(--gp-border); }
.gp-btn--outline:hover { border-color: var(--gp-teal); color: var(--gp-teal); background: var(--gp-teal-light); }
.gp-btn--sm { font-size: .8rem; padding: .5rem 1rem; }

/* ================================================================
   BADGES
   ================================================================ */
.gp-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: var(--r-full);
    line-height: 1.2;
}
.gp-tag--teal    { background: var(--gp-teal-light); color: var(--gp-teal-dark); }
.gp-tag--orange  { background: var(--gp-orange-light); color: #b34500; }
.gp-tag--ink     { background: var(--gp-ink); color: #fff; }
.gp-tag--outline { background: transparent; border: 1px solid var(--gp-border); color: var(--gp-ink-soft); }

/* ================================================================
   HEADER
   ================================================================ */
.gp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gp-border);
}
.gp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-lg);
}

.gp-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.gp-logo__mark {
    width: 34px; height: 34px;
    background: var(--gp-teal);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
}
.gp-logo__text { font-family: var(--font-display); font-size: 1.15rem; color: var(--gp-ink); font-weight: 700; }
.gp-logo__text em { font-style: normal; color: var(--gp-teal); }

.gp-nav { display: flex; align-items: center; gap: var(--space-sm); list-style: none; padding: 0; margin: 0; }
.gp-nav li a { font-size: .875rem; font-weight: 500; color: var(--gp-ink-soft); padding: .4rem .65rem; border-radius: var(--r-sm); transition: all .15s; }
.gp-nav li a:hover, .gp-nav li.current-menu-item a { color: var(--gp-ink); background: var(--gp-surface); }

.gp-header__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.gp-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; border: none; background: none; }
.gp-hamburger span { display: block; width: 22px; height: 2px; background: var(--gp-ink); border-radius: 2px; transition: all .25s; }

.gp-mobile-nav { display: none; flex-direction: column; background: var(--gp-white); border-top: 1px solid var(--gp-border); padding: var(--space-md); gap: .25rem; }
.gp-mobile-nav.is-open { display: flex; }
.gp-mobile-nav a { font-size: .95rem; font-weight: 500; color: var(--gp-ink-mid); padding: .65rem .75rem; border-radius: var(--r-sm); }
.gp-mobile-nav a:hover { background: var(--gp-surface); }

/* ================================================================
   HERO
   ================================================================ */
.gp-hero {
    background: var(--gp-surface);
    border-bottom: 1px solid var(--gp-border);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}
.gp-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--gp-teal-light) 0%, transparent 70%);
    pointer-events: none;
}
.gp-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.gp-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gp-teal-dark); margin-bottom: var(--space-md);
}
.gp-hero__eyebrow::before { content: ''; display: block; width: 18px; height: 2px; background: var(--gp-teal); border-radius: 2px; }
.gp-hero h1 { margin-bottom: var(--space-md); }
.gp-hero__lead { font-size: 1.05rem; color: var(--gp-ink-soft); margin-bottom: var(--space-lg); line-height: 1.65; }
.gp-hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.gp-hero__stats { display: flex; gap: var(--space-lg); margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--gp-border); }
.gp-stat__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gp-ink); line-height: 1; display: block; }
.gp-stat__label { font-size: .8rem; color: var(--gp-ink-muted); margin-top: .2rem; display: block; }

.gp-hero__visual { display: flex; flex-direction: column; gap: .75rem; }
.gp-hero__card {
    background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--r-lg);
    padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
    animation: slideInRight .5s ease both;
}
.gp-hero__card:nth-child(2) { animation-delay: .1s; }
.gp-hero__card:nth-child(3) { animation-delay: .2s; margin-left: 2rem; }
.gp-hero__card:hover { transform: translateX(-3px); box-shadow: var(--shadow-md); }
.gp-hero__card-rank { font-family: var(--font-display); font-size: 1.4rem; color: var(--gp-teal); min-width: 28px; font-weight: 700; }
.gp-hero__card-body { flex: 1; min-width: 0; }
.gp-hero__card-name { font-size: .875rem; font-weight: 600; color: var(--gp-ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-hero__card-price { font-size: .8rem; color: var(--gp-ink-soft); margin-top: .15rem; display: block; }
.gp-hero__card-btn { font-size: .75rem; font-weight: 600; padding: .35rem .8rem; background: var(--gp-teal-light); color: var(--gp-teal-dark); border-radius: var(--r-sm); flex-shrink: 0; transition: all .15s; }
.gp-hero__card-btn:hover { background: var(--gp-teal); color: white; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ================================================================
   CATEGORIES
   ================================================================ */
.gp-categories { padding: var(--space-lg) 0; border-bottom: 1px solid var(--gp-border); }
.gp-categories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; }
.gp-cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1.1rem .75rem; background: var(--gp-surface);
    border: 1px solid var(--gp-border); border-radius: var(--r-lg);
    text-decoration: none; color: var(--gp-ink-mid);
    font-size: .8rem; font-weight: 600; transition: all .18s; text-align: center;
}
.gp-cat-card:hover { background: var(--gp-teal-light); border-color: var(--gp-teal-mid); color: var(--gp-teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.gp-cat-card__icon { font-size: 1.6rem; line-height: 1; }

/* ================================================================
   SECTION
   ================================================================ */
.gp-section { padding: var(--space-xl) 0; }
.gp-section--alt { background: var(--gp-surface); }
.gp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-md); }
.gp-section-head h2 { margin: 0; }
.gp-section-head__link { font-size: .85rem; font-weight: 600; color: var(--gp-teal); white-space: nowrap; }

/* ================================================================
   ARTICLE CARDS
   ================================================================ */
.gp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.gp-card-grid--featured { grid-template-columns: 1.6fr 1fr 1fr; }

.gp-article-card {
    background: var(--gp-white); border: 1px solid var(--gp-border);
    border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.gp-article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gp-article-card__thumb { aspect-ratio: 16/9; background: var(--gp-surface-alt); overflow: hidden; flex-shrink: 0; }
.gp-article-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gp-article-card:hover .gp-article-card__thumb img { transform: scale(1.04); }
.gp-article-card__body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.gp-article-card__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gp-article-card__title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; color: var(--gp-ink); margin: 0; }
.gp-article-card__title a { color: inherit; text-decoration: none; }
.gp-article-card__title a:hover { color: var(--gp-teal); }
.gp-article-card__excerpt { font-size: .875rem; color: var(--gp-ink-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gp-article-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--gp-ink-muted); padding-top: .75rem; border-top: 1px solid var(--gp-border); }
.gp-article-card__read { font-weight: 600; color: var(--gp-teal); font-size: .8rem; }
.gp-article-card--featured .gp-article-card__title { font-size: 1.3rem; }

/* ================================================================
   HIGHLIGHT BOX
   ================================================================ */
.gp-highlight {
    background: linear-gradient(135deg, var(--gp-teal-light) 0%, #d0ede9 100%);
    border: 1px solid var(--gp-teal-mid);
    border-radius: var(--r-xl); padding: var(--space-lg);
    display: flex; align-items: center; gap: var(--space-lg); margin: var(--space-lg) 0;
}
.gp-highlight__icon { font-size: 2.5rem; flex-shrink: 0; }
.gp-highlight__body { flex: 1; }
.gp-highlight__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-teal-dark); margin-bottom: .35rem; }
.gp-highlight__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--gp-ink); margin-bottom: .35rem; }
.gp-highlight__desc { font-size: .9rem; color: var(--gp-ink-soft); margin: 0; }

/* ================================================================
   SINGLE POST
   ================================================================ */
.gp-entry { padding: var(--space-xl) 0; }
.gp-entry__header { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--gp-border); }
.gp-entry__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: var(--space-md); }
.gp-entry__date { font-size: .8rem; color: var(--gp-ink-muted); }
.gp-entry h1 { margin-bottom: .75rem; }
.gp-entry__lead { font-size: 1.1rem; color: var(--gp-ink-soft); line-height: 1.65; border-left: 3px solid var(--gp-teal); padding-left: 1.1rem; margin-top: var(--space-md); }
.gp-content { max-width: var(--max-content); }
.gp-content h2 { margin: 2rem 0 .75rem; }
.gp-content h3 { margin: 1.5rem 0 .6rem; }
.gp-content img { border-radius: var(--r-lg); margin: var(--space-md) 0; box-shadow: var(--shadow-sm); }

/* TOC */
.gp-toc { background: var(--gp-surface); border: 1px solid var(--gp-border); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin: var(--space-lg) 0; }
.gp-toc__title { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gp-ink-soft); margin-bottom: .75rem; }
.gp-toc ol { margin: 0; }
.gp-toc li { font-size: .9rem; }
.gp-toc a { color: var(--gp-ink-mid); }
.gp-toc a:hover { color: var(--gp-teal); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.gp-layout--sidebar { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-xl); align-items: start; }
.gp-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.gp-widget { background: var(--gp-surface); border: 1px solid var(--gp-border); border-radius: var(--r-lg); padding: 1.25rem; }
.gp-widget__title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-ink-soft); margin-bottom: 1rem; padding-bottom: .75rem; border-top: 0; border-bottom: 1px solid var(--gp-border); }

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.gp-breadcrumbs { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--gp-ink-muted); padding: .75rem 0; flex-wrap: wrap; }
.gp-breadcrumbs a { color: var(--gp-ink-soft); }
.gp-breadcrumbs a:hover { color: var(--gp-teal); }
.gp-breadcrumbs__sep { opacity: .4; }

/* ================================================================
   FOOTER
   ================================================================ */
.gp-footer { background: var(--gp-ink); color: rgba(255,255,255,.7); padding: var(--space-xl) 0 var(--space-lg); }
.gp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.gp-footer__brand .gp-logo__text { color: white; }
.gp-footer__brand .gp-logo__text em { color: var(--gp-teal-mid); }
.gp-footer__tagline { font-size: .875rem; margin-top: var(--space-sm); line-height: 1.6; opacity: .7; }
.gp-footer__col-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: white; margin-bottom: 1rem; }
.gp-footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.gp-footer__links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .15s; }
.gp-footer__links a:hover { color: var(--gp-teal-mid); }
.gp-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; opacity: .5; flex-wrap: wrap; gap: .5rem; }
.gp-footer__affiliate-note { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: .75rem 1rem; font-size: .8rem; line-height: 1.6; margin-top: var(--space-md); }

/* ================================================================
   PAGINATION
   ================================================================ */
.gp-pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: var(--space-lg) 0; }
.gp-pagination a, .gp-pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; border: 1px solid var(--gp-border); color: var(--gp-ink-mid); transition: all .15s; }
.gp-pagination a:hover { border-color: var(--gp-teal); color: var(--gp-teal); background: var(--gp-teal-light); }
.gp-pagination .current { background: var(--gp-teal); color: white; border-color: var(--gp-teal); }

/* ================================================================
   UTILITIES
   ================================================================ */
.gp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.gp-text-center { text-align: center; }
.gp-reading-time { font-size: .8rem; color: var(--gp-ink-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .gp-hero__inner { grid-template-columns: 1fr; }
    .gp-hero__visual { display: none; }
    .gp-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
    .gp-layout--sidebar { grid-template-columns: 1fr; }
    .gp-sidebar { position: static; }
    .gp-card-grid--featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .gp-nav { display: none; }
    .gp-hamburger { display: flex; }
    .gp-header__actions .gp-btn { display: none; }
    .gp-footer__grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .gp-card-grid--featured { grid-template-columns: 1fr; }
    .gp-categories__grid { grid-template-columns: repeat(3, 1fr); }
    .gp-highlight { flex-direction: column; text-align: center; }
}
