/* ===========================
   Fitness-Rechner.de — Globales Stylesheet
   =========================== */

/* CSS-Variablen */
:root {
    --color-accent: #20808D;
    --color-accent-hover: #1a6b76;
    --color-accent-light: rgba(32, 128, 141, 0.08);
    --color-text: #1a1a2e;
    --color-text-light: #555;
    --color-bg: #f5f5f5;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-success: #2ecc71;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --container-max: 1100px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

fieldset {
    border: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header
   =========================== */
.header {
    background: var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.header__logo span {
    color: var(--color-accent);
}

.header__nav ul {
    display: flex;
    gap: 28px;
}

.header__nav a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--color-accent);
}

.header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* Hamburger-Button */
.header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===========================
   Hero
   =========================== */
.hero {
    text-align: center;
    padding: 72px 0 48px;
}

.hero--sub {
    padding: 48px 0 32px;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero--sub h1 {
    font-size: 1.85rem;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================
   Rechner-Grid (Startseite)
   =========================== */
.rechner-section {
    padding: 24px 0 72px;
}

.rechner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rechner-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.rechner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.rechner-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.rechner-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.rechner-card__desc {
    font-size: 0.925rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(32, 128, 141, 0.35);
    color: var(--color-white);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(32, 128, 141, 0.25);
}

.btn--full {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
}

.btn--full:hover {
    box-shadow: 0 6px 20px rgba(32, 128, 141, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===========================
   Rechner-Formulare
   =========================== */
.rechner-form-section {
    padding: 0 0 48px;
}

.rechner-form {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Radio-Buttons */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    cursor: pointer;
}

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

.radio-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-btn {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.radio-option input[type="radio"]:focus-visible + .radio-btn {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

/* Select */
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Slider / Range */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    appearance: none;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===========================
   Ergebnis-Bereich
   =========================== */
.ergebnis {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 32px auto 0;
    border-top: 4px solid var(--color-accent);
}

.ergebnis__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--color-text);
}

.ergebnis__main {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--color-accent-light);
    border-radius: var(--border-radius-sm);
}

.ergebnis__zahl {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
}

.ergebnis__sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.ergebnis__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

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

.ergebnis__detail-item {
    background: var(--color-bg);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.ergebnis__label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ergebnis__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.ergebnis__subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Mahlzeiten-Aufteilung */
.ergebnis__mahlzeiten {
    margin-bottom: 24px;
}

.mahlzeit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg);
}

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

.mahlzeit-name {
    font-size: 0.9rem;
    color: var(--color-text);
}

.mahlzeit-protein {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Lebensmittel */
.ergebnis__lebensmittel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lebensmittel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--color-bg);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.lebensmittel-name {
    color: var(--color-text);
}

.lebensmittel-protein {
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
    margin-left: 8px;
}

/* ===========================
   Produktempfehlungen
   =========================== */
.produkte {
    max-width: 600px;
    margin: 32px auto 0;
}

.produkte__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-text);
}

.produkte__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.produkt-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.produkt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.produkt-card__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    max-width: fit-content;
}

.produkt-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.produkt-card__desc {
    font-size: 0.83rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.produkt-card__preis {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.produkt-card__features {
    margin-bottom: 16px;
    flex-grow: 1;
}

.produkt-card__features li {
    font-size: 0.8rem;
    color: var(--color-text);
    padding: 3px 0 3px 16px;
    position: relative;
}

.produkt-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* ===========================
   SEO-Content / Artikel
   =========================== */
.seo-content {
    padding: 48px 0;
}

.seo-article {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    max-width: 760px;
    margin: 0 auto;
}

.seo-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.seo-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.seo-article p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-article ul {
    margin-bottom: 16px;
    padding-left: 0;
}

.seo-article ul li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    padding: 6px 0 6px 20px;
    position: relative;
}

.seo-article ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--color-accent);
    font-weight: 700;
}

/* FAQ */
.faq {
    margin-top: 24px;
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq__question {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 20px;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    background: var(--color-accent-light);
}

.faq__answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===========================
   Weitere Rechner (Interne Verlinkung)
   =========================== */
.weitere-rechner {
    padding: 0 0 48px;
}

.weitere-rechner__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    color: var(--color-text);
}

.weitere-rechner__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.weitere-rechner__link {
    display: block;
    padding: 14px 20px;
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: transform var(--transition), box-shadow var(--transition);
}

.weitere-rechner__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: 24px;
}

.footer__inner {
    text-align: center;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer__affiliate-hinweis {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===========================
   Supplement-Kosten-Rechner
   =========================== */
.rechner-form--wide {
    max-width: 680px;
}

/* Checkbox-Optionen */
.supplement-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supplement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-bg);
    border-radius: var(--border-radius-sm);
    transition: background var(--transition);
}

.supplement-row:hover {
    background: var(--color-accent-light);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-mark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-mark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-mark::after {
    display: block;
}

.checkbox-option input[type="checkbox"]:focus-visible + .checkbox-mark {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.checkbox-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-select--sm {
    width: auto;
    min-width: 110px;
    padding: 8px 32px 8px 12px;
    font-size: 0.85rem;
}

/* Kosten-Tabelle */
.kosten-tabelle-wrap {
    overflow-x: auto;
    margin-bottom: 8px;
}

.kosten-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.kosten-tabelle th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-border);
}

.kosten-tabelle td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-bg);
    color: var(--color-text);
}

.kosten-tabelle tbody tr:hover {
    background: var(--color-accent-light);
}

.kosten-tabelle__total td {
    border-top: 2px solid var(--color-accent);
    border-bottom: none;
    color: var(--color-accent);
}

/* Preisklassen-Badges */
.preisklasse-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preisklasse-badge--budget {
    background: #e8f5e9;
    color: #2e7d32;
}

.preisklasse-badge--mittel {
    background: #fff3e0;
    color: #e65100;
}

.preisklasse-badge--premium {
    background: #fce4ec;
    color: #c62828;
}

.produkte__hinweis {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 16px;
}

.ergebnis__hinweis {
    /* Container für dynamische Hinweise */
}

/* ===========================
   Stack-Builder
   =========================== */
.ergebnis--wide {
    max-width: 720px;
}

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

.radio-group--3 .radio-btn {
    font-size: 0.9rem;
    padding: 10px 12px;
    line-height: 1.4;
}

.radio-group--3 .radio-btn small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.radio-option input[type="radio"]:checked + .radio-btn small {
    color: var(--color-accent);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stack-card {
    background: var(--color-bg);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.stack-card:hover {
    transform: translateY(-2px);
}

.stack-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.stack-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.stack-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.stack-card__dosis {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}

.stack-card__body {
    flex: 1;
    margin-bottom: 14px;
}

.stack-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
}

.stack-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-text-light);
    min-width: 50px;
}

.stack-card__val {
    font-size: 0.82rem;
    color: var(--color-text);
    text-align: right;
}

.stack-card__grund {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-top: 8px;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===========================
   Kreisdiagramm & Makros (Kalorien-Rechner)
   =========================== */
.makro-ergebnis {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.donut-chart-wrap {
    width: 140px;
    min-width: 140px;
}

.donut-chart {
    width: 100%;
    height: auto;
    transform: rotate(-90deg);
}

.donut-chart__ring {
    fill: none;
    stroke-width: 3.5;
    transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease;
}

.donut-chart__ring--protein {
    stroke: #20808D;
}

.donut-chart__ring--fett {
    stroke: #e67e22;
}

.donut-chart__ring--carbs {
    stroke: #f1c40f;
}

.makro-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.makro-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.makro-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 3px;
}

.makro-dot--protein {
    background: #20808D;
}

.makro-dot--fett {
    background: #e67e22;
}

.makro-dot--carbs {
    background: #f1c40f;
}

.makro-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.makro-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.makro-gramm {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.makro-prozent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    min-width: 40px;
    text-align: right;
}

/* ===========================
   CSS-Balkendiagramm (Cold Plunge ROI)
   =========================== */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.bar-chart__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-chart__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.bar-chart__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-chart__row-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    width: 50px;
    min-width: 50px;
    text-align: right;
}

.bar-chart__track {
    flex: 1;
    height: 24px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.bar-chart__bar {
    height: 100%;
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.8s ease;
}

.bar-chart__bar--current {
    background: #e74c3c;
}

.bar-chart__bar--own {
    background: var(--color-accent);
}

.bar-chart__value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 70px;
    white-space: nowrap;
}

/* ===========================
   Zurück-Button
   =========================== */
.btn-zurueck {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--color-text-light);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
    transition: color var(--transition), gap var(--transition);
}

.btn-zurueck:hover {
    color: var(--color-accent);
    gap: 8px;
}

.btn-zurueck__arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--transition);
}

.btn-zurueck:hover .btn-zurueck__arrow {
    transform: translateX(-3px);
}

/* ===========================
   Animationen
   =========================== */
.fade-in {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-Reveal für Karten auf der Startseite */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gestaffelte Animation für Grid-Karten */
.rechner-card.reveal:nth-child(1) { transition-delay: 0s; }
.rechner-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.rechner-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.rechner-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.rechner-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.rechner-card.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { animation: none; opacity: 1; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .rechner-card, .produkt-card, .stack-card { transition: none; }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet */
@media (max-width: 900px) {
    .rechner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .produkte__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .seo-article {
        padding: 32px 24px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .header__menu-btn {
        display: flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 16px 0;
    }

    .header__nav.is-open {
        display: block;
    }

    .header__nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .header__nav a.active::after {
        display: none;
    }

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

    .hero {
        padding: 48px 0 32px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero--sub h1 {
        font-size: 1.35rem;
    }

    .hero__text {
        font-size: 1rem;
    }

    .rechner-card {
        padding: 24px 20px;
    }

    .rechner-form {
        padding: 24px 20px;
    }

    .ergebnis {
        padding: 24px 20px;
    }

    .ergebnis__zahl {
        font-size: 2.5rem;
    }

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

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

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

    .weitere-rechner__grid {
        grid-template-columns: 1fr;
    }

    .seo-article {
        padding: 24px 16px;
    }

    .seo-article h2 {
        font-size: 1.25rem;
    }

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

    .radio-group--3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .makro-ergebnis {
        flex-direction: column;
        align-items: stretch;
    }

    .donut-chart-wrap {
        width: 120px;
        min-width: 120px;
        margin: 0 auto;
    }

    .bar-chart__row-label {
        width: 42px;
        min-width: 42px;
        font-size: 0.7rem;
    }

    .bar-chart__value {
        font-size: 0.75rem;
        min-width: 55px;
    }

    .supplement-row {
        flex-wrap: wrap;
    }

    .form-select--sm {
        width: 100%;
    }

    .kosten-tabelle {
        font-size: 0.8rem;
    }

    .kosten-tabelle th,
    .kosten-tabelle td {
        padding: 8px 6px;
    }

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

/* ===========================
   Druck-Styles
   =========================== */
/* ===========================
   Cookie-Consent-Banner
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 10000;
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    min-width: 250px;
}

.cookie-banner__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    transition: var(--transition);
}

.cookie-banner__btn--accept {
    background: var(--color-accent);
    color: white;
}

.cookie-banner__btn--accept:hover {
    background: var(--color-accent-hover);
}

.cookie-banner__btn--decline {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.cookie-banner__btn--decline:hover {
    background: var(--color-border);
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .header,
    .footer,
    .header__menu-btn,
    .produkte,
    .weitere-rechner,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .rechner-card,
    .ergebnis,
    .seo-article {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .ergebnis {
        border-top: 3px solid #20808D;
    }

    .hero {
        padding: 20px 0;
    }
}
