/* ============================================================
   CannaDose PWA – Design System aligned with buds-spencer.de
   Warm earth tones · Inter + Mulish · Glassmorphism
   ============================================================ */

:root {
    /* === Colors (buds-spencer.de palette) === */
    --accent:      #ec8611;   /* warm orange */
    --accent-rgb:  236, 134, 17;
    --accent-soft: rgba(236, 134, 17, 0.13);
    --accent-dark: #c97008;
    --honey:       #d9a621;   /* honey gold (secondary warm) */
    --honey-soft:  rgba(217, 166, 33, 0.14);
    --warn:        #dc2626;

    /* === Backgrounds (warm earth) === */
    --bg:    #e2cebc;
    --card:  #f3e8da;
    --card2: #e7d6c6;

    /* === Text === */
    --text:  #131313;
    --text2: rgba(19, 19, 19, 0.55);
    --text3: rgba(19, 19, 19, 0.32);

    /* === UI === */
    --border:    rgba(19, 19, 19, 0.10);
    --border-2:  rgba(19, 19, 19, 0.18);
    --shadow:    rgba(19, 19, 19, 0.14);
    --shadow-lg: rgba(19, 19, 19, 0.20);
    --radius: 18px;
    --tab-h:  56px;

    /* === Safe area === */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent:      #f0970e;
        --accent-soft: rgba(240, 151, 14, 0.15);
        --accent-dark: #e08800;
        --honey:       #e8b828;
        --honey-soft:  rgba(232, 184, 40, 0.14);
        --bg:    #1c1610;
        --card:  #2a2018;
        --card2: #342b20;
        --text:  #f5ede0;
        --text2: rgba(245, 237, 224, 0.65);
        --text3: rgba(245, 237, 224, 0.35);
        --border:    rgba(245, 237, 224, 0.12);
        --border-2:  rgba(245, 237, 224, 0.20);
        --shadow:    rgba(0, 0, 0, 0.40);
        --shadow-lg: rgba(0, 0, 0, 0.55);
    }
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Noise texture overlay (like buds-spencer.de) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    opacity: 0.18;
    mix-blend-mode: soft-light;
}

/* Ensure all direct children stack above the noise layer */
body > * { position: relative; z-index: 1; }

/* Numbers and headings use Inter (heavy weight) */
h1, h2, h3,
.result-number,
.metric-box .metric-value,
.step-number,
.onboarding-slide h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
}

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

/* ====== Layout ====== */
.page-wrap {
    max-width: 430px;
    margin: 0 auto;
    padding: 12px 16px 32px;
}

/* Wider for desktop (non-mobile) */
@media (min-width: 700px) {
    .page-wrap { max-width: 560px; }
    body { padding-bottom: 0; }
}

/* ====== Topbar ====== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(226, 206, 188, 0.82);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    padding-top: var(--safe-top);
}

@media (prefers-color-scheme: dark) {
    .topbar {
        background: rgba(28, 22, 16, 0.85);
    }
}

.topbar-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 8px;
}

@media (min-width: 700px) {
    .topbar-inner { max-width: 560px; }
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand-name {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: var(--accent);
}
.brand-sub  { font-size: 0.72rem; color: var(--text2); font-weight: 200; }

/* Language switcher in topbar */
.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    padding: 2px;
    gap: 2px;
}

.lang-switch a {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text2);
    font-weight: 500;
}

.lang-switch a.is-active {
    background: var(--accent);
    color: #fff;
}

/* Hide desktop main-nav on mobile – we use bottom tabs */
.main-nav { display: none; }

@media (min-width: 700px) {
    .main-nav {
        display: flex;
        gap: 4px;
    }
    .main-nav a {
        padding: 5px 12px;
        border-radius: 999px;
        font-size: 0.9rem;
        color: var(--text2);
        font-weight: 500;
        border: 1px solid transparent;
    }
    .main-nav a.is-active {
        background: var(--card);
        color: var(--accent);
        border-color: var(--border);
    }
}

/* ====== Bottom Tab Bar (mobile only) ====== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(243, 232, 218, 0.90);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
}

@media (prefers-color-scheme: dark) {
    .tab-bar {
        background: rgba(42, 32, 24, 0.92);
    }
}

@media (min-width: 700px) {
    .tab-bar { display: none; }
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text3);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.tab-item.is-active { color: var(--accent); }

.tab-item svg { width: 24px; height: 24px; }

/* ====== Section Header ====== */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.section-header svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 10px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text2);
}

/* ====== Card (glass morphism like buds-spencer.de) ====== */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.26) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px var(--shadow);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

/* Subtle top accent line on cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: var(--radius) var(--radius) 0 0;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .card {
        background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    }
}

/* ====== App Header (logo + title) ====== */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0 8px;
    text-align: center;
}

.app-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

.app-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
}

/* ====== Input Rows ====== */
.input-block { margin-bottom: 18px; }
.input-block:last-child { margin-bottom: 0; }

.input-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.input-label-row label {
    font-size: 0.9rem;
    color: var(--text2);
    font-weight: 500;
}

/* Value badge (green pill) */
.value-badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.value-badge:active { background: rgba(var(--accent-rgb), 0.2); }

/* ====== Slider ====== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.12s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }

input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px var(--shadow-lg);
    cursor: pointer;
}

/* Track fill (CSS variable driven) */
input[type="range"].styled-range {
    background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) var(--fill),
        var(--border) var(--fill),
        var(--border) 100%
    );
}

/* ====== Number Input (hidden, synced with range) ====== */
input[type="number"] {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card2);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}
input[type="number"]:focus { border-color: var(--accent); }

/* Hide spin buttons on number inputs used as badges */
.hidden-number { display: none; }

/* ====== Toggle ====== */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.toggle-row label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    flex: 1;
    cursor: pointer;
}

/* iOS-style switch */
.ios-switch {
    position: relative;
    width: 40px;
    height: 24px;
    flex-shrink: 0;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-switch-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.ios-switch input:checked + .ios-switch-track {
    background: var(--accent);
}

.ios-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

.ios-switch input:checked + .ios-switch-track::after {
    transform: translateX(20px);
}

/* ====== Recipe Amounts Section ====== */
.amounts-list { list-style: none; }

.amounts-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
}

.amounts-list li:last-child { border-bottom: none; }

.amounts-list .label { color: var(--text2); font-size: 0.9rem; }
.amounts-list .value { font-weight: 700; font-size: 0.95rem; }

.formula-hint {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 10px;
}

/* ====== Result Section (Hero) ====== */
.result-hero {
    text-align: center;
    padding: 8px 0 16px;
}

.result-number {
    font-size: 3.4rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -1px;
}

.result-unit {
    font-size: 1rem;
    color: var(--text2);
    font-weight: 500;
    margin-top: 4px;
}

/* Strength indicator */
.strength-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.strength-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.strength-level1 { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.strength-level1 .strength-dot { background: #22c55e; }

.strength-level2 { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.strength-level2 .strength-dot { background: #f97316; }

.strength-level3 { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.strength-level3 .strength-dot { background: #ef4444; }

/* Metric boxes */
.metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.metric-box {
    background: rgba(255,255,255,0.32);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}
.metric-box:hover {
    background: rgba(255,255,255,0.46);
    transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
    .metric-box { background: rgba(255,255,255,0.06); }
    .metric-box:hover { background: rgba(255,255,255,0.10); }
}

.metric-box .metric-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.metric-box .metric-value {
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.metric-box .metric-unit {
    font-size: 0.7rem;
    color: var(--text3);
    display: block;
}

.metric-box .metric-label {
    font-size: 0.72rem;
    color: var(--text2);
    margin-top: 2px;
}

.metric-box.accent .metric-value { color: var(--accent); }
.metric-box.honey  .metric-value { color: var(--honey); }

/* Sources link */
.sources-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 12px;
}

/* ====== Warning ====== */
.warning-box {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--warn);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ====== Recipe Button ====== */
.recipe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.15s, transform 0.12s;
    box-shadow: 0 4px 16px rgba(236, 134, 17, 0.35);
}
.recipe-btn:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
.recipe-btn:active { opacity: 0.75; transform: translateY(0); }

/* ====== Recipe Page ====== */
/* Hero banner */
.recipe-hero {
    background: linear-gradient(135deg, var(--honey-soft) 0%, var(--accent-soft) 100%);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.recipe-hero-icon { font-size: 2.4rem; }

.recipe-hero-title { font-size: 1.15rem; font-weight: 700; }
.recipe-hero-sub   { font-size: 0.85rem; color: var(--text2); margin-top: 2px; }

/* Recipe steps */
.recipe-step { margin-bottom: 12px; }

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-number.orange { background: rgba(249,115,22,0.15); color: #ea580c; }
.step-number.honey  { background: var(--honey-soft);  color: #b8851a; }
.step-number.brown  { background: rgba(120,80,40,0.12); color: #7c5428; }

.step-title {
    font-size: 1rem;
    font-weight: 700;
}

.step-icon { font-size: 1.1rem; }

/* Ingredient rows */
.ingredient-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
}
.ingredient-row:last-child { border-bottom: none; }

.ingredient-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; margin-top: 2px; }

.ingredient-main { font-size: 0.9rem; font-weight: 600; }
.ingredient-sub  { font-size: 0.78rem; color: var(--text2); margin-top: 1px; }

/* Instruction rows */
.instruction-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}

.instruction-check { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.instruction-text  { font-size: 0.9rem; line-height: 1.4; }

/* Parameter box */
.param-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--card2);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.param-item { text-align: center; }
.param-label { font-size: 0.72rem; color: var(--text2); }
.param-value { font-size: 0.95rem; font-weight: 700; margin-top: 2px; }

/* Strength section */
.strength-section {
    background: rgba(249,115,22,0.06);
    border-radius: 10px;
    padding: 12px;
}

.strength-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}
.strength-row:not(:last-child) { border-bottom: 0.5px solid rgba(249,115,22,0.15); }
.strength-row .sl { color: var(--text2); font-size: 0.85rem; }
.strength-row .sv { font-weight: 700; font-size: 0.85rem; }

/* Recipe action buttons */
.recipe-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    text-decoration: none;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: #fff; flex: 1; }
.btn-secondary {
    background: var(--card2);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ====== Settings Page ====== */
.settings-group { margin-bottom: 20px; }

.settings-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text2);
    font-weight: 600;
    padding: 0 4px;
    margin-bottom: 6px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 0.9rem;
}
.settings-row:last-child { border-bottom: none; }
.settings-row a { color: var(--text); }
.settings-row a:hover { color: var(--accent); }
.settings-row .chevron { color: var(--text3); font-size: 0.8rem; }

.version-info { font-size: 0.75rem; color: var(--text3); text-align: center; margin-top: 16px; }

/* ====== Onboarding Modal ====== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-30px); opacity: 0; } }

.onboarding-overlay.closing {
    animation: slideOut 0.3s ease forwards;
}

.onboarding-slides {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.onboarding-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.onboarding-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.onboarding-slide.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.onboarding-icon-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 32px;
}

.ob-orange { background: rgba(249,115,22,0.10); }
.ob-green  { background: var(--accent-soft); }
.ob-honey  { background: var(--honey-soft); }

.onboarding-slide h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.onboarding-slide p {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.55;
    max-width: 320px;
}

.onboarding-footnote {
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 16px;
}

.onboarding-footnote a { color: var(--accent); font-weight: 600; }

/* Dots */
.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}

.onboarding-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s, width 0.2s;
}

.onboarding-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* Bottom button */
.onboarding-footer {
    padding: 16px 24px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.onboarding-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
    box-shadow: 0 4px 16px rgba(236, 134, 17, 0.35);
}
.onboarding-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.onboarding-btn:active { opacity: 0.8; transform: translateY(0); }

/* ====== Quellen-Seite (Sources) ====== */
.sources-formula {
    background: var(--card2);
    border-radius: 10px;
    padding: 12px;
    font-family: "SF Mono", "Menlo", "Courier New", monospace;
    font-size: 0.82rem;
    color: var(--text2);
    line-height: 1.7;
}

.sources-ref {
    font-size: 0.8rem;
    color: var(--text2);
    padding: 6px 0;
    border-bottom: 0.5px solid var(--border);
}
.sources-ref:last-child { border-bottom: none; }

/* ====== Legal Pages ====== */
.legal-card h1 { font-size: 1.2rem; margin-bottom: 12px; }
.legal-card h2 { font-size: 1rem; margin: 16px 0 6px; }
.legal-card p  { font-size: 0.88rem; color: var(--text2); line-height: 1.55; }

/* ====== Utility ====== */
.hidden { display: none !important; }
.meta { font-size: 0.8rem; color: var(--text3); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ====== Print ====== */
@media print {
    .topbar, .tab-bar, .recipe-actions, .no-print { display: none !important; }
    body { padding: 0; background: #fff; color: #000; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}
