.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover { background: var(--paper-2); }
.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: var(--paper-2); }
.panel-head .btn.ghost:hover { background: transparent; color: inherit; }
.btn.danger {
  background: var(--danger);
  color: var(--paper);
  border-color: var(--danger);
}
.btn.danger:hover {
  background: #6e1818;
  border-color: #6e1818;
}
.btn.lg { padding: 14px 22px; font-size: 17px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.is-public { color: var(--ok); border-color: var(--ok); }
.btn.is-public:hover { background: rgba(63,107,58,0.08); }

.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}
.btn:disabled:hover, .btn[disabled]:hover { background: var(--paper); }

.btn.is-disabled-ai span,
.btn.is-disabled-ai {
  text-decoration: line-through;
}
.btn.is-disabled-ai svg { opacity: 0.5; }
.btn.block { width: 100%; }

/* --- soft button-varianten (klarere abstufung) */
.btn.btn-soft { background: var(--paper-2); }
.btn.btn-soft:hover { background: var(--paper-3); }
.btn.btn-danger-soft { color: var(--danger); border-color: var(--danger); }
.btn.btn-danger-soft:hover { background: var(--danger); color: var(--paper); }

.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--rule);
  margin-bottom: 28px;
}
.tab {
  flex: 1;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.field { display: block; margin-bottom: 18px; }
.field .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field .input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-size: 17px;
  color: var(--ink);
}
.field .input:focus {
  outline: none;
  border-color: var(--accent);
}
.field select.input {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231A1814' stroke-width='1.8'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}
.field.has-error .input { border-color: var(--danger); }

.login-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
}

.login-peek {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}
.login-peek .link { color: var(--accent); }
.login-peek .link:hover { text-decoration: underline; }
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
}
.checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rule);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.checkbox.is-checked { background: var(--ink); }
.checkbox.is-checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.link {
  font-size: 16px;
  color: var(--ink-2);
  cursor: pointer;
}
.link:hover { color: var(--ink); text-decoration: underline; }

.panel {
  background: var(--paper);
  border: 1.5px solid var(--rule);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1.5px solid var(--rule);
}
.panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-right: 1.5px solid var(--rule);
  display: block;
}
.hero-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-width: 0;
}
.hero-body > div { min-width: 0; }
.hero-eyebrow {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta { display: flex; gap: 24px; font-size: 18px; margin-top: 16px; color: var(--ink-2); }
.hero-cta  { margin-top: 18px; }

@media (max-width: 700px) {
  .hero-panel { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { border-right: none; border-bottom: 1.5px solid var(--rule); height: 220px; }
  .hero-body { padding: 24px; }
  .hero-title { font-size: 36px; }
}

.week-strip { display: flex; flex-direction: column; }
.week-day {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  color: inherit;
}
.week-day.is-last { border-bottom: none; }
.week-day.is-today { background: var(--paper-2); }
.week-day .wd { font-size: 14px; font-weight: 600; }
.week-day .num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}
.week-day .content { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.week-day .content .more-meals {
  font-size: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.empty-state-card {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--rule-soft);
  background: var(--paper);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-state-card .empty-icon { font-size: 56px; line-height: 1; }
.empty-state-card .empty-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  max-width: 480px;
}

.recipe-card {
  display: block;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.recipe-card:hover { background: var(--paper-2); }
.recipe-card .image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  border-bottom: 1.5px solid var(--rule);
}
.recipe-card .title {
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
}

.avatar {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rule);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  flex-shrink: 0;
}
.avatar.lg { width: 72px; height: 72px; font-size: 36px; }

.small  { font-size: 14px; }
.mt-12  { margin-top: 12px; }
.span-2 { grid-column: span 2; }
.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 17px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr repeat(3, 180px);
  gap: 12px;
  margin-bottom: 22px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-size: 16px;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.select {
  padding: 12px 38px 12px 14px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231A1814' stroke-width='1.8'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--accent); }
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
}
.result-meta {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.recipe-card .card-body { padding: 14px 16px 16px; }
.recipe-card .card-body .title { padding: 0; margin-bottom: 4px; }
.recipe-card .card-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.recipe-grid { gap: 24px; }

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.recipe-tags .tag {
  padding: 0;
  border: none;
  background: none;
}
.recipe-tags .tag::before { content: "#"; color: var(--accent); margin-left: 2px; }
.recipe-tags .tag + .tag { margin-left: 10px; }

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.recipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  min-height: 420px;
  overflow: hidden;
}
.recipe-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-right: 1.5px solid var(--rule);
}
.recipe-hero-meta {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.recipe-title {
  margin: 6px 0 14px;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.recipe-blurb {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 26px;
  color: var(--ink);
}

.recipe-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  border-top: 1.5px solid var(--rule);
  padding-top: 18px;
}
.recipe-stats > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.recipe-stats dt {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.recipe-stats dt::after { content: ":"; }
.recipe-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
@media (max-width: 900px) {
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero-image { border-right: none; border-bottom: 1.5px solid var(--rule); height: 240px; }
  .recipe-hero-meta { padding: 24px; }
  .recipe-title { font-size: 38px; }
  .action-bar { flex-wrap: wrap; gap: 8px; }
  .action-bar .row { flex-wrap: wrap; }
}

.ingredients-aside {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 22px 24px;
}
.ingredients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ingredients-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.portions-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--rule);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
}
.portions-stepper span { padding: 6px 12px; }
.step-btn {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  background: transparent;
  transition: background 0.15s;
}
.step-btn:hover { background: var(--paper-2); color: var(--accent); }
.ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ingredients-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
  align-items: baseline;
}
.ingredients-list li:last-child { border-bottom: none; }
.ingredients-list .name { color: var(--ink); }
.ingredients-list .qty {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.steps h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  align-items: start;
}
.steps-list .step-num {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.steps-list .step-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.steps-list .step-body { padding-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.steps-list .step-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step-row .step-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-row .step-title {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.step-row .step-title:focus { border-color: var(--accent); background: var(--paper-2); }
.step-row .step-title::placeholder { color: var(--ink-4); font-weight: 400; font-style: italic; }

.recipe-author-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1.5px solid var(--rule);
  font-size: 16px;
  color: var(--ink);
}
.recipe-author-footer .author-chip {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
a.author-chip:hover { color: var(--accent); }

.editor-page { max-width: 1280px; margin: 0 auto; }
.editor-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 44px 72px;
}
@media (max-width: 900px) {
  .editor-card { padding: 28px 24px; }
}
.editor-section + .editor-section { margin-top: 36px; }
.editor-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.editor-section-head-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.field-bare { display: block; margin-bottom: 14px; }
.title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--rule);
  outline: none;
  color: var(--ink);
}
.title-input:focus { border-bottom-color: var(--accent); }
.title-input::placeholder { color: var(--ink-4); }
.blurb-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--rule-soft);
  outline: none;
  color: var(--ink);
  resize: vertical;
}
.blurb-input:focus { border-bottom-color: var(--accent); }
.blurb-input::placeholder { color: var(--ink-4); }

.image-drop {
  border: 1.5px dashed var(--rule);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: background 0.15s, border-color 0.15s;
  margin: 18px 0;
}
.image-drop-hint { font-size: 15px; color: var(--ink); }
.image-drop:hover, .image-drop.is-drop {
  background: var(--paper-2);
  border-color: var(--accent);
  border-style: solid;
}
.image-drop.is-uploading { opacity: 0.6; pointer-events: none; }
.image-drop-preview {
  max-height: 260px;
  max-width: 100%;
  display: block;
}

.tag-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.tag-text-input { flex: 1; padding-right: 36px !important; }
.tag-dd-trigger {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px;
  transition: background 150ms ease, color 150ms ease;
}
.tag-dd-trigger:hover { background: var(--paper-2); color: var(--ink); }
.tag-input-wrap.is-open .tag-dd-trigger svg { transform: rotate(180deg); }
.tag-dd-trigger svg { transition: transform 200ms ease; }
.tag-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  z-index: 30;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  animation: ff-dd-in 160ms ease;
}
@keyframes ff-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tag-dd-search {
  border: none;
  border-bottom: 1.5px solid var(--rule-soft);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.tag-dd-search::placeholder { color: var(--ink-4); }
.tag-dd-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
}
.tag-dd-list li {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 120ms ease;
}
.tag-dd-list li:hover { background: var(--paper-2); }
.tag-dd-list li.is-selected { color: var(--accent); }
.tag-dd-list li.is-selected::after {
  content: '✓';
  font-weight: 700;
}
.tag-dd-list .tag-dd-empty { color: var(--ink-3); cursor: default; font-style: italic; }
.tag-dd-list .tag-dd-empty:hover { background: transparent; }
.tag-dd-list .tag-dd-new { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--rule-soft); }
.tag-dd-list .tag-dd-new:hover { background: var(--paper-2); }

.editor-meta-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 16px;
  margin-top: 22px;
  border-top: 1.5px solid var(--rule);
  padding-top: 22px;
}
.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.meta-input {
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  color: var(--ink);
  padding: 8px 12px;
  min-width: 90px;
  transition: border-color 0.15s;
}
.meta-input:focus { border-color: var(--accent); }
.meta-cell-grow .meta-input { width: 100%; min-width: 0; }
.meta-input::placeholder { color: var(--ink-4); }
.meta-input.meta-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231A1814' stroke-width='1.8'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.meta-cell { min-width: 0; }
@media (max-width: 800px) {
  .editor-meta-row { grid-template-columns: 1fr 1fr; }
  .meta-input { min-width: 0; }
}

.row-list { list-style: none; margin: 0; padding: 0; }
.row-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1.5px solid var(--rule-soft);
  margin-bottom: 6px;
  transition: border-color 0.15s;
}
.row-item:hover { border-color: var(--rule); }
.row-item.is-dragging { opacity: 0.4; }
.row-handle {
  cursor: grab;
  color: var(--ink-3);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
  font-size: 14px;
  letter-spacing: -2px;
}
.row-input {
  border: 1.5px solid transparent;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s;
  color: var(--ink);
}
.row-input:focus { border-color: var(--accent); background: var(--paper-2); }
.row-input::placeholder { color: var(--ink-4); }
.row-input.qty-input  { width: 80px; text-align: right; font-family: var(--mono); font-size: 14px; }
.row-input.unit-input { width: 110px; font-family: var(--mono); font-size: 14px; }
.row-input.name-input { flex: 1; min-width: 0; }
@media (max-width: 700px) {
  .row-input.qty-input  { width: 52px; }
  .row-input.unit-input { width: 72px; }
}
.row-input.step-text  { flex: 1; font-family: inherit; min-height: 44px; resize: vertical; padding-top: 9px; }
.row-remove {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.row-remove:hover { background: var(--paper-2); color: var(--danger); }

.row-item.ing-group-header {
  background: var(--paper-2);
  border-color: var(--rule);
  font-family: var(--serif);
}
.row-item.ing-group-header .group-marker {
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
  margin-right: 6px;
}
.row-item.ing-group-header .group-input {
  flex: 1;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  border-color: transparent;
  background: transparent;
}
.row-item.ing-group-header .group-input:focus { border-color: var(--accent); background: var(--paper); }

.ingredients-list li.ing-group-head {
  grid-template-columns: 1fr;
  padding-top: 16px;
  border-bottom: 1.5px solid var(--rule);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.ingredients-list li.ing-group-head:first-child { padding-top: 0; }

.step-row-list .row-item .step-num-badge {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ff-fade-in 0.18s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 30px 8px;
}
.modal-head h2 { margin: 0; font-size: 32px; font-variation-settings: "opsz" 96; }
.modal-close {
  font-size: 28px;
  line-height: 1;
  color: var(--ink-2);
  padding: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--accent); }
.modal-body { padding: 4px 30px 16px; }
.modal-body .muted { color: var(--ink); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 30px 22px;
  border-top: 1.5px solid var(--rule);
}
@keyframes ff-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ff-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(26,24,20,0.18);
}
.ff-toast.is-visible { opacity: 1; transform: none; }
.ff-toast[data-type="error"] { background: var(--danger); border-color: var(--danger); }

.week-label {
  font-family: var(--serif);
  font-size: 24px;
  display: inline-block;
  min-width: 230px;
  text-align: center;
}
.day-col {
  border-right: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.day-col:last-child { border-right: none; }
.day-col.is-drop { background: var(--paper-2); }

/* --- day-head */
.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--rule);
  background: var(--paper-3);
  position: sticky;
  top: 0;
  z-index: 1;
}
.day-head .day-wd {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.day-head .day-num {
  font-family: var(--serif);
  font-size: 24px;
}
.day-body { padding: 10px 8px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* --- heute */
.day-col.is-today { background: rgba(193, 69, 43, 0.05); }
.day-col.is-today .day-head { background: var(--accent); }
.day-col.is-today .day-head .day-wd,
.day-col.is-today .day-head .day-num { color: var(--accent-ink); }

/* --- vergangene tage */
.day-col.is-past { background: #D6D3CC; }
.day-col.is-past .day-head { background: #C2BEB5; }
.day-col.is-past .day-head .day-wd,
.day-col.is-past .day-head .day-num { color: var(--ink-4); }
.day-col.is-past .recipe-chip { opacity: 0.55; }
.day-col.is-past .recipe-chip .chip-title { text-decoration: line-through; color: var(--ink-3); }

/* --- drop-line */
.drop-line {
  height: 0;
  border-top: 2px solid var(--accent);
  margin: -2px 0;
  pointer-events: none;
}

.recipe-chip {
  position: relative;
  border: 1.5px solid var(--rule);
  padding: 8px 44px 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: grab;
  background: var(--paper);
  margin: 0;
}
.recipe-chip .chip-group {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 2px;
}
.recipe-chip .chip-x,
.recipe-chip .chip-group-btn {
  position: absolute;
  top: 3px;
  line-height: 1;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}
.recipe-chip .chip-x { right: 5px; font-size: 15px; }
.recipe-chip .chip-group-btn { right: 26px; font-size: 15px; font-weight: 700; }
.recipe-chip .chip-x:hover,
.recipe-chip .chip-group-btn:hover { color: var(--accent); }

/* --- gruppen-menü */
.group-menu {
  position: absolute;
  z-index: 50;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  box-shadow: 0 6px 20px rgba(26, 24, 20, 0.14);
  display: none;
  flex-direction: column;
  min-width: 130px;
}
.group-menu.is-open { display: flex; }
.group-menu button {
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
}
.group-menu button:hover { background: var(--paper-2); color: var(--accent); }

.pool-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.pool-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-soft) transparent;
}
.pool-list::-webkit-scrollbar { width: 6px; }
.pool-list::-webkit-scrollbar-thumb { background: var(--rule-soft); border-radius: 3px; }
.pool-list::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.pool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1.5px solid var(--rule-soft);
  margin-bottom: 6px;
  cursor: grab;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  transform-origin: left center;
}
.pool-item:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(26,24,20,0.08);
  z-index: 2;
  position: relative;
}
.pool-item.is-armed {
  border-color: var(--accent);
  background: rgba(193, 69, 43, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pool-thumb { width: 30px; height: 30px; flex-shrink: 0; object-fit: cover; }
.pool-name { font-size: 13px; font-weight: 600; }

/* --- community-rezepte dazuholen (am ende der favs) */
.pool-more { list-style: none; margin-top: 6px; }
.pool-more-btn {
  width: 100%;
  padding: 7px 8px;
  border: 1.5px dashed var(--rule-soft);
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.pool-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(193, 69, 43, 0.05);
}

.shop-group { margin-bottom: 18px; }
.shop-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.shop-group-head .thumb { width: 24px; height: 24px; object-fit: cover; }
.shop-group-head h4 { margin: 0; font-size: 17px; flex: 1; font-family: var(--serif); font-weight: 500; }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  cursor: pointer;
}
.shop-item:last-child { border-bottom: none; }
.shop-item-grid { display: grid; grid-template-columns: 20px 90px 1fr; }
.shop-extra .name { margin-right: auto; }
.shop-item .name { position: relative; justify-self: start; }
.shop-item .name,
.shop-item .qty {
  transition: color 320ms ease, opacity 320ms ease;
}
/* --- abgehakt: ausgegraut + line-through waechst smooth ueber den text */
.shop-item .name::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms ease;
}
.shop-item.is-done .name::after { transform: scaleX(1); }
.shop-item.is-done { background: var(--paper-2); }
.shop-item.is-done .name,
.shop-item.is-done .qty {
  color: var(--ink-4);
  opacity: 0.5;
}
.shop-item .qty { font-family: var(--mono); color: var(--ink-2); font-size: 13px; }

/* --- portionen-stepper im listen-kopf */
.serv-edit { display: flex; align-items: center; gap: 2px; }
.serv-btn {
  border: none;
  background: transparent;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  color: var(--ink-3);
  padding: 2px 8px;
}
.serv-btn:hover { color: var(--accent); }
.serv-val { font-weight: 700; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }

/* --- eigene-eintraege: gleicher look wie rezept-gruppen, header mit bg-bar */
.extras-card { margin-top: 28px; }
.extras-title {
  margin: 0 0 4px;
  padding-bottom: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1.5px solid var(--rule);
}
.extras-list { list-style: none; margin: 0; padding: 0; }
.shop-extra { grid-template-columns: 20px 90px 1fr auto; }
.extras-form { margin-top: 12px; }

.community-hero { margin-bottom: 36px; min-height: 260px; }
.community-hero .hero-image {
  border-right: 1.5px solid var(--rule);
}

.aow-card {
  position: relative;
  isolation: isolate;
  background: transparent;
  padding: 32px 28px;
  margin-bottom: 48px;
}
.aow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 95% 95% at center, transparent 45%, rgba(26, 24, 20, 0.06) 100%);
  pointer-events: none;
}
.aow-heading {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.aow-heading em { font-style: normal; color: var(--accent); }
@media (max-width: 700px) {
  .aow-heading { font-size: 32px; }
}
.aow-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.aow-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.aow-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.aow-blurb {
  color: var(--ink-2);
  margin-top: 2px;
  font-size: 14px;
}
.aow-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.aow-stat {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
}
.aow-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.aow-recipes .recipe-card { background: var(--paper); }

.aow-recipes-featured {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 480px;
}
.aow-recipes-featured .aow-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.aow-recipes-featured .aow-card-featured .image { min-height: 320px; }
.aow-recipes-featured .aow-card-featured .title { font-size: 22px; }
.aow-recipes-featured .aow-card-mini .image { min-height: 140px; }
.aow-recipes-featured .aow-card-mini .title { font-size: 14px; }
.aow-recipes-featured .aow-card-mini .card-meta { font-size: 11px; }
@media (max-width: 800px) {
  .aow-recipes-featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .aow-recipes-featured .aow-card-featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .aow-recipes-featured .aow-card-featured .image { min-height: 200px; }
}

@keyframes aow-avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 69, 43, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(193, 69, 43, 0); }
}
.aow-avatar { animation: aow-avatar-pulse 2.6s ease-in-out infinite; }

.aow-card { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.aow-card.is-visible { opacity: 1; transform: none; }

.aow-recipes-featured .recipe-card { transition: transform 220ms ease, box-shadow 220ms ease; }
.aow-recipes-featured .recipe-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.10);
}
.aow-recipes-featured .aow-card-featured:hover {
  transform: translateY(-5px) rotate(-0.3deg);
}
@media (max-width: 700px) {
  .aow-card-head {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }
  .aow-card-head .btn { grid-column: 1 / -1; justify-self: start; }
  .aow-name { font-size: 22px; }
}

.profile-tabs { margin-bottom: 28px; }
.pane h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.pane { min-height: 460px; }
.profile-card {
  background: var(--paper);
  border: 1.5px solid var(--rule-soft);
  padding: 28px 32px;
  max-width: 760px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.profile-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.profile-section-hint {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
}
.profile-card-danger {
  border-color: var(--danger);
}
.profile-card-danger h3 { color: var(--danger); }
.profile-card-danger .profile-section-hint { color: var(--ink); }
.profile-actions { margin-top: auto; padding-top: 18px; gap: 10px; flex-wrap: wrap; }

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pref-row:last-of-type { border-bottom: none; }
.pref-label-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.pref-label-desc {
  font-size: 13px;
  color: var(--ink-2);
}

.segmented {
  display: inline-flex;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  padding: 2px;
  gap: 2px;
}
.segmented .seg-btn {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-2);
  border: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.segmented .seg-btn:hover { color: var(--ink); }
.segmented .seg-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.info-list { margin: 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0; }

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.lang-pill:hover { background: var(--paper-2); }
.lang-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.lang-pill .lang-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lang-pill .lang-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

.backend-down-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 24, 20, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.backend-down-overlay.is-visible { display: flex; animation: ff-fade-in 200ms ease; }
.backend-down-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  max-width: 460px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(26, 24, 20, 0.25);
}
.backend-down-icon { color: var(--ink-2); display: flex; justify-content: center; margin-bottom: 14px; }
.backend-down-title { font-size: 28px; margin: 0 0 12px; font-weight: 500; }
.backend-down-text { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; line-height: 1.5; }
.backend-down-actions { display: flex; justify-content: center; gap: 12px; }
.backend-down-error {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  min-height: 18px;
  opacity: 0;
}
.backend-down-error.is-shown { animation: backend-error-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes backend-error-pop {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}

/* --- dropdown (aus wochenplan) */
.dd-wrap { position: relative; }
.dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  box-shadow: 0 6px 20px rgba(26, 24, 20, 0.14);
  display: none;
  flex-direction: column;
  min-width: 140px;
}
.dd-menu.is-open { display: flex; }
.dd-menu button {
  text-align: left;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
}
.dd-menu button:hover { background: var(--paper-2); color: var(--accent); }

/* --- fortschritt-card */
.progress-card {
  border: 1.5px solid var(--rule);
  background: var(--paper);
  padding: 22px;
  text-align: center;
}
.progress-pct {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}
.progress-bar {
  height: 10px;
  background: var(--paper-3);
  border: 1.5px solid var(--rule);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.progress-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

/* --- favoriten quick-add */
.shopping-side .panel + .panel { margin-top: 16px; }
.fav-picker {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-soft) transparent;
}
.fav-picker::-webkit-scrollbar { width: 6px; }
.fav-picker::-webkit-scrollbar-thumb { background: var(--rule-soft); border-radius: 3px; }
.fav-picker::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.fav-empty { padding: 12px; }
.fav-add {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.fav-add:hover { border-color: var(--rule-soft); background: var(--paper-2); }
.fav-add img { width: 28px; height: 28px; object-fit: cover; flex-shrink: 0; }
.fav-add-name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-add-plus { font-size: 16px; font-weight: 700; color: var(--ink-3); }
.fav-add:hover .fav-add-plus { color: var(--accent); }

/* --- footer landing (impressum / datenschutz links) */
.site-footer {
  border-top: 1.5px solid var(--rule);
  margin-top: 72px;
  background: var(--paper);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer-brand { font-size: 18px; font-weight: 600; }
.site-footer-brand em { color: var(--accent); font-style: normal; }
.site-footer-links { display: flex; gap: 22px; flex: 1; }
.site-footer-links a { color: var(--ink-3); font-size: 15px; }
.site-footer-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer-copy { color: var(--ink-4); font-size: 13px; }

/* --- legal-seiten (impressum / datenschutz) */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  border-bottom: 1.5px solid var(--rule);
}
.legal-brand { font-size: 22px; font-weight: 600; }
.legal-brand em { color: var(--accent); font-style: normal; }
.legal { max-width: 820px; margin: 0 auto; padding: 8px 24px 96px; }
.legal-doc h1 { font-family: var(--serif); font-size: 40px; margin: 24px 0 4px; }
.legal-doc h2 { font-family: var(--serif); font-size: 22px; margin: 36px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--accent); }
.legal-doc a:hover { text-decoration: underline; }
.legal-sub { color: var(--ink-3); font-size: 15px; font-style: italic; margin-top: 0; }
/* --- pflicht-footer als bubble am spalten-boden, ganz rechts (in-flow) */
.legal-mini {
  width: fit-content;
  margin: auto 16px 16px auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-4);
  background: rgba(242, 238, 228, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
}
.legal-mini a { color: var(--ink-3); }
.legal-mini a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 700px) {
  .legal-mini { margin: auto 10px 10px auto; }
}

/* --- platzhalter zum ausfuellen markieren */
.legal-ph {
  background: rgba(193, 69, 43, 0.12);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 600;
}
