/* ============================================
   SchritteInKM — Vanilla CSS Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #2A3132;
    --color-secondary: #763626;
    --color-accent: #90AFC5;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-destructive: #ef4444;
    --color-green-50: #f0fdf4;
    --color-green-600: #16a34a;
    --color-green-700: #15803d;
    --color-yellow-50: #fefce8;
    --color-yellow-600: #ca8a04;
    --color-yellow-700: #a16207;
    --color-red-50: #fef2f2;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;

    --radius: 0.5rem;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --container-max: 1400px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

/* --- Layout --- */
.page-wrapper {
    min-height: 100vh;
    background: var(--color-white);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.container--narrow {
    max-width: 56rem;
    /* 896px / 4xl */
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

.grid--4 {
    grid-template-columns: 1fr;
}

.grid--5 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid--5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid--gap-sm {
    gap: 1rem;
}

/* --- Header --- */
.header {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header__nav {
    padding: .75rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--color-white);
}

.header__logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo-icon span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: .875rem;
}

.header__logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Desktop nav */
.header__desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.header__desktop-nav a {
    color: var(--color-white);
    transition: color .2s;
}

.header__desktop-nav a:hover {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .header__desktop-nav {
        display: flex;
    }

    .header__mobile-toggle {
        display: none;
    }
}

/* Mobile nav */
.header__mobile-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__mobile-nav {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--color-accent);
}

.header__mobile-nav.open {
    display: block;
}

.header__mobile-nav a {
    display: block;
    padding: .5rem 0;
    color: var(--color-white);
    transition: color .2s;
}

.header__mobile-nav a:hover {
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
    padding: 3rem 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin: 0 auto 2rem;
    max-width: 42rem;
}

/* --- Card --- */
.card {
    background: var(--color-white);
    border: 1px solid rgba(144, 175, 197, .3);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card__header {
    padding: 1.25rem 1.5rem .75rem;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card__title--lg {
    font-size: 1.125rem;
}

.card__title a {
    color: var(--color-primary);
    transition: color .2s;
}

.card__title a:hover {
    color: var(--color-secondary);
}

.card__content {
    padding: 0 1.5rem 1.25rem;
}

.card__content p {
    margin: 0;
}

/* --- Calculator Card --- */
.calc-card {
    max-width: 56rem;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: none;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    overflow: hidden;
}

.calc-card__header {
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.25rem 1.5rem;
}

.calc-card__header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

@media (min-width: 768px) {
    .calc-card__header h2 {
        font-size: 1.875rem;
    }
}

.calc-card__header p {
    color: rgba(144, 175, 197, .9);
    margin: .5rem 0 0;
    font-size: .875rem;
}

@media (min-width: 768px) {
    .calc-card__header p {
        font-size: 1rem;
    }
}

.calc-card__body {
    padding: 1rem 1rem 1.5rem;
}

@media (min-width: 768px) {
    .calc-card__body {
        padding: 1.5rem;
    }
}

/* --- Calculator Section --- */
.calculator-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(to bottom right, rgba(144, 175, 197, .1), rgba(118, 54, 38, .1));
}

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

/* --- Forms --- */
.form-group {
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .form-grid {
        margin-bottom: 1.5rem;
    }
}

label {
    display: block;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: .5rem;
    font-size: .875rem;
}

@media (min-width: 768px) {
    label {
        font-size: 1rem;
    }
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid rgba(144, 175, 197, .5);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--color-white);
    color: var(--color-primary);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

@media (min-width: 768px) {
    input[type="number"] {
        font-size: 1.125rem;
    }
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 49, 50, .12);
}

input.error,
textarea.error {
    border-color: var(--color-destructive);
}

.form-error {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    color: var(--color-destructive);
    margin-top: .25rem;
}

@media (min-width: 768px) {
    .form-error {
        font-size: .875rem;
    }
}

.form-help {
    font-size: .75rem;
    color: var(--color-accent);
    margin-top: .25rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    transition: background .2s, transform .2s, opacity .2s;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-secondary);
    color: var(--color-white);
    width: 100%;
    padding: .625rem 1rem;
}

@media (min-width: 768px) {
    .btn--primary {
        padding: .75rem 1rem;
        font-size: 1.125rem;
    }
}

.btn--primary:hover:not(:disabled) {
    background: rgba(118, 54, 38, .9);
    transform: scale(1.05);
}

.btn--primary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.btn--contact {
    background: var(--color-secondary);
    color: var(--color-white);
    width: 100%;
    padding: .5rem 1rem;
    transition: background .2s;
}

.btn--contact:hover {
    background: rgba(118, 54, 38, .9);
}

/* --- Results --- */
.results {
    margin-top: 1.5rem;
}

.results h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .results h3 {
        font-size: 1.25rem;
    }
}

.results__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

@media (min-width: 1024px) {
    .results__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

.result-box {
    text-align: center;
    padding: .75rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(144, 175, 197, .2);
}

@media (min-width: 768px) {
    .result-box {
        padding: 1rem;
    }
}

.result-box__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .result-box__value {
        font-size: 1.5rem;
    }
}

.result-box__label {
    font-size: .75rem;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .result-box__label {
        font-size: .875rem;
    }
}

/* --- Mini Bar Chart --- */
.chart-card {
    margin-top: 1.5rem;
}

.chart-card__header {
    padding: 1rem 1.25rem .5rem;
}

.chart-card__header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.chart-card__body {
    padding: 0 1.25rem 1.25rem;
}

.bar-chart {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 10rem;
    gap: 2rem;
    padding-top: 1rem;
}

.bar-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .375rem;
    flex: 1;
    max-width: 6rem;
}

.bar-chart__bar {
    width: 100%;
    background: linear-gradient(to top, var(--color-secondary), var(--color-primary));
    border-radius: 4px 4px 0 0;
    transition: height .6s ease;
    position: relative;
    min-height: 6px;
}

.bar-chart__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: .25rem .5rem;
    font-size: .75rem;
    color: var(--color-primary);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.bar-chart__bar:hover .bar-chart__tooltip {
    display: block;
}

.bar-chart__label {
    font-size: .75rem;
    color: var(--color-primary);
}

/* --- Skeleton loader --- */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton--line {
    height: 1rem;
    width: 75%;
    margin: 0 auto 1rem;
}

.skeleton--box {
    height: 4rem;
}

@media (min-width: 768px) {
    .skeleton--box {
        height: 5rem;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Spinner --- */
.spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner svg {
    animation: spin 1s linear infinite;
}

.spinner--sm svg {
    width: 1rem;
    height: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Info Box (hint, tip, blockquote wrapper) --- */
.info-box {
    background: rgba(144, 175, 197, .1);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.info-box--tip {
    background: rgba(118, 54, 38, .1);
}

.info-box--gray {
    background: var(--color-gray-50);
}

.info-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: .75rem;
}

.info-box blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    margin: 0;
}

/* --- Accuracy color boxes (Article2) --- */
.accuracy-box--good {
    background: var(--color-green-50);
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
}

.accuracy-box--good h5 {
    color: var(--color-green-700);
    font-weight: 600;
    margin-bottom: .5rem;
}

.accuracy-box--good li {
    color: var(--color-green-600);
}

.accuracy-box--medium {
    background: var(--color-yellow-50);
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
}

.accuracy-box--medium h5 {
    color: var(--color-yellow-700);
    font-weight: 600;
    margin-bottom: .5rem;
}

.accuracy-box--medium li {
    color: var(--color-yellow-600);
}

.accuracy-box--poor {
    background: var(--color-red-50);
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
}

.accuracy-box--poor h5 {
    color: var(--color-red-700);
    font-weight: 600;
    margin-bottom: .5rem;
}

.accuracy-box--poor li {
    color: var(--color-red-600);
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--color-gray-300);
    padding: .75rem;
    text-align: left;
}

thead tr {
    background: var(--color-primary);
    color: var(--color-white);
}

tbody tr.alt {
    background: var(--color-gray-50);
}

/* --- Articles Section --- */
.articles-section {
    padding: 3rem 0;
    background: var(--color-gray-50);
}

.articles-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* --- Article Content (prose-like) --- */
.prose {
    line-height: 1.8;
}

.prose h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: .75rem;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.prose h5 {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: .5rem;
}

.prose p {
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
}

.prose strong {
    color: inherit;
}

.prose ul,
.prose ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--color-gray-700);
}

.prose li {
    margin-bottom: .5rem;
}

.prose a.source-link {
    color: var(--color-secondary);
    margin-left: .25rem;
}

.prose a.source-link:hover {
    text-decoration: underline;
}

/* --- Content Section (page body) --- */
.content-section {
    padding: 3rem 0;
}

.content-section--padded {
    padding: 3rem 0 3rem;
}

/* --- Page Section --- */
.page-section {
    padding: 3rem 0;
}

.page-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.page-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.page-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: .75rem;
}

.page-section p {
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --- Two-col info boxes --- */
.info-grid-item {
    background: rgba(144, 175, 197, .1);
    padding: 1rem;
    border-radius: var(--radius);
}

.info-grid-item h5 {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: .5rem;
}

.info-grid-item ul {
    list-style: none;
    font-size: .875rem;
    color: var(--color-gray-700);
}

.info-grid-item li {
    margin-bottom: .25rem;
}

.info-grid-item--gray {
    background: var(--color-gray-50);
}

.info-grid-item--gray h5 {
    font-weight: 500;
    color: var(--color-primary);
}

/* --- Footer --- */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer h4 {
    font-weight: 600;
    margin-bottom: .75rem;
}

.footer a {
    display: block;
    color: var(--color-white);
    font-size: .875rem;
    margin-bottom: .5rem;
    transition: color .2s;
}

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

.footer__brand p {
    color: rgba(144, 175, 197, .8);
    font-size: .875rem;
    margin: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(144, 175, 197, .3);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .875rem;
    color: rgba(144, 175, 197, .8);
}

/* --- Back to Top --- */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: .75rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: background .2s, transform .2s;
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: rgba(118, 54, 38, .9);
    transform: scale(1.1);
}

/* --- GDPR Banner --- */
.gdpr-banner {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 50;
    background: var(--color-primary);
    color: var(--color-white);
    padding: .75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 20rem;
    font-size: .875rem;
}

.gdpr-banner.visible {
    display: block;
}

.gdpr-banner p {
    margin: 0 0 .5rem;
    color: var(--color-white);
}

.gdpr-banner button {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: .25rem .75rem;
    border-radius: var(--radius);
    border: none;
    font-size: .75rem;
    transition: opacity .2s;
}

.gdpr-banner button:hover {
    opacity: .9;
}

/* --- Hint box (calculator) --- */
.hint-box {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: rgba(144, 175, 197, .1);
    border-radius: var(--radius);
    font-size: .75rem;
    color: rgba(42, 49, 50, .8);
}

@media (min-width: 768px) {
    .hint-box {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: .875rem;
    }
}

/* --- 404 Page --- */
.not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    text-align: center;
}

.not-found h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.not-found p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.not-found a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.not-found a:hover {
    color: var(--color-primary);
}

/* --- Impressum / Legal boxes --- */
.legal-box {
    background: var(--color-gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.legal-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: .75rem;
}

.legal-box strong {
    color: var(--color-primary);
}

.legal-box p,
.legal-box div {
    color: var(--color-gray-700);
    line-height: 1.7;
}

.medical-notice {
    background: rgba(144, 175, 197, .1);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.medical-notice p {
    color: var(--color-gray-700);
    margin: 0;
}

/* --- Sources list --- */
.sources {
    border-top: 1px solid var(--color-gray-200);
    padding-top: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.sources h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.sources ol {
    list-style-position: inside;
    font-size: .875rem;
    color: var(--color-gray-600);
}

.sources li {
    margin-bottom: .5rem;
}

/* --- Related Articles --- */
.related-articles {
    margin-top: 3rem;
}

.related-articles h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* --- Utility classes --- */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.text-sm {
    font-size: .875rem;
}

.text-xs {
    font-size: .75rem;
}

/* --- Animations --- */
.animate-fade-in {
    animation: fadeIn .5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Select styling --- */
.select-wrapper {
    position: relative;
    margin-bottom: .5rem;
}

.select-wrapper select {
    appearance: none;
    padding-right: 2rem;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-primary);
    pointer-events: none;
}

/* --- FAQ section --- */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.faq-card .card__title {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

/* --- Calculator Toggle Rows --- */
.calc-toggle-row {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .calc-toggle-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.calc-toggle-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--color-primary);
    white-space: nowrap;
    margin-bottom: 0;
}

.calc-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.calc-toggle {
    display: inline-flex;
    margin-bottom: 0;
}

.calc-toggle input[type="radio"] {
    display: none;
}

.calc-toggle span {
    display: inline-block;
    padding: .375rem .75rem;
    border: 1px solid rgba(144, 175, 197, .5);
    border-radius: var(--radius);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all .2s;
    background: var(--color-white);
    user-select: none;
}

@media (min-width: 768px) {
    .calc-toggle span {
        font-size: .875rem;
        padding: .4375rem 1rem;
    }
}

.calc-toggle input[type="radio"]:checked+span {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 0 2px 4px rgba(118, 54, 38, .3);
}

.calc-toggle span:hover {
    border-color: var(--color-secondary);
}

/* --- FAQ Accordion --- */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid rgba(144, 175, 197, .3);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-white);
    border: none;
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

@media (min-width: 768px) {
    .faq-question {
        font-size: 1.0625rem;
    }
}

.faq-question:hover {
    background: var(--color-gray-50);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--color-gray-700);
}

.faq-answer a {
    color: var(--color-secondary);
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.open .faq-question {
    background: var(--color-gray-50);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.open .faq-answer {
    max-height: 20rem;
    padding: 0 1.25rem 1.25rem;
}

/* --- Answer Hero (conversion articles) --- */
.answer-hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.answer-hero__label {
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent);
    margin-bottom: .5rem;
}

.answer-hero__range {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .5rem;
}

.answer-hero__sub {
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
}

@media (min-width: 768px) {
    .answer-hero {
        padding: 2.5rem 2rem;
    }

    .answer-hero__range {
        font-size: 3rem;
    }
}

/* --- Infographic --- */
.infographic {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0;
}

.infographic img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.infographic img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.infographic figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-style: italic;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .infographic {
        margin: 3rem 0;
    }
}

/* --- Breadcrumb --- */
.breadcrumb {
    font-size: .8rem;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb span {
    color: var(--color-gray-600);
}