/* Shared primitives (lead, pill, button row, reviews) and buttons. */

/* ── Shared Primitives ────────────────────── */
/* Lead sentence below a heading (home page, books) */
.lead {
    margin-top: 0;
    font-size: clamp(1.1em, 1em + 0.4vw, 1.3em);
    line-height: 1.45;
    color: var(--color-text-muted);
    hyphens: manual;
}

/* Pill for short facts and status ("Gerade in …", "157 Seiten", "Kostenlos") */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.3em 0.9em;
    border-radius: var(--radius-pill);
    background: var(--color-bg-sand);
    color: var(--color-brown);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.3;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

/* Button row: wraps on phones; buttons without their own top margin */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em;
    margin-top: 1.25em;
}

.btn-row .btn,
.btn-row .btn-outline {
    margin-top: 0;
}

/* Reader reviews (books): quote cards with stars, source below */
.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.review {
    margin: 0;
    padding: 1.1rem 1.25rem 1.2rem;
    border-radius: var(--radius-card);
    background: var(--color-bg-sand);
}

.review-stars {
    color: var(--color-orange-ink);
    letter-spacing: 0.12em;
}

.review blockquote {
    margin: 0.35em 0 0;
}

.review blockquote p {
    margin-top: 0.4em;
}

.review .review-title {
    margin-top: 0;
    font-weight: 650;
    color: var(--color-ink);
}

.review figcaption {
    margin-top: 0.75em;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

/* Required notice on where the reviews come from (§ 5b UWG) */
.review-note {
    color: var(--color-text-muted);
    font-size: 0.85em;
}

/* ── Shared Buttons ───────────────────────── */
/* Pill buttons in the text font, sentence case as in the template.
   Primary: filled (orange-strong, 4.7:1 with white). Secondary: outline. */
.btn {
    display: inline-block;
    background-color: var(--color-orange-strong);
    color: #fff;
    font-family: var(--font-family-base);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.3;
    padding: 0.75em 1.6em;
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast), box-shadow 0.3s var(--ease-out);
    white-space: nowrap;
    margin-top: var(--spacing-sm);
}

.btn:hover {
    background-color: var(--color-orange-deep);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(168, 50, 0, 0.6);
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid currentColor;
    color: var(--color-orange-ink);
    font-family: var(--font-family-base);
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.3;
    padding: 0.65em 1.4em;
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    margin-top: var(--spacing-md);
}

.btn-outline:hover {
    background-color: var(--color-orange-strong);
    border-color: var(--color-orange-strong);
    color: #fff;
}

@media screen and (max-width: 600px) {
    /* Long CTA labels ("Jetzt Erstgespräch vereinbaren ↗") are wider than a
       phone column with nowrap. Grid tracks (1fr = minmax(auto, 1fr)) then grow
       to that min-content width and push the whole section beyond the viewport;
       .geo-features-combined additionally clips it with overflow: hidden. */
    .btn { white-space: normal; max-width: 100%; text-align: center; }
}
