/* ============================================================
   Proteinbär – Custom Stylesheet  v2.1
   Loaded after Bootstrap. Handles brand identity, typography,
   and component fine-tuning. Bootstrap handles the grid and
   responsive utilities; this file handles everything visual.
   ============================================================ */

/* ── Custom properties ── */
:root {
    --pb-bg:            #F8F7F5;
    --pb-surface:       #FFFFFF;
    --pb-text:          #1A1A1A;
    --pb-muted:         #6B6B6B;
    --pb-subtle:        #9A9A9A;
    --pb-accent:        #D4651A;
    --pb-accent-hover:  #B8541A;
    --pb-accent-soft:   #FAF0E8;
    --pb-accent-softer: #FDF6F0;
    --pb-border:        #E5E1DA;
    --pb-border-light:  #F0EDE8;
    --pb-shadow-sm:     0 1px 4px rgba(0, 0, 0, 0.06);
    --pb-shadow-md:     0 4px 18px rgba(0, 0, 0, 0.09);
    --pb-shadow-lg:     0 10px 36px rgba(0, 0, 0, 0.11);
    --pb-radius:        10px;
    --pb-radius-sm:     6px;
    --pb-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Card thumbnail gradient – swapped out per-type via modifier classes */
    --pb-thumb-from:    #FAF0E8;
    --pb-thumb-to:      #F0EDE8;
}

/* ── Base ── */
body {
    font-family: var(--pb-font);
    background-color: var(--pb-bg);
    color: var(--pb-text);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  NAVBAR                                              ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-navbar {
    background: var(--pb-surface);
    border-bottom: 1px solid var(--pb-border);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pb-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--pb-accent);
    letter-spacing: -0.01em;
}

.pb-navbar .navbar-brand:hover {
    color: var(--pb-accent-hover);
}

.pb-navbar .nav-link {
    color: var(--pb-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.15s;
}

.pb-navbar .nav-link:hover {
    color: var(--pb-accent);
}

.pb-navbar .navbar-toggler {
    border-color: var(--pb-border);
    font-size: 0.85rem;
}

.pb-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* Nav accent badge */
.pb-nav-badge {
    display: inline-flex;
    align-items: center;
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
    margin-left: 0.5rem;
}

.pb-nav-badge:hover {
    background: var(--pb-accent);
    color: #fff;
}

/* Suppress Bootstrap's default dropdown caret on the badge */
.dropdown-toggle::after {
    display: none;
}

@media (max-width: 767px) {
    .pb-nav-badge {
        margin-left: 1rem;
        margin-top: 0.4rem;
        display: inline-flex;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  BUTTONS                                             ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--pb-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 1.6rem;
    border-radius: var(--pb-radius-sm);
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    font-family: var(--pb-font);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.pb-btn-primary:hover {
    background: var(--pb-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 101, 26, 0.3);
}

.pb-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.pb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: var(--pb-text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: var(--pb-radius-sm);
    text-decoration: none;
    border: 2px solid var(--pb-border);
    transition: border-color 0.15s, color 0.15s, transform 0.15s;
    cursor: pointer;
    font-family: var(--pb-font);
    line-height: 1.4;
}

.pb-btn-outline:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
    transform: translateY(-1px);
}

.pb-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--pb-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    font-family: var(--pb-font);
}

.pb-btn-secondary:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  HERO                                                ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-hero {
    background: var(--pb-surface);
    border-bottom: 1px solid var(--pb-border);
    padding: 0 0 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .pb-hero {
        padding: 0 0 0;
        min-height: 420px;
    }
}

/* Warm ambient glow */
.pb-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 101, 26, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Two-column layout */
.pb-hero__inner {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

.pb-hero__content {
    flex: 1;
    min-width: 0;
    max-width: 650px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}

/* Hero image – hidden on mobile, shown on lg+ */
.pb-hero__visual {
    flex: 0 0 48%;
    max-width: 48%;
    display: none;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-bottom: -2rem;
    align-self: stretch;
    overflow: hidden;
    isolation: isolate;
}

.pb-hero__visual::before {
    display: none;
}

@media (min-width: 992px) {
    .pb-hero__visual {
        display: flex;
        min-height: 460px;
    }
}

@media (min-width: 1200px) {
    .pb-hero__visual { flex: 0 0 50%; max-width: 50%; }
}

.pb-hero__img {
    width: auto;
    max-width: 118%;
    height: 100%;
    max-height: 600px;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    transform-origin: bottom center;
    position: relative;
    z-index: 0;
    transform: none;
}

/* ── Hero text elements ── */

.pb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pb-accent);
    background: var(--pb-accent-soft);
    padding: 0.3rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    opacity: 0.85;
}

.pb-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    max-width: 600px;
    margin-bottom: 1rem;
    color: var(--pb-text);
}

.pb-hero h1 em {
    font-style: normal;
    color: var(--pb-accent);
}

.pb-hero__sub {
    font-size: 1.05rem;
    color: var(--pb-muted);
    max-width: 490px;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.pb-hero__actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.pb-hero__proof {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--pb-subtle);
    font-weight: 500;
    flex-wrap: wrap;
}

.pb-hero__proof-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--pb-border);
    flex-shrink: 0;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  SECTIONS (generic)                                  ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .pb-section {
        padding: 5rem 0;
    }
}

.pb-section--alt {
    background: var(--pb-surface);
}

.pb-section + .pb-section {
    border-top: 1px solid var(--pb-border);
}

.pb-section--alt + .pb-section,
.pb-section + .pb-section--alt {
    border-top: 1px solid var(--pb-border);
}

.pb-section__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pb-accent);
    margin-bottom: 0.5rem;
}

.pb-section__title {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--pb-text);
    line-height: 1.2;
}

.pb-section__sub {
    font-size: 0.95rem;
    color: var(--pb-muted);
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* section header row with optional "see all" link */
.pb-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pb-section__head .pb-section__title {
    margin-bottom: 0;
}

.pb-section__more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pb-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.pb-section__more:hover {
    color: var(--pb-accent-hover);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  ENTRY POINT CARDS (Start here / Einstieg)           ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-entry-card {
    background: var(--pb-surface);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.pb-entry-card:hover {
    border-color: var(--pb-accent);
    box-shadow: var(--pb-shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

/* Top image area */
.pb-entry-card__visual {
    height: 150px;
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-border-light) 100%);
    border-bottom: 1px solid var(--pb-border-light);
    overflow: hidden;
    position: relative;
}

.pb-entry-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.pb-entry-card--green .pb-entry-card__visual {
    background: linear-gradient(135deg, #EBF5EC 0%, #DFF0E0 100%);
}

.pb-entry-card--blue .pb-entry-card__visual {
    background: linear-gradient(135deg, #EBF0F8 0%, #DDE8F4 100%);
}

.pb-entry-card__body {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pb-entry-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    color: var(--pb-text);
}

.pb-entry-card__desc {
    font-size: 0.875rem;
    color: var(--pb-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.pb-entry-card__cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pb-accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pb-entry-card__cta::after {
    content: '→';
    transition: transform 0.15s;
}

.pb-entry-card:hover .pb-entry-card__cta::after {
    transform: translateX(4px);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  ARTICLE CARDS                                       ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.pb-card-link:hover {
    color: inherit;
}

.pb-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;          /* keeps thumb inside border-radius */
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.pb-card-link:hover .pb-card {
    box-shadow: var(--pb-shadow-md);
    border-color: var(--pb-accent);
    transform: translateY(-2px);
}

/* Thumbnail area at top of card */
.pb-card-thumb {
    height: 170px;
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-border-light) 100%);
    border-bottom: 1px solid var(--pb-border-light);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.pb-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Thumb colour variants (cycle via nth-child on the column) */
.pb-col-2 .pb-card-thumb {
    background: linear-gradient(135deg, #EBF5EC 0%, #DFF0E0 100%);
}

.pb-col-3 .pb-card-thumb {
    background: linear-gradient(135deg, #EBF0F8 0%, #DDE8F4 100%);
}

/* Card content area */
.pb-card__body {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pb-card__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pb-accent);
    background: var(--pb-accent-soft);
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    margin-bottom: 0.7rem;
    align-self: flex-start;
}

.pb-card__title {
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--pb-text);
}

.pb-card__excerpt {
    font-size: 0.855rem;
    color: var(--pb-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pb-border-light);
}

.pb-card__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pb-subtle);
    letter-spacing: 0.01em;
}

.pb-card__arrow {
    font-size: 0.85rem;
    color: var(--pb-accent);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.pb-card-link:hover .pb-card__arrow {
    opacity: 1;
    transform: translateX(3px);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  TOPIC CARDS                                         ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-topic-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.pb-topic-link:hover {
    color: inherit;
}

.pb-topic {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pb-topic-link:hover .pb-topic {
    border-color: var(--pb-accent);
    box-shadow: var(--pb-shadow-sm);
    transform: translateY(-2px);
}

/* Icon block at top */
.pb-topic__visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-border-light) 100%);
    border-bottom: 1px solid var(--pb-border-light);
}

.pb-topic--green .pb-topic__visual {
    background: linear-gradient(135deg, #EBF5EC 0%, #DFF0E0 100%);
}

.pb-topic--blue .pb-topic__visual {
    background: linear-gradient(135deg, #EBF0F8 0%, #DDE8F4 100%);
}

.pb-topic__body {
    padding: 1.1rem 1.25rem 1.35rem;
    flex: 1;
}

.pb-topic__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--pb-text);
    letter-spacing: -0.01em;
}

.pb-topic__desc {
    font-size: 0.84rem;
    color: var(--pb-muted);
    margin: 0;
    line-height: 1.6;
}

.pb-topic__link-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pb-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 1.25rem 1.1rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.pb-topic-link:hover .pb-topic__link-hint {
    opacity: 1;
    transform: translateY(0);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  CATEGORY LISTS                                      ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-category {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pb-category__header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--pb-border);
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-border-light) 100%);
}

.pb-category--green .pb-category__header {
    background: linear-gradient(135deg, #EBF5EC 0%, #DFF0E0 100%);
}

.pb-category--blue .pb-category__header {
    background: linear-gradient(135deg, #EBF0F8 0%, #DDE8F4 100%);
}

.pb-category__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.pb-category__title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pb-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.pb-category__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.pb-category__item {
    border-bottom: 1px solid var(--pb-border-light);
}

.pb-category__item:last-child {
    border-bottom: none;
}

.pb-category__link {
    display: block;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    color: var(--pb-text);
    transition: background 0.15s;
}

.pb-category__link:hover {
    background: var(--pb-accent-soft);
    color: var(--pb-text);
}

.pb-category--green .pb-category__link:hover {
    background: #EBF5EC;
}

.pb-category--blue .pb-category__link:hover {
    background: #EBF0F8;
}

.pb-category__link-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.pb-category__link-meta {
    font-size: 0.775rem;
    color: var(--pb-muted);
    line-height: 1.4;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  START HERE / GUIDE CARDS                            ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-guide {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pb-guide:hover {
    border-color: var(--pb-accent);
    box-shadow: var(--pb-shadow-sm);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.pb-guide__number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--pb-accent);
    line-height: 1;
    min-width: 2.4rem;
    opacity: 0.55;
}

.pb-guide:hover .pb-guide__number {
    opacity: 1;
}

.pb-guide__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--pb-text);
    line-height: 1.4;
}

.pb-guide__desc {
    font-size: 0.83rem;
    color: var(--pb-muted);
    margin: 0;
    line-height: 1.55;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  TRUST / WHY SECTION                                 ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-trust {
    padding: 4rem 0;
    background: var(--pb-surface);
    border-top: 1px solid var(--pb-border);
    border-bottom: 1px solid var(--pb-border);
}

@media (min-width: 768px) {
    .pb-trust {
        padding: 5rem 0;
    }
}

.pb-trust-pillar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 767px) {
    /* Extra breathing room under the heading block on mobile */
    .pb-trust .col-12.col-md-3 {
        margin-bottom: 0.5rem;
    }

    .pb-trust-pillar {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        border-top: 1px solid var(--pb-border-light);
    }

    /* Remove divider above the first pillar (adjacent sibling of heading col) */
    .pb-trust .col-12.col-md-3 + .pb-trust-pillar {
        border-top: none;
        padding-top: 0.5rem;
    }
}

.pb-trust-pillar__icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.pb-trust-pillar__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.pb-trust-pillar__text {
    font-size: 0.875rem;
    color: var(--pb-muted);
    line-height: 1.7;
    margin: 0;
}

@media (min-width: 768px) {
    .pb-trust-pillar + .pb-trust-pillar {
        border-left: 1px solid var(--pb-border);
        padding-left: 2rem;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  RECHNER / TOOLS TEASER                              ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-rechner-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pb-rechner-card__visual {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    background: linear-gradient(135deg, var(--pb-bg) 0%, var(--pb-border-light) 100%);
    border-bottom: 1px solid var(--pb-border-light);
    opacity: 0.7;
}

.pb-rechner-card__body {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pb-rechner-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--pb-text);
    opacity: 0.7;
}

.pb-rechner-card__desc {
    font-size: 0.84rem;
    color: var(--pb-subtle);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.1rem;
}

.pb-rechner-card__soon {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--pb-subtle);
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    align-self: flex-start;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  TOOL CARDS (featured 2-up on homepage)              ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-tools-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-tools-section__head {
    margin-bottom: 2rem;
}

/* Base card */
.pb-tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--pb-surface);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--pb-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.pb-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--pb-text);
}

/* Icon strip */
.pb-tool-card__icon {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

/* Protein – warm orange accent */
.pb-tool-card--protein {
    border-color: rgba(212, 101, 26, 0.25);
}

.pb-tool-card--protein .pb-tool-card__icon {
    background: linear-gradient(135deg, rgba(212, 101, 26, 0.08) 0%, rgba(212, 101, 26, 0.03) 100%);
    border-bottom: 1px solid rgba(212, 101, 26, 0.12);
}

.pb-tool-card--protein:hover {
    border-color: var(--pb-accent);
}

.pb-tool-card--protein .pb-tool-card__btn {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}

.pb-tool-card--protein:hover .pb-tool-card__btn {
    background: var(--pb-accent);
    color: #fff;
}

/* Kalorien – teal/green accent */
.pb-tool-card--kalorien {
    border-color: rgba(22, 163, 74, 0.2);
}

.pb-tool-card--kalorien .pb-tool-card__icon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.07) 0%, rgba(22, 163, 74, 0.02) 100%);
    border-bottom: 1px solid rgba(22, 163, 74, 0.1);
}

.pb-tool-card--kalorien:hover {
    border-color: #16a34a;
}

.pb-tool-card--kalorien .pb-tool-card__btn {
    border-color: #16a34a;
    color: #16a34a;
}

.pb-tool-card--kalorien:hover .pb-tool-card__btn {
    background: #16a34a;
    color: #fff;
}

/* Body */
.pb-tool-card__body {
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pb-tool-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pb-text);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.pb-tool-card__desc {
    font-size: 0.9rem;
    color: var(--pb-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.4rem;
}

/* CTA button inside card */
.pb-tool-card__btn {
    display: block;
    text-align: center;
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1.5px solid;
    border-radius: var(--pb-radius-sm);
    transition: background 0.15s, color 0.15s;
}

/* Coming-soon footer line */
.pb-tools-coming-soon {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--pb-subtle);
}

.pb-tools-coming-soon__label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.72rem;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  ARTICLE SEARCH (artikel-liste page)                 ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-article-search {
    margin-bottom: 2rem;
}

.pb-article-search__input {
    width: 100%;
    max-width: 480px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-family: var(--pb-font);
    color: var(--pb-text);
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pb-article-search__input:focus {
    border-color: var(--pb-accent);
    box-shadow: 0 0 0 3px rgba(212, 101, 26, 0.12);
}

.pb-article-search__input::placeholder {
    color: var(--pb-subtle);
}

.pb-article-search__empty {
    padding: 1.5rem 0;
    color: var(--pb-muted);
    font-size: 0.95rem;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  EMPTY STATE                                         ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-empty {
    padding: 2rem 0;
    color: var(--pb-muted);
    font-size: 0.95rem;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  ARTICLE PAGE                                        ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-article-wrap {
    padding: 2rem 0 4rem;
}

@media (min-width: 768px) {
    .pb-article-wrap {
        padding: 3rem 0 6rem;
    }
}

/* Breadcrumb */
.pb-breadcrumb {
    font-size: 0.78rem;
    color: var(--pb-subtle);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pb-breadcrumb a {
    color: var(--pb-subtle);
    text-decoration: none;
    transition: color 0.15s;
}

.pb-breadcrumb a:hover {
    color: var(--pb-accent);
}

.pb-breadcrumb__sep {
    color: var(--pb-border);
    user-select: none;
}

/* Article cover image */
.pb-article-cover {
    height: 300px;
    border-radius: var(--pb-radius);
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-border-light) 100%);
    margin-bottom: 2.25rem;
    overflow: hidden;
    border: 1px solid var(--pb-border-light);
    position: relative;
}

.pb-article-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Article header */
.pb-article-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--pb-border);
}

.pb-article-header__topic {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-accent);
    background: var(--pb-accent-soft);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.pb-article-header h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -0.028em;
    margin-bottom: 0.9rem;
}

.pb-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--pb-subtle);
    flex-wrap: wrap;
}

.pb-article-meta time {
    font-weight: 600;
}

.pb-article-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--pb-border);
    flex-shrink: 0;
}

/* Article body */
.pb-article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--pb-text);
}

.pb-article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.022em;
    line-height: 1.22;
    color: var(--pb-text);
}

.pb-article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--pb-text);
}

.pb-article-body p {
    margin-bottom: 1.5rem;
}

.pb-article-body ul,
.pb-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}

.pb-article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.pb-article-body strong {
    font-weight: 700;
    color: var(--pb-text);
}

.pb-article-body a {
    color: var(--pb-accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.pb-article-body a:hover {
    color: var(--pb-accent-hover);
}

.pb-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pb-radius);
    margin: 1.5rem 0;
    border: 1px solid var(--pb-border-light);
}

.pb-article-body blockquote {
    border-left: 3px solid var(--pb-accent);
    background: var(--pb-accent-softer);
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    border-radius: 0 var(--pb-radius-sm) var(--pb-radius-sm) 0;
    font-size: 1rem;
    color: var(--pb-text);
}

/* Back link */
.pb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pb-muted);
    text-decoration: none;
    transition: color 0.15s, gap 0.15s;
}

.pb-back-link:hover {
    color: var(--pb-accent);
    gap: 0.55rem;
}

/* Related articles */
.pb-related {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--pb-border);
}

.pb-related__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-subtle);
    margin-bottom: 1rem;
}

.pb-related-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--pb-border-light);
    text-decoration: none;
    color: var(--pb-text);
    transition: color 0.15s;
}

.pb-related-item:last-child {
    border-bottom: none;
}

.pb-related-item:hover {
    color: var(--pb-accent);
}

.pb-related-item__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pb-border);
    flex-shrink: 0;
    transition: background 0.15s;
}

.pb-related-item:hover .pb-related-item__dot {
    background: var(--pb-accent);
}

.pb-related-item__text {
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
}

.pb-related-item__arrow {
    font-size: 0.85rem;
    color: var(--pb-accent);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.pb-related-item:hover .pb-related-item__arrow {
    opacity: 1;
    transform: translateX(3px);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  404 PAGE                                            ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-404 {
    padding: 5rem 0 3rem;
    text-align: center;
}

.pb-404__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--pb-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.15;
}

.pb-404__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pb-404 h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

.pb-404 p {
    color: var(--pb-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.pb-404__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pb-404__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pb-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    transition: border-color 0.15s, color 0.15s;
}

.pb-404__link:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  COMING SOON                                         ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-coming-soon {
    padding: 5rem 0 3rem;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.pb-coming-soon__badge {
    display: inline-block;
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--pb-accent);
    margin-bottom: 1.5rem;
}

.pb-coming-soon h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pb-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pb-coming-soon__lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pb-text);
    margin-bottom: 0.5rem;
}

.pb-coming-soon__text {
    color: var(--pb-muted);
    margin-bottom: 1.75rem;
}

.pb-coming-soon__date {
    display: inline-block;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--pb-muted);
    margin-bottom: 2rem;
}

.pb-coming-soon__date strong {
    color: var(--pb-text);
}

.pb-coming-soon__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pb-coming-soon__home {
    font-size: 0.9rem;
    color: var(--pb-muted);
    text-decoration: none;
}

.pb-coming-soon__home:hover {
    color: var(--pb-accent);
}


/* ╔══════════════════════════════════════════════════════╗
   ║  FOOTER                                              ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-footer {
    background: var(--pb-surface);
    border-top: 1px solid var(--pb-border);
    margin-top: auto;
}

.pb-footer__top {
    padding: 3rem 0 0;
}

@media (min-width: 768px) {
    .pb-footer__top {
        padding: 3.5rem 0 0;
    }
}

.pb-footer__brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pb-accent);
    letter-spacing: -0.01em;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.pb-footer__tagline {
    font-size: 0.82rem;
    color: var(--pb-subtle);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    max-width: 240px;
}

.pb-footer__col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-subtle);
    margin-bottom: 0.85rem;
}

.pb-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pb-footer__nav a {
    font-size: 0.875rem;
    color: var(--pb-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.pb-footer__nav a:hover {
    color: var(--pb-accent);
}

.pb-footer__bottom {
    padding: 1.25rem 0;
    border-top: 1px solid var(--pb-border-light);
    margin-top: 2rem;
}

.pb-footer__copy {
    font-size: 0.78rem;
    color: var(--pb-subtle);
    margin: 0;
    line-height: 1.6;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  COOKIE CONSENT BANNER                               ║
   ╚══════════════════════════════════════════════════════╝ */

#pb-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--pb-surface);
    border-top: 1px solid var(--pb-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
    padding: 1rem 0;
}

.pb-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pb-consent-text {
    font-size: 0.875rem;
    color: var(--pb-muted);
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.55;
}

.pb-consent-text a {
    color: var(--pb-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.pb-consent-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pb-consent-btn {
    font-family: var(--pb-font);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: var(--pb-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pb-consent-btn--secondary {
    background: transparent;
    border-color: var(--pb-border);
    color: var(--pb-muted);
}

.pb-consent-btn--secondary:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}

.pb-consent-btn--primary {
    background: var(--pb-accent);
    color: #fff;
}

.pb-consent-btn--primary:hover {
    background: var(--pb-accent-hover);
}

@media (max-width: 575px) {
    .pb-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-consent-actions {
        width: 100%;
    }

    .pb-consent-btn {
        flex: 1;
        text-align: center;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  LEGAL PAGES (Impressum, Datenschutz)                ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-legal-wrap {
    padding: 3rem 0 4rem;
}

.pb-legal-title {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.pb-legal-meta {
    font-size: 0.825rem;
    color: var(--pb-muted);
    margin-bottom: 2.5rem;
    line-height: 1.55;
}

.pb-legal-section {
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--pb-border);
}

.pb-legal-section:last-of-type {
    border-bottom: none;
}

.pb-legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--pb-text);
}

.pb-legal-section p,
.pb-legal-section ul,
.pb-legal-section address {
    font-size: 0.95rem;
    color: var(--pb-text);
    line-height: 1.75;
}

.pb-legal-section address {
    font-style: normal;
}

.pb-legal-section ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.pb-legal-section li {
    margin-bottom: 0.4rem;
}

.pb-legal-section a {
    color: var(--pb-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.pb-legal-section code {
    font-size: 0.875rem;
    background: var(--pb-accent-soft);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  MOBILE SPACING                                      ║
   ║  Bootstrap's default .container gives 12px per side. ║
   ║  Override to 16px (1rem) on phones for comfortable   ║
   ║  reading margins. Row negative-margins still work    ║
   ║  correctly: col content lands exactly 16px from edge.║
   ╚══════════════════════════════════════════════════════╝ */

@media (max-width: 575px) {
    .container {
        padding-left:  1rem;   /* 16px */
        padding-right: 1rem;
    }
}
@media (max-width: 991px) {
    .pb-hero {
        padding-top: 0;
    }

    .pb-hero__inner {
        display: block;
    }

    .pb-hero__content {
        max-width: 100%;
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .pb-hero__visual {
        display: block;
        max-width: 100%;
        margin: 0;
        min-height: auto;
        -webkit-mask-image: none;
        mask-image: none;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(248, 247, 245, 0) 0%, rgba(248, 247, 245, 0.04) 100%);
    }

    .pb-hero__visual::before {
        display: none;
    }

    .pb-hero__img {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 420px;
        object-fit: cover;
        object-position: center top;
        transform: none;
        filter: none;
    }
}

@media (max-width: 767px) {
    .pb-hero__content {
        padding-top: 1rem;
        padding-bottom: 1.25rem;
    }

    .pb-hero h1 {
        max-width: 100%;
    }

    .pb-hero__sub {
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .pb-hero__actions {
        gap: 0.75rem;
    }

    .pb-hero__visual {
        margin-top: 0.25rem;
    }

    .pb-hero__img {
        max-height: 320px;
        object-position: center 18%;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  PROTEINRECHNER PAGE                                 ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Page header ── */
.pb-calc-header {
    padding: 0.25rem 0 1.75rem;
    border-bottom: 1px solid var(--pb-border-light);
    margin-bottom: 2.5rem;
}

.pb-calc-header__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-accent);
    background: var(--pb-accent-soft);
    border: 1px solid rgba(212, 101, 26, 0.18);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.pb-calc-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: var(--pb-text);
}

.pb-calc-header__sub {
    font-size: 1.05rem;
    color: var(--pb-muted);
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
}

/* ── Form card ── */
.pb-calc-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 2rem 2.25rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* ── Field groups ── */
.pb-calc-field {
    margin-bottom: 1.5rem;
}

.pb-calc-field:last-child {
    margin-bottom: 0;
}

.pb-calc-field__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 0.65rem;
    letter-spacing: 0.01em;
}

/* ── Weight input ── */
.pb-calc-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pb-calc-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    font-family: var(--pb-font);
    font-weight: 600;
    color: var(--pb-text);
    background: var(--pb-surface);
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}

.pb-calc-input::-webkit-outer-spin-button,
.pb-calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pb-calc-input:focus {
    border-color: var(--pb-accent);
    box-shadow: 0 0 0 3px rgba(212, 101, 26, 0.12);
}

.pb-calc-input-unit {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--pb-muted);
}

/* ── Pill selectors ── */
.pb-calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Stacked variant – one option per row (used for longer labels) */
.pb-calc-options--stack {
    flex-direction: column;
}

.pb-calc-options--stack .pb-calc-option__label {
    border-radius: var(--pb-radius-sm);
    white-space: normal;
}

/* Sub-label above inline inputs (weight / height / age row) */
.pb-calc-sublabel {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pb-muted);
    margin-bottom: 0.35rem;
}

.pb-calc-option {
    position: relative;
}

.pb-calc-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pb-calc-option__label {
    display: block;
    padding: 0.52rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pb-muted);
    background: var(--pb-bg);
    border: 1.5px solid var(--pb-border);
    border-radius: 30px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
    white-space: nowrap;
}

.pb-calc-option__label:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
}

.pb-calc-option input[type="radio"]:checked + .pb-calc-option__label {
    background: var(--pb-accent);
    border-color: var(--pb-accent);
    color: #fff;
}

.pb-calc-option input[type="radio"]:focus-visible + .pb-calc-option__label {
    box-shadow: 0 0 0 3px rgba(212, 101, 26, 0.22);
}

/* ── Divider ── */
.pb-calc-divider {
    border: none;
    border-top: 1px solid var(--pb-border-light);
    margin: 1.75rem 0;
}

/* ── Submit ── */
.pb-calc-submit {
    padding-top: 0.5rem;
}

.pb-calc-submit .pb-btn-primary {
    min-width: 200px;
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ── Result card ── */
.pb-calc-result {
    background: var(--pb-accent-soft);
    border: 1.5px solid rgba(212, 101, 26, 0.2);
    border-radius: var(--pb-radius);
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.pb-calc-result--hidden {
    display: none;
}

.pb-calc-result::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 101, 26, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.pb-calc-result__head {
    margin-bottom: 1.25rem;
}

.pb-calc-result__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-accent);
    background: rgba(212, 101, 26, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}

.pb-calc-result__main {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.pb-calc-result__number {
    font-size: clamp(2.8rem, 9vw, 4rem);
    font-weight: 900;
    color: var(--pb-accent);
    line-height: 1;
    letter-spacing: -0.025em;
}

.pb-calc-result__unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pb-accent);
    opacity: 0.75;
}

.pb-calc-result__label {
    font-size: 0.875rem;
    color: var(--pb-muted);
    margin-bottom: 0.6rem;
}

.pb-calc-result__range {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: var(--pb-muted);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(212, 101, 26, 0.14);
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
}

.pb-calc-result__range strong {
    color: var(--pb-text);
}

.pb-calc-result__divider {
    border: none;
    border-top: 1px solid rgba(212, 101, 26, 0.12);
    margin: 1.5rem 0;
}

.pb-calc-result__meals-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--pb-muted);
    margin-bottom: 0.85rem;
}

.pb-calc-result__meals {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pb-calc-result__meal {
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 101, 26, 0.12);
    border-radius: var(--pb-radius-sm);
    padding: 1rem 1.1rem;
    text-align: center;
}

.pb-calc-result__meal-amount {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--pb-accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.pb-calc-result__meal-label {
    font-size: 0.78rem;
    color: var(--pb-muted);
    font-weight: 500;
}

.pb-calc-result__hint {
    font-size: 0.875rem;
    color: var(--pb-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

.pb-calc-result__notice {
    background: rgba(212, 101, 26, 0.07);
    border-left: 3px solid var(--pb-accent);
    border-radius: 0 4px 4px 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    color: var(--pb-text);
    line-height: 1.55;
    margin-top: 1rem;
}

/* Hint text below a field label (e.g. "Wie aktiv bist du im Alltag?") */
.pb-calc-field__hint {
    font-size: 0.8rem;
    color: var(--pb-muted);
    margin-top: 0.15rem;
    margin-bottom: 0.6rem;
}

/* ── SEO content ── */
.pb-calc-content {
    padding-top: 0.5rem;
}

.pb-calc-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pb-text);
    margin-top: 2rem;
    margin-bottom: 0.7rem;
}

.pb-calc-content h2:first-child {
    margin-top: 0;
}

.pb-calc-content p {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--pb-text);
    margin-bottom: 0.85rem;
}

.pb-calc-content ul {
    padding-left: 1.3rem;
    margin-bottom: 1rem;
}

.pb-calc-content ul li {
    font-size: 0.97rem;
    line-height: 1.72;
    color: var(--pb-text);
    margin-bottom: 0.35rem;
}

.pb-calc-content a {
    color: var(--pb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-calc-content a:hover {
    color: var(--pb-accent-hover);
}

/* ── FAQ ── */
.pb-calc-faq {
    margin-top: 2rem;
    border-top: 1px solid var(--pb-border-light);
    padding-top: 1.75rem;
}

.pb-calc-faq__item {
    margin-bottom: 1.35rem;
}

.pb-calc-faq__item:last-child {
    margin-bottom: 0;
}

.pb-calc-faq__q {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 0.35rem;
}

.pb-calc-faq__a {
    font-size: 0.93rem;
    line-height: 1.72;
    color: var(--pb-muted);
    margin: 0;
}

.pb-calc-faq__a a {
    color: var(--pb-accent);
}

/* ── Internal links box ── */
.pb-calc-links {
    margin-top: 2.5rem;
    padding: 1.4rem 1.75rem;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
}

.pb-calc-links__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-subtle);
    margin-bottom: 0.85rem;
}

.pb-calc-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pb-calc-links__list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pb-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.15s;
}

.pb-calc-links__list a:hover {
    gap: 0.55rem;
    text-decoration: none;
}

/* ── Mobile tweaks ── */
@media (max-width: 575px) {
    .pb-calc-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .pb-calc-result {
        padding: 1.5rem 1.25rem;
    }

    .pb-calc-links {
        padding: 1.25rem 1.25rem;
    }
}

/* ── Related articles section (below calculator SEO content) ── */
.pb-calc-related {
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--pb-border-light);
}

.pb-calc-related__head {
    margin-bottom: 1.5rem;
}

.pb-calc-related__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pb-text);
    margin-bottom: 0.25rem;
}

.pb-calc-related__sub {
    font-size: 0.875rem;
    color: var(--pb-muted);
    margin: 0;
}

/* Shorter thumbnail for compact related cards */
.pb-card-thumb--sm {
    height: 130px;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  RECHNER TEASER (in-article component)               ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-rechner-teaser {
    margin: 2rem 0;
    padding: 1.4rem 1.75rem;
    background: var(--pb-accent-softer);
    border: 1.5px solid rgba(212, 101, 26, 0.18);
    border-left: 4px solid var(--pb-accent);
    border-radius: var(--pb-radius-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pb-rechner-teaser__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.pb-rechner-teaser__body {
    flex: 1;
    min-width: 0;
}

.pb-rechner-teaser__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 0.2rem;
}

.pb-rechner-teaser__desc {
    font-size: 0.87rem;
    color: var(--pb-muted);
    margin: 0;
    line-height: 1.55;
}

.pb-rechner-teaser__cta {
    flex-shrink: 0;
}

.pb-rechner-teaser .pb-btn-primary {
    padding: 0.52rem 1.2rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .pb-rechner-teaser {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .pb-rechner-teaser .pb-btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  RECHNER CARD – live (active) variant                ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-rechner-card--live {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.pb-rechner-card--live:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    border-color: var(--pb-accent);
    text-decoration: none;
}

.pb-rechner-card--live .pb-rechner-card__visual {
    opacity: 1;
}

.pb-rechner-card--live .pb-rechner-card__title {
    opacity: 1;
    color: var(--pb-text);
}

.pb-rechner-card--live .pb-rechner-card__desc {
    color: var(--pb-muted);
}

.pb-rechner-card__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pb-accent);
    background: var(--pb-accent-soft);
    border: 1px solid rgba(212, 101, 26, 0.2);
    padding: 0.32rem 0.8rem;
    border-radius: 20px;
    align-self: flex-start;
    transition: background 0.15s, color 0.15s, border-color 0.15s, gap 0.15s;
}

.pb-rechner-card--live:hover .pb-rechner-card__cta-btn {
    background: var(--pb-accent);
    color: #fff;
    border-color: var(--pb-accent);
    gap: 0.55rem;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  MAKRORECHNER TOOL CARD (homepage tools section)     ║
   ╚══════════════════════════════════════════════════════╝ */

/* Makro – indigo accent */
.pb-tool-card--makro {
    border-color: rgba(79, 70, 229, 0.2);
}

.pb-tool-card--makro .pb-tool-card__icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.07) 0%, rgba(79, 70, 229, 0.02) 100%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.pb-tool-card--makro:hover {
    border-color: #4f46e5;
}

.pb-tool-card--makro .pb-tool-card__btn {
    border-color: #4f46e5;
    color: #4f46e5;
}

.pb-tool-card--makro:hover .pb-tool-card__btn {
    background: #4f46e5;
    color: #fff;
}


/* ╔══════════════════════════════════════════════════════╗
   ║  MAKRORECHNER RESULT – macro grid + kcal row         ║
   ╚══════════════════════════════════════════════════════╝ */

/* Calorie confirmation row above the grid */
.pb-macro-kcal-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.pb-macro-kcal {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--pb-accent);
    line-height: 1;
    letter-spacing: -0.025em;
}

.pb-macro-kcal-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pb-accent);
    opacity: 0.75;
}

/* Three-column macro grid */
.pb-macro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.pb-macro-item {
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--pb-radius-sm);
    padding: 1rem 0.75rem 0.9rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.pb-macro-item__g {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pb-macro-item__unit {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 0.15rem;
}

.pb-macro-item__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.65;
    margin-bottom: 0.25rem;
}

.pb-macro-item__pct {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.5;
}

/* Protein – orange */
.pb-macro-item--protein .pb-macro-item__g,
.pb-macro-item--protein .pb-macro-item__unit {
    color: #D4651A;
}

/* Fett – amber */
.pb-macro-item--fat .pb-macro-item__g,
.pb-macro-item--fat .pb-macro-item__unit {
    color: #b45309;
}

/* Kohlenhydrate – indigo */
.pb-macro-item--carbs .pb-macro-item__g,
.pb-macro-item--carbs .pb-macro-item__unit {
    color: #4f46e5;
}

/* Sublabel hint below input fields (e.g. "Noch unbekannt? Kalorienrechner nutzen") */
.pb-calc-sublabel-hint {
    font-size: 0.78rem;
    color: var(--pb-muted);
    margin-top: 0.35rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.pb-calc-sublabel-hint a {
    color: var(--pb-accent);
    text-decoration: none;
    font-weight: 500;
}

.pb-calc-sublabel-hint a:hover {
    text-decoration: underline;
}

@media (max-width: 400px) {
    .pb-macro-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .pb-macro-item {
        padding: 0.75rem 0.4rem;
    }

    .pb-macro-item__label {
        font-size: 0.62rem;
    }
}

/* ── Calculator flow: step indicator ───────────────────────── */
.pb-calc-steps {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
    gap: 0;
}

.pb-calc-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--pb-subtle);
    font-weight: 500;
}

.pb-calc-step__num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--pb-border);
    color: var(--pb-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pb-calc-step--active .pb-calc-step__num {
    background: var(--pb-accent);
    color: #fff;
}

.pb-calc-step--active {
    color: var(--pb-text);
    font-weight: 700;
}

.pb-calc-step--done .pb-calc-step__num {
    background: #4ade80;
    color: #fff;
}

.pb-calc-step--done {
    color: var(--pb-muted);
}

.pb-calc-step__sep {
    width: 1.75rem;
    height: 1px;
    background: var(--pb-border);
    margin: 0 0.25rem;
    flex-shrink: 0;
}

/* ── Calculator flow: next-step CTA ────────────────────────── */
.pb-next-step {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--pb-accent-softer);
    border: 1px solid var(--pb-border);
    border-left: 3px solid var(--pb-accent);
    border-radius: var(--pb-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pb-next-step__meta {
    font-size: 0.72rem;
    color: var(--pb-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.pb-next-step__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pb-text);
}

.pb-next-step__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: var(--pb-accent);
    color: #fff;
    border-radius: var(--pb-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.pb-next-step__btn:hover {
    background: var(--pb-accent-hover);
    color: #fff;
    text-decoration: none;
}

.pb-next-step--hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .pb-next-step {
        flex-direction: column;
        align-items: flex-start;
    }
    .pb-next-step__btn {
        width: 100%;
        justify-content: center;
    }
    .pb-calc-steps {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  JOURNEY CTA BANNER (homepage)                       ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-journey-cta-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--pb-accent) 0%, #B8541A 100%);
}

.pb-journey-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pb-journey-cta-banner__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.4rem;
}

.pb-journey-cta-banner__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pb-journey-cta-banner__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.55;
}

.pb-journey-cta-banner__action {
    flex-shrink: 0;
    text-align: center;
}

.pb-journey-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    background: #fff;
    color: var(--pb-accent);
    font-weight: 800;
    font-size: 1rem;
    border-radius: var(--pb-radius);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-journey-cta-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    color: var(--pb-accent-hover);
    text-decoration: none;
}

.pb-journey-cta-banner__sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.5rem 0 0;
}

@media (max-width: 767px) {
    .pb-journey-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .pb-journey-cta-banner__btn {
        width: 100%;
        justify-content: center;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  JOURNEY PAGE – Form                                 ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Progress indicator ── */
.pb-journey-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.pb-journey-progress__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pb-subtle);
}

.pb-journey-progress__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pb-border);
    color: var(--pb-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.pb-journey-progress__step--active .pb-journey-progress__num {
    background: var(--pb-accent);
    color: #fff;
}

.pb-journey-progress__step--active {
    color: var(--pb-text);
}

.pb-journey-progress__step--done .pb-journey-progress__num {
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
}

.pb-journey-progress__sep {
    flex: 1;
    height: 2px;
    background: var(--pb-border);
    margin: 0 0.5rem;
    min-width: 1.5rem;
}

/* ── Step card ── */
.pb-journey-step__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-accent);
    margin: 0 0 0.4rem;
}

.pb-journey-step__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.pb-journey-step__hint {
    font-size: 0.83rem;
    color: var(--pb-muted);
    margin: -0.5rem 0 1rem;
}

/* ── Goal cards (step 1) ── */
.pb-journey-goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.pb-journey-goal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    background: var(--pb-surface);
}

.pb-journey-goal-card:hover {
    border-color: var(--pb-accent);
    background: var(--pb-accent-softer);
}

.pb-journey-goal-card--selected {
    border-color: var(--pb-accent);
    background: var(--pb-accent-soft);
}

.pb-journey-goal-card__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pb-journey-goal-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.pb-journey-goal-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pb-text);
}

.pb-journey-goal-card__desc {
    font-size: 0.72rem;
    color: var(--pb-muted);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .pb-journey-goal-grid {
        grid-template-columns: 1fr;
    }
    .pb-journey-goal-card {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
    }
    .pb-journey-goal-card__icon {
        font-size: 1.4rem;
        flex-shrink: 0;
    }
}

/* ── Option stacked variant ── */
.pb-calc-options--stack {
    flex-direction: column;
    gap: 0.5rem;
}

.pb-calc-option--wide {
    width: 100%;
}

.pb-calc-option--wide .pb-calc-option__label {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pb-calc-option__hint {
    font-size: 0.73rem;
    color: var(--pb-muted);
    font-weight: 400;
    display: block;
}

.pb-calc-option input[type="radio"]:checked + .pb-calc-option__label .pb-calc-option__hint {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Navigation buttons ── */
.pb-journey-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pb-border-light);
}

.pb-journey-nav--right {
    justify-content: flex-end;
}

.pb-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: var(--pb-muted);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.pb-btn-outline:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
    text-decoration: none;
}

@media (max-width: 480px) {
    .pb-journey-nav {
        flex-direction: column-reverse;
    }
    .pb-journey-nav .pb-btn-primary,
    .pb-journey-nav .pb-btn-outline {
        width: 100%;
        justify-content: center;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  JOURNEY PAGE – Result                               ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-journey-result {
    margin-top: 2rem;
}

.pb-journey-result--hidden {
    display: none !important;
}

.pb-journey-result__head {
    margin-bottom: 1.25rem;
}

.pb-journey-result__badge {
    display: inline-block;
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.pb-journey-result__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ── Calorie card ── */
.pb-journey-macro-card {
    margin-bottom: 1rem;
}

.pb-journey-macro-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-muted);
    margin-bottom: 0.5rem;
}

.pb-journey-macro-card__main {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.pb-journey-macro-card__hint {
    font-size: 0.8rem;
    color: var(--pb-muted);
    margin: 0;
}

/* ── Macros card ── */
.pb-journey-macros-card {
    margin-bottom: 1rem;
}

.pb-journey-macros-card__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-muted);
    margin-bottom: 1rem;
}

.pb-journey-macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pb-journey-macro {
    padding: 1rem 0.75rem;
    border-radius: var(--pb-radius);
    text-align: center;
}

.pb-journey-macro--protein {
    background: #FFF4E8;
    border: 1px solid #F5D9B8;
}

.pb-journey-macro--fat {
    background: #F0F8F0;
    border: 1px solid #C8E6C8;
}

.pb-journey-macro--carbs {
    background: #EEF4FF;
    border: 1px solid #BDD4F5;
}

.pb-journey-macro__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.pb-journey-macro__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pb-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pb-journey-macro__unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pb-muted);
    margin-left: 0.15rem;
}

.pb-journey-macro__pct {
    font-size: 0.78rem;
    color: var(--pb-muted);
    margin-top: 0.25rem;
}

/* ── Macro bar ── */
.pb-journey-macro-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.75rem;
}

.pb-journey-macro-bar__segment--protein { background: var(--pb-accent); }
.pb-journey-macro-bar__segment--fat     { background: #5BAD6F; }
.pb-journey-macro-bar__segment--carbs   { background: #4D8EE0; }

.pb-journey-macros-card__note {
    font-size: 0.8rem;
    color: var(--pb-muted);
    margin: 0;
}

@media (max-width: 480px) {
    .pb-journey-macros-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Explanation ── */
.pb-journey-explanation {
    margin-bottom: 1rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--pb-text);
}

.pb-journey-explanation p {
    margin: 0;
}

/* ── Article recommendations ── */
.pb-journey-articles {
    margin-bottom: 1.5rem;
}

.pb-journey-articles__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--pb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.pb-journey-articles__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pb-journey-article-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pb-journey-article-card:hover {
    border-color: var(--pb-accent);
    box-shadow: var(--pb-shadow-sm);
    text-decoration: none;
}

.pb-journey-article-card__body {
    flex: 1;
    min-width: 0;
}

.pb-journey-article-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 0.2rem;
}

.pb-journey-article-card__excerpt {
    font-size: 0.8rem;
    color: var(--pb-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-journey-article-card__arrow {
    flex-shrink: 0;
    color: var(--pb-accent);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Calculator links ── */
.pb-journey-calc-links {
    margin-bottom: 1.5rem;
}

.pb-journey-calc-links__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pb-muted);
    margin: 0 0 0.75rem;
}

.pb-journey-calc-links__row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pb-journey-calc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--pb-bg);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--pb-text);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.pb-journey-calc-link:hover {
    border-color: var(--pb-accent);
    color: var(--pb-accent);
    text-decoration: none;
}

.pb-journey-calc-link__icon {
    font-size: 0.95rem;
}

/* ── Account CTA ── */
.pb-journey-account-cta {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pb-journey-account-cta__inner {
    background: linear-gradient(135deg, var(--pb-accent-softer) 0%, #FDF2E8 100%);
    border: 1px solid var(--pb-accent-soft);
    border-radius: var(--pb-radius);
    padding: 2rem;
    text-align: center;
}

.pb-journey-account-cta__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pb-journey-account-cta__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.pb-journey-account-cta__text {
    font-size: 0.9rem;
    color: var(--pb-muted);
    margin: 0 0 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pb-journey-account-cta__form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.pb-journey-account-cta__email {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    font-size: 0.9rem;
    background: #fff;
    color: var(--pb-text);
    outline: none;
    transition: border-color 0.15s;
}

.pb-journey-account-cta__email:focus {
    border-color: var(--pb-accent);
}

.pb-journey-account-cta__btn {
    white-space: nowrap;
}

.pb-journey-account-cta__confirm {
    font-size: 0.83rem;
    color: var(--pb-accent);
    font-weight: 600;
    margin: 0.5rem 0 0;
}

.pb-journey-account-cta__legal {
    font-size: 0.73rem;
    color: var(--pb-subtle);
    margin: 0;
}

@media (max-width: 480px) {
    .pb-journey-account-cta__form {
        flex-direction: column;
    }
    .pb-journey-account-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Step indicator: checkmark for completed steps ── */
.pb-journey-progress__step--done .pb-journey-progress__num {
    background: #e8f5e9;
    color: transparent;
    font-size: 0;
    position: relative;
}

.pb-journey-progress__step--done .pb-journey-progress__num::after {
    content: "✓";
    font-size: 0.82rem;
    font-weight: 800;
    color: #2e7d32;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-journey-progress__step--done {
    color: var(--pb-muted);
}

.pb-journey-progress__sep--done {
    background: #a5d6a7;
}

/* ── Wochenschnitt info box ── */
.pb-journey-weekly-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #EDF4FF;
    border: 1px solid #C3D9F8;
    border-radius: var(--pb-radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
}

.pb-journey-weekly-info__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #2563EB;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.pb-journey-weekly-info__text {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.55;
    color: #1e3a5f;
}

.pb-journey-weekly-info__text strong {
    color: #1e3a5f;
}

/* ── Das bedeutet für dich ── */
.pb-journey-practical {
    margin-bottom: 1rem;
}

.pb-journey-practical__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pb-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.pb-journey-practical__list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pb-journey-practical__list li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--pb-text);
}

.pb-journey-practical__list li strong {
    color: var(--pb-accent);
}

/* ── Calc-links: improved heading and spacing ── */
.pb-journey-calc-links__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--pb-text);
    margin: 0 0 0.9rem;
}

.pb-journey-calc-links__row {
    gap: 0.5rem;
}

/* ── Dashboard ─────────────────────────────────────────────────────────────── */

.pb-dashboard-hero {
    background: linear-gradient(135deg, var(--pb-accent-soft) 0%, var(--pb-surface) 100%);
    border-bottom: 1px solid var(--pb-border);
    padding: 2rem 0 1.75rem;
}

.pb-dashboard-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pb-dashboard-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pb-text);
    margin: 0 0 0.3rem;
}

.pb-dashboard-hero__sub {
    margin: 0;
    font-size: 1rem;
    color: var(--pb-muted);
}

.pb-dashboard-hero__meta {
    font-size: 13px;
    color: var(--pb-muted);
    white-space: nowrap;
}

/* Goal badge */
.pb-dashboard-goal-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pb-dashboard-goal-badge--abnehmen {
    background: #FEF3C7;
    color: #92400E;
}

.pb-dashboard-goal-badge--muskelaufbau {
    background: #DCFCE7;
    color: #166534;
}

.pb-dashboard-goal-badge--halten {
    background: var(--pb-accent-soft);
    color: var(--pb-accent);
}

/* Stat row */
.pb-dashboard-stat-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pb-dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pb-dashboard-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pb-muted);
    font-weight: 600;
}

.pb-dashboard-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pb-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pb-dashboard-stat__value--protein {
    color: var(--pb-accent);
}

.pb-dashboard-stat__unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pb-muted);
    letter-spacing: 0;
}

/* Status dot */
.pb-dashboard-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pb-dashboard-status-dot--green  { background: #22C55E; }
.pb-dashboard-status-dot--orange { background: #F97316; }
.pb-dashboard-status-dot--red    { background: #EF4444; }
.pb-dashboard-status-dot--muted  { background: var(--pb-border); }

/* Inventory rows */
.pb-dashboard-inventory {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pb-dashboard-inventory__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--pb-border-light);
}

.pb-dashboard-inventory__row:last-child {
    border-bottom: none;
}

.pb-dashboard-inventory__dot-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pb-dashboard-inventory__name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-dashboard-inventory__days {
    flex-shrink: 0;
}

.pb-dashboard-inventory__action {
    flex-shrink: 0;
}

/* Days badge */
.pb-dashboard-days-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.pb-dashboard-days-badge--green  { background: #DCFCE7; color: #166534; }
.pb-dashboard-days-badge--orange { background: #FFEDD5; color: #9A3412; }
.pb-dashboard-days-badge--red    { background: #FEE2E2; color: #991B1B; }
.pb-dashboard-days-badge--muted  { background: var(--pb-bg); color: var(--pb-muted); }

/* Article cards */
.pb-dashboard-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    text-decoration: none;
    color: var(--pb-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}

.pb-dashboard-article-card:hover {
    border-color: var(--pb-accent);
    box-shadow: var(--pb-shadow-sm);
    color: var(--pb-text);
    text-decoration: none;
}

.pb-dashboard-article-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.pb-dashboard-article-card__excerpt {
    font-size: 13px;
    color: var(--pb-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-dashboard-article-card__cta {
    font-size: 13px;
    color: var(--pb-accent);
    font-weight: 600;
    margin-top: 0.25rem;
}

@media (max-width: 767px) {
    .pb-dashboard-hero {
        padding: 1.5rem 0 1.25rem;
    }

    .pb-dashboard-hero__meta {
        display: none;
    }

    .pb-dashboard-stat-row {
        gap: 1rem;
    }

    .pb-dashboard-stat__value {
        font-size: 1.25rem;
    }

    .pb-dashboard-inventory__action {
        display: none;
    }
}


/* ╔══════════════════════════════════════════════════════╗
   ║  WEIGHT TRACKING                                     ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Tracked today badge ── */
/* ── Main input ── */
.pb-weight-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pb-weight-main-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pb-weight-main-input input {
    flex: 1;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 0.6rem 1rem;
    text-align: center;
    letter-spacing: -0.02em;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pb-weight-main-input input::-webkit-outer-spin-button,
.pb-weight-main-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pb-weight-main-input input:focus {
    outline: none;
    border-color: var(--pb-accent);
}

.pb-weight-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pb-muted);
    min-width: 2rem;
}

/* ── Slider group ── */
.pb-slider-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pb-slider-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pb-slider-field__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pb-slider-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pb-slider-field__opt {
    font-size: 10px;
    font-weight: 500;
    color: var(--pb-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pb-slider-field__val-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pb-slider-numpad {
    width: 46px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 3px 4px;
    text-align: center;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pb-slider-numpad::-webkit-outer-spin-button,
.pb-slider-numpad::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pb-slider-numpad:focus {
    outline: none;
    border-color: var(--pb-accent);
}

.pb-slider-field__unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-muted);
}

/* ── Custom range slider ── */
.pb-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--pb-accent) 0%,
        var(--pb-accent) var(--slider-pct, 50%),
        var(--pb-border) var(--slider-pct, 50%),
        var(--pb-border) 100%
    );
    outline: none;
    cursor: pointer;
    border: none;
}

.pb-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pb-accent);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    transition: transform 0.1s, box-shadow 0.1s;
}

.pb-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(212, 101, 26, 0.35);
}

.pb-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--pb-accent);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.pb-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--pb-border);
}

/* ── Date field ── */
.pb-weight-date-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pb-weight-date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pb-weight-tracked-inline {
    font-size: 11px;
    font-weight: 500;
    color: #166534;
    display: inline-flex;
    align-items: center;
}

.pb-weight-date-input {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--pb-text);
    background: var(--pb-bg);
    border: 1.5px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 0.45rem 0.75rem;
    transition: border-color 0.15s;
    font-family: var(--pb-font);
    cursor: pointer;
}

.pb-weight-date-input:focus {
    outline: none;
    border-color: var(--pb-accent);
}

.pb-weight-date-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

/* ── Feedback message ── */
.pb-weight-feedback {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--pb-radius-sm);
    text-align: center;
    animation: pb-fade-in 0.2s ease;
}

.pb-weight-feedback--hidden {
    display: none;
}

.pb-weight-feedback--success {
    background: #DCFCE7;
    color: #166534;
}

.pb-weight-feedback--error {
    background: #FEE2E2;
    color: #991B1B;
}

@keyframes pb-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Empty hint ── */
.pb-weight-empty-hint {
    margin: 0.75rem 0 0;
    font-size: 13px;
    color: var(--pb-muted);
    line-height: 1.5;
}

/* ── Progress card ── */
.pb-weight-progress {
    display: flex;
    flex-direction: column;
}

.pb-weight-stats-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pb-weight-stat-big {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pb-weight-stat-big__value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pb-text);
    line-height: 1;
}

.pb-weight-stat-big__unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pb-muted);
}

/* ── Trend badge ── */
.pb-weight-trend-badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.pb-weight-trend-badge--green {
    background: #DCFCE7;
    color: #166534;
}

.pb-weight-trend-badge--neutral {
    background: #FFEDD5;
    color: #9A3412;
}

.pb-weight-trend-badge--muted {
    background: var(--pb-bg);
    color: var(--pb-muted);
}

/* ── Chart ── */
.pb-weight-chart-wrap {
    flex: 1;
    min-height: 110px;
    margin-top: auto;
}

.pb-weight-chart-wrap canvas {
    width: 100%;
    height: 110px;
    display: block;
}

/* ── Empty state ── */
.pb-weight-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    flex: 1;
}

.pb-weight-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pb-weight-empty__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.pb-weight-empty__sub {
    font-size: 14px;
    color: var(--pb-muted);
    margin: 0;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  COACH CARD                                          ║
   ╚══════════════════════════════════════════════════════╝ */

.pb-coach-card {
    border-radius: var(--pb-radius);
    padding: 1.5rem;
    border: 1.5px solid transparent;
    box-shadow: var(--pb-shadow-sm);
}

.pb-coach-card--green {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.pb-coach-card--orange {
    background: #FFF7ED;
    border-color: #FED7AA;
}

.pb-coach-card--muted {
    background: var(--pb-surface);
    border-color: var(--pb-border);
}

.pb-coach-card__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pb-coach-card__body {
    flex: 1;
    min-width: 0;
}

.pb-coach-card__label {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--pb-muted);
}

.pb-coach-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pb-text);
}

.pb-coach-card__text {
    margin: 0;
    font-size: 14px;
    color: var(--pb-muted);
    line-height: 1.6;
}

.pb-coach-card__adjustment {
    margin: 0.6rem 0 0;
    font-size: 14px;
    color: var(--pb-text);
}

.pb-coach-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Coach confirm / error message ── */
.pb-coach-confirm {
    margin-top: 1rem;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--pb-radius-sm);
}

.pb-coach-confirm--hidden { display: none; }

.pb-coach-confirm--success {
    background: #DCFCE7;
    color: #166534;
}

.pb-coach-confirm--error {
    background: #FEE2E2;
    color: #991B1B;
}

@media (max-width: 767px) {
    .pb-weight-main-input input {
        font-size: 1.6rem;
    }

    .pb-weight-stat-big__value {
        font-size: 2rem;
    }

    .pb-coach-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pb-coach-card__inner {
        flex-direction: column;
    }
}
