/* Vasenmalerei: schwarze Figuren auf gebranntem Ton, Glasperlen als einziges Licht.
   Schriften ab Deploy lokal einbetten (fonts/), NICHT von Google laden (DSGVO). Bis dahin: Systemschriften. */
:root {
  --ton: #c4693a;
  --ton-tief: #8f3f1d;
  --schwarz: #1a0f0a;
  --creme: #f1ddb6;
  --gold: #dfae4c;
  --anzeige: "Marcellus", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --text: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maeander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M1 15V1H15V10H6V5H11' fill='none' stroke='%231a0f0a' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #a34d24; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100dvh; color: var(--schwarz); font-family: var(--text); font-size: 18px;
  background: radial-gradient(ellipse at 50% 20%, #d47a48 0%, var(--ton) 42%, #a34d24 78%, #7d3417 100%) fixed;
}
.ton-huelle { position: fixed; inset: 0; pointer-events: none; z-index: 0; mix-blend-mode: multiply; }
.ton { display: block; width: 100%; height: 100%; }

.seite {
  position: relative; z-index: 1; max-width: 480px; min-height: 100dvh; margin: 0 auto;
  padding: 0 22px max(26px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
/* Rahmen wie das Bildfeld einer Vase */
.seite::before { content: ""; position: absolute; inset: 8px 8px; border: 2px solid var(--schwarz); pointer-events: none; }
.seite::after  { content: ""; position: absolute; inset: 13px 13px; border: 1px solid rgba(26,15,10,.55); pointer-events: none; }
.band { height: 16px; margin: 22px 8px 0; background: var(--maeander) repeat-x; }
.band-unten { margin-top: 24px; margin-bottom: 10px; }

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.marke { font-family: var(--anzeige); font-size: 15px; letter-spacing: .24em; text-transform: uppercase; color: var(--schwarz); text-decoration: none; }
.serie {
  display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 6px; border-radius: 999px;
  background: var(--schwarz); color: var(--creme); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.serie-perle { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, rgba(255,255,255,0) 28%), radial-gradient(circle at 50% 56%, #ffc660 0, #b8741a 100%); box-shadow: 0 0 10px rgba(255,198,96,.7); }

.datum { margin: 26px 0 0; font-size: 13.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.titel { margin: 8px 0 0; font-family: var(--anzeige); font-size: 40px; line-height: 1.06; font-weight: 400; }
.unter { margin: 2px 0 0; text-align: center; font-size: 16px; }

.bild { margin-top: 14px; }
.bild svg { display: block; width: 100%; height: auto; }
.baumbild { margin-top: 6px; }
.baumbild svg { max-height: 62dvh; }

/* Tafeln mit den beiden Begriffen (Tabula ansata) */
.tafeln { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.tafel {
  position: relative; min-width: 128px; max-width: 47%; padding: 10px 14px; text-align: center;
  background: var(--creme); border: 2px solid var(--schwarz); border-radius: 2px;
  font-family: var(--anzeige); font-size: 19px; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere;
}
.tafel::before, .tafel::after { content: ""; position: absolute; top: 50%; margin-top: -9px; border: 9px solid transparent; }
.tafel::before { left: -20px; border-right-color: var(--schwarz); }
.tafel::after { right: -20px; border-left-color: var(--schwarz); }
.tafel-a { margin-left: 4px; } .tafel-b { margin-right: 4px; }

form { margin-top: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.etikett { font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
textarea {
  margin-top: 10px; width: 100%; padding: 14px 16px; background: var(--creme); color: var(--schwarz);
  border: 2px solid var(--schwarz); border-radius: 2px; box-shadow: 3px 3px 0 var(--schwarz);
  font: inherit; font-size: 19px; line-height: 1.35; resize: none;
}
textarea::placeholder { color: #6d5a48; }
textarea:focus-visible, .knopf:focus-visible, a:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }
.zeile { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14.5px; }
.hinweis { margin: 12px 0 0; padding: 8px 12px; background: var(--schwarz); color: var(--creme); font-size: 15px; }

.knopf {
  margin-top: 22px; height: 58px; width: 100%; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--schwarz); color: var(--creme); outline: 1px solid var(--gold); outline-offset: -5px;
  font-family: var(--anzeige); font-size: 18px; letter-spacing: .22em; text-transform: uppercase;
}
.knopf:disabled { opacity: .55; cursor: default; }
.weiter { display: block; margin-top: 16px; text-align: center; color: var(--schwarz); font-size: 18px; font-weight: 700; text-decoration: none; }

/* Ergebnis */
.werte { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.werte li { display: grid; grid-template-columns: 26px 1fr 34px; align-items: center; column-gap: 8px; }
.werte .buchstabe { font-family: var(--text); font-weight: 700; font-size: 24px; } /* Marcellus hat kein Griechisch */
.werte .name { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; grid-column: 2; }
.werte .zahl { font-family: var(--anzeige); font-size: 28px; text-align: right; grid-row: 1 / span 2; grid-column: 3; }
.werte .buchstabe { grid-row: 1 / span 2; }
.schnur { display: block; width: 100%; height: 20px; grid-column: 2; }
.urteil {
  margin: 18px 0 0; padding: 16px 18px; background: var(--creme); border: 2px solid var(--schwarz); box-shadow: 3px 3px 0 var(--schwarz);
  font-size: 19px; line-height: 1.38; font-style: italic;
}
.teilen { margin: 16px 0 0; padding: 10px 14px; background: var(--schwarz); color: var(--creme); font: 15px/1.5 var(--text); white-space: pre-wrap; }

.knopf.klein { height: 48px; font-size: 15px; letter-spacing: .16em; margin-top: 12px; }
.leer { margin: 14px 0 0; padding: 12px 14px; background: var(--creme); border: 2px solid var(--schwarz); font-style: italic; }
.sichern { margin-top: 22px; padding: 12px 14px; border: 2px solid var(--schwarz); background: rgba(241,221,182,.35); }
.sichern summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.sichern p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
.sichern .etikett { display: block; margin-top: 16px; }
.sichern textarea { font-size: 15px; font-family: ui-monospace, Consolas, monospace; }

/* Baum */
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 8px 0 0; padding: 0; font-size: 14.5px; font-weight: 700; }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--schwarz); }
.zahlen { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zahlen div { padding: 10px 4px; text-align: center; background: var(--creme); border: 2px solid var(--schwarz); }
.zahlen b { display: block; font-family: var(--anzeige); font-size: 28px; font-weight: 400; line-height: 1.1; }
.zahlen span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
