/* ============================================================
   maxlamm Share
   Nur Share-Eigenes: die Lesefläche für Notizen. Tokens, Kopf, Knöpfe,
   Formulare, Tabelle und Footer kommen aus base.css (Quelle:
   ~/Code/tools/maxlamm-ui). Schriften liegen lokal.
   ============================================================ */

.share-page { max-width: 720px; margin: 0 auto; padding: 1rem 16px 5rem; font-size: 17px; line-height: 1.7; }
.share-page--wide { max-width: var(--max-width); font-size: 15px; line-height: 1.6; }

.share-page .page-title { margin: 1.5rem 0 1.75rem; }

.share-page h1, .share-page h2, .share-page h3, .share-page h4, .share-page h5, .share-page h6 {
  font-weight: 600; line-height: 1.25; color: var(--text-white); margin: 2.25rem 0 0.6rem; text-wrap: balance;
}
.share-page h1 { font-size: 1.6rem; letter-spacing: 0.02em; }
.share-page h2 { font-size: 1.35rem; letter-spacing: 0.02em; }
.share-page h3 { font-size: 1.1rem; }
.share-page h4, .share-page h5, .share-page h6 { font-size: 1rem; }
.share-page .page-title { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: 0.06em; }

.share-page p { margin: 0.85rem 0; }

.share-page a {
  color: var(--accent); text-decoration: underline; text-decoration-color: rgba(232, 85, 78, 0.4);
  text-underline-offset: 3px; transition: text-decoration-color var(--transition);
}
.share-page a:hover { text-decoration-color: var(--accent); }
.share-page a.btn { text-decoration: none; }
.share-page a.btn:not(.btn--ghost):not(.btn--quiet) { color: var(--bg-dark); }
.share-page a.btn--ghost, .share-page a.btn--quiet { color: var(--text); }

.share-page hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.share-page del { color: var(--text-light); }
.share-page img { max-width: 100%; height: auto; border-radius: 2px; }

.share-page code, .share-page pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em;
}
.share-page code { background: var(--bg-card); padding: 0.1em 0.35em; border-radius: 2px; }
.share-page pre { overflow-x: auto; padding: 1rem; background: var(--bg-card); border-radius: 4px; }
.share-page pre code { background: none; padding: 0; }

.share-page blockquote {
  margin: 1.25rem 0; padding: 0.1rem 0 0.1rem 1rem; border-left: 1px solid var(--border-strong); color: var(--text-light);
}
.share-page blockquote p { margin: 0.4rem 0; }

/* Tabellen: dünnes Gitter, kompakte Zeilen, linksbündige Köpfe. */
.share-page .note-table, .share-page table:not(.table) {
  width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1rem 0; line-height: 1.4;
}
.share-page table:not(.table) th, .share-page table:not(.table) td {
  border: 1px solid var(--border); padding: 0.3rem 0.65rem; text-align: left;
}
.share-page table:not(.table) th { font-weight: 600; }

.share-page mark { background: rgba(232, 85, 78, 0.3); color: inherit; padding: 0.05em 0.25em; border-radius: 2px; }

/* Task-Listen: Obsidian-artige Checkboxen statt Browser-Standard. */
.share-page .task-list-item { list-style: none; margin-left: -1.4rem; padding-left: 1.4rem; }
.share-page .task-list-item input[type='checkbox'] {
  appearance: none; -webkit-appearance: none; width: 1em; height: 1em; margin: 0 0.45em 0 0;
  border: 1px solid var(--text-light); border-radius: 2px; background: transparent; vertical-align: -0.1em;
}
.share-page .task-list-item input[type='checkbox']:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5l2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
  background-size: 0.75em; background-position: center; background-repeat: no-repeat;
}
.share-page .task-list-item.is-checked { color: var(--text-light); text-decoration: line-through; }

/* Dashboard unter /admin */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.admin-head .page-title { margin: 1.5rem 0 0.5rem; }
.admin-count { color: var(--text-light); margin: 0 0 1.5rem; }
.admin-flash { margin: 0 0 1rem; }
.admin-hint { color: var(--text-light); font-size: 13px; margin-top: 2rem; }
.admin-empty { color: var(--text-light); }
.admin-hint code, .admin-empty code { font-size: 0.9em; }
.share-page--wide .table a { text-decoration: none; }
.share-page--wide .table a.table__title { color: var(--text-white); }
.share-page--wide .table .is-muted a.table__title { color: var(--text-light); }

@media (max-width: 600px) {
  .table .hide-sm { display: none; }
}
