:root {
  --ink: #17201c;
  --muted: #667169;
  --forest: #173d2d;
  --forest-2: #245840;
  --cream: #f4f2ec;
  --paper: #fffefa;
  --line: #d9ddd6;
  --red: #a63d2f;
  --shadow: 0 18px 48px rgba(24, 36, 29, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
body:has(.cook-page) > .site-header { display: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
img { object-fit: cover; }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 12px; color: #dce8df; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; }
.eyebrow.dark { color: var(--forest-2); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { color: var(--ink); background: transparent; border-color: #bfc7c0; }
.button-secondary:hover { background: #fff; border-color: #9da8a0; }
.site-header { position: sticky; top: 0; z-index: 40; height: 66px; background: rgba(255, 254, 250, .94); border-bottom: 1px solid rgba(23, 32, 28, .1); backdrop-filter: blur(14px); }
.header-inner { width: min(1280px, calc(100% - 42px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 850; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-version { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--forest); border-radius: 6px; }
.brand-mark { overflow: hidden; background: #111; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.top-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 750; }
.top-nav a { padding: 8px 0; }
.top-nav a:hover { color: var(--forest-2); }
.top-nav .icon-link { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.account-link { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding-inline: 10px !important; border: 1px solid var(--line); border-radius: 6px; }
.shopping-link { position: relative; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; }
.shopping-link b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding-inline: 5px; color: #fff; background: var(--red); border-radius: 10px; font-size: 10px; line-height: 1; }

.library-hero { position: relative; height: min(500px, 62svh); min-height: 380px; overflow: hidden; background: #18281e; }
.library-hero > img, .detail-visual > img, .recipe-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.library-hero > img { animation: heroZoom 1.4s cubic-bezier(.2,.8,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,20,15,.84) 0%, rgba(11,20,15,.64) 36%, rgba(11,20,15,.12) 72%); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; padding-bottom: 24px; animation: riseIn .7s .12s ease both; }
.hero-content h1 { max-width: 680px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 64px; line-height: 1; font-weight: 500; }
.hero-content > p:not(.eyebrow) { max-width: 530px; margin: 25px 0 28px; color: #e8ede8; font-size: 18px; line-height: 1.55; }
.hero-content .button { background: #fff; color: var(--forest); }
.recipe-workspace { padding-block: 72px 90px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.workspace-heading h2, .portion-panel h2, .section-title-row h2, .steps-section h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 38px; font-weight: 500; }
.result-count { color: var(--muted); font-size: 14px; }
.filter-bar { display: grid; grid-template-columns: 1fr 260px; gap: 12px; margin: 34px 0 12px; }
.search-field, .select-field { height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.search-field:focus-within, .select-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,88,64,.12); }
.search-field input, .select-field select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.recipe-list { border-top: 1px solid var(--line); }
.recipe-row { position: relative; display: grid; grid-template-columns: 165px 1fr 38px; gap: 25px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.recipe-row:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,255,255,.52); }
.recipe-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; background: #ddd; }
.recipe-thumb img { transition: transform .35s ease; }
.recipe-row:hover .recipe-thumb img { transform: scale(1.035); }
.category-label { display: inline-block; margin-bottom: 8px; color: var(--forest-2); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
.category-label.light { color: #e2eee5; }
.recipe-copy h3 { margin: 0 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; }
.recipe-copy > p { max-width: 720px; margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.meta-line { display: flex; gap: 22px; color: #48534c; font-size: 13px; }
.meta-line span { display: flex; align-items: center; gap: 6px; }
.row-arrow { color: var(--forest); }
.empty-state, .not-found { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.state-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--forest); background: #e3ece5; border-radius: 50%; font-size: 20px; font-weight: 900; }
.empty-state h3, .not-found h1 { margin: 17px 0 7px; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 500; }
.empty-state p, .not-found p { margin: 0 0 18px; }
.text-button { padding: 4px; border: 0; border-bottom: 1px solid var(--forest); color: var(--forest); background: transparent; font-weight: 750; }

.detail-page { background: var(--paper); }
.detail-visual { position: relative; height: min(620px, 66svh); min-height: 480px; overflow: hidden; color: #fff; background: #19281f; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,16,12,.8) 0%, rgba(9,16,12,.12) 63%), linear-gradient(90deg, rgba(9,16,12,.55), transparent 60%); }
.back-link { position: absolute; top: 28px; left: max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 5px; background: rgba(13,27,19,.48); backdrop-filter: blur(8px); font-weight: 750; }
.visual-copy { position: absolute; left: max(24px, calc((100vw - 1180px)/2)); right: 24px; bottom: 55px; max-width: 780px; animation: riseIn .6s ease both; }
.visual-copy h1 { margin: 0 0 15px; font-family: Georgia, 'Times New Roman', serif; font-size: 68px; line-height: 1; font-weight: 500; }
.visual-copy p { max-width: 680px; margin: 0; color: #e8ece8; font-size: 18px; line-height: 1.5; }
.detail-content { padding: 0 0 90px; }
.portion-panel { position: relative; z-index: 2; margin-top: -28px; min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 34px; background: var(--paper); border-radius: 7px; box-shadow: var(--shadow); }
.portion-panel h2 { font-size: 31px; }
.portion-panel > div > p:last-child { margin: 7px 0 0; color: var(--muted); }
.portion-control { display: grid; grid-template-columns: 50px 118px 50px; align-items: stretch; height: 66px; border: 1px solid #aeb9b1; border-radius: 7px; overflow: hidden; }
.portion-control button { border: 0; color: var(--forest); background: #edf2ee; }
.portion-control button:hover { background: #dfe9e2; }
.portion-control label { display: flex; flex-direction: column; justify-content: center; border-inline: 1px solid #aeb9b1; text-align: center; }
.portion-control input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; text-align: center; font-size: 25px; font-weight: 850; appearance: textfield; }
.portion-control small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.recipe-meta-band { display: flex; gap: 38px; padding: 28px 6px; border-bottom: 1px solid var(--line); color: #47534b; font-size: 14px; }
.recipe-meta-band span { display: flex; align-items: center; gap: 8px; }
.recipe-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 78px; padding-top: 64px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 33px; }
.portion-badge { padding: 8px 11px; color: var(--forest); background: #e8f0ea; border-radius: 5px; font-size: 12px; font-weight: 850; }
.ingredient-group { margin-bottom: 38px; }
.ingredient-group h3 { margin: 0 0 10px; color: var(--forest); font-size: 13px; text-transform: uppercase; letter-spacing: 1.3px; }
.ingredient-rows { border-top: 1px solid var(--line); }
.ingredient-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.ingredient-row strong { display: block; font-size: 15px; }
.ingredient-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.ingredient-row > span { flex-shrink: 0; color: var(--forest); font-size: 17px; font-weight: 850; }
.steps-section h2 { margin-bottom: 28px; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 38px 1fr; gap: 17px; padding: 0 0 27px; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--forest); border-radius: 50%; font-size: 13px; font-weight: 850; }
.steps-list p { margin: 4px 0 9px; line-height: 1.58; }
.step-time { display: inline-flex; align-items: center; gap: 6px; color: var(--forest-2); font-size: 12px; font-weight: 800; }
.detail-actions { display: flex; gap: 10px; padding-top: 52px; border-top: 1px solid var(--line); }
.shopping-bridge { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 62px; padding: 34px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shopping-bridge h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 31px; font-weight: 500; }
.shopping-bridge > div > p:last-child { max-width: 620px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.shopping-bridge-actions { min-width: 270px; display: grid; gap: 10px; }
.bring-widget { min-height: 46px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.bring-widget > a { color: var(--muted); text-align: center; font-size: 11px; text-decoration: underline; }
.bring-widget [data-bring-import] { width: 100%; }

.shopping-page { min-height: calc(100svh - 66px); padding-block: 64px 90px; }
.shopping-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.shopping-heading h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 48px; font-weight: 500; }
.shopping-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); }
.shopping-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; padding-top: 34px; }
.shopping-items { border-top: 1px solid var(--line); }
.shopping-item { min-height: 72px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 34px; gap: 14px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); transition: opacity .18s ease, background .18s ease; }
.shopping-item.checked { opacity: .52; }
.shopping-item.checked strong { text-decoration: line-through; }
.shopping-item strong { display: block; }
.shopping-item small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.shopping-item b { color: var(--forest); font-size: 16px; white-space: nowrap; }
.shopping-check, .shopping-remove { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 5px; background: transparent; }
.shopping-check { border: 1px solid #aeb9b1; color: #fff; font-weight: 900; }
.shopping-item.checked .shopping-check { border-color: var(--forest); background: var(--forest); }
.shopping-remove { border: 0; color: var(--muted); font-size: 22px; }
.shopping-remove:hover { color: var(--red); background: #f5e8e5; }
.shopping-tools { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.shopping-tools h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; }
.shopping-tools > p:not(.eyebrow) { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.shopping-tools > .button { width: 100%; margin-top: 8px; }
.shopping-sources { display: grid; gap: 2px; margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); }
.shopping-sources > strong { margin-bottom: 8px; font-size: 12px; text-transform: uppercase; }
.shopping-sources a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--forest); font-size: 13px; font-weight: 750; }
.shopping-sources > small { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.shopping-empty { min-height: 480px; }

.cook-page { min-height: 100svh; color: var(--ink); background: #f7f6f1; }
.cook-header { height: 74px; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 0 25px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cook-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; }
.cook-header > div { display: flex; flex-direction: column; gap: 2px; }
.cook-header > div span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.cook-header strong { font-size: 15px; }
.cook-progress { padding: 7px 10px; color: var(--forest); background: #e8f0ea; border-radius: 5px; font-size: 12px; font-weight: 850; }
.cook-stage { width: min(850px, calc(100% - 42px)); margin-inline: auto; padding: 52px 0 130px; }
.cook-stage-heading { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 35px; }
.cook-stage-heading > svg { margin-top: 4px; color: var(--forest); }
.cook-stage-heading h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 40px; font-weight: 500; }
.cook-stage-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.cook-checklist { display: grid; gap: 8px; }
.cook-checklist > button { min-height: 74px; display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); text-align: left; }
.cook-checklist > button.checked { color: #748078; background: #edf0ec; }
.cook-checklist > button.checked strong { text-decoration: line-through; }
.check-box { width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid #98a49b; border-radius: 5px; }
.checked .check-box { color: #fff; background: var(--forest); border-color: var(--forest); }
.cook-checklist small, .cook-checklist strong { display: block; }
.cook-checklist small { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.cook-checklist b { color: var(--forest); font-size: 16px; }
.cook-bottom { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 15px 24px; background: rgba(255,254,250,.95); border-top: 1px solid var(--line); backdrop-filter: blur(10px); text-align: center; }
.cook-bottom .button { min-width: 260px; }
.single-step { min-height: calc(100svh - 74px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 40px; text-align: center; }
.step-kicker { margin: 0 0 10px; color: var(--forest); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
.step-meter { width: min(420px, 80%); height: 4px; margin-bottom: 42px; overflow: hidden; background: #dfe4df; border-radius: 2px; }
.step-meter span { display: block; height: 100%; background: var(--forest); transition: width .25s ease; }
.active-step-number { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 28px; color: #fff; background: var(--forest); border-radius: 50%; font-size: 23px; font-weight: 850; }
.single-step h1 { max-width: 760px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 46px; line-height: 1.25; font-weight: 500; }
.large-time { display: inline-flex; align-items: center; gap: 8px; margin-top: 27px; padding: 10px 13px; color: var(--forest); background: #e5eee7; border-radius: 5px; font-weight: 800; }
.step-navigation { display: flex; gap: 10px; margin-top: 45px; }
.step-navigation .button { min-width: 150px; }
.step-dots { display: flex; gap: 8px; margin-top: 28px; }
.step-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c6ccc7; }
.step-dots button.done { background: #78a388; }
.step-dots button.active { background: var(--forest); transform: scale(1.35); }
.cook-done { min-height: calc(100svh - 74px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 40px; text-align: center; }
.cook-done > svg { color: var(--forest); }
.done-mark { width: 70px; height: 70px; display: grid; place-items: center; color: #fff; background: var(--forest); border-radius: 50%; font-size: 34px; }
.cook-done .eyebrow { margin-top: 24px; }
.cook-done h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 50px; font-weight: 500; }
.cook-done p:not(.eyebrow) { max-width: 480px; margin: 13px 0 30px; color: var(--muted); line-height: 1.6; }

.auth-page { min-height: calc(100svh - 66px); display: grid; grid-template-columns: 1fr 420px; gap: 100px; align-items: center; padding-block: 70px; }
.auth-copy h1, .admin-heading h1, .editor-header h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 50px; font-weight: 500; }
.auth-copy > p:last-child { max-width: 500px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.login-form { padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.login-form h2 { margin: 0 0 25px; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 500; }
.login-form label, .form-grid label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; color: #414d45; font-size: 13px; font-weight: 750; }
.login-form label > small, .password-panel label > small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.login-form input, .form-grid input, .form-grid select, .form-grid textarea, .group-editor input, .group-editor select, .step-editor-row input, .step-editor-row textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #bfc7c0; border-radius: 5px; outline: 0; }
.login-form input:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .group-editor input:focus, .group-editor select:focus, .step-editor-row input:focus, .step-editor-row textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,88,64,.1); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 50px; }
.password-field button { position: absolute; top: 0; right: 0; width: 46px; height: 44px; display: grid; place-items: center; border: 0; color: var(--muted); background: transparent; }
.form-error { padding: 11px 13px; color: #842f25; background: #f9e7e3; border: 1px solid #edc7c0; border-radius: 5px; font-size: 13px; line-height: 1.4; }
.login-form .button { width: 100%; }
.text-link { display: inline-flex; margin-top: 8px; color: var(--forest); border-bottom: 1px solid var(--forest); font-weight: 800; }
.form-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.form-switch a { color: var(--forest); font-weight: 800; }
.admin-page, .editor-page { padding-block: 55px 90px; }
.admin-heading, .editor-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.admin-heading h1, .editor-header h1 { font-size: 44px; }
.admin-heading p, .editor-header p { margin: 8px 0 0; color: var(--muted); }
.admin-actions, .editor-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #bfc7c0; border-radius: 6px; background: transparent; }
.role-notice { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 9px 11px; color: var(--forest); background: #e5eee7; border-radius: 5px; font-size: 12px; }
.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 13px 18px; color: var(--muted); background: #eff1ed; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.admin-table td { padding: 17px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.admin-table td:first-child strong, .admin-table td:first-child small { display: block; }
.admin-table td:first-child small { margin-top: 4px; color: var(--muted); }
.status { display: inline-block; padding: 5px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.status-published { color: #24563e; background: #deeee3; }
.status-draft { color: #695823; background: #f5eccf; }
.status-archived { color: #626a65; background: #e7e9e7; }
.status-reader { color: #4f5b54; background: #e8ebe9; }
.status-editor { color: #24563e; background: #deeee3; }
.status-author { color: #24563e; background: #deeee3; }
.status-admin { color: #7b341f; background: #f5e3d9; }
.date-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.row-actions a, .compact-actions button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.row-actions svg, .compact-actions svg { width: 16px; }
.subtle-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 15px; color: var(--muted); font-size: 13px; font-weight: 750; }
.editor-error { margin-bottom: 20px; }
.editor-section { margin-bottom: 22px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.editor-section-title { display: flex; gap: 15px; margin-bottom: 28px; }
.editor-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--forest); border-radius: 5px; font-size: 12px; font-weight: 850; }
.editor-section-title h2 { margin: 0; font-size: 21px; }
.editor-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid textarea { resize: vertical; }
.group-editor-list { display: grid; gap: 18px; margin-bottom: 15px; }
.group-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.group-editor-head { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 12px; background: #eff1ed; }
.group-editor-head > svg { color: var(--muted); }
.group-editor-head > input { min-height: 40px; font-weight: 800; }
.compact-actions { display: flex; gap: 4px; }
.compact-actions button.danger { color: var(--red); }
.ingredient-editor-head, .ingredient-editor-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 110px 90px minmax(150px, 1fr) minmax(160px, 1.2fr) 114px; gap: 8px; align-items: center; padding: 8px 12px; }
.ingredient-editor-head { padding-top: 13px; padding-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ingredient-editor-row { border-bottom: 1px solid #edf0ed; }
.ingredient-editor-row input, .ingredient-editor-row select { min-height: 40px; font-size: 13px; }
.add-row-button { display: inline-flex; align-items: center; gap: 6px; margin: 10px 12px 12px; padding: 7px 4px; border: 0; color: var(--forest); background: transparent; font-size: 13px; font-weight: 800; }
.step-editor-list { display: grid; gap: 9px; margin-bottom: 15px; }
.step-editor-row { display: grid; grid-template-columns: 38px 1fr 120px 114px; gap: 10px; align-items: center; padding: 10px; background: #f4f5f2; border-radius: 6px; }
.step-editor-row textarea { resize: vertical; }
.step-editor-row label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.step-editor-row label span { display: block; margin-bottom: 4px; }
.editor-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.image-upload-field { display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: center; margin-top: 5px; padding: 18px; background: #f2f4f0; border: 1px solid var(--line); border-radius: 6px; }
.image-upload-preview { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: #dfe4df; border-radius: 5px; font-size: 13px; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-copy > strong { display: block; font-size: 16px; }
.image-upload-copy > p { max-width: 620px; margin: 7px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.image-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.image-upload-actions label { margin: 0; }
.image-upload-actions input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.image-upload-status { display: block; min-height: 18px; margin-top: 10px; color: var(--forest); font-size: 12px; font-weight: 750; }

.account-page { min-height: calc(100svh - 66px); padding-block: 58px 90px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.account-heading h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 46px; font-weight: 500; }
.account-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.account-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(380px, 1.25fr); gap: 22px; align-items: start; }
.profile-panel, .password-panel { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 25px; color: #fff; background: var(--forest); border-radius: 50%; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; }
.profile-panel dl { margin: 0 0 26px; }
.profile-panel dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-panel dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.profile-panel dd { margin: 0; overflow-wrap: anywhere; }
.profile-panel .button { width: 100%; }
.account-hint { margin: 0; padding: 12px; color: var(--muted); background: #f0f2ef; border-radius: 5px; font-size: 13px; line-height: 1.5; }
.password-panel h2 { margin: 0 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 500; }
.password-panel > p { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.password-panel label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 17px; color: #414d45; font-size: 13px; font-weight: 750; }
.password-panel input { min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #bfc7c0; border-radius: 5px; outline: 0; }
.password-panel input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,88,64,.1); }
.access-notice { margin-bottom: 20px; padding: 13px 15px; color: #49564e; background: #e9efea; border-left: 3px solid var(--forest); font-size: 13px; line-height: 1.5; }
.access-table select { min-width: 145px; height: 38px; padding: 0 8px; border: 1px solid #bfc7c0; border-radius: 5px; background: #fff; }
.access-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.access-toggle input { width: 18px; height: 18px; accent-color: var(--forest); }
.compact-save { min-height: 38px; padding-inline: 12px; }
.access-summary { color: var(--muted); font-size: 13px; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { from { opacity: .7; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  .recipe-columns { grid-template-columns: 1fr; gap: 55px; }
  .recipe-columns .steps-section { max-width: 720px; }
  .auth-page { grid-template-columns: 1fr 390px; gap: 45px; }
  .ingredient-editor-head { display: none; }
  .ingredient-editor-row { grid-template-columns: 1.4fr 100px 90px; padding-block: 12px; }
  .ingredient-editor-row > :nth-child(4), .ingredient-editor-row > :nth-child(5) { grid-column: span 1; }
  .ingredient-editor-row > .compact-actions { justify-self: end; }
  .shopping-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
}

@media (max-width: 720px) {
  .page-width { width: min(100% - 30px, 1180px); }
  .site-header { height: 60px; }
  .header-inner { width: calc(100% - 28px); }
  .brand { font-size: 16px; }
  .top-nav { gap: 14px; }
  .library-hero { height: 430px; min-height: 400px; }
  .library-hero > img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,18,13,.88) 0%, rgba(9,18,13,.56) 58%, rgba(9,18,13,.15) 100%); }
  .hero-content { justify-content: flex-end; padding-bottom: 48px; }
  .hero-content h1 { font-size: 45px; }
  .hero-content > p:not(.eyebrow) { margin: 18px 0 22px; font-size: 16px; }
  .recipe-workspace { padding-block: 50px 65px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h2, .portion-panel h2, .section-title-row h2, .steps-section h2 { font-size: 30px; }
  .result-count { padding-top: 24px; }
  .filter-bar { grid-template-columns: 1fr; margin-top: 25px; }
  .recipe-row { grid-template-columns: 105px 1fr; gap: 16px; align-items: start; }
  .recipe-copy h3 { font-size: 21px; }
  .recipe-copy > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .meta-line { flex-direction: column; gap: 5px; }
  .row-arrow { display: none; }
  .detail-visual { height: 67svh; min-height: 460px; }
  .detail-visual img { object-position: 63% center; }
  .visual-copy { bottom: 44px; }
  .visual-copy h1 { font-size: 43px; }
  .visual-copy p { font-size: 15px; }
  .portion-panel { flex-direction: column; align-items: stretch; margin-top: -20px; padding: 24px; }
  .portion-control { align-self: stretch; grid-template-columns: 54px 1fr 54px; }
  .recipe-meta-band { flex-direction: column; gap: 11px; padding-inline: 3px; }
  .recipe-columns { padding-top: 48px; }
  .ingredient-row { align-items: flex-start; }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions .button:first-child { width: 100%; }
  .shopping-bridge { align-items: stretch; flex-direction: column; gap: 24px; margin-top: 46px; }
  .shopping-bridge-actions { min-width: 0; }
  .shopping-page { min-height: calc(100svh - 60px); padding-block: 42px 65px; }
  .shopping-heading { align-items: flex-start; flex-direction: column; }
  .shopping-heading h1 { font-size: 39px; }
  .shopping-layout { grid-template-columns: 1fr; gap: 32px; }
  .shopping-item { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 11px; }
  .shopping-item b { grid-column: 2; grid-row: 2; margin-top: -9px; }
  .shopping-remove { grid-column: 3; grid-row: 1 / span 2; }
  .shopping-tools { padding: 23px; }
  .cook-header { padding-inline: 14px; }
  .cook-header strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cook-stage { width: calc(100% - 28px); padding-top: 35px; }
  .cook-stage-heading h1 { font-size: 32px; }
  .cook-checklist > button { grid-template-columns: 29px 1fr; }
  .cook-checklist b { grid-column: 2; }
  .single-step h1 { font-size: 31px; }
  .step-navigation { width: 100%; }
  .step-navigation .button { min-width: 0; flex: 1; }
  .auth-page { grid-template-columns: 1fr; gap: 25px; padding-block: 45px; }
  .auth-copy h1, .admin-heading h1, .editor-header h1 { font-size: 38px; }
  .auth-copy > p:last-child { font-size: 15px; }
  .login-form { padding: 25px; }
  .account-heading { align-items: flex-start; flex-direction: column; }
  .account-layout { grid-template-columns: 1fr; }
  .account-heading h1 { font-size: 38px; }
  .admin-heading, .editor-header { align-items: flex-start; flex-direction: column; }
  .admin-actions, .editor-actions { width: 100%; }
  .admin-actions .button, .editor-actions .button { flex: 1; }
  .admin-table { min-width: 740px; }
  .editor-section { padding: 20px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .group-editor-head { grid-template-columns: 1fr auto; }
  .group-editor-head > svg { display: none; }
  .ingredient-editor-row { grid-template-columns: 1fr 90px; }
  .ingredient-editor-row > :nth-child(3), .ingredient-editor-row > :nth-child(4), .ingredient-editor-row > :nth-child(5) { grid-column: span 2; }
  .ingredient-editor-row > .compact-actions { grid-column: span 2; justify-self: stretch; justify-content: flex-end; }
  .step-editor-row { grid-template-columns: 38px 1fr; align-items: start; }
  .step-editor-row label, .step-editor-row .compact-actions { grid-column: 2; }
  .editor-footer .button { flex: 1; }
  .image-upload-field { grid-template-columns: 1fr; }
  .image-upload-preview { max-width: 100%; }
  .image-upload-actions .button { width: 100%; }
  .top-nav .account-link span:last-child { display: none; }
  .top-nav .account-link { width: 38px; justify-content: center; padding: 0 !important; }
  .top-nav .shopping-link > span:nth-child(2) { display: none; }
  .top-nav .shopping-link { width: 38px; justify-content: center; }
  .shopping-link b { position: absolute; top: -2px; right: -4px; }
}

@media print {
  .site-header, .detail-visual, .portion-panel, .detail-actions { display: none !important; }
  body, .detail-page { background: #fff; }
  .detail-content { width: 100%; padding: 0; }
  .recipe-meta-band { padding-top: 0; }
  .recipe-columns { grid-template-columns: 1fr 1fr; gap: 35px; padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.loading-screen { min-height: calc(100svh - 66px); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loading-screen span { width: 20px; height: 20px; border: 2px solid #c8cfca; border-top-color: var(--forest); border-radius: 50%; animation: spin .7s linear infinite; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 12px 16px; color: #fff; background: var(--forest); border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }

/* v1.1.12: Bring!-Direktimport und öffentlicher Autorenname */
.button-bring { background: #2f9184; color: #fff; border-color: #2f9184; text-decoration: none; justify-content: center; }
.button-bring:hover { background: #267c72; border-color: #267c72; }
.shopping-bridge-actions > small { display: block; max-width: 28rem; color: var(--muted, #66736d); line-height: 1.45; }
.recipe-author { display: block; margin-top: .8rem; color: var(--muted, #66736d); font-weight: 600; }
.author-profile-form { display: grid; gap: .8rem; margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid rgba(23,61,45,.15); }
.author-profile-form label { display: grid; gap: .45rem; font-weight: 700; }
.author-profile-form small { font-weight: 400; line-height: 1.45; color: var(--muted, #66736d); }
@media (max-width: 720px) { .shopping-bridge-actions .button { width: 100%; } }

/* v1.1.13: Autorenanzeige und Rezeptbewertungen */
.recipe-copy h3 a { color: inherit; text-decoration: none; }
.recipe-copy h3 a:hover { color: var(--forest); }
.recipe-thumb { display: block; }
.reaction-controls { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.reaction-controls-compact { margin-top: 12px; }
.reaction-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #c9d0ca; border-radius: 999px; color: #445149; background: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.reaction-button:hover { border-color: var(--forest); transform: translateY(-1px); }
.reaction-button b { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #eef1ed; text-align: center; font-size: 11px; }
.reaction-button.active { color: #fff; background: var(--forest); border-color: var(--forest); }
.reaction-button.active b { color: var(--forest); background: #fff; }
.reaction-dislike.active { background: #7f4038; border-color: #7f4038; }
.reaction-dislike.active b { color: #7f4038; }
.detail-rating { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 6px 28px; border-bottom: 1px solid var(--line); }
.detail-rating h2 { margin: 2px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 500; }
.rating-detail-button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 112px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font-weight: 800; cursor: pointer; }
.rating-detail-button small { color: var(--muted); font-size: 10px; font-weight: 700; }
.rating-detail-button:hover { border-color: var(--forest); }
.reaction-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(9,18,13,.58); backdrop-filter: blur(3px); }
.reaction-modal { position: relative; width: min(760px, 100%); max-height: min(760px, calc(100svh - 44px)); overflow: auto; padding: 34px; background: var(--paper); border-radius: 9px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.reaction-modal h2 { margin: 2px 44px 25px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 500; }
.reaction-modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; cursor: pointer; }
.reaction-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reaction-detail-grid > div { padding: 18px; background: #f2f4f0; border-radius: 6px; }
.reaction-detail-grid h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 13px; font-size: 16px; }
.reaction-detail-grid ul { list-style: none; margin: 0; padding: 0; }
.reaction-detail-grid li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.reaction-detail-grid li:first-child { border-top: 0; }
.reaction-detail-grid li small, .reaction-detail-grid > div > p { color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .reaction-controls-compact { gap: 6px; }
  .reaction-controls-compact .reaction-button { min-height: 35px; padding: 7px 9px; }
  .reaction-controls-compact .reaction-button > span:nth-child(2) { display: none; }
  .detail-rating { align-items: flex-start; flex-direction: column; padding-inline: 3px; }
  .detail-rating .reaction-controls { width: 100%; }
  .detail-rating .reaction-button { flex: 1; justify-content: center; }
  .reaction-detail-grid { grid-template-columns: 1fr; }
  .reaction-modal { padding: 26px 20px; }
}


/* 1.1.18 */
.recipe-row-clickable { cursor: pointer; border-radius: 8px; }
.recipe-row-clickable:focus-visible { outline: 2px solid var(--forest-2); outline-offset: 3px; }
.account-heading-actions { display: flex; align-items: center; gap: 10px; }
.shopping-bridge { margin-top: 18px; margin-bottom: 26px; padding-top: 26px; padding-bottom: 26px; }
@media (max-width: 720px) {
  .account-heading-actions { width: 100%; }
  .account-heading-actions .button { flex: 1; }
}

/* v1.1.22: mobile header clarity */
.shopping-label-mobile { display: none; }
.account-link.is-authenticated { border-color: rgba(23, 61, 45, .34); background: rgba(232, 240, 234, .55); }
.account-link.is-authenticated::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #2f8f5b; }

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 18px); gap: 8px; }
  .brand { min-width: 0; gap: 7px; font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }
  .brand-copy { min-width: 0; line-height: 1; }
  .brand-copy > span { display: block; line-height: 1.05; white-space: nowrap; }
  .brand-version { display: block; margin-top: 4px; font-size: 9px; line-height: 1; white-space: nowrap; }
  .top-nav { gap: 5px; font-size: 12px; white-space: nowrap; }
  .top-nav > a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border-radius: 6px; }
  .top-nav > a:first-child { padding-inline: 5px; }
  .shopping-link { width: auto; gap: 5px; padding-inline: 7px !important; border: 1px solid var(--line); }
  .shopping-link .shopping-icon, .shopping-link .shopping-label { display: none; }
  .shopping-link .shopping-label-mobile { display: inline; }
  .shopping-link b { position: static; min-width: 18px; height: 18px; padding-inline: 4px; font-size: 9px; }
  .top-nav .account-link { width: auto; max-width: 94px; gap: 5px; padding-inline: 7px !important; }
  .top-nav .account-link > span:first-of-type { display: none; }
  .top-nav .account-link span:last-child { display: block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-link.is-authenticated::before { width: 6px; height: 6px; flex-basis: 6px; }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 14px); }
  .brand { gap: 5px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-copy > span { font-size: 14px; }
  .brand-version { font-size: 8px; }
  .top-nav { gap: 3px; font-size: 11px; }
  .top-nav > a { padding-inline: 5px; }
  .top-nav .account-link { max-width: 80px; padding-inline: 5px !important; }
  .top-nav .account-link span:last-child { max-width: 58px; }
}


/* v1.1.23: entspannter mobiler Kopfbereich mit Einkaufswagen */
.shopping-icon { display: inline-grid; place-items: center; }
.shopping-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .site-header { height: 70px; }
  .header-inner { width: calc(100% - 24px); gap: 12px; }
  .brand { gap: 8px; font-size: 16px; flex: 0 1 auto; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-version { font-size: 9px; }
  .top-nav { gap: 10px; margin-left: auto; font-size: 13px; }
  .top-nav > a { min-height: 42px; padding-inline: 8px; }
  .top-nav > a:first-child { padding-inline: 4px; }
  .shopping-link { width: 44px !important; min-width: 44px; padding: 0 !important; border: 1px solid var(--line); }
  .shopping-link .shopping-icon { display: inline-grid; }
  .shopping-link .shopping-icon svg { width: 22px; height: 22px; }
  .shopping-link .shopping-label, .shopping-link .shopping-label-mobile { display: none !important; }
  .shopping-link b { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding-inline: 5px; font-size: 10px; box-shadow: 0 0 0 2px var(--paper); }
  .top-nav .account-link { width: auto; max-width: 112px; min-height: 42px; gap: 7px; padding-inline: 10px !important; }
  .top-nav .account-link span:last-child { max-width: 82px; }
}
@media (max-width: 390px) {
  .header-inner { width: calc(100% - 18px); gap: 8px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-copy > span { font-size: 15px; }
  .top-nav { gap: 6px; font-size: 12px; }
  .top-nav .account-link { max-width: 92px; padding-inline: 8px !important; }
  .top-nav .account-link span:last-child { max-width: 64px; }
}


/* v1.1.26 Profilfotos – feste, runde Darstellungsgrößen */
.account-link.is-authenticated::before { display: none; }
.nav-avatar,
.author-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  flex: 0 0 26px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe9e2;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.nav-avatar img,
.author-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  flex-basis: 28px;
  border: 1px solid rgba(23,61,45,.18);
}
.author-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  min-width: 0;
}
.author-inline .author-avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  flex-basis: 24px;
}
.author-inline-detail .author-avatar {
  width: 27px;
  height: 27px;
  min-width: 27px;
  max-width: 27px;
  flex-basis: 27px;
}
.profile-avatar-photo {
  width: 92px !important;
  height: 92px !important;
  min-width: 92px;
  max-width: 92px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50%;
}
.profile-avatar-photo img {
  width: 92px !important;
  height: 92px !important;
  min-width: 92px;
  max-width: 92px;
  max-height: 92px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}
.profile-photo-editor { padding-bottom: 1.15rem; border-bottom: 1px solid rgba(23,61,45,.15); }
.profile-photo-editor > strong { display: block; margin-bottom: .35rem; }
.profile-photo-editor > p { margin: 0 0 .8rem; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-photo-actions label { margin: 0; }
.profile-photo-actions input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.profile-photo-status { display: block; min-height: 18px; margin-top: 8px; color: var(--forest); font-size: 12px; font-weight: 700; }
.admin-user-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.admin-user-cell > div { min-width: 0; }
.reaction-detail-grid li > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) {
  .top-nav .account-link { max-width: 132px; }
  .top-nav .account-link span:last-child { max-width: 78px; }
  .nav-avatar { width: 26px; height: 26px; min-width: 26px; max-width: 26px; flex-basis: 26px; }
  .meta-line .author-inline .author-avatar { width: 22px; height: 22px; min-width: 22px; max-width: 22px; flex-basis: 22px; }
  .profile-avatar-photo,
  .profile-avatar-photo img { width: 82px !important; height: 82px !important; min-width: 82px; max-width: 82px; max-height: 82px; }
}

/* v1.1.28: Rezeptfoto-Buttons im Editor klar lesbar */
.form-grid .image-upload-actions label.button,
.form-grid .image-upload-actions label.button-primary {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: inherit;
  font-weight: 750;
}
.form-grid .image-upload-actions label.button-primary {
  color: #fff !important;
  background: var(--forest);
}
.form-grid .image-upload-actions label.button-primary:hover {
  color: #fff !important;
  background: var(--forest-2);
}

/* v1.1.29: iPhone-Header zweizeilig und luftig */
.mobile-cart-shortcut { display: none; }

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 112px;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255,254,250,.98);
  }
  .header-inner {
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 52px auto;
    grid-template-rows: 64px 48px;
    align-items: center;
    gap: 0 10px;
    padding: 0 16px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 9px;
    font-size: 17px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: transparent;
  }
  .brand-copy > span {
    max-width: 178px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.05;
  }
  .brand-version { margin-top: 4px; font-size: 9px; }

  .mobile-cart-shortcut {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.72);
  }
  .mobile-cart-shortcut .shopping-icon svg {
    width: 24px;
    height: 24px;
  }
  .mobile-cart-shortcut b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 10px;
    box-shadow: 0 0 0 2px var(--paper);
  }

  .top-nav {
    display: contents;
    margin: 0;
    font-size: 13px;
  }
  .top-nav .account-link {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    max-width: 132px;
    min-height: 46px;
    gap: 8px;
    padding-inline: 9px !important;
    border-radius: 9px;
    background: #eef4ef;
    border-color: #a8b9ae;
  }
  .top-nav .account-link span:last-child {
    display: block;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-nav .account-link > span:first-of-type { display: none; }
  .nav-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    flex-basis: 30px;
  }

  .top-nav .recipes-link,
  .top-nav .shopping-link {
    grid-row: 2;
    min-height: 48px;
    width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px !important;
    border: 0;
    border-top: 1px solid rgba(23,32,28,.08);
    border-radius: 0;
    font-size: 14px;
    font-weight: 750;
  }
  .top-nav .recipes-link { grid-column: 1 / 2; }
  .top-nav .shopping-link { grid-column: 2 / 4; }
  .top-nav .shopping-link .shopping-icon { display: inline-grid; }
  .top-nav .shopping-link .shopping-icon svg { width: 18px; height: 18px; }
  .top-nav .shopping-link .shopping-label { display: inline !important; }
  .top-nav .shopping-link b { display: none !important; }
}

@media (max-width: 390px) {
  .header-inner {
    grid-template-columns: minmax(0,1fr) 48px auto;
    gap: 0 7px;
    padding-inline: 12px;
  }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-copy > span { max-width: 148px; font-size: 16px; }
  .top-nav .account-link { max-width: 116px; padding-inline: 7px !important; }
  .top-nav .account-link span:last-child { max-width: 62px; }
  .mobile-cart-shortcut { width: 44px; height: 44px; }
}

/* v1.1.30: Familiengenuss Startseite – wärmer, familienorientiert, mobile zuerst */
.mobile-menu-toggle { display: none; }
.family-home-hero { height: min(620px, 72svh); min-height: 480px; background: #3b2114; }
.family-home-hero > img { object-position: center 45%; }
.family-home-hero .hero-shade {
  background:
    linear-gradient(180deg, rgba(43,15,10,.04) 0%, rgba(43,15,10,.10) 42%, rgba(43,15,10,.76) 100%),
    linear-gradient(90deg, rgba(43,15,10,.38) 0%, rgba(43,15,10,.08) 58%, rgba(43,15,10,.12) 100%);
}
.family-home-hero .hero-content {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 58px;
}
.family-home-hero .hero-content .eyebrow { margin-bottom: 12px; color: rgba(255,255,255,.86); }
.family-home-hero .hero-content h1 {
  max-width: none;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(58px, 7vw, 96px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.03em;
  text-shadow: 0 3px 22px rgba(28,10,5,.32);
}
.family-home-hero .hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 22px;
  color: #fff8ef;
  font-size: 20px;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(28,10,5,.35);
}
.family-home-hero .family-hero-button {
  min-height: 44px;
  padding-inline: 20px;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 26px rgba(38,14,7,.18);
}

@media (max-width: 720px) {
  body:has(.library-page) { background: #f7f1e8; }
  body:has(.library-page) .site-header {
    position: sticky;
    min-height: calc(68px + env(safe-area-inset-top, 0px));
    height: calc(68px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(135deg, #8f2330, #a82f39 55%, #7f1e2a);
    border-bottom: 0;
    box-shadow: 0 2px 16px rgba(65,16,23,.22);
    backdrop-filter: none;
  }
  body:has(.library-page) .header-inner {
    position: relative;
    width: 100%;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
  }
  body:has(.library-page) .brand {
    position: static;
    display: flex;
    justify-content: center;
    width: auto;
    color: #fff;
    text-align: center;
  }
  body:has(.library-page) .brand-mark { display: none; }
  body:has(.library-page) .brand-copy { align-items: center; }
  body:has(.library-page) .brand-copy > span {
    max-width: none;
    overflow: visible;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
  }
  body:has(.library-page) .brand-version {
    margin-top: 2px;
    color: rgba(255,255,255,.7);
    font-size: 8px;
  }
  body:has(.library-page) .mobile-cart-shortcut { display: none; }
  body:has(.library-page) .mobile-menu-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: transparent;
  }
  body:has(.library-page) .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  body:has(.library-page) .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body:has(.library-page) .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  body:has(.library-page) .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body:has(.library-page) .top-nav {
    position: absolute;
    top: calc(68px + env(safe-area-inset-top, 0px));
    left: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    background: rgba(255,254,250,.98);
    border: 1px solid rgba(95,67,55,.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(45,21,16,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.985);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  body:has(.library-page) .site-header.mobile-menu-open .top-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  body:has(.library-page) .top-nav .recipes-link,
  body:has(.library-page) .top-nav .shopping-link,
  body:has(.library-page) .top-nav .account-link {
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
    min-height: 50px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px !important;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
  }
  body:has(.library-page) .top-nav a + a { border-top: 1px solid rgba(23,32,28,.07); }
  body:has(.library-page) .top-nav .account-link span:last-child { max-width: none; }
  body:has(.library-page) .top-nav .account-link > span:first-of-type { display: none; }
  body:has(.library-page) .top-nav .shopping-link .shopping-label { display: inline !important; }
  body:has(.library-page) .top-nav .shopping-link b {
    position: static;
    display: inline-grid !important;
    margin-left: auto;
  }
  body:has(.library-page) .nav-avatar { width: 30px; height: 30px; }

  .family-home-hero {
    height: min(720px, calc(100svh - 68px));
    min-height: 610px;
    border-radius: 0;
  }
  .family-home-hero > img {
    object-position: center 45%;
    filter: saturate(.96) contrast(1.02);
  }
  .family-home-hero .hero-shade {
    background: linear-gradient(180deg, rgba(50,18,9,.02) 0%, rgba(50,18,9,.08) 42%, rgba(50,18,9,.84) 100%);
  }
  .family-home-hero .hero-content {
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 34px 24px 48px;
    text-align: center;
  }
  .family-home-hero .hero-content .eyebrow { display: none; }
  .family-home-hero .hero-content h1 {
    margin: 0;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(52px, 14vw, 72px);
    line-height: .92;
    font-weight: 500;
    letter-spacing: -.05em;
  }
  .family-home-hero .hero-content > p:not(.eyebrow) {
    margin: 17px 0 24px;
    font-size: 18px;
    line-height: 1.42;
  }
  .family-home-hero .family-hero-button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
  }
  .recipe-workspace {
    padding: 48px 0 86px;
    background: #f7f1e8;
  }
  .recipe-workspace.page-width { width: calc(100% - 36px); }
  .workspace-heading { align-items: flex-end; }
  .workspace-heading h2 { font-size: 34px; line-height: 1.08; }
  .workspace-heading .eyebrow { color: #8f2330; }
  .filter-bar { margin-top: 26px; }
  .search-field, .select-field { border-radius: 14px; background: rgba(255,255,255,.86); }
  .recipe-list { border-top-color: rgba(72,50,42,.12); }
}

/* Familiengenuss 1.1.32: ruhiger, app-artiger iPhone-Startkopf */
@media (max-width: 720px) {
  body:has(.library-page) .site-header {
    background: #962433;
    border-bottom: 0;
    box-shadow: 0 2px 14px rgba(61,18,23,.14);
  }
  body:has(.library-page) .header-inner {
    min-height: 64px;
    padding: 0 18px;
  }
  body:has(.library-page) .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
  }
  body:has(.library-page) .brand-mark,
  body:has(.library-page) .brand-version { display: none; }
  body:has(.library-page) .brand-copy > span {
    color: #fff;
    font-size: 19px;
    letter-spacing: -.01em;
  }
  body:has(.library-page) .mobile-cart-shortcut { display: none !important; }
  body:has(.library-page) .mobile-menu-toggle {
    margin-left: auto;
    border: 0;
    background: transparent;
  }
  body:has(.library-page) .mobile-menu-toggle span { background: #fff; }
  .family-home-hero {
    height: min(690px, calc(100svh - 64px));
    min-height: 590px;
  }
  .family-home-hero > img { object-position: center 48%; }
  .family-home-hero .hero-content { padding-bottom: 56px; }
  .family-home-hero .hero-content h1 { text-shadow: 0 2px 18px rgba(30,10,5,.28); }
  .family-home-hero .hero-content > p:not(.eyebrow) { color: #fff; }
}

/* Familiengenuss 1.1.33: iPhone Hero-Feinschliff + feste App-Navigation */
.mobile-bottom-nav, .mobile-more-sheet { display: none; }
.recipe-favorite { border: 0; background: transparent; color: #8f2330; font-size: 24px; cursor: pointer; }
.recipe-row { grid-template-columns: 165px 1fr 34px 38px; }
@media (max-width: 720px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  body:has(.cook-page) { padding-bottom: 0; }
  .family-home-hero { height: min(610px, calc(88svh - 64px)); min-height: 540px; }
  .family-home-hero > img { object-position: center 40%; }
  .family-home-hero .hero-content { padding: 30px 24px 88px; }
  .family-home-hero .hero-content h1 { font-size: clamp(48px, 13vw, 66px); }
  .family-home-hero .hero-content > p:not(.eyebrow) { margin: 14px 0 20px; }
  .recipe-workspace { padding-bottom: 110px; }
  .recipe-row { grid-template-columns: 92px 1fr 30px; }
  .recipe-row .row-arrow { display: none; }
  .recipe-favorite { align-self: start; padding: 10px 0; }
  .mobile-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
    padding: 7px 4px env(safe-area-inset-bottom, 0px);
    color: #fff; background: rgba(143,35,48,.97); border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 -8px 24px rgba(65,16,23,.16); backdrop-filter: blur(16px);
  }
  body:has(.cook-page) > .mobile-bottom-nav { display: none; }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 0 2px; border: 0; color: inherit; background: transparent; font: inherit; font-size: 10px; font-weight: 700; text-decoration: none;
  }
  .mobile-nav-icon { height: 25px; display: grid; place-items: center; font-size: 24px; line-height: 1; }
  .mobile-nav-add { position: relative; margin-top: -21px; }
  .mobile-add-circle { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1px; border: 2px solid #fff; border-radius: 50%; background: #962433; box-shadow: 0 5px 16px rgba(62,12,20,.28); font-size: 36px; font-weight: 300; line-height: 1; }
  .mobile-more-sheet { position: fixed; inset: 0; z-index: 90; display: block; }
  .mobile-more-sheet[hidden] { display: none; }
  .mobile-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(26,16,12,.42); }
  .mobile-sheet-panel { position: absolute; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 10px 18px 18px; background: #fffefa; border-radius: 22px; box-shadow: 0 24px 60px rgba(35,16,14,.3); }
  .mobile-sheet-handle { width: 42px; height: 5px; margin: 0 auto 16px; border-radius: 5px; background: #d6ccc4; }
  .mobile-sheet-panel > strong { display: block; padding: 4px 4px 12px; font-size: 19px; }
  .mobile-sheet-panel > a { display: block; padding: 15px 4px; border-top: 1px solid #eee6df; color: #18211d; font-weight: 750; text-decoration: none; }
  .mobile-sheet-version { margin-top: 8px; padding: 13px 4px 2px; border-top: 1px solid #eee6df; color: #776b64; font-size: 12px; }
}


/* Familiengenuss 1.1.34: kompakter Familien-Hero + Profilavatar im mobilen Kopf */
.mobile-profile-link { display: none; }
@media (max-width: 720px) {
  body:has(.library-page) .mobile-menu-toggle { display: none !important; }
  body:has(.library-page) .top-nav { display: none !important; }
  body:has(.library-page) .mobile-profile-link {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
  }
  .mobile-profile-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
    box-shadow: 0 2px 9px rgba(56,14,20,.22);
  }
  .mobile-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .mobile-profile-status {
    position: absolute;
    right: 1px;
    bottom: 3px;
    width: 10px;
    height: 10px;
    border: 2px solid #962433;
    border-radius: 50%;
    background: #43a56f;
  }
  .family-home-hero {
    height: 390px;
    min-height: 390px;
    max-height: 390px;
  }
  .family-home-hero > img {
    object-position: center 49%;
  }
  .family-home-hero .hero-content {
    padding: 20px 20px 24px;
  }
  .family-home-hero .hero-content h1 {
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: .94;
  }
  .family-home-hero .hero-content > p:not(.eyebrow) {
    margin: 10px 0 14px;
    font-size: 16px;
    line-height: 1.34;
  }
  .family-home-hero .family-hero-button {
    min-height: 44px;
    padding: 0 20px;
  }
}


/* v1.1.36: klare App-Startseite. Navigation unten ist die einzige Hauptnavigation. */
@media (max-width: 760px) {
  body:has(.family-start-page) { overflow: hidden; }
  body:has(.family-start-page) main { min-height: 0; }
  .family-start-page { height: calc(100svh - 68px - 92px - env(safe-area-inset-bottom, 0px)); overflow: hidden; }
  .family-start-page .family-home-only { height: 100%; min-height: 0; }
  .family-start-page .family-home-only .hero-content { padding-bottom: 52px; }
  .recipe-browser-page { padding-top: 18px; padding-bottom: 120px; }
  .recipe-browser-page .recipe-workspace { padding-top: 22px; }
}

/* Familiengenuss 1.1.36: Startbild wie im urspruenglichen Entwurf bis zur unteren Navigation */
@media (max-width: 760px) {
  .family-start-page .family-home-only {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  .family-start-page .family-home-hero {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  .family-start-page .family-home-hero > img {
    object-fit: cover;
    object-position: center center;
  }
  .family-start-page .family-home-hero .hero-content {
    justify-content: flex-end;
    padding: 24px 24px 74px;
  }
  .family-start-page .family-home-hero .hero-content h1 {
    font-size: clamp(48px, 13vw, 66px);
  }
  .family-start-page .family-home-hero .hero-content > p:not(.eyebrow) {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.4;
  }
}

/* Familiengenuss 1.1.37: mobile Startseite exakt nach freigegebener Referenz */
@media (max-width: 760px) {
  body:has(.family-start-page) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: #2d170f;
  }
  .family-start-page {
    height: calc(100svh - 64px - 68px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    overflow: hidden;
    background: #2d170f;
  }
  .family-start-page .family-home-only,
  .family-start-page .family-home-hero {
    height: 100%;
    min-height: 0;
    max-height: none;
    background: #2d170f;
  }
  .family-start-page .family-home-hero > img {
    content: url('/familiengenuss-mobile-hero-v137.jpg');
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: none;
    animation: none;
  }
  /* Titel, Unterzeile, Herz und Verlauf sind im freigegebenen Referenz-Hero bereits enthalten. */
  .family-start-page .family-home-hero .hero-shade,
  .family-start-page .family-home-hero .hero-content {
    display: none !important;
  }
}

/* Familiengenuss 1.1.38: vollständige Desktop-Navigation passend zur mobilen App-Leiste */
@media (min-width: 721px) {
  .desktop-app-nav {
    gap: 10px;
    margin-left: auto;
    font-size: 13px;
  }
  .desktop-app-nav > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  }
  .desktop-app-nav > a:hover {
    color: #7f2030;
    background: rgba(150,36,51,.07);
  }
  .desktop-app-nav .desktop-add-link {
    padding-inline: 14px;
    color: #fff;
    background: #962433;
    box-shadow: 0 3px 10px rgba(82,20,29,.14);
  }
  .desktop-app-nav .desktop-add-link:hover {
    color: #fff;
    background: #7f1f2c;
    transform: translateY(-1px);
  }
  .desktop-app-nav .desktop-add-link > span:first-child {
    font-size: 18px;
    line-height: 1;
  }
  .desktop-app-nav .shopping-link {
    padding-inline: 10px;
  }
  .desktop-app-nav .account-link {
    border-radius: 999px;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .header-inner { width: min(100% - 24px, 1280px); }
  .desktop-app-nav { gap: 4px; font-size: 12px; }
  .desktop-app-nav > a { padding-inline: 7px; }
  .desktop-app-nav .desktop-add-link { padding-inline: 9px; }
  .desktop-app-nav .shopping-label { display: none; }
  .desktop-app-nav .shopping-link { width: 40px; padding: 0; }
  .desktop-app-nav .account-link span:last-child { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Familiengenuss 1.1.39: freigegebene Vollbild-Webansicht */
@media (min-width: 761px) {
  body:has(.family-start-page) {
    overflow: hidden;
    background: #2d170f;
  }
  body:has(.family-start-page) .site-header {
    height: 72px;
    background: linear-gradient(135deg, #8f2330 0%, #a52b39 55%, #7f1e2a 100%);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 2px 18px rgba(70,16,24,.24);
    backdrop-filter: none;
  }
  body:has(.family-start-page) .header-inner {
    width: min(1400px, calc(100% - 40px));
  }
  body:has(.family-start-page) .brand,
  body:has(.family-start-page) .brand-version,
  body:has(.family-start-page) .desktop-app-nav > a {
    color: #fff;
  }
  body:has(.family-start-page) .brand-version { color: rgba(255,255,255,.72); }
  body:has(.family-start-page) .brand-mark {
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 5px rgba(47,8,15,.18);
  }
  body:has(.family-start-page) .desktop-app-nav > a {
    min-height: 42px;
    border: 1px solid transparent;
  }
  body:has(.family-start-page) .desktop-app-nav > a:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.14);
  }
  body:has(.family-start-page) .desktop-app-nav .desktop-add-link {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 4px 16px rgba(62,10,18,.16);
  }
  body:has(.family-start-page) .desktop-app-nav .desktop-add-link:hover {
    background: rgba(255,255,255,.15);
  }
  body:has(.family-start-page) .desktop-app-nav .shopping-icon svg {
    stroke: currentColor;
  }
  body:has(.family-start-page) .desktop-app-nav .shopping-link b {
    color: #8f2330;
    background: #f6e5df;
  }
  body:has(.family-start-page) .desktop-app-nav .account-link {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
  }
  .family-start-page {
    height: calc(100svh - 72px);
    min-height: 620px;
    overflow: hidden;
    background: #2d170f;
  }
  .family-start-page .family-home-only,
  .family-start-page .family-home-hero {
    height: 100%;
    min-height: 0;
    max-height: none;
    background: #2d170f;
  }
  .family-start-page .family-home-hero > img {
    content: url('/familiengenuss-desktop-hero-v139.jpg');
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: none;
    filter: none;
  }
  /* Text und Verlauf sind in der freigegebenen Desktop-Referenz bereits enthalten. */
  .family-start-page .family-home-hero .hero-shade,
  .family-start-page .family-home-hero .hero-content {
    display: none !important;
  }
}

/* Familiengenuss 1.1.41: Desktop-PWA integriert die Windows-Titelleiste in die Bordeaux-Kopfzeile */
@media (min-width: 761px) and (display-mode: window-controls-overlay) {
  body:has(.family-start-page) .site-header {
    height: max(72px, env(titlebar-area-height, 0px));
    padding-top: env(titlebar-area-y, 0px);
    -webkit-app-region: drag;
  }
  body:has(.family-start-page) .header-inner {
    width: min(1400px, calc(100% - 40px));
    max-width: env(titlebar-area-width, 1400px);
    margin-left: max(20px, env(titlebar-area-x, 0px));
    margin-right: auto;
  }
  body:has(.family-start-page) .brand,
  body:has(.family-start-page) .desktop-app-nav,
  body:has(.family-start-page) .desktop-app-nav a,
  body:has(.family-start-page) .desktop-app-nav button {
    -webkit-app-region: no-drag;
  }
  .family-start-page {
    height: calc(100svh - max(72px, env(titlebar-area-height, 0px)));
  }
}

/* Familiengenuss 1.1.42 – durchgängiges Bordeaux-Appdesign */
:root {
  --wine: #9f2434;
  --wine-dark: #7e1726;
  --wine-soft: #f6e9e7;
  --warm-paper: #fffaf4;
  --warm-cream: #f7f1e8;
  --warm-line: #eadfd3;
  --warm-ink: #241b18;
  --warm-muted: #786d66;
  --family-shadow: 0 12px 32px rgba(87, 37, 25, .10);
}
body:not(:has(.family-start-page)) { background: var(--warm-cream); color: var(--warm-ink); }
body:not(:has(.family-start-page)) .site-header {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 4px 20px rgba(83,17,27,.18);
}
body:not(:has(.family-start-page)) .brand,
body:not(:has(.family-start-page)) .brand-version,
body:not(:has(.family-start-page)) .desktop-app-nav > a { color: #fff; }
body:not(:has(.family-start-page)) .brand-version { color: rgba(255,255,255,.72); }
body:not(:has(.family-start-page)) .brand-mark { background: rgba(255,255,255,.94); }
body:not(:has(.family-start-page)) .desktop-app-nav > a { border-radius: 999px; padding: 10px 13px; }
body:not(:has(.family-start-page)) .desktop-app-nav > a:hover { color: #fff; background: rgba(255,255,255,.11); }
body:not(:has(.family-start-page)) .desktop-app-nav .desktop-add-link { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); }
body:not(:has(.family-start-page)) .desktop-app-nav .account-link { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
body:not(:has(.family-start-page)) .shopping-link b { color: var(--wine-dark); background: #fff1ea; }
.button-primary { background: var(--wine); border-radius: 12px; }
.button-primary:hover { background: var(--wine-dark); }
.button-secondary { border-radius: 12px; border-color: #d8c8bc; background: rgba(255,255,255,.58); }
.eyebrow.dark { color: var(--wine); }
.text-button { color: var(--wine); border-color: var(--wine); }

.app-section-page { min-height: calc(100svh - 66px); background: var(--warm-cream); }
.app-section-shell { padding-block: 54px 84px; }
.app-section-heading { align-items: flex-end; padding-bottom: 22px; }
.app-section-heading h1,
.workspace-heading h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4vw, 54px); font-weight: 500; }
.app-section-heading p:last-child { margin: 8px 0 0; color: var(--warm-muted); }
.result-count { color: var(--warm-muted); font-weight: 700; }
.family-filter-bar { grid-template-columns: minmax(0,1fr) 220px; margin: 26px 0 14px; }
.search-field, .select-field { border-color: var(--warm-line); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 3px 14px rgba(72,35,23,.03); }
.search-field:focus-within, .select-field:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(159,36,52,.10); }
.category-chip-row { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 20px; }
.category-chip-row::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border: 1px solid var(--warm-line); border-radius: 999px; background: rgba(255,255,255,.72); color: #564a44; font-size: 13px; font-weight: 750; }
.category-chip.active { color: #fff; border-color: var(--wine); background: var(--wine); box-shadow: 0 5px 14px rgba(159,36,52,.18); }

.recipe-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; padding-top: 5px; }
.recipe-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--warm-line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--family-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(87,37,25,.14); }
.recipe-card-image { position: relative; display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #e8ded1; }
.recipe-card-image img { width: 100%; height: 100%; transition: transform .35s ease; }
.recipe-card:hover .recipe-card-image img { transform: scale(1.035); }
.recipe-card-body { padding: 17px 17px 18px; }
.recipe-card-top { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recipe-card .category-label { margin: 0; color: var(--wine); font-size: 10px; letter-spacing: 1px; }
.recipe-card h3 { margin: 7px 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; line-height: 1.12; font-weight: 500; }
.recipe-card-body > p { min-height: 40px; margin: 0 0 13px; color: var(--warm-muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; color: #776b64; font-size: 11px; }
.recipe-card-meta .author-inline { max-width: 125px; }
.recipe-card-meta .author-inline > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-favorite { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--wine); background: #fff4f2; font-size: 20px; }
.recipe-favorite.active { color: #fff; background: var(--wine); }

.category-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; padding-top: 16px; }
.category-card { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--warm-line); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: var(--family-shadow); text-align: center; transition: transform .2s ease, border-color .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(159,36,52,.32); }
.category-card-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px; color: var(--wine); background: var(--wine-soft); font-size: 31px; }
.category-card strong { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; font-weight: 600; }
.category-card small { color: var(--warm-muted); }

/* Rezeptdetail */
.detail-page { background: var(--warm-cream); }
.detail-visual { height: min(500px, 52svh); min-height: 360px; background: #4a211a; }
.detail-shade { background: linear-gradient(0deg, rgba(35,11,11,.76), rgba(35,11,11,.05) 65%), linear-gradient(90deg, rgba(35,11,11,.35), transparent 55%); }
.back-link { border-radius: 999px; background: rgba(126,23,38,.78); }
.visual-copy h1 { font-size: clamp(44px, 5vw, 66px); }
.detail-content { padding-bottom: 100px; }
.portion-panel { border: 1px solid var(--warm-line); border-radius: 18px; background: var(--warm-paper); box-shadow: var(--family-shadow); }
.portion-control { border-color: #d8c8bc; border-radius: 13px; }
.portion-control button { color: var(--wine); background: #fbf2ee; }
.portion-control label { border-color: #d8c8bc; }
.recipe-meta-band { border-color: var(--warm-line); }
.portion-badge, .cook-progress { color: var(--wine); background: var(--wine-soft); }
.step-number { background: var(--wine); }
.ingredient-group h3, .step-time { color: var(--wine); }
.ingredient-rows, .ingredient-row, .shopping-bridge, .detail-actions { border-color: var(--warm-line); }
.shopping-bridge { border: 1px solid var(--warm-line); border-radius: 18px; padding: 28px; background: rgba(255,255,255,.72); }
.detail-rating { margin-top: 22px; padding: 26px 28px; border: 1px solid var(--warm-line); border-radius: 18px; background: rgba(255,255,255,.70); }

/* Einkaufsliste */
.shopping-page { background: var(--warm-cream); }
.shopping-heading { border-color: var(--warm-line); }
.shopping-heading h1 { font-size: 48px; }
.shopping-items { border: 0; display: grid; gap: 10px; }
.shopping-item { border: 1px solid var(--warm-line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.88); box-shadow: 0 3px 12px rgba(72,35,23,.035); }
.shopping-item b { color: var(--wine); }
.shopping-item.checked .shopping-check { border-color: var(--wine); background: var(--wine); }
.shopping-tools { border-color: var(--warm-line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--family-shadow); }

/* Konto / Mehr */
.account-page, .admin-page, .editor-page { color: var(--warm-ink); }
.account-page { padding-block: 48px 90px; }
.account-heading, .admin-heading, .editor-header { padding-bottom: 24px; }
.account-heading h1, .admin-heading h1, .editor-header h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.profile-panel, .password-panel, .editor-section, .admin-table-wrap { border: 1px solid var(--warm-line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--family-shadow); }
.profile-avatar { box-shadow: 0 6px 20px rgba(87,37,25,.16); }
.status-author, .status-admin { color: var(--wine-dark); background: var(--wine-soft); }
.author-profile-form input, .password-panel input, .editor-section input, .editor-section select, .editor-section textarea { border-color: #d9ccc1; border-radius: 11px; background: #fffdf9; }
.author-profile-form input:focus, .password-panel input:focus, .editor-section input:focus, .editor-section select:focus, .editor-section textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(159,36,52,.09); outline: none; }
.editor-section-title > span { background: var(--wine); border-radius: 10px; }
.image-upload-field { border-color: var(--warm-line); border-radius: 16px; background: #fbf6ef; }
.admin-table th { color: var(--wine-dark); background: #f7eee7; }
.admin-table td { border-color: var(--warm-line); }
.role-notice, .access-notice { border: 1px solid #ecd7d0; border-radius: 12px; color: #6e2c34; background: #fff1ef; }
.rating-detail-button { border-radius: 10px; }

/* Kochmodus */
.cook-page { background: var(--warm-cream); }
.cook-header { background: linear-gradient(135deg, var(--wine-dark), var(--wine)); color: #fff; border-bottom: 0; }
.cook-header > div span { color: rgba(255,255,255,.72); }
.cook-close { border-color: rgba(255,255,255,.24); color: #fff; }
.cook-progress { color: var(--wine-dark); background: #fff0eb; }
.cook-checklist > button { border-color: var(--warm-line); border-radius: 14px; background: var(--warm-paper); }
.check-box { border-color: #c9b5aa; }
.checked .check-box { background: var(--wine); border-color: var(--wine); }
.cook-checklist b, .step-kicker { color: var(--wine); }
.step-meter span { background: var(--wine); }

/* Mobile: dieselbe App-Sprache wie die Startseite */
@media (max-width: 760px) {
  body:not(:has(.family-start-page)) { padding-bottom: 104px; }
  body:not(:has(.family-start-page)) .site-header { height: 96px; position: sticky; top: 0; }
  body:not(:has(.family-start-page)) .header-inner { width: 100%; padding: env(safe-area-inset-top) 20px 0; }
  body:not(:has(.family-start-page)) .brand { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; font-size: 20px; }
  body:not(:has(.family-start-page)) .brand-mark, body:not(:has(.family-start-page)) .brand-version { display: none; }
  body:not(:has(.family-start-page)) .mobile-profile-link { display: flex; }
  .app-section-page { min-height: calc(100svh - 96px); }
  .app-section-shell { width: min(100% - 28px, 1180px); padding-block: 32px 42px; }
  .app-section-heading { align-items: flex-start; }
  .app-section-heading h1, .workspace-heading h1 { font-size: 36px; }
  .result-count { display: none; }
  .family-filter-bar { grid-template-columns: 1fr 58px; gap: 8px; margin-top: 20px; }
  .family-filter-bar .select-field { padding: 0; justify-content: center; }
  .family-filter-bar .select-field span { margin-left: 18px; }
  .family-filter-bar .select-field select { position: absolute; width: 58px; opacity: 0; }
  .category-chip-row { margin-inline: -1px; padding-bottom: 15px; }
  .recipe-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .recipe-card { display: grid; grid-template-columns: 112px minmax(0,1fr); border-radius: 15px; box-shadow: 0 5px 16px rgba(87,37,25,.07); }
  .recipe-card-image { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .recipe-card-body { padding: 13px 14px; }
  .recipe-card h3 { font-size: 20px; }
  .recipe-card-body > p { display: none; }
  .recipe-card-meta { margin-top: 12px; font-size: 10px; }
  .recipe-card-meta .author-inline { display: none; }
  .category-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .category-card { min-height: 145px; border-radius: 17px; }
  .category-card-icon { width: 54px; height: 54px; font-size: 25px; }
  .category-card strong { font-size: 18px; }
  .detail-visual { height: 40svh; min-height: 310px; }
  .visual-copy { bottom: 30px; }
  .visual-copy h1 { font-size: 43px; }
  .portion-panel { margin-top: -18px; border-radius: 18px; }
  .shopping-bridge, .detail-rating { border-radius: 16px; padding: 22px 18px; }
  .shopping-page, .account-page, .admin-page, .editor-page { width: min(100% - 26px, 1180px); padding-top: 30px; }
  .shopping-layout { grid-template-columns: 1fr; gap: 22px; }
  .shopping-heading h1 { font-size: 39px; }
  .profile-panel, .password-panel, .editor-section { border-radius: 16px; }
  .mobile-more-sheet .mobile-sheet-panel { color: var(--warm-ink); background: var(--warm-paper); }
  .mobile-more-sheet a { border-color: var(--warm-line); }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .recipe-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}


/* v1.1.43 – KI-Rezeptassistent */
.ai-recipe-assistant{background:linear-gradient(145deg,#fffaf3 0%,#fff 60%,#f8eceb 100%);border:1px solid #ead8d2;box-shadow:0 18px 50px rgba(104,37,39,.08)}
.ai-title>span{background:linear-gradient(135deg,#8f2330,#b33a49);color:#fff;font-size:1.15rem}
.ai-mode-tabs{display:flex;gap:.65rem;flex-wrap:wrap;margin:1.4rem 0 1rem;padding:.35rem;background:#f4ebe6;border-radius:16px;width:max-content;max-width:100%}
.ai-mode-tabs button{border:0;background:transparent;color:#604f48;font:inherit;font-weight:800;padding:.8rem 1rem;border-radius:12px;cursor:pointer}
.ai-mode-tabs button.active{background:#8f2330;color:#fff;box-shadow:0 5px 18px rgba(143,35,48,.2)}
.ai-assistant-body{border:1px dashed #d8bdb5;border-radius:18px;padding:1.2rem;background:rgba(255,255,255,.72)}
.ai-photo-input{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:1rem;align-items:stretch}
.ai-photo-drop{min-height:150px;border:2px dashed #c9aaa1;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.2rem;cursor:pointer;background:#fffdf9}
.ai-photo-drop input{display:none}.ai-photo-drop strong{font-size:1.02rem;margin:.35rem 0}.ai-photo-drop small{color:#756861;max-width:420px}.ai-photo-icon{font-size:2rem}
.ai-photo-preview{width:180px;height:150px;object-fit:cover;border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.ai-hint-field,.ai-big-input{display:flex;flex-direction:column;gap:.45rem;font-weight:800;margin-top:1rem}.ai-hint-field textarea,.ai-big-input textarea,.ai-big-input input{font:inherit;font-weight:500;border:1px solid #d9c4ba;border-radius:13px;padding:.9rem 1rem;background:#fff}
.ai-big-input input{font-size:1.08rem}.ai-help{color:#756861;margin:.75rem 0 0}.ai-speech-row{display:flex;gap:.8rem;align-items:center;margin-top:.9rem}.ai-speech-row small{color:#756861}
.ai-assistant-actions{display:flex;align-items:center;gap:1rem;margin-top:1rem}.ai-status{color:#735f57;font-weight:700}
.ai-result{margin-top:1rem;background:#fff;border:1px solid #dfc9c1;border-radius:18px;padding:1.25rem;box-shadow:0 12px 30px rgba(73,39,34,.08)}
.ai-result-head h3{font-family:inherit;font-size:1.5rem;margin:.35rem 0}.ai-result-head p{margin:0;color:#675852}.ai-confidence{display:inline-flex;padding:.3rem .65rem;border-radius:999px;font-weight:900;font-size:.78rem}.ai-confidence.high{background:#e0f2e6;color:#22683b}.ai-confidence.medium{background:#fff0c9;color:#8b6505}.ai-confidence.low{background:#f8d9d9;color:#8a2424}
.ai-alternatives{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1rem}.ai-alternatives button{border:1px solid #dbc2ba;background:#fff9f4;border-radius:999px;padding:.45rem .75rem;cursor:pointer}
.ai-draft-summary{display:flex;gap:.75rem;flex-wrap:wrap;margin:1rem 0}.ai-draft-summary span{background:#f7efea;border-radius:12px;padding:.65rem .85rem;color:#594943}.ai-draft-summary b{color:#8f2330}
.ai-result-actions{display:flex;gap:.7rem;flex-wrap:wrap}.ai-disclaimer{font-size:.85rem;color:#7a6962;margin:.8rem 0 0}
@media(max-width:700px){.ai-mode-tabs{width:100%;display:grid;grid-template-columns:1fr}.ai-photo-input{grid-template-columns:1fr}.ai-photo-preview{width:100%;height:190px}.ai-assistant-actions{align-items:flex-start;flex-direction:column}.ai-speech-row{align-items:flex-start;flex-direction:column}}

/* v1.1.44 – mobile Kopfzeile vereinfachen, Kategorien als Stammdaten */
.category-master-field { display: grid; gap: 10px; }
.category-master-field > label { display: grid; gap: 7px; font-weight: 750; }
.category-master-field > small { color: #796b64; line-height: 1.45; }
.category-custom-field.is-hidden { display: none; }
.category-master-field select,
.category-master-field input { width: 100%; border: 1px solid #d9ccc1; border-radius: 11px; background: #fffdf9; min-height: 44px; padding: 0 13px; font: inherit; }
.category-master-field select:focus,
.category-master-field input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(159,36,52,.09); outline: none; }

@media (max-width: 760px) {
  /* Auf allen Inhaltsseiten nur Markenname + Profil. Navigation liegt unten. */
  body:not(:has(.family-start-page)) .site-header {
    height: 96px !important;
    min-height: 96px !important;
    padding: env(safe-area-inset-top, 0px) 0 0 !important;
    background: linear-gradient(135deg, var(--wine-dark), var(--wine)) !important;
    border: 0 !important;
  }
  body:not(:has(.family-start-page)) .header-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 96px !important;
    padding: 0 18px !important;
  }
  body:not(:has(.family-start-page)) .desktop-app-nav,
  body:not(:has(.family-start-page)) .top-nav,
  body:not(:has(.family-start-page)) .mobile-cart-shortcut {
    display: none !important;
  }
  body:not(:has(.family-start-page)) .brand {
    position: static !important;
    transform: none !important;
    display: flex !important;
    color: #fff !important;
    font-size: 20px !important;
    margin: 0 auto !important;
    max-width: calc(100% - 118px);
  }
  body:not(:has(.family-start-page)) .brand-copy > span {
    max-width: 100% !important;
    font-size: 20px !important;
  }
  body:not(:has(.family-start-page)) .brand-mark,
  body:not(:has(.family-start-page)) .brand-version { display: none !important; }
  body:not(:has(.family-start-page)) .mobile-profile-link {
    display: flex !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 3;
  }
  body:not(:has(.family-start-page)) .mobile-profile-avatar {
    width: 46px !important;
    height: 46px !important;
    border: 2px solid rgba(255,255,255,.86) !important;
    box-shadow: 0 5px 16px rgba(63,11,20,.2);
  }
  body:not(:has(.family-start-page)) .mobile-profile-status {
    right: 1px !important;
    bottom: 1px !important;
  }
  .editor-page { padding-top: 24px !important; }
  .editor-header { gap: 18px; }
  .editor-header h1 { font-size: 42px; }
  .editor-actions { width: 100%; }
  .editor-actions .button { width: 100%; justify-content: center; }
  .category-master-field { grid-column: auto; }
}

/* v1.1.48: Bewertungen wieder direkt auf den Rezeptkacheln */
.recipe-card .reaction-controls-compact { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--warm-line); flex-wrap: nowrap; }
.recipe-card .reaction-controls-compact .reaction-button { min-width: 0; min-height: 32px; padding: 6px 8px; font-size: 10px; gap: 5px; }
.recipe-card .reaction-controls-compact .reaction-button b { min-width: 18px; padding: 1px 5px; font-size: 10px; }
@media (max-width: 700px) {
  .recipe-card .reaction-controls-compact { margin-top: 10px; padding-top: 9px; gap: 6px; }
  .recipe-card .reaction-controls-compact .reaction-button { flex: 1; justify-content: center; min-height: 30px; padding: 5px 6px; }
  .recipe-card .reaction-controls-compact .reaction-button > span:nth-child(2) { display: none; }
}
