/* Habitué · Fantom-Schicht, zuletzt geladen.
   Weisser Grund, 1-px-Linien in 10 % Schwarz, Karten 16 px, Flächen 24 px, Knöpfe als Pillen.
   Bordeaux ist der einzige Akzent. Kaspars Import (import.css) erhält hier dieselben Farben. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --ink: #111111;
  --ink-soft: #666666;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.16);
  --radius-sm: 12px;
  --radius-field: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 1000px;
  --shadow-card: none;
  --shadow-hover: 0 0 20px -12px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 0 32px -14px rgba(0, 0, 0, 0.45);
  --gutter: clamp(1rem, 4vw, 3rem);
}

body { background: #FFFFFF; color: var(--ink); letter-spacing: -0.1px; }

/* ---------- Kopf: schwebende Leiste ---------- */
.site { min-height: 100dvh; }
.topnav {
  position: sticky; top: 0; z-index: 20;
  padding: 16px var(--gutter) 8px;
  background: linear-gradient(#FFFFFF 75%, rgba(255, 255, 255, 0));
}
.topnav-bar {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 56px; padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  border: 0; background: none; padding: 4px 6px; cursor: pointer;
  font: 500 19px/1 var(--font-sans); color: var(--ink); letter-spacing: -0.2px;
}
.brand img { width: 30px; height: 30px; display: block; }
.topnav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 9px 14px; border-radius: var(--radius-pill);
  font: 400 16px/1 var(--font-sans); color: rgba(0, 0, 0, 0.62);
  transition: color 140ms ease, background-color 140ms ease;
}
.topnav-links button:hover { color: var(--ink); }
.topnav-links button.active { color: var(--ink); background: #F4F4F4; }
.topnav-links .count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  display: inline-grid; place-items: center;
  background: var(--bordeaux); color: #FFFFFF; font-size: 11px; font-weight: 500;
}

/* ---------- Seite ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 1.2rem + 3vw, 4rem) var(--gutter) 6rem; }
.page-heading { align-items: center; margin-bottom: 32px; }
.page-heading h1 { font: 500 clamp(2rem, 1.55rem + 1.9vw, 3rem)/1.1 var(--font-sans); letter-spacing: -0.02em; }
.page-heading p { font-size: 17px; color: rgba(0, 0, 0, 0.62); margin-top: 10px; }
.eyebrow, .page .hint, .local-note { display: none; }

.hero { text-align: center; padding: clamp(2rem, 1rem + 4vw, 5rem) 0 clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.hero h1 { font: 500 clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem)/1.12 var(--font-sans); letter-spacing: -0.025em; text-wrap: balance; }
.hero p { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); color: rgba(0, 0, 0, 0.62); margin: 18px auto 0; max-width: 40ch; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Bausteine ---------- */
.btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.panel, .card, .link-card, .guest-card, .source-card, .stat {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: none;
}
.card { padding: clamp(1.25rem, 1rem + 1vw, 2rem); margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.card-head h2 { font: 500 clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem)/1.2 var(--font-sans); letter-spacing: -0.015em; }
.card h3 { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin: 28px 0 6px; }

/* ---------- KI-Import ---------- */
.ki-run { max-width: 640px; margin-inline: auto; }
.ki-bar { height: 4px; border-radius: var(--radius-pill); background: #F0F0F0; overflow: hidden; margin-bottom: 20px; }
.ki-bar span { display: block; height: 100%; background: var(--bordeaux); transform-origin: left; transition: transform 120ms linear; }
.ki-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ki-step { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; color: rgba(0, 0, 0, 0.38); }
.ki-step .muted { font-size: 14px; text-align: right; }
.ki-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.ki-step.is-run { color: var(--ink); }
.ki-step.is-run .ki-dot { background: var(--bordeaux); opacity: 1; animation: ki-puls 1s ease-in-out infinite; }
.ki-step.is-done { color: var(--ink); }
.ki-step.is-done .ki-dot { background: var(--sage); opacity: 1; }
@keyframes ki-puls { 50% { transform: scale(1.6); opacity: 0.5; } }

.ki-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0; margin: 0 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ki-zahlen div { padding: 18px 0; }
.ki-zahlen dt { font-size: 14px; color: var(--ink-soft); }
.ki-zahlen dd { margin: 4px 0 0; font: 500 32px/1.1 var(--font-sans); letter-spacing: -0.02em; }
.ki-list { list-style: none; margin: 0; padding: 0; }
.ki-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ki-list li:last-child { border-bottom: 0; }
.ki-list b { font-weight: 500; }
.ki-list small { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.ki-details { margin-top: 24px; }
.ki-details summary { cursor: pointer; color: var(--ink-soft); font-size: 15px; }
.ki-result .actions { margin-top: 28px; }

/* ---------- Kaspars Import in Maison-Farben, ohne Erklärkacheln ---------- */
.ip-steps li { color: rgba(0, 0, 0, 0.4); border-bottom-color: #EEEEEE; }
.ip-steps li > span { background: #F4F4F4; }
.ip-steps .current { color: var(--ink); border-color: var(--bordeaux); }
.ip-steps .current > span, .ip-steps .complete > span { background: var(--bordeaux); color: #FFFFFF; }
.ip-steps .complete { color: var(--ink-soft); }
.ip-upload { background: #FAFAFA; border: 1px dashed rgba(0, 0, 0, 0.18); border-radius: 24px; }
.ip-upload.dragover { border: 1px solid var(--bordeaux); background: var(--bordeaux-light); }
.ip-upload h2 { font-weight: 500; letter-spacing: -0.015em; }
.ip-upload p, .ip-progress { color: var(--ink-soft); }
.ip-upload-symbol { background: var(--bordeaux-light); color: var(--bordeaux); border-radius: 16px; }
.ip-file-label:focus-within { outline-color: var(--bordeaux); }
.ip-feature-grid { display: none; }

@media (max-width: 767px) {
  .topnav-bar { grid-template-columns: auto 1fr; }
  .topnav-bar > span:last-child { display: none; }
  .brand span { display: none; }
  .topnav-links button { padding: 12px 12px; min-height: 44px; }
  .page-heading { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ki-bar span, .topnav-links button { transition: none; }
  .ki-step.is-run .ki-dot { animation: none; }
}

/* ---------- Upload und Funnel ---------- */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 24px; border: 1px dashed rgba(0, 0, 0, 0.2); border-radius: 24px; background: #FAFAFA; cursor: pointer; text-align: center; font-size: 16px; }
.drop input { position: absolute; opacity: 0; width: 0; height: 0; }
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--bordeaux); background: var(--bordeaux-light); }
.up-list { list-style: none; margin: 16px 0 0; padding: 0; }
.up-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.up-row:last-child { border-bottom: 0; }
.up-row b { font-weight: 500; }
.up-row small { display: block; font-size: 13px; }
.wizard { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.wz-step { font-size: 14px; color: var(--ink-soft); }
.wizard h2 { font: 500 clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem)/1.15 var(--font-sans); letter-spacing: -0.02em; margin: 8px 0 24px; }
.wz-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; text-align: left; }
.wz-cols > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.wz-name { font-size: 18px; font-weight: 500; }
.wz-grund { margin: 20px auto 24px; max-width: 56ch; color: var(--ink-soft); }
.wz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wz-done { list-style: none; margin: 0; padding: 0; text-align: left; }
.wz-done li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wz-done li:last-child { border-bottom: 0; }
.wz-done b { font-weight: 500; }
.wz-done small { display: block; font-size: 13px; }

/* ---------- Analyse als Popup, Wizard pro Gast ---------- */
.topnav .brand { margin: 0; }
.ki-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: ki-ein 240ms var(--ease-out); }
.ki-card { width: min(100%, 560px); padding: 32px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 0 40px -16px rgba(0, 0, 0, 0.35); text-align: center; }
.ki-card h2 { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-sans); letter-spacing: -0.02em; margin: 0 0 20px; }
.ki-card > p { margin-bottom: 20px; }
.ki-card .ki-steps { text-align: left; }
.ki-card .ki-zahlen { margin-bottom: 24px; }
.ki-bar span { transform: scaleX(0); transition: none; animation: ki-fill linear forwards; }
@keyframes ki-fill { to { transform: scaleX(1); } }
@keyframes ki-ein { from { opacity: 0; } }
.wz-gast { text-align: left; }
.wz-gast h2 { margin-bottom: 6px; }
.wz-gast .wz-grund { margin: 0; max-width: none; }
.wz-gast .wz-actions { justify-content: flex-start; }
.wz-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wz-row:last-child { border-bottom: 0; }
.wz-row b { font-weight: 500; }
.wz-row small { display: block; font-size: 13px; margin-top: 2px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .ki-overlay { animation: none; } .ki-bar span { animation: none; transform: scaleX(1); } }
.ki-card { width: min(100%, 680px); }
.ki-card .ki-zahlen { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); }
.ki-card .ki-zahlen dd { font-size: 28px; }
.up-actions { justify-content: center; margin-top: 24px; }
.page:has(> .card:first-child) { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }

/* ---------- Upload gross und klar ---------- */
.upload { max-width: 880px; margin: 0 auto; }
.upload .drop { min-height: clamp(280px, 42vh, 400px); gap: 8px; border: 1.5px dashed rgba(0, 0, 0, 0.18); border-radius: 28px; background: #FAFAFA; }
.upload .drop svg { color: var(--bordeaux); margin-bottom: 10px; }
.drop-title { font: 500 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
.drop-sub { font-size: 16px; color: var(--ink-soft); }
.upload .up-list { margin-top: 24px; padding: 4px 22px; border: 1px solid var(--line); border-radius: 16px; }
.upload .up-actions { margin-top: 28px; }
.upload .up-actions .btn { min-height: 52px; padding: 0 26px; font-size: 16px; }
.up-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 4px 18px; }
.up-head b { font: 500 clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem)/1.2 var(--font-sans); letter-spacing: -0.015em; }
.up-head small { display: block; margin-top: 4px; }
.up-head .btn { min-height: 52px; padding: 0 26px; font-size: 16px; }
.upload .up-head + .up-list { margin-top: 0; }
.upload .drop.drop-klein { min-height: 64px; flex-direction: row; gap: 10px; margin-top: 16px; border-radius: 16px; font-size: 15px; color: var(--ink-soft); }
.upload .drop.drop-klein svg { margin: 0; }

/* ---------- Siegel für Stammgäste, Abgleich minimal ---------- */
.siegel { display: inline-block; vertical-align: middle; margin-right: 8px; }
.page-heading h1 .siegel { vertical-align: -3px; margin-right: 10px; }
.wz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wz-name { display: flex; align-items: center; gap: 2px; margin: 0 0 4px; }
.wz-gast > p.muted { margin: 0 0 8px; }
.wz-label { font-size: 13px; color: var(--ink-soft); margin: 24px 0 2px; }
.wz-dubl { margin-top: 20px; border-top: 1px solid var(--line); }
.wz-gast .wz-actions { margin-top: 28px; }
.wz-dubl .wz-actions { flex-wrap: nowrap; margin-top: 0; }

/* ---------- Datenverwaltung: Bewertungen, Verlauf, Grenzfälle ---------- */
.quelle { max-width: 880px; margin: 24px auto 0; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 24px; max-width: 880px; margin: 24px auto 0; }
.zwei .card { margin: 0; }
.page > .card { max-width: 880px; margin-left: auto; margin-right: auto; }
.card-head h2 { margin: 0; }
.card-head small { display: block; margin-top: 2px; }
.sterne { color: var(--bordeaux); letter-spacing: 2px; white-space: nowrap; font-size: 14px; }
.ki-dot.puls { display: inline-block; background: var(--bordeaux); opacity: 1; animation: ki-puls 1s ease-in-out infinite; margin-right: 8px; }
.zahl { font: 500 20px/1 var(--font-sans); }

/* ---------- Ladebalken: ungleichmässig wie echte Arbeit, mit Schimmer ---------- */
.ki-bar { height: 5px; }
.ki-bar span { position: relative; overflow: hidden; animation: ki-fill linear forwards; }
.ki-bar span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%); background-size: 40% 100%; background-repeat: no-repeat; animation: ki-schimmer 1.1s ease-in-out infinite; }
@keyframes ki-fill {
  0% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1); }
  14% { transform: scaleX(0.21); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  28% { transform: scaleX(0.27); animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1); }
  44% { transform: scaleX(0.49); animation-timing-function: cubic-bezier(0.7, 0, 0.9, 0.5); }
  66% { transform: scaleX(0.57); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  84% { transform: scaleX(0.86); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.6); }
  93% { transform: scaleX(0.91); animation-timing-function: cubic-bezier(0.1, 0.9, 0.3, 1); }
  100% { transform: scaleX(1); }
}
@keyframes ki-schimmer { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .ki-bar span::after { animation: none; } }

/* ---------- Ruhiger Balken, Notiz und Korrektur ---------- */
.ki-bar { height: 4px; }
.ki-bar span { animation-name: ki-fill-ruhig; }
.ki-bar span::after { display: none; }
@keyframes ki-fill-ruhig {
  0% { transform: scaleX(0); animation-timing-function: ease-out; }
  30% { transform: scaleX(0.38); animation-timing-function: ease-in-out; }
  65% { transform: scaleX(0.58); animation-timing-function: ease-in-out; }
  100% { transform: scaleX(1); }
}
.notiz, .korrektur { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.notiz input, .korrektur input { flex: 1 1 16rem; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; font: inherit; font-size: 15px; color: var(--ink); }
.notiz input:focus, .korrektur input:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.notiz select { min-width: 11rem; }
/* «Notiz erfassen» im Fenster: grosses Textfeld mit Mikrofon, darunter Abteilung und Knopf */
.notiz-fenster { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; }
.notiz-fenster .diktat-feld { width: 100%; }
.notiz-fenster textarea { display: block; width: 100%; min-height: 128px; padding: 12px 52px 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); resize: vertical; }
.notiz-fenster textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.notiz-fenster-fuss { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.korrektur { width: 100%; }
.korrektur .wz-actions { margin: 0; }
.notiz-zeile { padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.entfernt > div { opacity: 0.5; text-decoration: line-through; }
.upload .drop .drop-icon { margin-bottom: 12px; }

/* ---------- Daily Ops: Gastkarten nach Kaspars mobilem Entwurf (Tokens aus design/habitue-mobile/tokens.css) ---------- */
.ops-kopf { position: relative; max-width: 520px; margin: 0 auto 24px; }
.ops-kopf svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
#ops-suche { width: 100%; min-height: 50px; padding: 0 18px 0 46px; border: 1px solid var(--line-strong); border-radius: 14px; background: #FFFFFF; font: inherit; font-size: 16px; color: var(--ink); }
#ops-suche:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.ops-toolbar { margin: 8px 0 18px; }
.gk-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 18px; }
.gk { padding: 18px 18px 16px; border: 1px solid #DBCBB5; border-radius: 18px; background: linear-gradient(180deg, #FAF4EA, #F5ECDD); box-shadow: 0 1px 2px rgba(60, 40, 20, 0.06); }
.gk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gk-name { margin: 0; font: 400 24px/1.15 Times, 'Times New Roman', serif; color: #492A30; letter-spacing: 0; }
.gk-name button { all: unset; cursor: pointer; font: inherit; color: inherit; }
.gk-name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.gk-pin { width: 44px; height: 44px; margin: -10px -12px 0 0; border: 0; background: none; color: #897864; cursor: pointer; border-radius: 12px; display: grid; place-items: center; }
.gk-pin:hover { background: rgba(0, 0, 0, 0.04); }
.gk-pin[aria-pressed="true"] { color: var(--bordeaux); }
.gk-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gk-pills .siegel { margin-left: auto; margin-right: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.pill.sand { background: #EEE5D6; color: #79613D; }
.pill.mauve { background: #EEE4EB; color: #735B70; }
.gk-avg { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: #F1E3E3; color: #492A30; font-size: 15px; }
.gk-avg b { font-weight: 500; font-variant-numeric: tabular-nums; }
.gk-avg small { color: #775B60; }
.chf { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--bordeaux); color: #FFFFFF; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; margin-right: 4px; vertical-align: 1px; }
.gk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gk-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; }
.gk-tile small { display: block; font-size: 12px; }
.gk-tile span { font-variant-numeric: tabular-nums; font-size: 15px; }
.gk-tile.room { background: #EEE5D6; color: #79613D; }
.gk-tile.room .chf { background: #DCD0BB; color: #6A512D; }
.gk-tile.fb { background: #E8EDDF; color: #526244; }
.gk-tile.fb .chf { background: #D3DDC8; color: #415334; }
.gk-extras { display: block; margin-top: 10px; color: #6C635B; font-size: 12px; }
.gk-hinweise { margin-top: 14px; padding-top: 12px; border-top: 1px solid #E7DCCC; display: grid; gap: 10px; }
.gk-hinweise p { font-size: 14px; margin-top: 2px; }
.gk .ki-details { margin-top: 10px; }
.gk .notiz { margin-top: 8px; }
.gk .notiz input { background: #FFFDF9; }
.mini-lauf { padding: 4px 0; }
.mini-lauf .ki-bar { margin-bottom: 12px; }
.mini-lauf .ki-step { padding: 6px 0; font-size: 14px; }
.gk-ai { font-size: 14px; margin-top: 4px; color: var(--bordeaux); display: flex; align-items: center; gap: 6px; }

/* ---------- Schriften: Überschriften Times, Text Inter ---------- */
:root { --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-serif: Times, 'Times New Roman', serif; --font-display: var(--font-serif); }
body, button, input, select, textarea { font-family: var(--font-sans); }
h1, h2, h3, .page-heading h1, .card-head h2, .wizard h2, .ki-card h2, .hero h1, .drop-title, .wz-name, .up-head b { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; }
.page-heading h1 { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem); line-height: 1.05; }
.card-head h2, .up-head b { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.panel-head h3, .card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.ki-card h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.wizard h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.drop-title { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); }
.brand span { font: italic 700 24px/1 var(--font-serif); letter-spacing: -0.045em; }
.stat-value, .ki-zahlen dd, .zahl, .gk-avg b, .gk-tile span { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.brand-name { font-family: var(--font-serif); }

/* ---------- Eigene Icons (Higgsfield, Bordeaux-Linie mit Siegel) ---------- */
.upload .drop .drop-icon { width: 72px; height: 72px; margin-bottom: 10px; }
.mit-icon { display: flex; align-items: center; gap: 12px; }
.karte-icon { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.karte-icon.klein { width: 26px; height: 26px; }

/* ---------- Richtung Cream: Wortmarke oben, Pillen-Navigation in Bordeaux, farbige Kacheln ---------- */
:root { --bg: #F3EADB; --surface: #FBF7F0; --surface-2: #F6EEE0; --ink: #3F3A36; --ink-soft: #6C635B; --line: #E7DCCC; --line-strong: #D9CBB6; }
body { background: var(--bg); color: var(--ink); }
.topnav { background: none; padding: 22px var(--gutter) 8px; }
.topnav-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { padding: 0; font: italic 700 26px/1 var(--font-serif); color: var(--bordeaux); letter-spacing: -0.04em; }
.brand img { display: none; }
.brand span { display: inline; font: inherit; }
.topnav-links { display: inline-flex; gap: 6px; padding: 6px; background: var(--bordeaux); border-radius: 999px; overflow: visible; }
.topnav-links button { min-height: 40px; padding: 8px 20px; background: var(--bg); color: var(--bordeaux); font-weight: 500; }
.topnav-links button:hover { background: var(--surface); color: var(--bordeaux); }
.topnav-links button.active { background: #FFF9EE; color: var(--bordeaux); font-weight: 600; }
.topnav-links .count { background: var(--bordeaux); color: #F3EADB; }
.topnav-bar > span:last-child { display: none; }
.panel, .card, .link-card, .guest-card, .source-card, .stat, .ki-card, .upload .up-list, .wz-cols > div { background: var(--surface); border-color: var(--line); }
.btn { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn:hover { background: #FFF9EE; }
.btn.primary { background: var(--bordeaux); border-color: var(--bordeaux); color: #F8EFE2; }
.btn.ghost { background: transparent; border-color: transparent; }
.tag.neutral { background: var(--surface); }
input, select, textarea, #ops-suche, .notiz input, .korrektur input { background: var(--surface); }
.upload .drop { background: transparent; border: 2px dashed var(--bordeaux); border-radius: 28px; }
.upload .drop:hover, .upload .drop.is-over, .upload .drop:focus-within { background: rgba(107, 30, 46, 0.05); border-color: var(--bordeaux); }
.upload .drop.drop-klein { border-width: 1.5px; }
.drop-title { font: italic 700 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.2 var(--font-serif); color: var(--bordeaux); letter-spacing: -0.02em; }
.drop-sub { color: var(--ink-soft); }
#bw-card { background: #F5E8E9; border-color: #E3C9CC; }
.zwei .card:nth-child(1) { background: #EEE5D6; border-color: #DCD0BB; }
.zwei .card:nth-child(2) { background: #E8EDDF; border-color: #D3DDC8; }
#bw-card .ki-list li, .zwei .card .ki-list li { border-color: rgba(0, 0, 0, 0.08); }
.ki-overlay { background: rgba(243, 234, 219, 0.6); }
.ki-bar { background: #E7DCCC; }
.topnav-links button .count { margin-left: 2px; }
@media (max-width: 767px) { .topnav-bar { grid-template-columns: none; } .brand span { display: inline; } .topnav-links { max-width: 100%; overflow-x: auto; } }
.ops-abschnitt { margin: 8px 0 14px; }
.ops-abschnitt h2 { font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem)/1.2 var(--font-serif); margin: 0 0 4px; }
.ops-abschnitt p { margin: 0; max-width: 60ch; }
.gk-offerte { background: var(--surface); border-color: var(--line); }
.gk-offerte .gk-name { font-size: 22px; }
.gk-offerte .gk-hinweise p { margin-top: 6px; }

/* ---------- Navigation edler: feine Linie, nur der aktive Punkt gefüllt ---------- */
.topnav { padding-top: 26px; }
.brand { font-size: 30px; margin-bottom: 4px; }
.topnav-links { gap: 2px; padding: 4px; background: rgba(251, 247, 240, 0.7); border: 1px solid rgba(107, 30, 46, 0.35); box-shadow: 0 1px 0 rgba(107, 30, 46, 0.05); }
.topnav-links button { min-height: 38px; padding: 8px 18px; background: transparent; color: var(--bordeaux); font-weight: 500; transition: background-color 150ms ease, color 150ms ease; }
.topnav-links button:hover { background: rgba(107, 30, 46, 0.08); color: var(--bordeaux); }
.topnav-links button.active { background: var(--bordeaux); color: #F8EFE2; font-weight: 500; }
.topnav-links .count { background: var(--bordeaux); color: #F8EFE2; }
.topnav-links button.active .count { background: #F8EFE2; color: var(--bordeaux); }

/* ---------- Boxen heben sich vom Crème ab ---------- */
:root { --surface: #FFFDF9; --line: rgba(107, 30, 46, 0.22); --line-strong: rgba(107, 30, 46, 0.32); --shadow-card: 0 2px 12px -8px rgba(107, 30, 46, 0.35), 0 1px 0 rgba(107, 30, 46, 0.06); }
.panel, .card, .link-card, .guest-card, .source-card, .stat, .upload .up-list, .wz-cols > div, .gk-offerte { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.ki-card { background: var(--surface); border: 1px solid var(--line); }
.gk { border-color: #CDB89C; box-shadow: 0 2px 12px -8px rgba(107, 30, 46, 0.35); }
#bw-card { background: #F4DFE1; border-color: #C99AA2; }
.zwei .card:nth-child(1) { background: #ECDCC3; border-color: #C4A77F; }
.zwei .card:nth-child(2) { background: #DDE7D0; border-color: #A9BC95; }
#bw-card .ki-list li, .zwei .card .ki-list li { border-color: rgba(60, 30, 20, 0.12); }
#ops-suche, .notiz input, .korrektur input { border-color: var(--line-strong); }
.btn { border-color: var(--line-strong); }
.tag.neutral { border-color: var(--line-strong); }

/* ---------- Hintergrund #FBF7F0, weisse Boxen, Siegel neben der Wortmarke, weicher Wechsel ---------- */
:root { --bg: #FBF7F0; --surface: #FFFFFF; --surface-2: #FBF7F0; }
body { background: #FBF7F0; }
.topnav-links { background: #FFFFFF; }
.topnav-links button.active { view-transition-name: nav-aktiv; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease; }
::view-transition-group(nav-aktiv) { animation-duration: 320ms; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(nav-aktiv), ::view-transition-new(nav-aktiv) { animation: none; mix-blend-mode: normal; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { display: block; width: 30px; height: 30px; }
.gk-offerte { padding: 16px 18px; }
.gk-offerte .gk-name { font-size: 21px; }
.gk-hilfe { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.gk-hilfe .gk-ai { margin-top: 6px; }
.gk-offerte > p.muted { margin: 2px 0 0; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; } }

/* Wortmarke ohne Siegel */
.brand img { display: none; }
.brand { gap: 0; }

/* ---------- Hintergrund: leichter Verlauf von Weiss oben in Crème unten ---------- */
html { min-height: 100%; background: #F3EADB linear-gradient(180deg, #FFFFFF 0%, #FBF7F0 38%, #F3EADB 100%) no-repeat; }
body { background: transparent; }
.topnav { background: none; }

/* ---------- Navigation fixiert mit Glas-Schutz: nichts läuft hinein oder dahinter ---------- */
.topnav { position: sticky; top: 0; z-index: 40; padding: 18px var(--gutter) 12px; background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(251, 247, 240, 0.78)); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border-bottom: 1px solid rgba(107, 30, 46, 0.08); }
.topnav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(rgba(251, 247, 240, 0.9), rgba(251, 247, 240, 0)); pointer-events: none; }
.topnav-links { background: #FFFFFF; box-shadow: 0 1px 2px rgba(107, 30, 46, 0.06), 0 6px 18px -12px rgba(107, 30, 46, 0.3); }
.page { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.ki-overlay { z-index: 60; }

/* ---------- Profil nach Kaspars Konzept ---------- */
.pf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pf-links { min-width: 0; }
.pf-toolbar { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 14px; }
.pf-back { color: var(--bordeaux); font-weight: 600; font-size: 14px; padding-left: 4px; }
.pf-back svg { stroke-width: 2.2; }
.pf-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pf-name { display: flex; align-items: center; gap: 10px; }
.pf-name h1 { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem)/1.15 var(--font-serif); letter-spacing: -0.5px; margin: 0; overflow-wrap: anywhere; }
.pf-flagge { font: 22px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; width: 26px; display: inline-flex; justify-content: center; }
.pf-kontakt { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.pf-kopf .siegel { margin: 0; }
.pf-pills { margin-top: 16px; }
.pill.blush { background: #F5E8E9; color: var(--bordeaux); }
.pf-split { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); max-width: 560px; }
.gk-tile.extra { background: #F1E3E3; color: #775B60; }
.gk-tile.extra .chf { background: #E3C9CC; color: var(--bordeaux); }
.pf-abschnitt { margin-top: 32px; }
.pf-abschnitt h2 { font: 400 22px/1.2 var(--font-serif); margin: 0; }
.pf-abschnitt > p.muted { margin: 2px 0 12px; }
.pf-prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pref { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 12px; border: 0; border-radius: 999px; background: #E8EDDF; color: #41533A; font: 500 14px/1.3 var(--font-sans); cursor: pointer; transition: background-color 140ms ease, transform 140ms ease; }
.pf-pref:hover { background: #DCE5CF; }
.pf-pref:active { transform: translateY(1px); }
.pf-pref svg:last-child { color: #56664A; opacity: 0.8; }
.pf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bordeaux); display: inline-block; }
.qb-titel { font: 400 24px/1.2 var(--font-serif); margin: 0 0 14px; }
.qb-box { background: #E8EDDF; color: #41533A; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.qb-box strong { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.qb-box p { margin: 6px 0 0; font-size: 13px; color: #56664A; }
.qb-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.qb-zeile svg { flex: 0 0 auto; margin-top: 2px; color: var(--ink-soft); }
.qb-zeile span { display: grid; gap: 2px; }
.qb-zeile b { font-weight: 500; }
.qb-zeile small { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } }

/* Gästekarten wie in Daily Ops */
.guest-grid { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   UX-Härtung. Ein Grundsatz: Zustände wechseln Farbe und Lage, nie die Grösse.
   ========================================================================== */

/* Platz der Bildlaufleiste bleibt reserviert: nichts Zentriertes rutscht beim Seitenwechsel seitlich */
html { scrollbar-gutter: stable; }

/* Navigation: ganz leichtes Glas, steht beim Wechsel still */
.topnav { background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 247, 240, 0.52)); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); border-bottom: 1px solid rgba(107, 30, 46, 0.07); }
.topnav::after { display: none; }
.topnav-links { gap: 2px; padding: 4px; background: rgba(255, 255, 255, 0.58); border: 1px solid rgba(107, 30, 46, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(107, 30, 46, 0.05), 0 10px 28px -18px rgba(107, 30, 46, 0.38); }
.topnav-links button.active { view-transition-name: none; }

/* Gleitende Pille (Navigation, Rollen-Tabs): ein Element wandert, die Knöpfe behalten ihre Grösse */
[data-seg] { position: relative; isolation: isolate; }
[data-seg] > button { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; font-weight: 500 !important; transition: color 240ms ease; }
[data-seg] > button:not(.active):hover { background: rgba(107, 30, 46, 0.06) !important; color: var(--bordeaux); }
.seg-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none; opacity: 0; transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1), width 440ms cubic-bezier(0.22, 1, 0.36, 1), height 440ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease; }
.topnav-links .seg-ind { background: var(--bordeaux); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 8px -3px rgba(107, 30, 46, 0.55); }
.topnav-links button.active { color: #F8EFE2; }
.role-tabs .seg-ind { background: #FFFFFF; box-shadow: 0 1px 3px rgba(60, 30, 20, 0.14), inset 0 0 0 1px rgba(107, 30, 46, 0.08); }
.role-tabs button.active { color: var(--bordeaux); }

/* Seitenwechsel: Inhalt blendet weich ein, die Navigation bleibt stehen */
.page.enter, .wz-gast.enter { animation: seite-ein 300ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes seite-ein { from { opacity: 0; transform: translateY(8px); } }

/* Gästekarten: die ganze Karte öffnet das Profil; Pin, Notiz und Knöpfe bleiben eigenständig bedienbar */
.gk { position: relative; transition: box-shadow 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease; }
.gk-name button::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.gk:has(.gk-name button) { cursor: pointer; }
.gk:has(.gk-name button):hover { transform: translateY(-2px); border-color: #C4A77F; box-shadow: 0 16px 32px -22px rgba(107, 30, 46, 0.55); }
.gk-pin, .gk-hinweise, .gk-hilfe, .gk .ki-details, .gk .notiz, .gk .btn { position: relative; z-index: 1; }
.gk-name button:focus-visible { outline: none; }
.gk-name button:focus-visible::after { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

/* Rückmeldung leicht gläsern, passend zur Navigation */
#toast { background: rgba(63, 58, 54, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #FBF7F0; }

@media (prefers-reduced-motion: reduce) {
  .seg-ind, .gk { transition: none; }
  .page.enter, .wz-gast.enter { animation: none; }
  .gk:has(.gk-name button):hover { transform: none; }
}

/* Handy: alle vier Navigationspunkte sichtbar, Trefferflächen 44 px (steht bewusst zuletzt, damit nichts sie überschreibt) */
@media (max-width: 520px) {
  .topnav { padding: 14px 12px 10px; }
  .topnav-bar { width: 100%; }
  .topnav-links { display: flex; width: 100%; overflow: visible; }
  .topnav-links > button { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 8px 6px; font-size: 14px; }
  .topnav-links .count { min-width: 16px; height: 16px; font-size: 10px; }
}

/* ==========================================================================
   Maison gebündelt (branding/README.md): ein Akzent Bordeaux, Flächen Karte/Papier,
   warme Linien, Salbei nur für «belegt». Der Hintergrund-Verlauf bleibt.
   ========================================================================== */
:root { --ink: #3F3A36; --ink-soft: #6C635B; --line: #E7DCCC; --line-strong: #D3C3AD; --surface: #FFFDF9; --surface-2: #FBF7F0;
  --card-shadow: 0 1px 2px rgba(63, 45, 30, 0.04), 0 14px 34px -26px rgba(63, 45, 30, 0.32); }
body { color: var(--ink); }

/* Navigation: nur die schwebende Pille, keine Leiste dahinter. Die Wortmarke scrollt weg, die Pille bleibt 12 px unter dem Rand */
.topnav { position: sticky; top: -54px; padding: 22px var(--gutter) 10px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; pointer-events: none; }
.topnav .brand, .topnav-links { pointer-events: auto; }
.brand { height: 32px; font: italic 700 30px/1 var(--font-serif); letter-spacing: -0.045em; color: var(--bordeaux); }
.topnav-bar { gap: 10px; }
.topnav-links { background: rgba(255, 253, 249, 0.66); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(107, 30, 46, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(63, 45, 30, 0.05), 0 12px 32px -18px rgba(63, 45, 30, 0.4); }

/* Flächen: alle Karten gleich, kein Farbflickenteppich */
.panel, .card, .stat, .ki-card, .upload .up-list, .gk-offerte, #bw-card, .zwei .card, .zwei .card:nth-child(1), .zwei .card:nth-child(2) { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
#bw-card .ki-list li, .zwei .card .ki-list li, .ki-list li { border-color: var(--line); }
.zwei { align-items: start; }
.card-head h2 { font: 400 24px/1.2 var(--font-serif); color: var(--ink); }
.karte-icon { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: #F4EBDD; box-shadow: inset 0 0 0 1px rgba(107, 30, 46, 0.1); }
.karte-icon.klein { width: 34px; height: 34px; padding: 7px; }
.mit-icon { gap: 14px; }
.zahl { color: var(--bordeaux); font-variant-numeric: tabular-nums; }

/* Ablagefeld: Karte mit feiner, langer Strichlinie statt dichter Punkte */
.upload .drop { border: 0; border-radius: 28px; background-color: var(--surface); box-shadow: var(--card-shadow); background-repeat: no-repeat; background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='28' ry='28' fill='none' stroke='%236B1E2E' stroke-opacity='0.42' stroke-width='3' stroke-dasharray='11 9'/%3E%3C/svg%3E"); }
.upload .drop:hover, .upload .drop.is-over, .upload .drop:focus-within { background-color: #FFFAF3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='28' ry='28' fill='none' stroke='%236B1E2E' stroke-opacity='0.85' stroke-width='3' stroke-dasharray='11 9'/%3E%3C/svg%3E"); }
.upload .drop.drop-klein { border-radius: 16px; box-shadow: none; background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='16' ry='16' fill='none' stroke='%236B1E2E' stroke-opacity='0.35' stroke-width='2.5' stroke-dasharray='9 8'/%3E%3C/svg%3E"); }
.drop-title { font: italic 700 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.2 var(--font-serif); letter-spacing: -0.03em; color: var(--bordeaux); }
.drop-sub { color: var(--ink-soft); }

/* Knöpfe: Bordeaux gefüllt für den einen nächsten Schritt, sonst feine Bordeaux-Kontur */
.btn { background: transparent; border: 1px solid rgba(107, 30, 46, 0.3); color: var(--bordeaux); }
.btn:hover { background: rgba(107, 30, 46, 0.05); border-color: rgba(107, 30, 46, 0.5); }
.btn.primary { background: var(--bordeaux); border-color: var(--bordeaux); color: #F8EFE2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -12px rgba(107, 30, 46, 0.7); }
.btn.primary:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(107, 30, 46, 0.05); }
.btn:disabled { opacity: 0.4; box-shadow: none; }

/* Daten-Pillen: neutrale Crème-Töne, Icon und Text unterscheiden; Bordeaux nur am Durchschnitt; Salbei nur für «belegt» */
.gk { background: linear-gradient(180deg, #FFFDF9, #FBF7F0); border-color: var(--line); box-shadow: var(--card-shadow); }
.gk:has(.gk-name button):hover { border-color: var(--line-strong); }
.pill.sand, .pill.mauve { background: #F4EBDD; color: #5E5249; }
.pill.blush { background: #F5E8E9; color: var(--bordeaux); }
.gk-avg { background: #F5E8E9; color: var(--ink); }
.gk-avg small { color: #7A5F64; }
.gk-tile.room, .gk-tile.fb, .gk-tile.extra { background: #F4EBDD; color: #5E5249; }
.gk-tile.room .chf, .gk-tile.fb .chf, .gk-tile.extra .chf { background: #E7DCCC; color: #4A4039; }
.gk-hinweise, .gk-hilfe { border-color: var(--line); }

/* ==========================================================================
   Abgleich: ruhige Liste, ein Knopf, Assistent mit einer Frage pro Bildschirm.
   Begründung nur hinter «Warum?». Karte #FFFDF9, Linie #E7DCCC, Bordeaux nur für den nächsten Schritt.
   ========================================================================== */
.abg { max-width: 720px; margin: 0 auto; }
.abg-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.abg-kopf h1 { margin: 0; font: 400 clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem)/1.05 var(--font-serif); }
.btn.gross { min-height: 52px; padding: 0 24px; font-size: 16px; }
.abg-tabs { margin-bottom: 16px; }
.abg-liste { list-style: none; margin: 0; padding: 4px 20px; background: #FFFDF9; border: 1px solid #E7DCCC; border-radius: 18px; box-shadow: var(--card-shadow, none); }
.abg-gast, .abg-zeile { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid #E7DCCC; }
.abg-gast:last-child, .abg-zeile:last-child { border-bottom: 0; }
.abg-gast-name { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font: 400 20px/1.25 var(--font-serif); color: var(--ink); }
.abg-gast-name .siegel { margin: 0; flex: 0 0 auto; }
.abg-gast-name:hover span { color: var(--bordeaux); }
.abg-gast-name:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; border-radius: 6px; }
.abg-gast .btn { white-space: nowrap; }
.abg-ok { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #E8EDDF; color: #41533A; font-size: 13px; font-weight: 500; white-space: nowrap; }
.abg-ok.gross { padding: 10px 16px; font-size: 15px; }

/* Zuletzt: Entschiedenes mit «Rückgängig», darunter neue Vorlieben */
.abg-gruppe { margin: 22px 4px 8px; font-size: 14px; color: var(--ink-soft); }
.abg-gruppe:first-child { margin-top: 4px; }
.abg-zeile p { flex: 1; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; line-height: 1.4; }
.abg-zeile p b { font-weight: 500; }
.abg-zeile p .muted { font-size: 14px; color: var(--ink-soft); }
.abg-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F4EBDD; color: #5E5249; }
.abg-ic.ok { background: #E8EDDF; color: #41533A; }
.abg-link { all: unset; cursor: pointer; font-weight: 500; color: var(--ink); }
.abg-link:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.abg-link:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: 4px; }
.abg-mini { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.abg-datum { margin-right: 6px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn.icon { width: 36px; min-width: 36px; padding: 0; justify-content: center; }
.abg-status { margin-right: 2px; font-size: 13px; color: #41533A; }
.abg-zeile.removed .abg-link { color: var(--ink-soft); text-decoration: line-through; }
.abg-zeile.removed .abg-status { color: var(--ink-soft); }
.abg-zeile .korrektur { flex: 1; display: grid; gap: 8px; padding: 6px 0; }
.abg-zeile .korrektur .wz-actions { justify-content: flex-start; }
.abg-mehr { margin-top: 10px; }

/* Assistent: eine Frage, zwei oder drei grosse Antworten, «Später» */
.abg-wz { max-width: 640px; margin: 0 auto; }
.abg-wz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.abg-schritt { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.abg-wz-balken { height: 3px; margin-bottom: clamp(24px, 5vh, 48px); border-radius: 999px; background: #EFE3D3; overflow: hidden; }
.abg-wz-balken span { display: block; height: 100%; border-radius: inherit; background: var(--bordeaux); transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.abg-frage { padding: clamp(24px, 4vw, 40px); background: #FFFDF9; border: 1px solid #E7DCCC; border-radius: 24px; box-shadow: var(--card-shadow, none); }
.abg-frage h2 { margin: 0 0 28px; font: 600 clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem)/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.abg-antworten { display: flex; flex-wrap: wrap; gap: 10px; }
.abg-antworten .btn { flex: 1 1 10rem; }
.abg-warum { margin-top: 20px; }
.abg-warum summary { display: inline-block; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--ink-soft); list-style: none; }
.abg-warum summary::-webkit-details-marker { display: none; }
.abg-warum summary:hover, .abg-warum[open] summary { color: var(--bordeaux); }
.abg-warum > div { margin-top: 8px; padding-top: 14px; border-top: 1px solid #E7DCCC; font-size: 14px; line-height: 1.55; }
.abg-warum p { margin: 12px 0 0; }
.abg-wer { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #F5E8E9; color: var(--bordeaux); font-size: 12px; font-weight: 600; }
.abg-wer.regel { background: #F4EBDD; color: #5E5249; }
.abg-paar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 8px; }
.abg-paar > span { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 12px; background: #F4EBDD; color: #5E5249; }
.abg-paar b { font-weight: 500; color: var(--ink); }
.abg-paar small { font-size: 12px; overflow-wrap: anywhere; }
.abg-zitat { margin: 0; padding-left: 12px; border-left: 2px solid #E3C9CC; }
.abg-zitat small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.abg-wz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.abg-fertig { padding-top: clamp(24px, 6vh, 64px); text-align: center; }
.abg-fertig .siegel { display: block; margin: 0 auto 16px; }
.abg-fertig h2 { margin: 0 0 24px; font: 400 clamp(1.8rem, 1.5rem + 1vw, 2.4rem)/1.2 var(--font-serif); }
.abg-frage.enter, .abg-fertig.enter { animation: seite-ein 300ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .abg-frage.enter, .abg-fertig.enter { animation: none; } .abg-wz-balken span { transition: none; } }
@media (max-width: 560px) {
  .abg-liste { padding: 2px 14px; }
  .abg-gast-name { font-size: 18px; }
  .abg-datum { display: none; }
  .abg-antworten .btn { flex-basis: 100%; }
}

/* Analyse-Ergebnis: Nutzen in drei Zeilen statt vier technischer Zahlen */
.ki-card h2 { margin-bottom: 6px; }
.ks-liste { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; text-align: left; }
.ks-zeile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #FFFDF9; }
.ks-bild { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #F4EBDD; color: var(--bordeaux); box-shadow: inset 0 0 0 1px rgba(107, 30, 46, 0.1); }
.ks-bild .siegel { margin: 0; }
.ks-zeile b { font-weight: 500; font-size: 16px; color: var(--ink); }
.ks-zahl { font: 400 24px/1 var(--font-serif); color: var(--bordeaux); margin-right: 4px; }
.ks-zeile small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
/* Analyse-Ergebnis minimal: Siegel, eine Zahl, ein Satz, ein Knopf */
.ki-card { width: min(100%, 460px); padding: 36px 32px 30px; }
.ks-siegel { display: grid; place-items: center; margin-bottom: 14px; }
.ks-siegel .siegel { margin: 0; }
.ki-card h2 { font: 400 clamp(1.8rem, 1.5rem + 1vw, 2.3rem)/1.15 var(--font-serif); margin: 0 0 8px; }
.ks-satz { margin: 0 0 26px; color: var(--ink-soft); font-size: 16px; }

/* Ablagefeld: ein Feld, einfache Beispiele, welche Daten hineingehören */
.drop-beispiele { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 600px; margin: 16px auto 0; }
.drop-beispiele span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #F4EBDD; color: #5E5249; font-size: 14px; font-weight: 500; }
.drop-beispiele svg { color: var(--bordeaux); }
.drop-format { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.upload .drop .drop-beispiele svg { margin: 0; flex: 0 0 auto; }

/* Import: Datum und letzter Upload, Chips zeigen was schon da ist; Text in Inter */
.up-status { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; max-width: 880px; margin: 0 auto 14px; padding: 0 6px; font-size: 14px; color: var(--ink-soft); }
.up-status b { color: var(--ink); font-weight: 500; }
.drop-title { font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.drop-beispiele span.da { background: #EDF0E7; color: #56664A; }
.drop-beispiele span.da svg { color: #56664A; }
/* Kartentitel und Abschnitte in Inter; Times bleibt für Wortmarke, Seitentitel und Gästenamen */
.card-head h2, .panel-head h3, .ops-abschnitt h2, .up-head b { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.card-head h2 { font-size: 18px; }
.panel-head h3 { font-size: 16px; }
.ops-abschnitt h2 { font-size: 20px; }
.up-head b { font-size: 20px; }

/* ==========================================================================
   Einstieg: Gäste mit Leerzustand, Import als Maske, Abgleich mit etwas mehr Detail.
   ========================================================================== */
/* Leerzustand Gäste: Siegel, ein Satz, ein Knopf; darunter drei blasse Kartenumrisse */
.gl-leer { display: grid; gap: 36px; }
.gl-text { display: grid; justify-items: center; gap: 10px; max-width: 520px; margin: 8px auto 0; text-align: center; }
.gl-text .siegel { margin: 0 0 6px; }
.gl-text h2 { margin: 0; font: 400 clamp(1.8rem, 1.5rem + 1vw, 2.3rem)/1.15 var(--font-serif); }
.gl-text p { margin: 0 0 12px; color: var(--ink-soft); }
.gl-skelett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 18px; opacity: 0.7; }
.gl-karte { display: grid; gap: 12px; padding: 20px; border: 1.5px dashed #DCCDB8; border-radius: 18px; }
.gl-karte span { display: flex; gap: 8px; }
.gl-karte i { display: block; height: 12px; border-radius: 999px; background: #EFE6D8; }
.gl-karte > i:first-child { height: 18px; }
.gl-karte .w60 { width: 60%; } .gl-karte .w45 { width: 45%; } .gl-karte .w40 { width: 40%; height: 40px; border-radius: 12px; } .gl-karte .w30 { width: 30%; } .gl-karte .w25 { width: 25%; }

/* Import-Maske: liegt über der Gäste-Seite, unter dem Analyse-Popup */
.imp-maske { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); background: rgba(243, 234, 219, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; }
.imp-blatt { width: min(100%, 860px); margin: clamp(16px, 6vh, 64px) 0 32px; padding: clamp(20px, 3vw, 36px); background: #FFFDF9; border: 1px solid #E7DCCC; border-radius: 24px; box-shadow: 0 30px 70px -40px rgba(63, 45, 30, 0.55); }
.imp-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.imp-kopf h2 { margin: 0; font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.15 var(--font-serif); }
@media (prefers-reduced-motion: no-preference) { .imp-blatt { animation: seite-ein 260ms cubic-bezier(0.22, 1, 0.36, 1) backwards; } }

/* Abgleich: Kennzahlen unter dem Titel */

/* Abgleich: Gastzeile mit Zweitzeile und Art des offenen Punkts */
.abg-gast-name > span { display: grid; gap: 1px; min-width: 0; }
.abg-gast-name b { font: 400 20px/1.25 var(--font-serif); color: var(--ink); overflow-wrap: anywhere; }
.abg-gast-name small { font: 400 12.5px/1.4 var(--font-sans); color: var(--ink-soft); }
.abg-gast-name:hover b { color: var(--bordeaux); }
.abg-typen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.abg-typen span { padding: 3px 9px; border-radius: 999px; background: #F5E8E9; color: var(--bordeaux); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Assistent: Art und Quelle über der Frage, Kontext sichtbar */
.abg-frage-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.abg-typ { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; background: #F4EBDD; color: #5E5249; font-size: 13px; font-weight: 500; }
.abg-frage-kopf .abg-wer { margin: 0; transform: none; }
.abg-frage h2 { margin-bottom: 18px; }
.abg-kontext { margin-bottom: 24px; }
.abg-kontext .abg-zitat { font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) { .abg-typen { display: none; } }

/* ==========================================================================
   Anreise im Handy (Mitarbeitende), Notiz-Blatt, Wizard-Einstieg «Automatisch erledigt», Einspülen in Gäste.
   ========================================================================== */
.ops-handy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: 48px; }
.ops-erklaer { max-width: 440px; padding-top: 24px; }
.ops-erklaer h2 { margin: 0 0 6px; font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem)/1.2 var(--font-serif); }
.ops-erklaer > p { margin: 0 0 22px; }
.ops-feld { display: grid; gap: 6px; margin-bottom: 28px; font-size: 13px; color: var(--ink-soft); }
.ops-fluss-titel { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ops-fluss { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: fluss; }
.ops-fluss li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; counter-increment: fluss; }
.ops-fluss li::before { content: counter(fluss); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F5E8E9; color: var(--bordeaux); font: 600 13px/1 var(--font-sans); }
.ops-fluss b { font-weight: 600; font-size: 14px; }
.ops-fluss span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* Handy-Rahmen */
.phone { position: relative; width: min(100%, 380px); aspect-ratio: 380 / 800; padding: 11px; border-radius: 54px; background: #24201F; box-shadow: inset 0 0 0 1.5px #3A3432, 0 40px 80px -40px rgba(63, 45, 30, 0.6), 0 12px 24px -16px rgba(0, 0, 0, 0.35); }
.phone-screen { position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; border-radius: 44px; background: #FBF7F0; padding: 0 14px 18px; scrollbar-width: none; overscroll-behavior: contain; }
.phone-screen::-webkit-scrollbar { display: none; }
.ph-status { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 46px; margin: 0 -14px; padding: 0 26px; background: linear-gradient(#FBF7F0 70%, rgba(251, 247, 240, 0)); font: 600 14px/1 var(--font-sans); color: var(--ink); }
.ph-insel { width: 92px; height: 26px; border-radius: 999px; background: #24201F; }
.ph-akku { width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.ph-akku::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: var(--ink); }
.ph-marke { margin: 2px 0 0; text-align: center; font: italic 700 20px/1 var(--font-serif); letter-spacing: -0.04em; color: var(--bordeaux); }
.ph-tag { margin: 6px 0 12px; text-align: center; font-size: 12px; color: var(--ink-soft); }
.ph-rollen { display: flex; width: 100%; margin-bottom: 12px; }
.ph-rollen button { flex: 1 1 0; min-width: 0; padding-inline: 6px; font-size: 12.5px; }
.ph-liste { display: grid; gap: 10px; }
.ph-karte { padding: 14px 14px 12px; border: 1px solid #E7DCCC; border-radius: 18px; background: #FFFDF9; }
.ph-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-kopf .siegel { margin: 0; }
.ph-name { all: unset; cursor: pointer; font: 400 19px/1.2 var(--font-serif); color: var(--ink); }
.ph-name:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }
.ph-meta { margin: 3px 0 8px; font-size: 12px; color: var(--ink-soft); }
.ph-hinweis { padding: 8px 0; border-top: 1px solid #EFE6D8; }
.ph-hinweis small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.ph-hinweis p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; }
.ph-notiz { color: var(--ink); }
.ph-notiz i { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--bordeaux); background: #F5E8E9; padding: 1px 7px; border-radius: 999px; }
.ph-quittung { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-top: 8px; padding: 10px; border-radius: 12px; background: #E8EDDF; color: #41533A; }
.ph-quittung b { display: block; font-size: 12.5px; font-weight: 600; }
.ph-quittung small { display: block; font-size: 11.5px; margin-top: 1px; }
.ph-link { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #41533A; }
.ph-link:focus-visible { outline: 2px solid #41533A; outline-offset: 2px; border-radius: 4px; }
.ph-notiz-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 0 14px; border: 1px solid rgba(107, 30, 46, 0.3); border-radius: 999px; background: transparent; color: var(--bordeaux); font: 500 13px/1 var(--font-sans); cursor: pointer; }
.ph-notiz-knopf:hover { background: rgba(107, 30, 46, 0.05); }

/* Notiz-Blatt im Handy */
.ph-sheet-grund { position: sticky; bottom: -18px; z-index: 4; margin: 0 -14px -18px; padding-top: 40px; background: linear-gradient(rgba(36, 32, 31, 0), rgba(36, 32, 31, 0.25) 40px); }
.ph-sheet { display: grid; gap: 10px; padding: 10px 16px 18px; border-radius: 26px 26px 40px 40px; background: #FFFDF9; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.45); }
.ph-griff { justify-self: center; width: 38px; height: 5px; border-radius: 999px; background: #DCCDB8; }
.ph-sheet h3 { margin: 2px 0 0; font: 400 19px/1.2 var(--font-serif); }
.ph-sheet .ph-meta { margin: 0; }
.ph-sheet textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: #FFFFFF; font: 400 15px/1.4 var(--font-sans); color: var(--ink); resize: none; }
.ph-sheet textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips button { border: 0; border-radius: 999px; padding: 6px 10px; background: #F4EBDD; color: #5E5249; font: 500 12px/1 var(--font-sans); cursor: pointer; }
.ph-chips button:hover { background: #ECDCC3; }
.ph-label { margin: 2px 0 -4px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.ph-aktionen { display: flex; justify-content: space-between; gap: 8px; }
.ph-aktionen .btn { flex: 1 1 0; }

/* Wizard: «Automatisch erledigt» vor den Fragen */
.abg-auto { margin-bottom: 12px; }
.abg-auto-satz { margin: 0 0 22px; font-size: 13px; line-height: 1.5; }

/* Gäste nach dem Abgleich: Hinweis und Karten fliessen ein */
.gl-neu { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: -8px 0 18px; padding: 12px 14px; border-radius: 16px; background: #E8EDDF; color: #41533A; font-size: 14px; }
.gl-neu b { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .gk-liste.einspuelen > .gk { animation: einspuelen 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .gk-liste.einspuelen > .gk:nth-child(2) { animation-delay: 60ms; } .gk-liste.einspuelen > .gk:nth-child(3) { animation-delay: 120ms; }
  .gk-liste.einspuelen > .gk:nth-child(4) { animation-delay: 180ms; } .gk-liste.einspuelen > .gk:nth-child(5) { animation-delay: 240ms; }
  .gk-liste.einspuelen > .gk:nth-child(6) { animation-delay: 300ms; } .gk-liste.einspuelen > .gk:nth-child(n+7) { animation-delay: 360ms; }
}
@keyframes einspuelen { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@media (max-width: 900px) { .ops-handy { grid-template-columns: minmax(0, 1fr); justify-items: center; } .ops-erklaer { padding-top: 0; } }
@media (max-width: 420px) { .phone { padding: 0; border-radius: 0; background: none; box-shadow: none; aspect-ratio: auto; } .phone-screen { height: auto; border-radius: 0; overflow: visible; padding: 0; background: none; } .ph-status { display: none; } .ph-sheet-grund { position: fixed; inset: auto 0 0 0; margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); background: none; } .ph-sheet { border-radius: 24px 24px 0 0; } }

/* ==========================================================================
   Abgleich nach Kategorien, Handy-Filter mit Icons, KI-Vorschläge ohne Startknopf.
   ========================================================================== */
.abg-kat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; margin: 0 0 22px; }
.abg-kat-karte { display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 14px 12px; border: 1px solid #E7DCCC; border-radius: 16px; background: #FFFDF9; color: var(--ink); font: inherit; cursor: pointer; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.abg-kat-karte:hover:not(:disabled) { border-color: rgba(107, 30, 46, 0.45); transform: translateY(-1px); box-shadow: 0 10px 22px -18px rgba(107, 30, 46, 0.6); }
.abg-kat-karte:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.abg-kat-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.abg-kat-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #F5E8E9; color: var(--bordeaux); }
.abg-kat-n { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #F5E8E9; color: var(--bordeaux); font-size: 12px; font-weight: 600; }
.abg-kat-karte b { font-weight: 600; font-size: 15px; }
.abg-kat-karte small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.abg-kat-los { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bordeaux); }
.abg-kat-karte.leer { cursor: default; background: transparent; border-style: dashed; }
.abg-kat-karte.leer .abg-kat-ic { background: #E8EDDF; color: #41533A; }
.abg-kat-karte.leer .abg-kat-n { background: #E8EDDF; color: #41533A; }
.abg-kat-karte.leer .abg-kat-los { color: var(--ink-soft); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .abg-kat-karte { transition: none; } .abg-kat-karte:hover:not(:disabled) { transform: none; } }

/* Handy: Filter als grosse Chips mit Icon, horizontal scrollbar; Fokuszeile zeigt, was gefiltert ist */
.ph-filter { display: flex; gap: 6px; margin: 0 -14px 10px; padding: 2px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.ph-filter::-webkit-scrollbar { display: none; }
.ph-filter button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid #E7DCCC; border-radius: 999px; background: #FFFDF9; color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.ph-filter button svg { color: var(--bordeaux); }
.ph-filter button.active { background: var(--bordeaux); border-color: var(--bordeaux); color: #F8EFE2; }
.ph-filter button.active svg { color: #F8EFE2; }
.ph-filter button:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.ph-fokus { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #F5E8E9; color: var(--bordeaux); font-size: 13px; font-weight: 600; }
.ph-hinweis small { display: inline-flex; align-items: center; gap: 5px; }
.ph-liste.einzeln .ph-hinweis { border-top: 0; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: #FBF4EC; }
.ph-liste.einzeln .ph-hinweis small { color: var(--bordeaux); font-size: 12px; }
.ph-liste.einzeln .ph-hinweis p { font-size: 15px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .ph-liste.ph-wechsel > .ph-karte { animation: ph-wechsel 320ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .ph-liste.ph-wechsel > .ph-karte:nth-child(2) { animation-delay: 50ms; } .ph-liste.ph-wechsel > .ph-karte:nth-child(n+3) { animation-delay: 100ms; }
}
@keyframes ph-wechsel { from { opacity: 0; transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .ph-filter button { transition: none; } }

/* ==========================================================================
   Gäste: Rangliste für Upgrades und Zimmerzuteilung. Eine grosse Zahl pro Gast, feiner Balken, die ersten drei hervorgehoben.
   ========================================================================== */
.rang { margin: 0 0 40px; padding: clamp(18px, 2.4vw, 28px); background: #FFFDF9; border: 1px solid #E7DCCC; border-radius: 22px; box-shadow: var(--card-shadow, none); }
.rang-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.rang-kopf h2 { margin: 0; font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem)/1.2 var(--font-serif); }
.rang-kopf p { margin: 4px 0 0; font-size: 14px; }
.rang-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.rang-liste { list-style: none; margin: 0; padding: 0; }
.rang-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto minmax(80px, 180px); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #EFE6D8; }
.rang-zeile:first-child { border-top: 0; }
.rang-nr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: italic 400 19px/1 var(--font-serif); color: var(--ink-soft); }
.rang-zeile.top .rang-nr { background: var(--bordeaux); color: #F8EFE2; font-style: normal; font: 600 14px/1 var(--font-sans); }
.rang-name { all: unset; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.rang-name > span { display: inline-flex; align-items: center; gap: 8px; }
.rang-name b { font: 400 20px/1.25 var(--font-serif); color: var(--ink); overflow-wrap: anywhere; }
.rang-name .siegel { margin: 0; flex: 0 0 auto; }
.rang-name small { font-size: 12.5px; color: var(--ink-soft); }
.rang-name:hover b { color: var(--bordeaux); }
.rang-name:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; border-radius: 6px; }
.rang-wert { font: 500 20px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; text-align: right; }
.rang-wert small { margin-left: 5px; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.rang-zeile.top .rang-wert { color: var(--bordeaux); }
.rang-balken { height: 6px; border-radius: 999px; background: #F1E8DA; overflow: hidden; }
.rang-balken i { display: block; height: 100%; border-radius: inherit; background: rgba(107, 30, 46, 0.35); }
.rang-zeile.top .rang-balken i { background: var(--bordeaux); }
.rang-fuss { display: flex; justify-content: center; margin-top: 8px; }
.gl-karten-titel { margin-top: 0; }
@media (max-width: 720px) {
  .rang-zeile { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .rang-balken { grid-column: 2 / -1; }
  .rang-tabs { width: 100%; overflow-x: auto; }
}

/* Abgleich: Vorschlag pro Frage (Claude oder Regel), über den Antworten */
.abg-vorschlag { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #F5E8E9; }
.abg-vorschlag .abg-wer { margin: 1px 0 0; background: #FFFDF9; }
.abg-vorschlag p { margin: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.45; }
.abg-vorschlag b { font-weight: 600; color: var(--bordeaux); }
.abg-vorschlag span { color: #6E4A51; }
@media (max-width: 560px) { .abg-vorschlag { grid-template-columns: minmax(0, 1fr); } }

/* Gäste: Sortier-Pills in der Werkzeugzeile, Rang und Kennzahl auf jeder Karte */
.gl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gl-toolbar .search { flex: 1 1 260px; }
.gl-sort button { display: inline-flex; align-items: center; gap: 6px; }
.gk-name { display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .gl-sort { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; } .gl-sort button { min-height: 44px; justify-content: center; } }

/* ==========================================================================
   Notizen: Pinnwand mit Post-its wie im Hotel von früher. Kork-Fläche, Nadeln, Handschrift, Abteilungsfarben.
   ========================================================================== */
.pin-werkzeug { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.pin-werkzeug .role-tabs { flex: 0 1 auto; }
.pin-uebergabe { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: #FFFDF9; border: 1px solid #E7DCCC; font-size: 14px; color: var(--ink-soft); }
.pin-uebergabe svg { flex: 0 0 auto; margin-top: 2px; color: var(--bordeaux); }
.pin-uebergabe b { color: var(--ink); font-weight: 600; margin-right: 8px; }
/* Zettel liegen direkt auf der Seite, ohne Brett-Box (Jackal, 28.10.) */
.pinnwand { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 34px 24px; padding: 14px 0 20px; }
.pinnwand-ruhig { margin-top: 10px; }
.pin-gruppe { margin: 34px 4px 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pin-zettel { position: relative; display: grid; gap: 8px; align-content: start; min-height: 200px; padding: 26px 18px 14px; border-radius: 3px 3px 16px 3px; background: var(--zettel, #FFF6C9); color: #3A2F2B; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 16px 26px -18px rgba(63, 45, 30, 0.65); transform: rotate(var(--dreh, 0deg)); transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease; }
.pin-zettel:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 22px 32px -20px rgba(63, 45, 30, 0.7); }
.farbe-gelb { --zettel: linear-gradient(172deg, #FFF7CF, #FBEBA6); }
.farbe-rose { --zettel: linear-gradient(172deg, #FCE6E9, #F5CFD5); }
.farbe-salbei { --zettel: linear-gradient(172deg, #EAF2DF, #D6E5C5); }
.farbe-pfirsich { --zettel: linear-gradient(172deg, #FEEBDA, #F8D5B5); }
.pin-nadel { position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #C96A7B 0 18%, #8E2A3E 45%, #5A1626 100%); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35); }
.pin-nadel::after { content: ''; position: absolute; left: 50%; top: 18px; width: 2px; height: 6px; margin-left: -1px; background: rgba(0, 0, 0, 0.18); border-radius: 1px; }
.pin-kommt { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--bordeaux); color: #F8EFE2; font: 600 11.5px/1.2 var(--font-sans); }
.pin-zettel.aktiv { box-shadow: 0 0 0 2px rgba(107, 30, 46, 0.35), 0 18px 30px -18px rgba(107, 30, 46, 0.6); }
.pin-text { margin: 0; font: 400 19px/1.35 'Noteworthy', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; color: #3A2F2B; overflow-wrap: anywhere; }
.pin-text svg { vertical-align: -2px; color: var(--bordeaux); }
.pin-gast { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 400 17px/1.2 var(--font-serif); color: var(--ink); }
.pin-gast .siegel { margin: 0; }
.pin-gast:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.pin-gast:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }
.pin-meta { margin: 0; font-size: 12px; color: rgba(63, 58, 54, 0.72); }
.pin-kommentare { list-style: none; margin: 2px 0 0; padding: 8px 0 0; border-top: 1px dashed rgba(63, 45, 30, 0.22); display: grid; gap: 4px; }
.pin-kommentare li { font: 400 15px/1.3 'Noteworthy', 'Bradley Hand', 'Segoe Print', cursive; }
.pin-kommentare small { margin-left: 6px; font: 400 11px var(--font-sans); color: rgba(63, 58, 54, 0.6); }
.pin-kommentar-form { display: flex; gap: 6px; }
.pin-kommentar-form input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid rgba(63, 45, 30, 0.25); border-radius: 10px; background: rgba(255, 255, 255, 0.75); font: 400 14px var(--font-sans); }
.pin-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.pin-haken, .pin-klein { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(63, 45, 30, 0.2); background: rgba(255, 255, 255, 0.6); color: var(--ink); font: 500 12.5px/1 var(--font-sans); cursor: pointer; }
.pin-haken:hover, .pin-klein:hover { background: rgba(255, 255, 255, 0.9); }
.pin-haken[aria-pressed="true"] { background: #41533A; border-color: #41533A; color: #F3F6EE; }
.pin-haken:focus-visible, .pin-klein:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.pin-zettel.erledigt { filter: saturate(0.55); opacity: 0.78; }
.pin-zettel.erledigt .pin-text { text-decoration: line-through; text-decoration-color: rgba(107, 30, 46, 0.55); text-decoration-thickness: 2px; }
.pin-neu { --zettel: #FFFDF9; transform: none; border: 1.5px dashed rgba(107, 30, 46, 0.4); box-shadow: 0 16px 26px -20px rgba(63, 45, 30, 0.5); }
.pin-neu:hover { transform: none; }
.pin-titel { margin: 0; font: 600 13px/1 var(--font-sans); color: var(--bordeaux); }
.pin-feld { display: grid; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.pin-eingabe { position: relative; }
.pin-neu textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; font: 400 17px/1.35 'Noteworthy', 'Bradley Hand', 'Segoe Print', cursive; color: #3A2F2B; resize: vertical; }
.pin-neu textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 1px; }
.pin-rollen { display: flex; flex-wrap: wrap; gap: 6px; }
.pin-rollen button { padding: 6px 10px; border: 1px solid #E7DCCC; border-radius: 999px; background: #FFFDF9; color: var(--ink); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.pin-rollen button.active { background: var(--bordeaux); border-color: var(--bordeaux); color: #F8EFE2; }
.pin-neu .btn.primary { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .pin-zettel { transition: none; } .pin-zettel:hover { transform: rotate(var(--dreh, 0deg)); } }
@media (max-width: 560px) { .pinnwand { gap: 28px 14px; } }

/* Rangliste im Stil der Elfenbein-Gästekarten: Papierfläche, Rang wie in der Karte (#N), Name in Times, Betrag in Bordeaux. Top 3 mit Bordeaux-Rahmen, darunter ein Bordeaux-Ton, der nach unten ausläuft */
.rl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rl-zeile { min-width: 0; animation: rl-ein .35s ease both; animation-delay: calc(var(--i) * 35ms); }
.rl-zeile.top + .rl-zeile:not(.top) { margin-top: 8px; }
.rl-bar { all: unset; box-sizing: border-box; position: relative; isolation: isolate; overflow: hidden; cursor: pointer; width: 100%; min-height: 60px; padding: 10px 20px 10px 24px; display: flex; align-items: center; gap: 16px; border: 1px solid color-mix(in srgb, #701b30 calc(var(--tint, 0%) * .9), #e7dac8); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, #701b30 var(--tint, 0%), #fffefb), color-mix(in srgb, #701b30 var(--tint, 0%), #faf5ec)); color: #472d32; box-shadow: 0 10px 24px -18px #58433340; transition: box-shadow .15s ease, border-color .15s ease; }
.rl-bar:hover { border-color: #d9c7b0; box-shadow: 0 1px 2px rgba(63, 45, 30, .05), 0 16px 30px -22px rgba(107, 30, 46, .45); }
.rl-bar:focus-visible { outline: 2px solid #701b30; outline-offset: 3px; }
.rl-bar .hb-mono { width: 150px; height: 154px; right: 160px; top: -44px; }
.rl-nr { flex: 0 0 34px; font: 600 13px/1 var(--font-sans); color: #7d6c62; font-variant-numeric: tabular-nums; }
.rl-zeile.top .rl-nr { color: #8a583b; font-size: 15px; }
.rl-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 23px/1.15 Times, 'Times New Roman', serif; letter-spacing: -.4px; color: #472d32; }
.rl-zeile.top .rl-name { font-size: 26px; }
.rl-zeile.top .rl-bar { border: 1.5px solid #701b30; box-shadow: 0 14px 28px -20px rgba(112, 27, 48, .55); }
.rl-zeile.top .rl-bar:hover { border-color: #701b30; }
.rl-wert { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: baseline; color: #701b30; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-wert svg { align-self: center; color: #8a583b; margin-right: 8px; }
.rl-wert .hb-cur { margin: 0 4px 0 0; }
.rl-wert b { font-size: 20px; font-weight: 500; letter-spacing: -.4px; }
.rl-zeile.top .rl-wert b { font-size: 23px; }
.rl-einheit { margin-left: 5px; font-size: 12px; color: #7d6c62; }
@keyframes rl-ein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .rl-zeile { animation: none; } .rl-bar { transition: none; } .rl-bar:hover { box-shadow: none; } }
@media (max-width: 720px) { .rl-bar { gap: 10px; padding: 10px 14px 10px 16px; } .rl-wert svg { display: none; } .rl-name, .rl-zeile.top .rl-name { flex: 1 1 auto; font-size: 19px; } .rl-nr, .rl-zeile.top .rl-nr { flex-basis: 28px; font-size: 13px; } .rl-wert b, .rl-zeile.top .rl-wert b { font-size: 17px; } }

/* Abgleich als Liste wie eine Import-Vorschau: Filter-Chips nach Art, pro Punkt eine schlanke Karte mit Häkchen, Belegen, KI-Vorschlag und kleinen Antwort-Chips */
.abg { max-width: none; }
.abg-filter-titel { margin: 4px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.abg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.abg-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid #E7DCCC; border-radius: 12px; background: #F4EBDD; color: #5E5249; font: 500 14px/1 var(--font-sans); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.abg-chip span { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; text-align: center; }
.abg-chip:hover { border-color: rgba(107, 30, 46, .4); }
.abg-chip.active { background: var(--bordeaux); border-color: var(--bordeaux); color: #F8EFE2; }
.abg-chip.active span { background: rgba(255, 255, 255, .18); color: #F8EFE2; }
.abg-chip:focus-visible, .abg-vk-check:focus-visible, .abg-vk-wahl button:focus-visible, .abg-vk-name:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.abg-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 8px 8px 16px; border: 1px solid #E7DCCC; border-radius: 14px; background: #FFFDF9; font-size: 14px; color: var(--ink-soft); }
.abg-leiste-r { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.abg-leiste-r .btn.primary { margin-left: 6px; }
.abg-link { all: unset; cursor: pointer; color: var(--bordeaux); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.abg-auto-hinweis { display: flex; align-items: baseline; gap: 8px; margin: 12px 2px 0; font-size: 13.5px; color: #41533A; }
.abg-auto-hinweis span { flex: 1 1 auto; color: var(--ink-soft); }
.abg-auto-hinweis svg { flex: 0 0 auto; transform: translateY(2px); }
.abg-auto-hinweis .abg-link { flex: 0 0 auto; }
.abg-vk-liste { display: grid; gap: 10px; margin-top: 14px; }
.abg-vk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid #E7DCCC; border-radius: 14px; background: #FFFDF9; transition: opacity .2s ease, border-color .2s ease; }
.abg-vk:hover { border-color: #D9CBB6; }
.abg-vk.aus { opacity: .55; }
.abg-vk-check { width: 30px; height: 30px; margin-top: 1px; border: 1.5px solid var(--bordeaux); border-radius: 8px; background: var(--bordeaux); color: #F8EFE2; display: grid; place-items: center; cursor: pointer; }
.abg-vk.aus .abg-vk-check { background: #FFFDF9; color: transparent; border-color: #CDB89C; }
.abg-vk-inhalt { display: grid; gap: 5px; min-width: 0; }
.abg-vk-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.abg-vk-kopf p { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.abg-vk-name { all: unset; cursor: pointer; font: 500 17px/1.25 var(--font-sans); color: var(--ink); }
.abg-vk-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.abg-vk-und { color: var(--ink-soft); }
.abg-vk-kopf code { margin-left: 4px; font: 12.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink-soft); }
.abg-vk-typ { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #F4EBDD; color: #5E5249; font-size: 12px; font-weight: 500; }
.abg-vk-frage { margin: 0; font-size: 14px; color: var(--ink-soft); }
.abg-vk-beleg { font: 12.5px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; color: #7A6F66; }
.abg-vk-beleg .abg-paar { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.abg-vk-beleg .abg-paar > span { display: inline; padding: 0; background: none; color: inherit; }
.abg-vk-beleg .abg-paar b, .abg-vk-beleg .abg-paar small { font: inherit; color: inherit; }
.abg-vk-beleg .abg-paar > span > :first-child::after { content: ': '; }
.abg-vk-beleg .abg-zitat { padding: 0; border: 0; font: inherit; }
.abg-vk-beleg .abg-zitat small { display: inline; margin: 0 0 0 8px; font: inherit; opacity: .8; }
.abg-vk-ki { display: flex; align-items: baseline; gap: 7px; margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.abg-vk-ki svg { flex: 0 0 auto; color: var(--bordeaux); transform: translateY(2px); }
.abg-vk-ki b { font-weight: 600; color: var(--bordeaux); }
.abg-vk-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.abg-vk-wahl button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border: 1px solid #E7DCCC; border-radius: 999px; background: #FFFDF9; color: #5E5249; font: 500 13px/1 var(--font-sans); cursor: pointer; }
.abg-vk-wahl button:hover { border-color: rgba(107, 30, 46, .4); }
.abg-vk-wahl button.active { border-color: var(--bordeaux); background: #F5E8E9; color: var(--bordeaux); }
@media (prefers-reduced-motion: reduce) { .abg-vk, .abg-chip { transition: none; } }
@media (max-width: 720px) { .abg-vk { gap: 10px; padding: 12px; } .abg-vk-kopf { flex-direction: column; gap: 6px; } .abg-leiste-r { width: 100%; } .abg-leiste-r .btn.primary { margin-left: auto; } .abg-vk-wahl button { min-height: 40px; } }

/* Kopfzeile: Wortmarke, darunter die Navigation mit Upload als letztem Knopf; «Guest Intelligence» klein in Bordeaux unter der Navigation */
.topnav-unter { margin: 2px 0 0; text-align: center; font: 500 10.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--bordeaux); }
.topnav-links .topnav-upload { display: inline-grid; place-items: center; padding: 8px 14px; }
@media (max-width: 720px) { .topnav-unter { font-size: 9.5px; } .topnav-links .topnav-upload { padding: 8px 12px; } }

/* Elfenbein-Gästekarte (Handoff Kaspar, 28.10.): eine Fläche, Bordeaux-Schrift, leises H-Monogramm, zwei Hinweise als Schwerpunkt */
.gk.hb-karte { --hb-ink: #472d32; --hb-muted: #7d6c62; --hb-rule: #dfd1be; --hb-wine: #701b30; --hb-spark: #8a583b; position: relative; isolation: isolate; overflow: hidden; padding: 21px 23px 17px; border: 1px solid #e7dac8; border-radius: 18px; background: linear-gradient(145deg, #fffefb, #faf5ec); color: var(--hb-ink); box-shadow: 0 10px 24px -18px #58433340; }
.gk.hb-karte:hover { border-color: #d9c7b0; }
.hb-mono { position: absolute; z-index: -1; pointer-events: none; width: 270px; height: 278px; right: -64px; top: 8px; background: url("brand/monogramm.png") no-repeat center / contain; opacity: .022; }
.hb-papier { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hb-over { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; color: var(--hb-muted); font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hb-over > span { white-space: nowrap; }
.hb-over strong { color: var(--hb-ink); font-weight: 500; }
.hb-cur { margin: 0 3px 0 4px; font-size: 9px; font-weight: 400; color: var(--hb-muted); }
.hb-rang strong { font-size: 13px; color: var(--hb-spark); font-weight: 600; }
.gk.hb-karte .gk-head { align-items: start; gap: 8px; margin-bottom: 1px; }
.gk.hb-karte .gk-name { font: 400 29px/1.2 Times, 'Times New Roman', serif; letter-spacing: -.65px; color: var(--hb-ink); }
.gk.hb-karte .gk-pin { width: 44px; height: 44px; margin: -7px -11px -4px 0; border-radius: 50%; color: var(--hb-muted); }
.gk.hb-karte .gk-pin:hover, .gk.hb-karte .gk-pin[aria-pressed="true"] { background: #701b300d; color: var(--hb-ink); }
.gk.hb-karte .gk-pin[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .16; }
.hb-geld { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.hb-avg, .hb-kat { margin: 0; min-width: 0; }
.hb-avg dt { font-size: 10px; color: var(--hb-muted); margin-bottom: 5px; }
.hb-avg dd { display: flex; align-items: baseline; margin: 0; color: var(--hb-wine); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-avg dd .hb-cur { margin-left: 0; }
.hb-avg strong { font-size: 21px; line-height: 1.2; letter-spacing: -.45px; font-weight: 500; }
.hb-kat { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 8px; }
.hb-kat > div { min-width: 0; }
.hb-kat dt { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--hb-muted); margin-bottom: 6px; white-space: nowrap; }
.hb-kat dt svg { width: 12px; height: 12px; }
.hb-kat dd { display: flex; align-items: baseline; margin: 0; white-space: nowrap; font-size: 12.5px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--hb-ink); }
.hb-kat dd .hb-cur { margin-left: 0; font-size: 8px; }
.hb-leer { margin: 0; font-size: 13px; color: var(--hb-muted); }
.hb-intel { position: relative; z-index: 2; margin-top: 18px; padding-top: 15px; }
.hb-intel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--hb-rule), transparent); }
.hb-intel ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hb-intel button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 9px; color: var(--hb-wine); font-size: 13.5px; line-height: 1.4; font-weight: 500; }
.hb-intel button:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #701b3055; }
.hb-intel button:focus-visible { outline: 2px solid var(--hb-wine); outline-offset: 3px; border-radius: 4px; }
.hb-intel svg { flex: 0 0 auto; color: var(--hb-spark); width: 15px; height: 15px; margin-top: 2px; }
.gk.hb-karte .gk-hinweise, .gk.hb-karte .notiz { position: relative; z-index: 2; }
@media (max-width: 1150px) and (min-width: 721px) { .gk.hb-karte { padding: 20px 17px 19px; } .gk.hb-karte .gk-name { font-size: 27px; } .hb-avg strong { font-size: 18px; } .hb-kat { column-gap: 5px; } .hb-kat dd { font-size: 11px; } }
@media (max-width: 360px) { .gk.hb-karte { padding: 18px 16px 19px; } .gk.hb-karte .gk-name { font-size: 27px; } .hb-geld { grid-template-columns: 1fr; row-gap: 12px; } }

/* Detailseite: Kopf als grosse Elfenbein-Karte, übrige Flächen im selben Papier-Ton */
.gk.hb-karte.hb-gross { padding: 24px 26px 22px; margin-bottom: 18px; }
.hb-gross .hb-geld { column-gap: 40px; }
.hb-gross .hb-kat { justify-content: start; column-gap: 32px; }
.hb-gross .hb-mono { width: 380px; height: 390px; right: -70px; top: -10px; opacity: .02; }
.hb-gross .pf-kopf { margin: 0 0 6px; }
.hb-gross .pf-name h1 { font: 400 clamp(2.2rem, 1.8rem + 1.6vw, 3rem)/1.1 Times, 'Times New Roman', serif; letter-spacing: -.02em; color: var(--hb-ink); }
.hb-gross .pf-kontakt { color: var(--hb-muted); }
.hb-gross .hb-pills { margin: 12px 0 20px; }
.hb-gross .hb-avg strong { font-size: 26px; }
.hb-gross .hb-kat dd { font-size: 15px; }
.pf .panel { border-color: #e7dac8; background: linear-gradient(145deg, #fffefb, #faf5ec); box-shadow: 0 10px 24px -18px #58433340; }
.pf .pf-abschnitt { padding: 20px 22px 16px; border: 1px solid #e7dac8; border-radius: 18px; background: linear-gradient(145deg, #fffefb, #faf5ec); box-shadow: 0 10px 24px -18px #58433340; }
@media (max-width: 560px) { .hb-gross .hb-geld { grid-template-columns: 1fr; row-gap: 14px; } .hb-gross .hb-kat { justify-content: space-between; column-gap: 8px; } .hb-gross .hb-avg strong { font-size: 24px; } .pf .pf-abschnitt { padding: 18px 16px 14px; } }
.pf .pf-abschnitt h2, .pf .panel-head h3 { font-family: Times, 'Times New Roman', serif; font-weight: 400; color: #472d32; }
.pf .pf-pref { border-color: #e7dac8; background: #fffdf8; color: #472d32; }
.pf .pf-pref svg { color: #8a583b; }

/* KI-Hinweise: leiser Schimmer wie beim Laden, Funkeln am Stern, weicher Schein dahinter. Ohne Bewegung bei reduzierter Bewegung */
@keyframes hb-schimmer { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@keyframes hb-funkeln { 0%, 100% { filter: drop-shadow(0 0 0 rgba(214, 160, 100, 0)); } 45% { filter: drop-shadow(0 0 4px rgba(214, 160, 100, .7)); } }
@keyframes hb-schein { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }
.hb-intel button span, #ai-panel .ki-list b { background: linear-gradient(100deg, #701b30 0%, #701b30 38%, #a8693a 50%, #701b30 62%, #701b30 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: hb-schimmer 5s ease-in-out infinite; }
.hb-intel li:nth-child(2) button span { animation-delay: .35s; }
.hb-intel li:nth-child(3) button span { animation-delay: .7s; }
.hb-intel svg { animation: hb-funkeln 5s ease-in-out infinite; }
.hb-intel li:nth-child(2) svg { animation-delay: .35s; }
.hb-intel li:nth-child(3) svg { animation-delay: .7s; }
#ai-panel .ki-list li:nth-child(2) b { animation-delay: .35s; }
#ai-panel .ki-list li:nth-child(3) b { animation-delay: .7s; }
.hb-intel::after { content: ""; position: absolute; z-index: -1; inset: 6px -14px -8px -14px; border-radius: 14px; pointer-events: none; background: radial-gradient(70% 90% at 22% 55%, rgba(214, 160, 100, .16), rgba(214, 160, 100, 0) 72%); animation: hb-schein 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hb-intel button span, #ai-panel .ki-list b { animation: none; background: none; color: #701b30; -webkit-text-fill-color: #701b30; }
  .hb-intel svg, .hb-intel::after { animation: none; }
  .hb-intel::after { opacity: 0; }
}

/* Aufenthalte und Nächte als Pills (wie vorher), im Elfenbein-Ton */
.gk.hb-karte .hb-pills { margin: 8px 0 18px; gap: 6px; }
.gk.hb-karte .hb-pills .pill { padding: 5px 10px; font-size: 12.5px; }
.gk.hb-karte .hb-pills .pill.sand { background: #f1e7d8; color: #6b5a48; }
.gk.hb-karte .hb-pills .pill.mauve { background: #efe4e6; color: #6f4f57; }
.gk.hb-karte .hb-pills .pill.blush { background: #f5e8e9; color: var(--hb-wine); }

/* ---------- Handy für den Alltag (?handy): Bereich wählen, dann Tabs Gäste und Notizen. Ohne Navigation und Import ---------- */
.hy-seite { max-width: 520px; margin: 0 auto; padding: 18px 16px 40px; }
.hy-seite.mit-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.hy-kopf { display: grid; justify-items: center; gap: 10px; margin-bottom: 16px; }
.hy-marke { margin: 0; text-align: center; font: italic 700 26px/1 var(--font-serif); letter-spacing: -0.04em; color: var(--bordeaux); }
.hy-wechsel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(107, 30, 46, 0.35); border-radius: 999px; background: var(--surface);
  font: 500 14px/1 var(--font-sans); color: var(--bordeaux); cursor: pointer;
}
.hy-wechsel:hover { border-color: var(--bordeaux); }
.hy-wahl h2 { margin: 18px 0 4px; text-align: center; font: 400 30px/1.1 var(--font-serif); color: var(--ink); }
.hy-wahl > .muted { margin: 0 0 20px; text-align: center; }
.hy-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hy-kachel {
  display: grid; justify-items: start; align-content: space-between; gap: 18px; min-height: 108px; padding: 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer;
  font: 500 16px/1.2 var(--font-sans); color: var(--ink); text-align: left;
  transition: border-color 140ms ease, transform 140ms ease;
}
.hy-kachel:hover { border-color: rgba(107, 30, 46, 0.45); }
.hy-kachel:active { transform: scale(0.98); }
.hy-kachel-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bordeaux-light); color: var(--bordeaux); }
.hy-suche input { width: 100%; min-height: 48px; border-radius: 14px; }
.hy-abschnitt { margin-top: 18px; }
.hy-gruppe { margin: 16px 2px 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.hy-abschnitt > .hy-gruppe:first-child { margin-top: 0; }
.hy-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hy-tabs button {
  display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0;
  border: 0; border-radius: 14px; background: none; cursor: pointer;
  font: 500 12px/1 var(--font-sans); color: var(--ink-soft);
}
.hy-tabs button[aria-current="page"] { color: var(--bordeaux); background: var(--bordeaux-light); }
.hy-titel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.hy-titel h2 { margin: 0; font: 400 22px/1.1 var(--font-serif); color: var(--ink); }
.hy-neu { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bordeaux); background: var(--bordeaux); color: #FBF7F0; font-weight: 500; }
.hy-neu:hover { background: var(--bordeaux-dark); }
/* Notizen am Handy: dieselbe Pinnwand wie am Desktop, Zettel etwas enger gesetzt */
.hy-pinnwand { gap: 30px 14px; padding: 16px 4px 10px; }
.hy-pinnwand .pin-zettel { min-height: 0; }
.hy-seite .gk-liste { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hy-seite .pf-toolbar { margin-top: 4px; }
