/* neundrei Guide – Farben und Schrift angelehnt an neundrei.com */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #202219;
  --olive: #5c5a4d;
  --olive-2: #46493c;
  --cream: #f6eddd;
  --paper: #fbf7ef;
  --card: #ffffff;
  --line: #e4dccb;
  --muted: #6d6a5c;
  --accent: #5c5a4d;
  --accent-ink: #46493c;
  --ok: #2f6b3a;
  --ok-bg: #e5f1e4;
  --warn: #8b0000;
  --warn-bg: #fbe9e4;
  --note-bg: #fffbd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32, 34, 25, .06), 0 4px 14px rgba(32, 34, 25, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; }
a { color: var(--olive-2); text-decoration-color: rgba(92, 90, 77, .4); text-underline-offset: 2px; }
a:hover { color: var(--ink); text-decoration-color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Kopfzeile & Navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--ink);
  color: var(--cream);
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--cream); flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-mark { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-sub { font-weight: 500; font-size: .95rem; color: var(--accent); }
.topsearch { flex: 1; max-width: 420px; }
.topsearch input {
  width: 100%;
  border: 1px solid rgba(246, 237, 221, .25);
  background: rgba(246, 237, 221, .1);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.topsearch input::placeholder { color: rgba(246, 237, 221, .65); }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.mainnav a:hover { background: rgba(246, 237, 221, .1); color: #fff; }
.mainnav a.active { background: var(--cream); color: var(--ink); }
.ico { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }

.subnav {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 16px; background: var(--olive-2);
  scrollbar-width: none;
}
.subnav a { color: var(--cream); text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: .9rem; font-weight: 600; }
.subnav a.active, .subnav a:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 760px) {
  .topsearch { display: none; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-content: space-around; gap: 0;
    background: var(--ink);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(246, 237, 221, .15);
  }
  .mainnav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 8px; min-width: 56px; }
  .mainnav a .ico { width: 22px; height: 22px; }
  .mainnav a.active { background: transparent; color: var(--accent); }
}
@media (min-width: 761px) {
  body { padding-bottom: 0; }
}

/* ---------- Seitenrahmen ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 24px; }
.crumbs { font-size: .9rem; margin-bottom: 8px; color: var(--muted); }
.pagehead { margin-bottom: 18px; }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.headrow h1, .headrow h2 { margin: 0; }
.section-title { margin-top: 28px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.note { background: var(--note-bg); border: 1px solid #ece59a; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-err { background: var(--warn-bg); color: var(--warn); }

/* ---------- Startseite ---------- */
.hello h1 { margin-bottom: 4px; }
.progress-card { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.progress-head h2 { margin: 0 0 8px; }
.small-title { font-size: .95rem; margin-top: 14px; }
.bar { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--olive), var(--accent)); border-radius: inherit; transition: width .4s ease; }
.progress-cell { min-width: 140px; }
.progress-cell .bar { display: inline-block; width: 90px; vertical-align: middle; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
a.tile:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.tile-icon { font-size: 1.6rem; line-height: 1; }
.tile-title { font-weight: 700; font-size: 1.08rem; }
.tile-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.tile-count { font-size: .8rem; color: var(--muted); }
.tile-static .btn { align-self: flex-start; margin-top: 8px; }

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.linklist li:last-child { border-bottom: 0; }
.card.linklist { padding: 6px 18px; }

/* ---------- Seitenlisten ---------- */
.pagelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pagelist a {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; color: var(--ink);
}
.pagelist a:hover { border-color: var(--accent); }
.pl-title { flex: 1; font-weight: 600; }
.read-ok { color: var(--ok); }

.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px; background: var(--cream); color: var(--olive-2); white-space: nowrap;
}
.tag-rezept { background: #fde6cf; color: var(--accent-ink); }
.tag-checkliste { background: #e3ecd9; color: #3d5a2a; }
.tag-ablauf { background: #e6e4f3; color: #3f3a74; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--cream); color: var(--olive-2); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- Artikel ---------- */
.article .cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.prose { font-size: 1.02rem; }
.prose h1 { font-size: 1.35rem; margin-top: 1.2em; }
.prose img { border-radius: 10px; }
.prose figure { margin: 1em 0; }
.prose figcaption { color: var(--muted); font-size: .85rem; }
.prose blockquote { margin: 1em 0; padding: 8px 14px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; }
.prose pre { background: var(--cream); padding: 10px; border-radius: 8px; overflow-x: auto; }
/* Einzelbilder aus den Inhaltsdateien: ![…](bilder/…) und ![…](bilder/…){breit} */
.prose figure.photo { margin: 16px 0; text-align: center; }
.prose figure.photo img { max-height: 360px; width: auto; max-width: 100%; }
.prose figure.photo.wide img { max-height: none; width: 100%; border: 1.5px solid #23261f; border-radius: 6px; box-shadow: 3px 3px 0 #23261f; }

.steps, .prose ol { padding-left: 0; list-style: none; counter-reset: step; }
.steps li, .prose ol > li { counter-increment: step; position: relative; padding: 6px 0 6px 40px; min-height: 32px; }
.steps li::before, .prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps.big li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 52px; margin-bottom: 8px; }
.steps.big li::before { left: 12px; top: 11px; }

.recipe-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.recipe-meta div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; display: flex; flex-direction: column; }
.allergens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.recipe-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
@media (max-width: 640px) { .recipe-cols { grid-template-columns: 1fr; } }
.ingredients { padding-left: 1.2em; }
.ingredients li { padding: 3px 0; }

.checklist h2 { margin-top: 20px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--olive); }
.check-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.check-item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--olive); flex-shrink: 0; }
.check-item.done span { text-decoration: line-through; color: var(--muted); }

.downloads { margin-top: 24px; }
.readbox { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.readbox p { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; flex-wrap: wrap; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check.inline { display: inline-flex; margin-left: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #cfc6b3; border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; }
input.short { max-width: 120px; }
input.readonly { background: var(--cream); color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--olive); width: 18px; height: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 6px; }
legend { font-weight: 700; padding: 0 6px; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin: 0; }
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btnrow form { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 10px 16px; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--card); color: var(--ink); border: 1px solid #cfc6b3;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--olive-2); color: #fff; }
.btn-danger { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn-danger:hover { background: #6a0000; color: #fff; }
.btn-danger-outline { color: var(--warn); border-color: #e4b4ad; }
.btn-small { padding: 6px 10px; font-size: .85rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--olive-2); text-decoration: underline; cursor: pointer; }
a.danger { color: var(--warn); }
.danger-zone { border-color: #e9c3bc; }
.secret { display: inline-block; background: var(--cream); padding: 8px 12px; border-radius: 8px; font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; }

/* ---------- Editor ---------- */
.thumb { max-width: 220px; border-radius: 10px; display: block; margin-bottom: 8px; }
.savebar {
  position: sticky; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(251, 247, 239, .95); padding: 12px 0; border-top: 1px solid var(--line);
}
@media (min-width: 761px) { .savebar { bottom: 0; } }
.answer-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
@media (max-width: 640px) { .answer-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); } }
.copyrow { display: flex; gap: 8px; flex-wrap: wrap; }
.copyrow input { flex: 1; min-width: 0; }
.linkbox { border-color: var(--accent); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fdfaf4; }
.table tr:last-child td { border-bottom: 0; }
.row-warn td { background: #fdf3f0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat-warn { border-color: var(--warn); }

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 4px; }
.question legend { font-size: 1.05rem; padding: 0; margin-bottom: 8px; }
fieldset.question { display: grid; gap: 8px; }
.qnum { display: inline-block; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 1px 9px; font-size: .8rem; margin-right: 6px; vertical-align: 2px; }
.answer { display: flex; gap: 10px; align-items: center; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.answer:has(input:checked) { border-color: var(--olive); background: #f4f1e8; }
.result { text-align: center; }
.result-score { font-size: 2rem; font-weight: 800; margin: 0; }
.result.is-ok { border-color: var(--ok); }
.result.is-warn { border-color: var(--accent); }
.question.is-ok { border-left: 5px solid var(--ok); }
.question.is-warn { border-left: 5px solid var(--warn); }
.qtitle { font-size: 1.05rem; }
.verdict { font-size: .8rem; font-weight: 700; margin-left: 6px; }
.is-ok .verdict { color: var(--ok); }
.is-warn .verdict { color: var(--warn); }
.answers-review { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.answers-review li { padding: 6px 10px; border-radius: 8px; background: #faf7f0; }
.answers-review li.correct { background: var(--ok-bg); }
.answers-review li.chosen:not(.correct) { background: var(--warn-bg); }

/* ---------- Anmeldeseiten ---------- */
body.public { background: var(--ink); padding-bottom: 0; }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-brand { color: var(--cream); display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.auth-brand .brand-mark { font-size: 2rem; }
.auth-brand .brand-sub { font-size: 1.2rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; }
.langswitch { color: var(--cream); font-size: .9rem; }
.langswitch a { color: var(--cream); }
.langswitch a[aria-current] { color: var(--accent); font-weight: 700; }
.message { text-align: center; padding: 20px 0; }

.searchbig { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbig input { flex: 1; min-width: 0; }

@media print {
  .topbar, .subnav, .mainnav, .readbox, .foot, .savebar { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Zutaten-Tabelle (Rezepte mit 1×/2×-Mengen) */
.ing-wrap { margin: 0 0 12px; }
.ing-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ing-table th, .ing-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.ing-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fdfaf4; }
.ing-table td:not(:last-child) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--olive-2); font-weight: 600; }
.ing-table tr.ing-gap td { padding: 4px; border-bottom: 0; background: var(--paper); }
.ing-table tr.ing-head th { background: var(--cream); font-size: .9rem; }
.ing-table tr.ing-step td { font-style: italic; color: var(--muted); font-weight: 400; white-space: normal; }
.ingredients .ing-gap { list-style: none; height: 8px; }
.ingredients .ing-head { list-style: none; margin: 8px 0 2px -1.2em; font-weight: 700; }
@media (min-width: 641px) { .type-rezept .recipe-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

/* =====================================================================
   Design „Notizbuch“ (Vorschlag D): Bullet-Journal-Punktraster, Pastellfarben,
   Zettel mit Tinten-Rand und Schatten, handschriftliche Überschriften.
   ===================================================================== */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #23261f;
  --paper: #fbf9f4;
  --dot: #d8d4c8;
  --card: #ffffff;
  --line: #e6e1d4;
  --muted: #6f6d63;
  --hl: #f1dde0;
  --accent: #5c5a4d;
  --butter: #f6eddd;
  --sky: #dbe6ee;
  --peach: #f4dde1;
  --sage: #d9dccf;
  --lilac: #e8cfd5;
  --rose: #e7eef3;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --shadow: 3px 3px 0 var(--ink);
  --radius: 6px;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 20px 20px;
}

/* Überschriften in Handschrift, Fließtext bleibt Figtree */
h1, h2, .tile-title, .brand-mark, .auth-brand .brand-mark { font-family: var(--hand); letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 2.8rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.05rem; }
.prose h1 { font-size: 1.9rem; }
.prose h2, .article h2 { font-size: 1.6rem; }
.qtitle, .question legend { font-family: inherit; }

/* Kopfzeile: hell mit Tintenlinie */
.topbar { background: rgba(255, 254, 250, .94); color: var(--ink); border-bottom: 2px solid var(--ink); backdrop-filter: blur(4px); }
.brand { color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { font-size: 2rem; font-weight: 700; line-height: 1; }
.brand-sub {
  color: var(--ink); font-size: .85rem; font-weight: 700;
  background: var(--butter); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 0 7px; transform: rotate(-3deg); display: inline-block;
}
.topsearch input { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.topsearch input::placeholder { color: var(--muted); }
.mainnav a { color: var(--ink); border: 1.5px solid transparent; }
.mainnav a:hover { background: var(--butter); color: var(--ink); }
.mainnav a.active { background: var(--sage); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.subnav { background: var(--card); border-bottom: 1.5px solid var(--ink); }
.subnav a { color: var(--ink); border: 1.5px solid transparent; }
.subnav a.active, .subnav a:hover { background: var(--hl); color: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) {
  .mainnav { background: var(--paper); border-top: 2px solid var(--ink); }
  .mainnav a.active { background: var(--sage); color: var(--ink); box-shadow: none; }
}

/* Zettel: Karten, Kacheln, Listen */
.card, .table-wrap, .stat, .pagelist a, .check-item, .steps.big li, .recipe-meta div, .answer {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.card, .stat { box-shadow: 4px 4px 0 var(--ink); }
.table-wrap { box-shadow: var(--shadow); }
.pagelist a, .check-item, .steps.big li { box-shadow: 2px 2px 0 var(--ink); }
.pagelist a:hover { border-color: var(--ink); background: var(--butter); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.progress-card { position: relative; }
.progress-card::before {
  content: ""; position: absolute; top: -13px; left: 30px; width: 96px; height: 24px;
  background: rgba(238, 148, 65, .45); transform: rotate(-4deg);
  border-left: 2px dashed rgba(255, 255, 255, .6); border-right: 2px dashed rgba(255, 255, 255, .6);
}

.tile {
  border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--butter); transition: transform .15s, box-shadow .15s;
}
.tile-title { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
.tile-desc, .tile-count { color: #4f4d45; }
a.tile:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); border-color: var(--ink); }
/* Jeder Bereich hat seine Farbe – leicht schief aufgeklebt */
.c0 { --sec: var(--butter); --tilt: -1deg; }
.c1 { --sec: var(--sky);    --tilt: .8deg; }
.c2 { --sec: var(--peach);  --tilt: -.6deg; }
.c3 { --sec: var(--sage);   --tilt: 1deg; }
.c4 { --sec: var(--lilac);  --tilt: -.8deg; }
.c5 { --sec: var(--rose);   --tilt: .6deg; }
.tile[class*=" c"] { background: var(--sec); transform: rotate(var(--tilt)); }
.tile.tile-static { background: var(--card); transform: none; }
@media (prefers-reduced-motion: reduce) { .tile[class*=" c"] { transform: none; } }
/* Bereichsfarbe auf Unterseiten */
.sec-band { background: var(--sec, var(--butter)); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 18px; }
.sec-band h1 { margin: 0; }
.sec-band p { margin: .3em 0 0; }

/* Fortschritt: gestreifter Balken mit Tintenrand */
.bar { background: #fff; border: 1.5px solid var(--ink); height: 14px; }
.bar span { background: repeating-linear-gradient(45deg, #7a2a3a, #7a2a3a 8px, #a9c4d6 8px, #a9c4d6 16px); }

/* Kleinteile */
.tag { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.tag-rezept { background: var(--peach); color: var(--ink); }
.tag-checkliste { background: var(--sage); color: var(--ink); }
.tag-ablauf { background: var(--sky); color: var(--ink); }
.tag-wissen { background: var(--butter); color: var(--ink); }
.pill { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.pill-warn { background: var(--rose); color: var(--ink); }
.pill-ok { background: var(--sage); color: var(--ink); }
.note { background: var(--hl); border: 1.5px solid var(--ink); }
.flash { border: 1.5px solid var(--ink); }
.flash-ok { background: var(--sage); color: var(--ink); }
.flash-err { background: var(--rose); color: #8b0000; }
.read-ok, .ok { color: #2f6b3a; }
.steps li::before { background: var(--ink); color: #fff; }
.prose blockquote { border-left-color: var(--accent); }
.prose strong { background: linear-gradient(transparent 60%, var(--hl) 60%); }

/* Buttons wie Sticker */
.btn { border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 2px 2px 0 var(--ink); background: #fff; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink); color: var(--hl); }
.btn-danger { background: #b3261e; border-color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { border: 1.5px solid var(--ink); border-radius: var(--radius); }
fieldset { border: 1.5px dashed var(--ink); }

/* Tabellen & Rezepte */
.table th, .ing-table thead th { font-family: var(--hand); font-size: 1.2rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--butter); border-bottom: 1.5px solid var(--ink); }
.table td, .ing-table td { border-bottom: 1px dashed rgba(35, 38, 31, .3); }
.ing-table td:not(:last-child) { color: var(--ink); }
.ing-table tr.ing-head th { background: var(--peach); font-family: var(--hand); font-size: 1.25rem; }
.recipe-meta div { background: var(--card); box-shadow: 2px 2px 0 var(--ink); }
.checklist h2 { font-family: var(--hand); font-size: 1.6rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.check-item.done span { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Anmeldeseiten */
body.public { background-color: var(--paper); }
.auth-brand { color: var(--ink); }
.auth-brand .brand-mark { font-size: 3rem; }
.auth-card { box-shadow: 5px 5px 0 var(--ink); }
.langswitch, .langswitch a { color: var(--ink); }
.langswitch a[aria-current] { background: var(--hl); padding: 0 4px; color: var(--ink); }
.foot { font-family: var(--hand); font-size: 1.1rem; }
.savebar { background: rgba(255, 254, 250, .95); border-top: 1.5px solid var(--ink); }

/* ---------- Pinnwand ---------- */
.board-home { margin: 22px 0 6px; }
.board-home .headrow h2 { margin: 0; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; padding: 8px 2px 4px; }
.pin {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 16px 14px; min-height: 130px;
  background: var(--butter); color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--tilt, -1deg)); transition: transform .15s, box-shadow .15s;
}
.pin:nth-child(3n+2) { --tilt: .9deg; }
.pin:nth-child(3n+3) { --tilt: -.4deg; }
.pin:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.pin::before { /* Pinnnadel */
  content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #c0392b 60%);
  border: 1.5px solid var(--ink); box-shadow: 1px 2px 0 rgba(35, 38, 31, .35);
}
.pin-news { background: var(--butter); }
.pin-reminder { background: var(--rose); }
.pin-reminder::before { background: radial-gradient(circle at 35% 35%, #9fd0ff, #2f6fb0 60%); }
.pin-kind { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #4f4d45; }
.pin-title { font-family: var(--hand); font-size: 1.55rem; font-weight: 700; line-height: 1.05; }
.pin-text { font-size: .88rem; color: #3b3a33; flex: 1; }
.pin-date { font-size: .72rem; color: var(--muted); }
.pin-new {
  position: absolute; top: 8px; right: -8px; transform: rotate(8deg);
  background: var(--accent); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .06em;
  padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 2px 2px 0 var(--ink);
}
.pin-expired { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .pin { transform: none; } }

.note-full { position: relative; background: var(--butter); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); padding: 26px 22px 20px; max-width: 680px; }
.note-full.pin-reminder { background: var(--rose); }
.note-full h1 { margin-top: 4px; }
.note-body { font-size: 1.05rem; line-height: 1.6; margin: 12px 0 18px; }
.note-body a[href^="tel:"] { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; white-space: nowrap; }

/* ---------- Logo ---------- */
.brand { align-items: center; gap: 10px; }
.logo-badge { width: 42px; height: 42px; flex-shrink: 0; transform: rotate(-6deg); transition: transform .2s; overflow: visible; }
.brand:hover .logo-badge { transform: rotate(4deg) scale(1.05); }
.brand-word { display: inline-flex; align-items: center; gap: 8px; }
.logo-word { height: 21px; width: auto; color: var(--ink); display: block; margin-top: 3px; }
.brand-sub { font-family: var(--hand); font-size: 1.25rem; line-height: 1; padding: 1px 8px 2px; }
.auth-brand { flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-brand .logo-badge { width: 96px; height: 96px; }
.auth-brand .logo-word { height: 34px; }
.auth-brand .brand-sub { font-size: 1.7rem; }
@media (max-width: 420px) { .logo-word { height: 17px; } .logo-badge { width: 36px; height: 36px; } }
/* Badge wie das Original: gerade, ohne Schatten */
.logo-badge { transform: none; }
.brand:hover .logo-badge { transform: rotate(-8deg); }

/* ---------- Logo mittig in der Kopfzeile ---------- */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.topbar .brand { grid-column: 2; grid-row: 1; justify-self: center; gap: 12px; }
.topbar .topsearch { grid-column: 1; grid-row: 1; justify-self: start; width: 100%; max-width: 300px; }
.topbar .mainnav { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.logo-badge { width: 48px; height: 48px; transform: none; overflow: visible; }
.brand:hover .logo-badge { transform: rotate(-8deg); }
.logo-word { height: auto; width: 190px; margin-top: 2px; }
.auth-brand .logo-badge { width: 110px; height: 110px; }
.auth-brand .logo-word { width: 300px; height: auto; }
@media (max-width: 1000px) { .topbar .topsearch { max-width: 200px; } .mainnav a span { display: none; } }
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar .brand { grid-column: 1; }
  .mainnav a span { display: inline; }
  .logo-badge { width: 40px; height: 40px; }
  .logo-word { width: 160px; }
}
.mainnav a, .subnav a { white-space: nowrap; }
.topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }

/* ---------- Überschriften-Schrift: Gaegu ---------- */
@font-face {
  font-family: "Gaegu";
  src: url("fonts/gaegu-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Gaegu";
  src: url("fonts/gaegu-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root { --hand: "Gaegu", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
/* Gaegu läuft etwas breiter als Caveat – Größen leicht angepasst */
h1 { font-size: clamp(2rem, 5.6vw, 2.6rem); }
h2 { font-size: 1.6rem; }
.tile-title { font-size: 1.45rem; }
.pin-title { font-size: 1.4rem; }
.table th, .ing-table thead th { font-size: 1.1rem; }
.checklist h2 { font-size: 1.45rem; }
.foot { font-size: 1rem; }
/* Kopfzeile: nichts darf sich überlappen – Navigation zeigt bei mittlerer Breite nur Symbole */
.topbar { grid-template-columns: 1fr auto 1fr; }
@media (max-width: 1180px) and (min-width: 761px) {
  .mainnav a span { display: none; }
  .topbar .topsearch { max-width: 220px; }
}

    /* Zettel „Unser Team“ */
    .pin-team { background: var(--lilac); }
    .pin-team::before { background: radial-gradient(circle at 35% 35%, #d8b9ff, #7a4fb0 60%); }
    .team-table td:last-child { white-space: normal; }

/* ---------- Events an der Pinnwand ---------- */
.pin-event { background: var(--sage); padding-right: 82px; }
.pin-event::before { background: radial-gradient(circle at 35% 35%, #ffd27a, #c98a12 60%); }
.cal {
  position: absolute; top: 16px; right: 12px; width: 60px; text-align: center;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden; transform: rotate(3deg); line-height: 1;
}
.cal-mon { display: block; background: #c0392b; color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; border-bottom: 1.5px solid var(--ink); }
.cal-day { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; padding: 4px 0 0; }
.cal-wd { display: block; font-size: .7rem; color: var(--muted); padding: 0 0 5px; }
.pin-event .pin-new { right: auto; left: -10px; top: -6px; transform: rotate(-10deg); }
.pin-meta { font-size: .82rem; font-weight: 600; }
.note-full.pin-event { background: var(--sage); }
.event-facts { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; font-size: 1.05rem; }
.event-fields { background: #f6faf2; }

/* ---------- Countdown Cafe-Geburtstag ---------- */
.pin-countdown { background: var(--peach); text-align: center; align-items: center; justify-content: center; }
.pin-countdown::before { background: radial-gradient(circle at 35% 35%, #ffb3d1, #c2185b 60%); }
.countdown-num { font-family: var(--hand); font-weight: 700; font-size: 3.4rem; line-height: .9; }
.pin-countdown .pin-title { font-size: 1.25rem; }

/* ---------- Bereichsseite: Überschrift frei + Inhaltsverzeichnis wie im Notizbuch ---------- */
.sec-head { margin: 6px 0 22px; }
.sec-icon { font-size: 2.2rem; display: inline-block; transform: rotate(-8deg); margin-bottom: 2px; }
.sec-head h1 { margin: 0 0 6px; }
.sec-head .hl { background: linear-gradient(transparent 58%, var(--sec, var(--hl)) 58%, var(--sec, var(--hl)) 92%, transparent 92%); padding: 0 6px; margin-left: -6px; }
.sec-head p { margin: 0; max-width: 36rem; }

.toc { list-style: none; margin: 0 0 10px; padding: 0; max-width: 760px; }
.toc li { border-bottom: 1.5px dashed rgba(35, 38, 31, .28); }
.toc li:first-child { border-top: 1.5px solid var(--ink); }
.toc a { display: flex; align-items: baseline; gap: 12px; padding: 11px 6px; color: var(--ink); text-decoration: none; border-radius: 4px; transition: background .12s; }
.toc a:hover { background: var(--sec, var(--butter)); }
.toc-num { font-family: var(--hand); font-weight: 700; font-size: 1.15rem; color: var(--muted); min-width: 1.6em; }
.toc-title { font-weight: 600; font-size: 1.02rem; }
.toc-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(35, 38, 31, .25); transform: translateY(-4px); }
.toc-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.toc-meta .tag { font-size: .62rem; padding: 2px 6px; }
.toc-state { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; }
.toc-state.read-ok { background: var(--sage); border: 1.5px solid var(--ink); }
.toc-state.read-ok .ico { width: 14px; height: 14px; }
.toc-req { background: var(--hl); border: 1.5px solid var(--ink); font-weight: 800; font-size: .8rem; }
.toc-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toc-legend .toc-state { width: 18px; height: 18px; font-size: .7rem; }
@media (max-width: 520px) { .toc-dots { display: none; } .toc-title { flex: 1; } .toc-meta .tag { display: none; } }

/* ---------- Bubbles (z. B. Fakten im Willkommens-Brief) ---------- */
.bubbles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 22px 0 8px; max-width: 640px; }
.bubble {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 14%; background: var(--butter); transform: rotate(-3deg);
}
.bubble:nth-child(3n+2) { background: var(--sky); transform: rotate(2deg); }
.bubble:nth-child(3n+3) { background: var(--peach); transform: rotate(-1deg); }
.bubble-big { font-family: var(--hand); font-weight: 700; font-size: 2.1rem; line-height: 1; margin-bottom: 4px; }
.bubble-text { font-size: .86rem; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .bubble { transform: none; } }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.sec-head .sec-icon { grid-column: 1; grid-row: 1; margin: 0; }
.sec-head h1 { grid-column: 2; grid-row: 1; margin: 0; }
.sec-head p { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- Bereichsseite: kleine Kacheln im Raster (Variante 2) ---------- */
.page-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 12px; }
.page-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px;
  background: var(--sec, var(--butter)); color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); padding: 14px;
  transition: transform .15s, box-shadow .15s;
}
.page-tile .tag { align-self: flex-start; }
.page-tile .toc-state { position: absolute; top: 12px; right: 12px; }
.page-tile-title { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1.05; padding-right: 22px; }
.page-tile-text { font-size: .85rem; color: #4f4d45; }
.page-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
/* Handy: Kacheln untereinander statt zu eng nebeneinander (siehe Block „Handy-Feinschliff“ unten) */

/* ---------- Abstimmung ---------- */
.poll { margin: 18px 0 8px; padding: 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.poll h2 { margin: 0 0 12px; font-size: 1.5rem; }
.poll-options { display: grid; gap: 10px; }
.poll-options form { margin: 0; }
.poll-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); padding: 12px 14px;
  transition: transform .1s, box-shadow .1s, background .1s;
}
.poll-btn:hover { background: var(--butter); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.poll-btn.is-chosen { background: var(--sage); }
.poll-check { width: 24px; height: 24px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.poll-btn.is-chosen .poll-check { background: var(--ink); color: #fff; }
.poll-label { flex: 1; }
.poll-count { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; min-width: 1.5em; text-align: right; }
.poll-names { margin: 6px 4px 0 40px; font-size: .85rem; color: var(--muted); }
.pin-poll { font-size: .78rem; font-weight: 700; }
.poll-fields { background: #fbf8ff; }

.pin-meta { display: flex; flex-direction: column; gap: 2px; }

/* Zettel-Text: Zwischenüberschriften und Trennlinie */
.note-h { display: block; font-family: var(--hand); font-size: 1.35rem; margin: 14px 0 2px; }
.note-hr { border: 0; border-top: 1.5px dashed rgba(35, 38, 31, .35); margin: 14px 0 0; }
.note-body a[href^="mailto:"] { word-break: break-all; }

/* ---------- Tabellen in Zetteln (z. B. Wichtige Nummern) ---------- */
.note-table-wrap { margin: 6px 0 4px; }
.note-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .98rem; }
.note-table th, .note-table td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px dashed rgba(35, 38, 31, .25); }
.note-table thead th { font-family: var(--hand); font-size: 1.1rem; border-bottom: 1.5px solid var(--ink); }
.note-table td:first-child { font-weight: 600; }
.note-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.note-table td:nth-child(2) a { white-space: nowrap; }
.note-table td:nth-child(3) { font-variant-numeric: tabular-nums; color: #4f4d45; }
.note-table td:nth-child(4) { font-size: .86rem; color: #4f4d45; }
.note-table th:first-child, .note-table td:first-child { width: 34%; }
.note-table.cols-4 th:nth-child(2), .note-table.cols-4 td:nth-child(2) { width: 30%; }
.note-table.cols-4 th:nth-child(3), .note-table.cols-4 td:nth-child(3) { width: 13%; }
.note-table tr.nt-h th { font-family: var(--hand); font-size: 1.3rem; padding-top: 16px; border-bottom: 1.5px solid var(--ink); }
.note-table tr.nt-gap td { border: 0; padding: 4px; }
@media (max-width: 640px) {
  .note-table, .note-table tbody, .note-table tr, .note-table td, .note-table th { display: block; width: auto !important; }
  .note-table thead { display: none; }
  .note-table tr { padding: 8px 0; border-bottom: 1px dashed rgba(35, 38, 31, .25); }
  .note-table td { border: 0; padding: 1px 0; }
  .note-table td.nt-empty { display: none; }
  .note-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-size: .75rem; color: var(--muted); }
  .note-table tr.nt-h { border: 0; padding: 10px 0 0; }
  .note-table tr.nt-gap { display: none; }
}

/* ---------- Ausklappbare Kacheln in Zetteln (z. B. Kundendienst, Hausverwaltung) ---------- */
.nt-acc { background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); margin: 10px 0; }
.nt-acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; font-family: var(--hand); font-weight: 700; font-size: 1.35rem;
}
.nt-acc > summary::-webkit-details-marker { display: none; }
.nt-acc > summary::after {
  content: "+"; font-family: var(--font, inherit); font-weight: 800; font-size: 1.1rem; width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--butter);
}
.nt-acc[open] > summary::after { content: "–"; background: var(--sage); }
.nt-acc > summary:hover { background: var(--butter); border-radius: 6px; }
.nt-acc[open] > summary { border-bottom: 1.5px dashed rgba(35, 38, 31, .3); }
.nt-acc .note-table { margin: 0; }
.nt-acc .note-table th:first-child, .nt-acc .note-table td:first-child { padding-left: 14px; }
.nt-acc .note-table tr:last-child td { border-bottom: 0; }

/* ---------- Schichtplan-Zettel ---------- */
.plan-badge { align-self: flex-start; margin-top: 4px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .8rem; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Etiketten: kräftigere Farben (Variante B), damit sie sich von den Kacheln abheben ---------- */
.tag-wissen { background: #f3d36b; color: #3a2f00; }
.tag-ablauf { background: #9cc0e6; color: #10304f; }
.tag-checkliste { background: #a9c99a; color: #1f3d17; }
.tag-rezept { background: #f2a982; color: #4a1d06; }
/* runde Status-Zeichen: ✓ gelesen (grün), ! Pflicht (gelb) */
.toc-state.read-ok { background: #a9c99a; color: #1f3d17; }
.toc-req { background: #f3d36b; color: #3a2f00; }

/* ---------- Grundriss mit Areas ---------- */
.floorplan { background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); padding: 10px; margin: 16px 0; overflow-x: auto; }
.floorplan .fp-svg { width: 100%; min-width: 520px; height: auto; display: block; }
.floorplan .area { cursor: pointer; transition: filter .15s; }
.floorplan .area path, .floorplan .area rect { stroke: none; }
.floorplan a:hover .area, .floorplan .area.on { filter: brightness(.93); }
.floorplan .area.on path, .floorplan .area.on rect { stroke: #23261f; stroke-width: 5; stroke-dasharray: 10 6; }
.floorplan .num circle { fill: #fff; stroke: #23261f; stroke-width: 2.5; }
.floorplan .num text { font: 700 30px var(--hand, Gaegu), cursive; text-anchor: middle; dominant-baseline: central; fill: #23261f; }
.floorplan .owall { fill: none; stroke: #23261f; stroke-width: 14; stroke-linejoin: miter; }
.floorplan .iwall path { fill: none; stroke: #23261f; stroke-width: 7; stroke-linecap: square; }
.floorplan .win rect { fill: #fff; stroke: #23261f; stroke-width: 1.5; }
.floorplan .win path { stroke: #23261f; stroke-width: 1.5; }
.floorplan .dleaf { stroke: #23261f; stroke-width: 3; fill: none; }
.floorplan .darc { stroke: #23261f; stroke-width: 1.2; stroke-dasharray: 4 3; fill: none; }
.floorplan .stairs rect { fill: #fff; stroke: #23261f; stroke-width: 1.5; }
.floorplan .stairs path { stroke: #23261f; stroke-width: 1.2; fill: none; }
.floorplan .arrow { stroke: #23261f; stroke-width: 1.5; fill: none; }
.floorplan .furn { fill: #fff; stroke: #23261f; stroke-width: 1.3; }
.floorplan .furn path { fill: #fff; }
.floorplan .ledge { fill: none; stroke: #23261f; stroke-width: 1.3; }
.floorplan .vest rect { fill: #fff; stroke: #23261f; stroke-width: 1.3; }
.floorplan .stepl { stroke: #23261f; stroke-width: 1.2; fill: none; }
.floorplan .bench, .floorplan .gw { fill: #efe2cc; }
.floorplan .fridge { fill: #dcecf7; }
.floorplan .merch { fill: #f2a982; }

.area-tiles { display: grid; gap: 10px; margin: 6px 0 16px; }
.area-tile { border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); background: #fff; scroll-margin-top: 90px; }
.area-tile > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; border-radius: 7px; }
.area-tile > summary::-webkit-details-marker { display: none; }
.area-tile > summary::after { content: "+"; margin-left: auto; font-family: var(--font, inherit); font-weight: 800; width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; }
.area-tile[open] > summary::after { content: "–"; }
.area-tile[open] > summary { border-bottom: 1.5px dashed rgba(35, 38, 31, .3); border-radius: 7px 7px 0 0; }
.at-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.at-body { padding: 10px 16px 6px; }
.at-1 > summary { background: #fbe7a1; }
.at-2 > summary { background: #fbd3bd; }
.at-3 > summary { background: #cfe3f5; }
.at-4 > summary { background: #f7cfd8; }
.at-5 > summary { background: #e3d7f2; }

/* ---------- Seiten auf weißem Papier (bessere Lesbarkeit) ---------- */
.article { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); padding: 22px 26px; }
@media (max-width: 600px) { .article { padding: 16px 16px; box-shadow: 3px 3px 0 var(--ink); } }

/* ---------- Zurück + Gelesen nebeneinander ---------- */
.readbox-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.readbox-row form, .readbox-row p { margin: 0; }

/* ---------- Kategorie-Kacheln (z. B. Cheesecakes) – sehen aus wie ein kleiner Stapel ---------- */
.page-tile.cat-tile { position: relative; box-shadow: 3px 3px 0 var(--ink), 7px 7px 0 -1.5px #fff, 7px 7px 0 0 var(--ink); margin: 0 6px 6px 0; }
.cat-count { position: absolute; top: 12px; right: 12px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }

/* ---------- Coming soon: Kachel sichtbar, aber (noch) nicht anklickbar ---------- */
.page-tile.is-soon { cursor: default; background-color: #f6f3ec !important; border-style: dashed; box-shadow: none; color: var(--muted); }
.page-tile.is-soon:hover { transform: none; }
.page-tile.is-soon .tag, .page-tile.is-soon .page-tile-title { opacity: .6; }
.page-tile.is-soon .page-tile-text { font-style: italic; }
.soon-badge { position: absolute; top: 12px; right: 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); transform: rotate(3deg); }
.page-tile.is-soon-admin { border-style: dashed; }

/* ---------- ß und Umlaute in Überschriften: in Gaegu unruhig, darum nur diese Zeichen aus Patrick Hand (OFL) ---------- */
@font-face {
  font-family: "Hand Eszett";
  src: url("fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  unicode-range: U+00DF, U+1E9E, U+00C4, U+00D6, U+00DC, U+00E4, U+00F6, U+00FC;
  font-weight: 100 900;
  font-display: swap;
}
:root { --hand: "Hand Eszett", "Gaegu", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }

/* ---------- Area-Schilder in Überschriften und Farbpunkte (Lappen-Legende) ---------- */
.apill { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: "Figtree", system-ui, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px; line-height: 1.4; }
.apill.at-1 { background: #fbe7a1; } .apill.at-2 { background: #fbd3bd; } .apill.at-3 { background: #cfe3f5; } .apill.at-4 { background: #f7cfd8; } .apill.at-5 { background: #e3d7f2; }
.ldot { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 8px; flex-shrink: 0; }
.ld-blau { background: #4f86c6; } .ld-gruen { background: #9be33b; } .ld-grau { background: #a3a39c; } .ld-schwarz { background: #23261f; } .ld-rosa { background: #f3a6c3; }
.ld-tuch { background-color: #8c8c86; background-image: conic-gradient(#23261f 25%, transparent 0 50%, #23261f 0 75%, transparent 0); background-size: 7px 7px; }
.prose ul:has(.ldot) { list-style: none; padding-left: 0; }

/* ---------- Kacheln ohne Etikett: Titel macht Platz für Haken/Schild oben rechts ---------- */
.page-tile .page-tile-title { padding-right: 34px; }
.page-tile.is-soon .page-tile-title, .page-tile.is-soon-admin .page-tile-title { padding-right: 0; margin-top: 26px; }
.page-tile.cat-tile .page-tile-title { padding-right: 40px; }

/* ---------- Bild neben einer Anleitung (z. B. Mühle neben den Schritten) ---------- */
.side-by-side { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; margin: 8px 0 16px; }
.side-by-side figure { margin: 0; text-align: center; }
.side-by-side figure img { max-height: 340px; width: auto; }
.side-text > ol { margin-top: 0; }
@media (max-width: 640px) { .side-by-side { grid-template-columns: 1fr; } .side-by-side figure img { max-height: 220px; } }

/* ---------- Seitenkasten: Kasten links (Foto + Liste), Text rechts ---------- */
.vb { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; margin: 12px 0; }
.vb-card { background: var(--sky); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); padding: 14px; }
.vb-card figure, .vb-card p:has(img) { margin: 0; text-align: center; }
.vb-card img, .prose .vb-card figure img { max-height: 160px !important; width: auto; mix-blend-mode: multiply; }
.vb-card h2, .vb-card h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.vb-card ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.vb-card li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-weight: 800; border-bottom: 1px dashed rgba(35, 38, 31, .3); }
.vb-card li:last-child { border-bottom: 0; }
.vb-card li strong { background: none; font-weight: 500; }
.vb-main > h2:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .vb { grid-template-columns: 1fr; }
  /* Handy: Foto klein links, Mahlgrad-Liste rechts daneben */
  .vb-card { display: grid; grid-template-columns: 110px 1fr; column-gap: 14px; align-items: start; }
  .vb-card > :first-child { grid-row: span 2; align-self: center; }
  .vb-card img { max-height: 190px; }
  .vb-card h2, .vb-card h3 { margin-top: 0; }
}

/* ---------- Handy-Feinschliff ---------- */
.page-tiles { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.page-tile, .page-tile-title { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 560px) { .page-tile-title { hyphens: auto; } }
@media (max-width: 760px) {
  /* untere Navigationsleiste: volle Breite, Inhalt verschwindet nicht dahinter */
  .mainnav, .topbar .mainnav { margin-left: 0; justify-self: stretch; grid-column: auto; grid-row: auto; }
  /* Weichzeichner der Kopfzeile würde die fixierte Leiste an der Kopfzeile festhalten */
  .topbar { backdrop-filter: none; background: var(--paper); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  /* Kacheln in einer Spalte, kompakt, Kurzbeschreibung höchstens zwei Zeilen */
  .page-tiles { grid-template-columns: 1fr; gap: 10px; }
  .page-tile { min-height: 0; padding: 12px 14px; }
  .page-tile-title { font-size: 1.2rem; }
  .page-tile-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
  .page-tile.is-soon .page-tile-title { margin-top: 0; padding-right: 120px; }
  /* Grundriss passt sich der Breite an, statt seitlich abgeschnitten zu werden */
  .floorplan { padding: 6px; }
  .floorplan .fp-svg { min-width: 0; }
  .floorplan .num circle { r: 34px; }
  .floorplan .num text { font-size: 46px; }
}

/* ---------- Teamtabelle auf dem Handy: eine kleine Karte pro Person ---------- */
@media (max-width: 560px) {
  .team-table table, .team-table tbody { display: block; width: 100%; }
  .team-table thead { display: none; }
  .team-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 2px; padding: 10px 14px; border-bottom: 1px dashed rgba(35, 38, 31, .3); }
  .team-table tr:last-child { border-bottom: 0; }
  .team-table td { display: block; padding: 0 !important; border: 0 !important; }
  .team-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1.05rem; }
  .team-table td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: center; text-align: right; font-size: .8rem; color: var(--muted); white-space: normal; }
  .team-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .92rem; }
  .team-table td:nth-child(n+4) { grid-column: 1 / -1; font-size: .85rem; }
}

/* ---------- Ohne Schatten: Kacheln, Zettel und Blätter flach (nur Rand), Buttons behalten ihren Schatten ---------- */
*:not(.btn):not(button):not(.phone-btn) { box-shadow: none !important; }
.page-tile.cat-tile { box-shadow: 6px 6px 0 -1.5px #fff, 6px 6px 0 0 var(--ink) !important; }

/* ---------- Startseite: Bereiche in Gruppen links, Pinnwand rechts ---------- */
.prog-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 4px; font-size: .92rem; }
.prog-line .prog-label { font-weight: 400; }
.prog-line .bar { width: 220px; flex: none; margin: 0; }
.home-two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; margin-top: 18px; }
.home-grp { margin-bottom: 16px; }
.home-grp h2 { font-size: 1.4rem; margin: 0 0 8px; }
.sec-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sec-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; background: var(--butter); transition: transform .1s; }
.sec-tile:hover { transform: translateY(-2px); }
.sec-tile.c0 { background: #f6eddd; } .sec-tile.c1 { background: #dbe6ee; } .sec-tile.c2 { background: #f4dde1; }
.sec-tile.c3 { background: #d9dccf; } .sec-tile.c4 { background: #e8cfd5; } .sec-tile.c5 { background: #e7eef3; }
.sec-tile-icon { font-size: 2rem; line-height: 1; }
.sec-tile-title { font-family: var(--hand); font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.sec-tile-count { margin-top: auto; font-size: .8rem; color: var(--muted); }
.home-board .headrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.home-board .headrow h2 { margin: 0; font-size: 1.4rem; }
.board.board-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
.board.board-col .pin { transform: none; }
@media (max-width: 860px) {
  .home-two { grid-template-columns: 1fr; }
  .home-board { order: -1; }   /* Handy: Pinnwand zuerst */
  .board.board-col { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 560px) {
  .sec-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sec-tile { min-height: 92px; padding: 12px; }
  .prog-line .bar { width: 100%; flex: 1 1 100%; order: 3; }
}

/* Info-Zettel: nicht anklickbar */
.pin.pin-info { cursor: default; }
.pin.pin-info:hover { transform: none; }

/* ---------- Bereichs-Kacheln: kleines Linien-Symbol neben dem Namen ---------- */
.sec-tile { min-height: 84px; }
.sec-tile-title { display: flex; align-items: flex-start; gap: 8px; }
.sec-svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink); }
.sec-tile-title { font-size: 1.08rem; }
.sec-tile { padding: 12px 12px; }

/* ---------- Galerie: freigestellte Produktbilder mit Unterschrift ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.gallery figure { margin: 0; background: var(--sky); border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 12px 10px; text-align: center; }
.gallery img, .prose .gallery figure img { width: 100%; height: 170px; object-fit: contain; max-height: none; }
.gallery figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.gallery figcaption strong { background: none; font-weight: 700; }
.gallery figcaption span { color: var(--muted); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .gallery img, .prose .gallery figure img { height: 130px; } }

/* ---------- Eigene Symbole statt Emojis ---------- */
.inline-ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: currentColor; }
.bubble-big .inline-ic { width: 30px; height: 30px; margin: 0 3px; }
.bubble-big:has(.inline-ic) { white-space: nowrap; }
.sec-icon .sec-svg.head { width: 40px; height: 40px; }
.sec-svg.pin-ic { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: .35em; transform: rotate(20deg); }

/* ---------- Mengen-Liste (Auffüllliste): eine große Tabelle in zwei Spalten, wie die ausgedruckte Liste ---------- */
.mengen { columns: 2; column-gap: 0; column-rule: 1.5px solid var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; margin: 16px 0; overflow: hidden; }
.mengen .mg { break-inside: avoid; padding: 0; margin: 0 0 18px; }
.mengen .mg:last-child { column-span: all; margin: 0; border-top: 1.5px solid var(--ink); background: var(--butter); }
.mengen h3 { display: none; }
.mengen .mg:last-child h3 { display: block; font-family: var(--hand); font-size: 1.15rem; margin: 0; padding: 8px 14px 2px; }
.mengen ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.mengen li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.mengen .mg li:first-child { border-top: 1px solid var(--line); }
.mengen .mg:first-child li:first-child, .mengen .mg:nth-child(4) li:first-child { border-top: 0; }
.mengen li strong { background: none; font-weight: 700; text-align: right; white-space: nowrap; }
.mengen .mg:last-child ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mengen .mg:last-child li { border: 0; }
.mengen .mg:last-child li strong { display: none; }
@media (max-width: 640px) { .mengen { columns: 1; } }

/* Einleitung oben in einer Kategorie (z. B. Smoothies) */
.cat-intro { background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 20px; margin: 0 0 16px; }
.cat-intro .prose > :first-child, .cat-intro > :first-child { margin-top: 0; }

/* Einfache Tabelle im Text (z. B. Smoothie-Rezepte) */
.simple-table { margin: 8px 0 22px; }
.simple-table td:not(:first-child), .simple-table th:not(:first-child) { text-align: right; white-space: nowrap; width: 22%; }

/* Zwei Blöcke nebeneinander (z. B. Smoothie-Rezepte) */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; align-items: start; }
.cols2 .col-cell > h2:first-child { margin-top: 10px; }
/* Überschrift, Text und Tabelle stehen in beiden Spalten jeweils auf gleicher Höhe */
.cols2 .col-cell { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.cols2 .col-cell > * { margin-bottom: 0; }
.cols2 .col-cell > p { align-self: start; }
.cols2 .col-cell > .simple-table { align-self: start; margin-top: 8px; }
.cols2 .simple-table { margin-bottom: 10px; }
@media (max-width: 700px) { .cols2 { grid-template-columns: 1fr; } }

/* Steckbrief-Tabelle (z. B. Kaffeesorten): links Merkmal, rechts Text */
.simple-table.facts td:first-child { width: 34%; font-weight: 700; white-space: nowrap; }
.simple-table.facts td:not(:first-child) { text-align: left; white-space: normal; width: auto; }
.cols2.rows-4 .col-cell { grid-row: span 4; } .cols2.rows-5 .col-cell { grid-row: span 5; } .cols2.rows-6 .col-cell { grid-row: span 6; }
.cols2 .col-cell > figure, .cols2 .col-cell > p:has(> img) { margin: 4px 0 0; text-align: center; }
.cols2 .col-cell figure img, .cols2 .col-cell p > img, .prose .cols2 figure.photo img { max-height: 190px !important; width: auto; }

/* Produktkarten (z. B. Frühstück): Name + Preis, Merkmale, Zutaten, Satz für Gäste */
.produkte { margin: 10px 0 22px; }
.pk-h { font-family: "Gaegu", var(--hand); font-size: 1.35rem; margin: 18px 0 10px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pk-card { border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px; background: #fff; }
.pk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.pk-name { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.pk-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pk-pill { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; white-space: nowrap; }
.pk-vegan { background: var(--sage); }
.pk-gf { background: var(--sky); }
.pk-allerg { background: #f9dbe0; white-space: normal; }
.prose .pk-line, .pk-line { margin: 8px 0 0; font-size: .92rem; line-height: 1.45; }
.pk-line b { font-weight: 700; background: none; }
.pk-top:last-child { margin-bottom: 0; }

/* Zwischenüberschriften in Seiten: größer und mit mehr Abstand davor, damit Abschnitte klar getrennt sind */
.prose > h2, .prose > h3, .produkte .pk-h { font-size: 2rem; line-height: 1.15; margin: 1.5em 0 .45em; }
.prose > h2:first-child, .prose > h3:first-child, .prose > .produkte:first-child > .pk-h:first-child { margin-top: .3em; }
@media (max-width: 560px) { .prose > h2, .prose > h3, .produkte .pk-h { font-size: 1.75rem; margin-top: 1.3em; } }
/* Steckbrief-Tabelle auf dem Handy: Merkmal über dem Text statt daneben */
@media (max-width: 560px) {
  .simple-table.facts tr { display: block; padding: 8px 0; border-bottom: 1px dashed #999; }
  .simple-table.facts tr:last-child { border-bottom: 0; }
  .simple-table.facts td, .simple-table.facts td:first-child, .simple-table.facts td:not(:first-child) { display: block; width: auto; white-space: normal; border: 0 !important; padding: 2px 14px; }
}
.pk-line.pk-todo { color: var(--muted); }
.pk-line.pk-todo b { color: var(--ink); }

/* Preis unten rechts auf der Produktkarte, abgetrennt durch eine gestrichelte Linie (Variante D) */
.pk-card { display: flex; flex-direction: column; }
.pk-top { display: contents; }
.pk-name { margin-bottom: 8px; }
.pk-price { order: 99; margin-top: auto; padding-top: 8px; border-top: 1px dashed #999; text-align: right; font-weight: 700; font-size: .95rem; color: var(--ink); }
.pk-card > .pk-line:last-of-type { margin-bottom: 10px; }
.pk-card > .pk-pills:last-child { margin-bottom: 12px; }

/* Galerie mit Preis (z. B. Kaltgetränke): Preis unten rechts wie bei den Produktkarten */
.gallery figure { display: flex; flex-direction: column; }
.gallery .gal-price { margin-top: auto; padding-top: 6px; border-top: 1px dashed #999; text-align: right; font-weight: 700; font-size: .85rem; color: var(--ink); }
.gallery figcaption + .gal-price { margin-top: auto; }
.gallery figcaption { margin-bottom: 10px; }
.gallery .gal-price.is-todo { color: var(--muted); font-weight: 600; }

/* Überschriften zwischen Kachel-Gruppen in einem Bereich (z. B. Getränke / Speisen) */
.tile-group { font-family: var(--hand); font-size: 1.8rem; margin: 30px 0 12px; }
.tile-group:first-child { margin-top: 0; }

/* Schilder in der Bildergalerie (z. B. Milchsorten) */
.gal-pills { justify-content: center; margin: 0 0 10px; }
.pk-plain { background: #fff; }

/* Galerie als Liste: breite weiße Zeilen, Bild links, Name und Schilder rechts (z. B. Milchsorten) */
.gallery.is-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery.is-list figure { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; text-align: left; padding: 14px; background: #fff; }
.gallery.is-list img, .prose .gallery.is-list figure img { grid-row: 1 / 3; height: 150px; width: 120px; object-fit: contain; }
.gallery.is-list figcaption { margin: 0 0 8px; align-items: flex-start; }
.gallery.is-list figcaption strong { font-family: var(--hand); font-size: 1.3rem; }
.gallery.is-list .gal-pills { justify-content: flex-start; margin: 0; align-self: start; }
@media (max-width: 560px) { .gallery.is-list { grid-template-columns: 1fr; } .gallery.is-list img, .prose .gallery.is-list figure img { height: 130px; } }
.gallery figcaption span.gal-size { color: var(--ink); }

/* ---------- Pinnwand: eigene Zettelfarben (kräftiger als die Bereichskacheln, damit man Pins und Infoseiten auseinanderhält) ---------- */
:root {
  --pin-news: #f3e3a3;      /* Post-it-Gelb */
  --pin-reminder: #f2c4b8;  /* Koralle */
  --pin-team: #d8cdea;      /* Lavendel */
  --pin-event: #f2cd9c;     /* Aprikose */
  --pin-countdown: #bcdcdc; /* Türkis */
}
.pin, .note-full { background: var(--pin-news); }
.pin-news, .note-full.pin-news { background: var(--pin-news); }
.pin-reminder, .note-full.pin-reminder { background: var(--pin-reminder); }
.pin-team, .note-full.pin-team { background: var(--pin-team); }
.pin-event, .note-full.pin-event { background: var(--pin-event); }
.pin-countdown, .note-full.pin-countdown { background: var(--pin-countdown); }

/* Weihnachtsfeier (Event) in Bordeaux, Cafe-Geburtstag (Countdown) im neundrei-Grün – helle Schrift */
:root { --pin-event: #7a2a3a; --pin-countdown: #5c5a4d; }
.pin.pin-event, .pin.pin-countdown, .pin.pin-event:hover, .pin.pin-countdown:hover { color: #fbf9f4; }
.pin.pin-event .pin-kind, .pin.pin-countdown .pin-kind,
.pin.pin-event .pin-text, .pin.pin-countdown .pin-text,
.pin.pin-event .pin-meta, .pin.pin-countdown .pin-meta { color: #fbf9f4; }
.pin.pin-event .pin-date, .pin.pin-countdown .pin-date { color: rgba(251, 249, 244, .75); }
/* Ausführliche Zettelseite bleibt hell (viel Text, Umfrage), in der passenden hellen Farbe */
.note-full.pin-event { background: #e8cfd5; }
.note-full.pin-countdown { background: #d9dccf; }
.pin.pin-event .cal { color: var(--ink); }

/* Kleines Bild am Zettel (z. B. Kaffeetüte im Comic-Look) */
.pin.has-bild { padding-right: 104px; }
.pin-bild { position: absolute; right: 24px; top: 14px; width: 64px; height: auto; }
.note-bild { float: right; width: 120px; margin: 0 0 12px 18px; }
@media (max-width: 560px) { .note-bild { width: 90px; } }

/* PDF-Anleitung in der Seite (aufklappbar) */
.pdf-box { border: 1.5px solid var(--ink); border-radius: var(--radius, 6px); background: #fff; margin: 1.2em 0; }
.pdf-box summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; font-weight: 700; }
.pdf-box summary::-webkit-details-marker { display: none; }
.pdf-box summary::before { content: "▸"; color: var(--accent); }
.pdf-box[open] summary::before { content: "▾"; }
.pdf-hint { font-weight: 400; font-size: .85rem; color: var(--muted); }
.pdf-box iframe { display: block; width: 100%; height: 75vh; border: 0; border-top: 1.5px solid var(--ink); }
.pdf-link { margin: 0; padding: 10px 16px; border-top: 1px dashed rgba(35, 38, 31, .3); font-size: .9rem; }

/* Unterstrichen (++Text++): kräftige Tintenlinie statt Marker */
.prose u { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 4px; text-decoration-color: var(--ink); }
.prose u strong { background: none; }

/* Abbildung Bedienteil (Alarmanlage): schmal rechts neben der Tastentabelle */
.prose img[src*="verisure-bedienteil-aussen"] { float: right; width: 210px; margin: 0 0 12px 24px; }
@media (max-width: 560px) { .prose img[src*="verisure-bedienteil-aussen"] { float: none; display: block; width: 170px; margin: 0 auto 14px; } }

/* Erste-Hilfe-Plakat: nicht zu groß, mittig */
.prose img[src*="erste-hilfe-plakat"] { display: block; width: 100%; max-width: 560px; margin: 1.2em auto; }

/* Schlüsselliste */
.key-table td:not(:first-child), .key-table th:not(:first-child) { text-align: center; }
.key-table td:last-child, .key-table th:last-child { text-align: left; }
.key-table .key-yes { color: var(--accent); display: inline-flex; }
.keys-card { max-width: 560px; margin: 0 auto; }
.keys-q { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.keys-q legend { font-weight: 700; margin-bottom: 6px; width: 100%; }

/* Gutscheinkarte: klein rechts neben dem Text */
.prose figure:has(img[src*="gutscheinkarte"]), .prose p:has(> img[src*="gutscheinkarte"]) { float: right; width: 240px; margin: 0 0 14px 26px; }
.prose img[src*="gutscheinkarte"] { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .prose figure:has(img[src*="gutscheinkarte"]), .prose p:has(> img[src*="gutscheinkarte"]) { float: none; width: 250px; margin: 0 auto 16px; } }
.prose:has(img[src*="gutscheinkarte"]) ol > li { display: flow-root; }

/* Logo oben: harter Tintenschatten wie bei den Kacheln (folgt der welligen Form) */
.logo-badge { filter: drop-shadow(3px 3px 0 var(--ink)); }
.auth-brand .logo-badge { filter: drop-shadow(5px 5px 0 var(--ink)); }
/* Gutscheine: Betrag & Einlösen als zwei kleine Kärtchen (Variante A) statt runder Bubbles */
.prose:has(img[src*="gutscheinkarte"]) .bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; max-width: none; }
.prose:has(img[src*="gutscheinkarte"]) .bubble { aspect-ratio: auto; border-radius: 6px; box-shadow: none; transform: none; padding: 8px 12px; align-items: flex-start; text-align: left; min-width: 130px; }
.prose:has(img[src*="gutscheinkarte"]) .bubble-big { font-size: 1.35rem; line-height: 1.1; margin: 0; }
.prose:has(img[src*="gutscheinkarte"]) .bubble-text { font-size: .82rem; color: #3b3a33; }

/* Bereichsfarben nach Gruppe (Startseite und Bereichsseiten): Für den Start c0 Creme, Im Alltag c1 Hellblau, Rezepte c6 Rosé */
:root { --rosewood: #e4bfc7; }
.c6 { --sec: var(--rosewood); --tilt: .5deg; }
.sec-tile.c6 { background: var(--rosewood); }

/* Pinnwand: Neuigkeiten hellblau statt gelb */
:root { --pin-news: #cfe0ec; }

/* Produktkarten in einer Farbe, z. B. Matcha: [[produkte:gruen]] */
/* Kartenfarbe einzelner Produkte: „Farbe: #rrggbb“ in den Inhaltsdateien → Klasse pk-bg-rrggbb (keine Inline-Styles wegen CSP).
   Neue Farbe? Hier eine Zeile ergänzen. */
.produkte .pk-grid .pk-card.pk-bg-dcebd0 { background: #dcebd0; }
.produkte .pk-grid .pk-card.pk-bg-ebc6d4 { background: #ebc6d4; }
.produkte .pk-grid .pk-card.pk-bg-ebdcca { background: #ebdcca; }
.produkte .pk-grid .pk-card.pk-bg-ecd2d8 { background: #ecd2d8; }
.produkte .pk-grid .pk-card.pk-bg-f2e2c4 { background: #f2e2c4; }
.produkte .pk-grid .pk-card.pk-bg-f7d4e0 { background: #f7d4e0; }
.produkte .pk-grid .pk-card.pk-bg-fbdcc0 { background: #fbdcc0; }
.produkte .pk-grid .pk-card.pk-bg-fde5c0 { background: #fde5c0; }
.produkte.pk-farbe-gruen .pk-card { background: #dfe8d2; }
.produkte.pk-farbe-braun .pk-card { background: #eadccb; }
.produkte.pk-farbe-orange .pk-card { background: #f7dcc4; }
.produkte.pk-farbe-beige .pk-card { background: #f3ebdb; }
.gallery.gal-farbe-beige figure { background: #f6efe2; }
.produkte.pk-farbe-hellbeige .pk-card { background: #f9f4ea; }
.produkte.pk-farbe-gelb .pk-card { background: #fcf5d7; }
.produkte.pk-farbe-lila .pk-card { background: #f3eef8; }
.produkte.pk-farbe-milchbeige .pk-card { background: #f6efe2; }
.gallery.gal-farbe-offwhite figure { background: #fcfaf5; }
/* Freigestellte Produktfotos ohne Kachel: [[galerie:frei]] */
.gallery.gal-farbe-frei figure { background: none; border: 0; padding: 0; }
.gallery.gal-farbe-frei img, .prose .gallery.gal-farbe-frei figure img { height: 260px; }
@media (max-width: 560px) { .gallery.gal-farbe-frei img, .prose .gallery.gal-farbe-frei figure img { height: 200px; } }

/* Sprach-Knopf DE/EN in der Kopfleiste */
.lang-toggle { padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .8rem; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.lang-toggle:hover { background: var(--cream); }
.topbar .lang-toggle { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; }
@media (max-width: 760px) { .topbar .lang-toggle { grid-column: 3; justify-self: end; } }

/* ---------- Header in neundrei-Dunkelgrün (27.11.2026) ---------- */
.topbar { background: var(--olive); color: var(--cream); border-bottom: 2px solid var(--ink); }
.topbar .brand, .topbar .brand:hover { color: var(--cream); }
.topbar .logo-word { color: var(--cream); }
.topbar .logo-badge { filter: drop-shadow(3px 3px 0 var(--ink)); }
.topbar .lang-toggle { background: var(--cream); border-color: var(--ink); color: var(--ink); }
@media (min-width: 761px) {
  .topbar .mainnav a { color: var(--cream); border-color: transparent; }
  .topbar .mainnav a:hover { background: rgba(246, 237, 221, .14); color: #fff; }
  .topbar .mainnav a.active { background: var(--cream); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
}
@media (max-width: 760px) { .topbar { background: var(--olive); } }

/* Verwaltung › Pflichtseiten */
.reads-list { display: grid; gap: 10px; margin-bottom: 24px; }
.reads-item { padding: 12px 16px; }
.reads-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; cursor: pointer; }
.reads-item summary .bar { flex: 1 1 120px; max-width: 220px; }
.reads-item[open] summary { margin-bottom: 10px; }
.reads-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.reads-open { margin: 6px 0 12px; padding-left: 1.2em; }
.reads-open li { margin: 3px 0; }
.reads-item textarea { width: 100%; margin: 4px 0 8px; font: inherit; }
.import-report ul { margin: 6px 0 0; padding-left: 1.2em; }
