/* Haus & Hof – Reiter in Jarvis. Farben kommen aus :root von index.html (--g, --panel, ...). */
#v-haus { position: relative; }
#v-haus .hh-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
#v-haus .hh-back {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2);
  border: 1px solid var(--line); color: var(--text); font-size: 20px; cursor: pointer; flex: none; visibility: hidden;
}
#v-haus .hh-back.show { visibility: visible; }
#v-haus .hh-title { font-size: 18px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-haus .hh-crumb { color: var(--muted); font-size: 12px; padding: 0 16px 4px 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-haus .hh-crumb a { color: var(--muted); cursor: pointer; text-decoration: none; }
#v-haus .hh-crumb a:hover { color: var(--g); }
#hhMain { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 96px; }

.hh-search { display: flex; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.hh-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.hh-sub { color: var(--muted); font-size: 12.5px; margin: 10px 2px 6px; font-weight: 600; }
.hh-sub a { color: inherit; cursor: pointer; }
.hh-sub a:hover { color: var(--g); }
.hh-row .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hh-row .ic { overflow: hidden; }
.hh-indent { margin-left: 14px; }
.hh-empty { color: var(--muted); font-size: 13px; font-style: italic; padding: 2px 4px 6px; }
/* Gewerbe/Privat (07.10.2026) */
.hh-zu { margin-left: 6px; font-size: 13px; }
.hh-zufilter { display: flex; gap: 6px; margin: 0 0 10px; }
.hh-zufilter button { flex: 1; background: var(--card, #111); color: inherit; border: 1px solid #234; border-radius: 999px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
.hh-zufilter button.on { border-color: var(--g, #00ff88); color: var(--g, #00ff88); }
.hh-zuzeile { font-size: 13px; color: var(--muted, #9aa); margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.hh-zuzeile button { background: none; border: 1px solid #234; color: inherit; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.hh-badge { background: #3a2a10; color: #fbbf24; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }

/* Seite */
.hh-hero { margin: 0 -16px 10px; height: 210px; background: #000 center/cover no-repeat; position: relative; cursor: zoom-in; }
.hh-hero-grund { background-color: #fff; background-size: contain; height: 190px; cursor: pointer; }
.hh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, var(--bg)); }
.hh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.hh-chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.hh-chip.ok { border-color: #2f6b45; color: #4ade80; }
.hh-chip.warn { border-color: #6b5a22; color: #fbbf24; }
.hh-ptabs { display: flex; gap: 6px; margin: 6px 0 12px; overflow-x: auto; scrollbar-width: none; }
.hh-ptabs::-webkit-scrollbar { display: none; }
.hh-ptabs button { background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.hh-ptabs button.on { background: var(--g); border-color: var(--g); color: #00170b; font-weight: 600; }
table.hh-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.hh-kv td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hh-kv tr:last-child td { border-bottom: 0; }
table.hh-kv td:first-child { color: var(--muted); width: 40%; padding-right: 10px; }
.hh-md h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.hh-md ul { margin: 0 0 6px 18px; }
.hh-md li { margin: 3px 0; font-size: 14px; }
.hh-md p { font-size: 14px; margin: 4px 0; }

/* Zeitleiste */
.hh-tl { position: relative; padding-left: 22px; }
.hh-tl::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.hh-ev { position: relative; margin-bottom: 16px; }
.hh-ev::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--g); }
.hh-ev.offen::before { border-color: #fbbf24; }
.hh-ev .d { color: #7dffc4; font-size: 12.5px; font-weight: 600; }
.hh-ev.offen .d { color: #fbbf24; }
.hh-ev .t { font-weight: 600; margin: 1px 0 2px; }
.hh-ev .x { color: #c3d6cb; font-size: 13.5px; white-space: pre-wrap; }
.hh-ev .wo { color: var(--muted); font-size: 12px; cursor: pointer; }
.hh-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hh-strip::-webkit-scrollbar { display: none; }
.hh-th { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #000 center/cover; position: relative; cursor: pointer; border: 1px solid var(--line); }
.hh-th.more { display: grid; place-items: center; background: var(--panel2); color: var(--g); font-weight: 700; }
.hh-th .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; text-shadow: 0 2px 8px #000; }
.hh-th .tag { position: absolute; left: 4px; bottom: 4px; font-size: 13px; text-shadow: 0 1px 4px #000; }
.hh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.hh-grid .hh-th { width: auto; height: auto; aspect-ratio: 1; }
.hh-gridday { color: var(--muted); font-size: 12px; margin: 12px 2px 6px; }
.hh-doc {
  flex: none; width: 76px; height: 76px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; color: var(--muted);
  text-align: center; padding: 4px; overflow: hidden; word-break: break-all; cursor: pointer;
}
.hh-doc b { font-size: 24px; font-weight: 400; }

/* Vollbild */
.hh-lb { position: fixed; inset: 0; background: rgba(0,0,0,.95); display: none; flex-direction: column; z-index: 300; }
.hh-lb.on { display: flex; }
.hh-lb .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #cbd5e1; font-size: 13px; }
.hh-lb .top a { color: var(--g); text-decoration: none; white-space: nowrap; }
.hh-lb .cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-lb .x { font-size: 28px; cursor: pointer; padding: 0 8px; line-height: 1; background: none; border: 0; color: #fff; }
/* Kugel-Stil ".stage" aus index.html (max. 300-340 px) hier aufheben, sonst ist das Bild am PC winzig (06.10.2026) */
.hh-lb .stage { width: auto; height: auto; min-height: 0; align-self: stretch; cursor: default; transition: none; }
.hh-lb .stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; touch-action: pan-y; }
.hh-lb img, .hh-lb video { max-width: 100%; max-height: 100%; object-fit: contain; }
.hh-lb .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; color: #fff; background: rgba(255,255,255,.08); width: 48px; height: 64px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; user-select: none; border: 0; }
.hh-lb .prev { left: 8px; } .hh-lb .next { right: 8px; }
.hh-lb .lade { position: absolute; color: var(--muted); font-size: 13px; }

/* + Neuer Eintrag */
.hh-fab {
  position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--g);
  color: #00170b; font-size: 32px; line-height: 1; display: grid; place-items: center; cursor: pointer; border: 0;
  box-shadow: 0 8px 24px rgba(0,255,136,.35); z-index: 5;
}
.hh-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: flex-end; justify-content: center; z-index: 250; }
.hh-sheet.on { display: flex; }
.hh-sheet .box {
  width: 100%; max-width: 640px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; animation: hh-up .2s ease-out;
}
@keyframes hh-up { from { transform: translateY(40px); opacity: 0; } }
.hh-sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.hh-sheet h3 { font-size: 17px; margin: 0 0 2px; }
.hh-sheet .ctx { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.hh-sheet .ctx b { color: #7dffc4; }
.hh-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hh-opt { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; cursor: pointer; color: var(--text); font: inherit; font-size: 13px; }
.hh-opt:hover { border-color: var(--g); }
.hh-opt b { display: block; font-size: 24px; font-weight: 400; margin-bottom: 2px; }
.hh-picked { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.hh-picked .hh-th, .hh-picked .hh-doc { width: 64px; height: 64px; cursor: default; }
.hh-picked .weg { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #300; color: #fff; border: 1px solid #a33; font-size: 13px; line-height: 1; cursor: pointer; }
.hh-pwrap { position: relative; }
.hh-textrow { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.hh-sheet textarea, .hh-sheet input[type=text], .hh-sheet input[type=date], .hh-sheet select {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  font: inherit; font-size: 16px; padding: 10px; outline: none;
}
.hh-sheet textarea { min-height: 70px; resize: vertical; }
.hh-sheet textarea:focus, .hh-sheet input:focus, .hh-sheet select:focus { border-color: var(--g); }
.hh-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); font-size: 20px; cursor: pointer; }
.hh-mic.rec { background: var(--red); border-color: var(--red); animation: hh-puls 1s infinite; }
@keyframes hh-puls { 50% { transform: scale(1.1); } }
.hh-btn { width: 100%; margin-top: 10px; background: var(--g); color: #00170b; border: 0; border-radius: 12px; padding: 13px; font: inherit; font-weight: 700; cursor: pointer; }
.hh-btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.hh-btn:disabled { opacity: .5; }
.hh-feld { margin-top: 10px; }
.hh-feld label { display: block; color: var(--muted); font-size: 12px; margin: 0 0 4px 2px; }
.hh-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hh-note { border-left: 3px solid #fbbf24; background: #1d1a10; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin: 8px 0; }
.hh-note.ok { border-color: #4ade80; background: #0f1d14; }
.hh-ziel { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1px solid #1f5a3d; border-radius: 14px; padding: 12px; margin: 6px 0; }
.hh-ziel .gross { font-size: 26px; }
.hh-ziel small { color: var(--muted); display: block; font-size: 12.5px; }
.hh-progress { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin: 14px 0 6px; }
.hh-progress div { height: 100%; width: 0; background: var(--g); transition: width .2s; }
.hh-warte { text-align: center; padding: 18px 0; color: var(--muted); }
.hh-warte .dot { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; background: radial-gradient(circle at 35% 30%, #88ffcc, #00ff88 30%, #00aa55 65%, #002211); animation: hh-puls 1s infinite; }
.hh-fragen li { margin: 4px 0 4px 18px; font-size: 14px; }
.hh-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.hh-check input { width: 20px; height: 20px; accent-color: var(--g); }
.hh-ev .abhaken { background: none; border: 1px solid #6b5a22; color: #fbbf24; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; margin-top: 6px; }
.hh-ev .abhaken:hover { background: #2a2210; }
.hh-gruppe { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 6px; }
.hh-gruppe span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hh-gruppe button { background: var(--panel2); border: 1px solid #1f5a3d; color: var(--g); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
/* ✏️ Bearbeiten (06.10.2026) */
.hh-ev .bearb { position: absolute; top: -2px; right: 0; background: none; border: 0; font-size: 15px; opacity: .55; cursor: pointer; padding: 4px 6px; }
.hh-ev .bearb:hover { opacity: 1; }
.hh-ev .t { padding-right: 30px; }
.hh-selbst { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.hh-selbst summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.hh-btn.hh-rot { color: #ff8fa3; border-color: #5a1f2d; }
/* Ziehen & Ablegen (07.10.2026) */
body.hh-drop #v-haus, body.hh-drop .hh-sheet .box { outline: 3px dashed var(--g, #00ff88); outline-offset: -8px; }
body.hh-drop::after { content: "Hier loslassen – Jarvis legt es ab"; position: fixed; left: 50%; top: 40%; transform: translateX(-50%); padding: 14px 22px; border-radius: 12px; background: rgba(0,0,0,.85); color: var(--g, #00ff88); font-weight: 600; pointer-events: none; z-index: 300; }
