*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #17343a;
  --muted: #60777a;
  --paper: #fffdf9;
  --canvas: #f3f1ea;
  --line: #dce4df;
  --teal: #0f5d63;
  --teal-2: #16828a;
  --teal-soft: #e5f3f1;
  --coral: #dc765d;
  --coral-soft: #fbece7;
  --gold: #d3a340;
  --gold-soft: #fbf3de;
  --sage: #71927d;
  --sage-soft: #e9f0eb;
  --blue: #527f9a;
  --shadow: 0 18px 50px rgba(29, 61, 61, .10);
  --shadow-sm: 0 6px 20px rgba(29, 61, 61, .08);
  --radius: 24px;
  --radius-sm: 15px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(232, 246, 242, .8), transparent 30rem), var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(22, 130, 138, .25); outline-offset: 2px; }
.modal-open { overflow: hidden; }

.app-header { position: relative; min-height: 202px; color: white; overflow: hidden; background: radial-gradient(circle at 84% 12%, rgba(247,215,126,.30) 0 5rem, transparent 5.1rem), radial-gradient(circle at 71% 130%, rgba(117,214,207,.28) 0 14rem, transparent 14.1rem), linear-gradient(125deg,#0a4850 0%,#0f6269 53%,#287f7a 100%); }
.app-header::before,.app-header::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; pointer-events:none; }
.app-header::before { width:310px; height:310px; right:7%; top:-190px; }
.app-header::after { width:190px; height:190px; right:21%; bottom:-145px; }
.header-inner { position: relative; z-index: 1; max-width: 1050px; margin: 0 auto; padding: 40px 28px 52px; }
.eyebrow { margin: 0 0 7px; color: rgba(255,255,255,.78); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal-2); }
.brand-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand-lockup { display:flex; align-items:center; gap:20px; min-width:0; }
.brand-mark { display:grid; place-items:center; width:74px; height:74px; flex:none; padding:9px; border:1px solid rgba(255,255,255,.2); border-radius:23px; background:rgba(255,255,255,.12); box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 14px 35px rgba(3,42,45,.16); backdrop-filter:blur(8px); }
.brand-mark img { width:100%; height:100%; border-radius:17px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem,5vw,3.7rem); line-height:.98; letter-spacing:-.04em; }
h1 span { color:#95e3dc; }
.header-sub { margin:8px 0 0; color:rgba(255,255,255,.82); font-size:.93rem; }
.install-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; flex:none; padding:10px 17px; border:1px solid rgba(255,255,255,.7); border-radius:999px; color:var(--teal); background:rgba(255,253,249,.96); box-shadow:0 12px 28px rgba(3,42,45,.18); cursor:pointer; font-size:.78rem; font-weight:850; transition:.2s ease; }
.install-button:hover { transform:translateY(-2px); background:#fff; box-shadow:0 16px 34px rgba(3,42,45,.24); }
.install-symbol { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; color:white; background:var(--teal); font-size:1rem; line-height:1; }

.top-nav { position: sticky; top: 0; z-index: 100; display:grid; grid-template-columns:repeat(6,1fr); max-width:1050px; margin:-25px auto 0; padding:6px; border:1px solid rgba(255,255,255,.85); border-radius:18px; background:rgba(255,255,255,.97); box-shadow:0 12px 34px rgba(29,61,61,.11); backdrop-filter:blur(16px); }
.nav-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 750; transition: .2s ease; }
.nav-btn span { font-size: 1.05rem; }
.nav-btn:hover { background: #f2f7f5; color: var(--teal); }
.nav-btn.active { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(15,93,99,.25); }

main { width: min(100% - 32px, 1050px); margin: 0 auto; padding: 34px 0 80px; }
.tab { display: none; animation: reveal .25s ease; }
.tab.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.card, .welcome-card { margin-bottom: 22px; border: 1px solid rgba(217,228,222,.9); border-radius: var(--radius); background: rgba(255,253,249,.96); box-shadow: var(--shadow-sm); }
.card { padding: clamp(20px, 4vw, 34px); }
.card h2, .welcome-card h2 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.12; letter-spacing: -.025em; }
.intro { max-width: 760px; margin-bottom: 22px; color: var(--muted); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin-bottom: 0; }
.status-pill, .ai-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 7px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: .82rem; font-weight: 850; }
.ai-badge { min-width: auto; background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: white; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--teal); cursor: pointer; font-size: 1.35rem; transition: .2s ease; }
.icon-button:hover, .icon-button.active { color: white; background: var(--coral); border-color: var(--coral); }

.welcome-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: clamp(24px, 5vw, 42px); color: white; background: linear-gradient(120deg, #0e555b, #14777e); border: 0; box-shadow: var(--shadow); }
.welcome-card p:last-child { margin-bottom: 0; color: rgba(255,255,255,.78); }
.week-ring { position: relative; width: 104px; height: 104px; flex: none; }
.week-ring svg { width: 100%; transform: rotate(-90deg); }
.week-ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(255,255,255,.18); }
.ring-value { stroke: #8ee1d8; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.week-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.quick-card { display: flex; align-items: center; gap: 12px; padding: 18px; min-height: 92px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); text-align: left; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.quick-card strong { line-height: 1.2; }
.quick-card small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.quick-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; font-size: 1.2rem; font-weight: 900; }
.quick-icon.teal { color: var(--teal); background: var(--teal-soft); }
.quick-icon.coral { color: var(--coral); background: var(--coral-soft); }
.quick-icon.gold { color: #9b7018; background: var(--gold-soft); }
.quick-icon.sage { color: var(--sage); background: var(--sage-soft); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.method-grid article { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 17px; background: #f5f7f2; }
.method-grid strong { color: var(--teal); font-family: Georgia, serif; font-size: 2.5rem; line-height: 1; }
.method-grid span { font-size: .9rem; font-weight: 700; line-height: 1.3; }
.tip-card { display: flex; align-items: flex-start; gap: 16px; box-shadow: none; background: var(--gold-soft); border-color: #edd9a4; }
.tip-card p { margin: 5px 0 0; color: #6f633f; }
.tip-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold); color: white; font-family: Georgia, serif; font-weight: 900; }

.habit-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 20px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.habit-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.meal, .habit-check.meal.checked { background: var(--sage); }
.dot.pause, .habit-check.pause.checked { background: var(--blue); }
.dot.water, .habit-check.water.checked { background: var(--teal-2); }
.dot.move, .habit-check.move.checked { background: var(--coral); }
#tracker-grid { display: grid; gap: 13px; }
.week-block { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.week-block.current { border-color: rgba(22,130,138,.45); box-shadow: 0 0 0 3px rgba(22,130,138,.07); }
.week-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px 19px 12px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.week-header > span:first-child { display: flex; flex-direction: column; }
.week-header small { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.week-header strong { font-size: 1rem; }
.week-score { color: var(--teal); font-size: .78rem; font-weight: 800; }
.week-progress, .shopping-progress { height: 6px; margin: 0 19px 12px; overflow: hidden; border-radius: 99px; background: #edf1ef; }
.week-progress i, .shopping-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #56b7ad); transition: width .4s ease; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; padding: 8px 18px 18px; }
.day-card { padding: 8px 5px; border: 1px solid transparent; border-radius: 11px; text-align: center; }
.day-card.today { border-color: rgba(22,130,138,.28); background: var(--teal-soft); }
.day-card > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .67rem; font-weight: 800; }
.day-card > div { display: grid; gap: 4px; }
.habit-check { display: grid; place-items: center; width: 100%; min-height: 24px; padding: 0; border: 1px solid #cfdad5; border-radius: 6px; background: white; color: white; cursor: pointer; font-size: .68rem; font-weight: 900; }
.habit-check.checked { border-color: transparent; }
.danger-zone { margin-top: 22px; text-align: center; }
.text-button { border: 0; background: none; color: #8a9797; cursor: pointer; font-size: .8rem; text-decoration: underline; }

.search-wrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.search-wrap span { color: var(--teal); font-size: 1.35rem; }
.search-wrap input { width: 100%; height: 50px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 5px; scrollbar-width: thin; }
.filter-btn, .chip-button { flex: none; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); cursor: pointer; font-size: .76rem; font-weight: 750; }
.filter-btn.active, .filter-btn:hover, .chip-button:hover { color: white; background: var(--teal); border-color: var(--teal); }
.chip-button.subtle:hover { color: white; background: var(--coral); border-color: var(--coral); }
.list-meta { display: flex; justify-content: space-between; margin: 12px 0; color: var(--muted); font-size: .78rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recipe-card { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, white, #f9faf7); cursor: pointer; transition: .2s ease; }
.recipe-card:hover { transform: translateY(-3px); border-color: rgba(15,93,99,.35); box-shadow: var(--shadow-sm); }
.recipe-category { padding-right: 38px; color: var(--teal-2); font-size: .69rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.recipe-card h3 { margin: 10px 0 18px; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: .72rem; }
.recipe-facts b { color: var(--ink); }
.favorite-button { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--coral-soft); color: var(--coral); cursor: pointer; font-size: 1.25rem; }
.favorite-button.active { color: white; background: var(--coral); }
.recipe-open { display: flex; justify-content: space-between; margin-top: auto; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--teal); cursor: pointer; font-size: .8rem; font-weight: 800; }

.add-item-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.add-item-form input, .photo-options input, .photo-options select, .form-group input { min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; }
.primary-button { border: 0; border-radius: 14px; background: linear-gradient(120deg, var(--teal), var(--teal-2)); color: white; cursor: pointer; font-weight: 800; box-shadow: 0 8px 20px rgba(15,93,99,.2); }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .5; transform: none; }
.primary-button.compact { padding: 0 18px; }
.primary-button.full { width: 100%; min-height: 52px; padding: 12px 18px; }
.shopping-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.shopping-progress { margin: 0 0 20px; }
.shopping-group { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.shopping-group > h3 { display: flex; justify-content: space-between; margin: 0; padding: 13px 16px; background: #f4f7f4; font-size: .83rem; }
.shopping-group > h3 span { color: var(--muted); }
.shopping-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid #edf0ee; background: white; cursor: pointer; text-align: left; }
.shopping-item i { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #c9d5d0; border-radius: 50%; color: white; font-size: .68rem; font-style: normal; }
.shopping-item span { display: flex; flex-direction: column; min-width: 0; }
.shopping-item strong { font-size: .86rem; font-weight: 700; }
.shopping-item small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.shopping-item > b { color: #a8b2af; font-size: 1.2rem; }
.shopping-item.checked { background: #f6f9f7; }
.shopping-item.checked i { background: var(--sage); border-color: var(--sage); }
.shopping-item.checked strong { color: #8c9995; text-decoration: line-through; }

.photo-card { max-width: 780px; margin-inline: auto; }
.photo-dropzone { position: relative; display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; margin: 18px 0; padding: 30px; border: 2px dashed rgba(15,93,99,.35); border-radius: 21px; background: linear-gradient(145deg, #edf7f5, #f7faf6); cursor: pointer; text-align: center; }
.photo-dropzone:hover { border-color: var(--teal); }
.photo-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-dropzone img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.photo-dropzone.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(8,45,49,.82)); }
.photo-dropzone.has-image .camera-mark, .photo-dropzone.has-image strong, .photo-dropzone.has-image small { position: relative; z-index: 2; color: white; transform: translateY(92px); }
.camera-mark { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 13px; border-radius: 50%; background: var(--teal); color: white; font-size: 2rem; box-shadow: 0 10px 25px rgba(15,93,99,.22); }
.photo-dropzone strong { font-size: 1.05rem; }
.photo-dropzone small { margin-top: 4px; color: var(--muted); }
.photo-options { display: grid; grid-template-columns: 170px 1fr; gap: 12px; margin: 18px 0; }
.photo-options label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.privacy-note, .analysis-disclaimer { margin: 12px 0 0; color: #7f8f8f; font-size: .69rem; line-height: 1.5; }
.analysis-loading { padding: 28px; text-align: center; }
.spinner { display: inline-block; width: 34px; height: 34px; border: 3px solid #d9e8e4; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.message { margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: .82rem; }
.message.error { color: #913f32; background: var(--coral-soft); border: 1px solid #efc9be; }
.analysis-result { margin-top: 24px; scroll-margin-top: 90px; }
.analysis-hero { padding: 26px; border-radius: 20px; color: white; background: linear-gradient(125deg, var(--teal), var(--teal-2)); text-align: center; }
.analysis-hero p { margin-bottom: 3px; color: rgba(255,255,255,.75); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
.analysis-hero strong { display: block; font-family: Georgia, serif; font-size: 2.5rem; line-height: 1.1; }
.analysis-hero strong small { font-family: inherit; font-size: 1rem; }
.analysis-hero span { font-size: .76rem; opacity: .82; }
.analysis-section { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.analysis-section.warning { color: #6d5527; background: var(--gold-soft); border-color: #ead79f; }
.analysis-section h3 { margin-bottom: 9px; font-size: .9rem; }
.analysis-section ul { margin: 0; padding: 0; list-style: none; }
.analysis-section li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-top: 1px solid rgba(100,120,110,.12); font-size: .8rem; }
.analysis-section li:first-child { border-top: 0; }
.analysis-tip { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--sage-soft); }
.analysis-tip p { margin: 5px 0 0; color: #577062; font-size: .84rem; }

.form-group.inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 400px; margin-bottom: 24px; padding: 15px 17px; border-radius: 15px; background: var(--teal-soft); }
.form-group.inline label { font-weight: 800; }
.form-group.inline div { display: flex; align-items: center; gap: 7px; }
.form-group.inline input { width: 90px; min-height: 42px; text-align: center; font-weight: 800; }
.activity-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.activity-sections > section > h3 { margin-bottom: 9px; color: var(--teal); font-size: .9rem; }
.aktivitaet-liste { display: grid; gap: 8px; }
.activity-row { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.activity-row.active { border-color: rgba(15,93,99,.4); background: #f3faf8; }
.activity-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.activity-row strong { font-size: .78rem; }
.activity-row span { flex: none; color: var(--coral); font-size: .7rem; font-weight: 800; }
.duration-control { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; }
.duration-control button { width: 34px; height: 30px; border: 0; border-radius: 9px; background: var(--teal-soft); color: var(--teal); cursor: pointer; font-weight: 900; }
.duration-control b { text-align: center; font-size: .75rem; }
.movement-result { max-width: 500px; margin: 28px auto 0; padding: 26px; border-radius: 20px; background: linear-gradient(145deg, #e5f3f1, #f5faf7); text-align: center; }
.movement-result > span { color: var(--teal); font-family: Georgia, serif; font-size: 3.3rem; font-weight: 900; line-height: 1; }
.movement-result p { margin: 4px 0 16px; color: var(--muted); font-size: .8rem; }
.movement-result > div { height: 8px; overflow: hidden; border-radius: 99px; background: #cee1dc; }
.movement-result i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #65c3b9); transition: width .3s ease; }
.movement-result small { color: var(--muted); font-size: .68rem; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 28px 16px; background: rgba(13,40,42,.62); backdrop-filter: blur(6px); }
.modal-overlay.open { display: flex; }
.modal { position: relative; width: min(100%, 650px); margin: auto; padding: clamp(24px, 5vw, 38px); border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px rgba(8,35,36,.35); }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf1ef; cursor: pointer; font-size: 1.4rem; }
.modal h2 { padding-right: 35px; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.15; }
.modal-nutrients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.modal-nutrients div { padding: 12px 7px; border-radius: 12px; background: var(--teal-soft); text-align: center; }
.modal-nutrients strong, .modal-nutrients span { display: block; }
.modal-nutrients strong { color: var(--teal); }
.modal-nutrients span { color: var(--muted); font-size: .65rem; }
.modal-section { margin-top: 24px; }
.modal-section h3 { color: var(--teal); font-size: .95rem; }
.modal-section ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.modal-section li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.modal-section p { margin-bottom: 0; color: var(--muted); white-space: pre-line; }
.empty-state { grid-column: 1 / -1; padding: 42px 20px; border: 1px dashed var(--line); border-radius: 17px; text-align: center; }
.empty-state > span { font-size: 2rem; }
.empty-state h3 { margin: 8px 0 3px; font-family: Georgia, serif; }
.empty-state p { color: var(--muted); font-size: .82rem; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 1500; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s ease; font-size: .8rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { padding: 0 20px 110px; color: #82918e; text-align: center; font-size: .7rem; }

@media (max-width: 820px) {
  .header-inner { padding-top:38px; }
  .top-nav { position: fixed; inset: auto 10px max(10px, env(safe-area-inset-bottom)) 10px; z-index: 500; grid-template-columns: repeat(6, 1fr); margin: 0; border-radius: 20px; box-shadow: 0 14px 50px rgba(18,48,48,.25); }
  .nav-btn { flex-direction: column; gap: 1px; min-height: 57px; padding: 6px 2px; font-size: .58rem; }
  .nav-btn span { font-size: .95rem; }
  main { padding-top: 26px; padding-bottom: 110px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .activity-sections { grid-template-columns: 1fr; }
  footer { padding-bottom: 105px; }
}

@media (max-width: 580px) {
  .app-header { min-height:178px; }
  .header-inner { padding:30px 18px 48px; }
  .brand-row { gap:12px; }
  .brand-lockup { gap:12px; }
  .brand-mark { width:52px; height:52px; padding:6px; border-radius:16px; }
  .brand-mark img { border-radius:12px; }
  .eyebrow { margin-bottom:4px; font-size:.58rem; letter-spacing:.11em; }
  h1 { font-size:clamp(1.82rem,8.2vw,2.35rem); }
  .header-sub { margin-top:6px; font-size:.72rem; }
  .install-button { width:42px; min-height:42px; padding:7px; }
  .install-label { display:none; }
  .install-symbol { width:26px; height:26px; }
  main { width: min(100% - 20px, 1050px); }
  .card { padding: 20px 16px; border-radius: 20px; }
  .welcome-card { grid-template-columns: 1fr auto; gap: 12px; padding: 22px 18px; }
  .welcome-card h2 { font-size: 1.4rem; }
  .welcome-card p:last-child { display: none; }
  .week-ring { width: 78px; height: 78px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 105px; flex-direction: column; align-items: flex-start; padding: 14px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .days-grid { gap: 4px; padding-inline: 8px; }
  .day-card { padding-inline: 2px; }
  .habit-check { min-height: 21px; }
  .photo-dropzone { min-height: 260px; }
  .photo-options { grid-template-columns: 1fr; }
  .add-item-form { grid-template-columns: 1fr; }
  .primary-button.compact { min-height: 48px; }
  .modal-nutrients { grid-template-columns: repeat(2, 1fr); }
  .analysis-section li { flex-direction: column; gap: 2px; }
}

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

/* Datensparsame Premium-Funktionen */
.meal-card, .decision-card, .sos-card { max-width: 880px; margin-inline: auto; }
.decision-card, .sos-card { margin-top: 20px; }
.meal-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.meal-choice-grid fieldset { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #ffffff, #f8fbf9); }
.meal-choice-grid legend { padding: 0 5px; color: var(--teal); font-size: .78rem; font-weight: 850; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice-row button { padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); cursor: pointer; font-size: .76rem; line-height: 1.3; text-align: left; transition: .18s ease; }
.choice-row button:hover, .choice-row button.selected { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(15,93,99,.08); }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.decision-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.decision-grid select { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; font: inherit; }
.local-result { margin-top: 16px; padding: 19px; border: 1px solid #cfe1dc; border-radius: 17px; background: linear-gradient(145deg, #edf7f5, #f8fcfa); color: #315a54; line-height: 1.55; }
.local-result strong { display: block; margin-bottom: 6px; color: var(--teal); font-size: 1rem; }
.local-result p { margin: 7px 0 0; }
.local-result ul { margin: 10px 0 0; padding-left: 19px; }
.local-result li { margin: 7px 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.suggestion-card { display: flex; min-height: 156px; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #ffffff, #f8faf7); color: var(--ink); cursor: pointer; text-align: left; transition: .2s ease; }
.suggestion-card:hover { transform: translateY(-2px); border-color: rgba(15,93,99,.4); box-shadow: var(--shadow-sm); }
.suggestion-card span { color: var(--teal-2); font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.suggestion-card strong { margin: 9px 0; font-family: Georgia, serif; font-size: 1rem; line-height: 1.25; }
.suggestion-card small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.suggestion-card em { margin-top: auto; padding-top: 13px; color: var(--teal); font-size: .74rem; font-style: normal; font-weight: 800; }
.status-pill.warm { color: #8a6125; background: var(--gold-soft); }
@media (max-width: 700px) {
  .meal-choice-grid, .decision-grid, .suggestion-grid { grid-template-columns: 1fr; }
}
