/* Herstellerunterlagen — Gehäuse: Übersicht (Kacheln) und Werkbank (3D + Pin 1 + Kammern) */

.hd-gh-lade { display: flex; align-items: center; gap: 10px; padding: 40px; color: var(--text-leise); justify-content: center; }
.hd-gh-lade svg { animation: hd-gh-schweben 1.4s ease-in-out infinite alternate; color: var(--akzent-text); }

/* Kennzahlen + Filter */
.hd-gh-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.hd-gh-kz {
    --p: 100; position: relative; display: grid; grid-template-columns: 46px auto; grid-template-rows: auto auto; column-gap: 12px;
    align-items: center; padding: 10px 16px 10px 12px; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche);
    box-shadow: var(--hd-tiefe);
}
.hd-gh-kz-ring {
    grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%;
    background: conic-gradient(var(--akzent) calc(var(--p) * 1%), var(--rand) 0);
    -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px);
    animation: hd-gh-dreh .8s cubic-bezier(.2, .8, .2, 1) both;
}
.hd-gh-kz-voll .hd-gh-kz-ring { background: conic-gradient(var(--akzent), var(--hd-kupfer-hell), var(--akzent)); }
.hd-gh-kz-zahl { font: 800 1.45rem 'Montserrat', sans-serif; line-height: 1; }
.hd-gh-kz-zahl small { font-size: .8rem; color: var(--text-leise); font-weight: 700; }
.hd-gh-kz-text { font-size: .8rem; color: var(--text-leise); }
.hd-gh-filter { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); }
.hd-gh-filter button {
    min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; background: none; color: var(--text-leise);
    font: 600 .84rem 'Open Sans', sans-serif; cursor: pointer; transition: background .2s, color .2s;
}
.hd-gh-filter button[aria-checked="true"] { background: var(--akzent); color: #fff; box-shadow: 0 4px 12px -4px var(--akzent); }

/* Kacheln */
.hd-gh-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.hd-gh-kacheln > li { animation: hd-gh-ein .4s calc(var(--i, 0) * 40ms) cubic-bezier(.2, .8, .2, 1) both; }
.hd-gh-kachel {
    position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 10px 12px 10px 10px; border: 1px solid var(--rand); border-radius: 14px; background: var(--grund);
    color: inherit; text-decoration: none; overflow: hidden; box-shadow: var(--hd-tiefe);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .22s;
}
.hd-gh-kachel::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
    background: radial-gradient(260px 120px at 20% 0%, var(--hd-mantel), transparent 70%);
}
.hd-gh-kachel:hover { transform: translateY(-3px); border-color: var(--akzent); box-shadow: 0 16px 30px -18px var(--akzent); }
.hd-gh-kachel:hover::after { opacity: 1; }
.hd-gh-bild {
    display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 12px;
    background: #fff; color: #94a3b8; overflow: hidden; border: 1px solid rgba(15, 23, 42, .08);
}
.hd-gh-bild img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); animation: hd-einblenden .35s both; }
.hd-gh-kachel:hover .hd-gh-bild img { transform: scale(1.08) rotate(-2deg); }
.hd-gh-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-gh-nr { font: 700 1.02rem 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.hd-gh-bez { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-gh-herst { font-size: .76rem; color: var(--text-leise); }
.hd-gh-pillen { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.hd-gh-pfeil { color: var(--text-leise); transition: transform .22s, color .22s; }
.hd-gh-kachel:hover .hd-gh-pfeil { transform: translateX(3px); color: var(--akzent-text); }

/* Werkbank: eine Bildschirmhöhe */
#gehaeuse.hd-gh-werk-an > h1, #gehaeuse.hd-gh-werk-an > .ansicht-intro { display: none; }
.hd-gh-werk {
    display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 12px;
    height: calc(100dvh - var(--kopf-hoehe) - 34px - 44px); min-height: 520px;
}
.hd-gh-seite { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.hd-gh-zurueck { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rand); color: var(--akzent-text); font-weight: 600; text-decoration: none; }
.hd-gh-seite ul { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.hd-gh-seite li a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.hd-gh-seite li a:hover { background: var(--grund); }
.hd-gh-seite li a.hd-gh-an { background: var(--akzent-hell); box-shadow: inset 3px 0 0 var(--akzent); }
.hd-gh-punkt { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.hd-gh-punkt-ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.hd-gh-punkt-offen { background: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, .2); }
.hd-gh-zeile { display: flex; flex-direction: column; min-width: 0; }
.hd-gh-zeile-nr { font-weight: 700; font-size: .86rem; }
.hd-gh-zeile-bez { font-size: .74rem; color: var(--text-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hd-gh-buehne { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--grund); overflow: hidden; box-shadow: var(--hd-tiefe); }
.hd-gh-titel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rand); background: var(--flaeche); }
.hd-gh-titel h2 { margin: 0; font-size: 1.25rem; }
.hd-gh-titel p { margin: 0; font-size: .86rem; }
.hd-gh-3d { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hd-gh-3d > * { flex: 1; min-height: 0; }
.hd-gh-3d .v3d { min-height: 0; height: 100%; }

.hd-gh-panel { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.hd-gh-pin1, .hd-gh-kammern { padding: 12px 14px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--grund); box-shadow: var(--hd-tiefe); font-size: .88rem; }
.hd-gh-pin1:empty { display: none; }
.hd-gh-pin1 h3, .hd-gh-kammern h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 1rem; }
.hd-gh-stand { margin: 0 0 8px; }
.hd-gh-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* Pin-1-Angaben (P-2): Seite schmal, Kammer breit — unter 360 px untereinander */
.hd-gh-angaben .hd-feld { margin: 8px 0; }
.hd-gh-reihe { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(120px, 2fr); gap: 0 10px; }
@media (max-width: 360px) { .hd-gh-reihe { grid-template-columns: 1fr; } }
.hd-gh-hinweis { padding: 10px 12px; border-radius: 10px; background: var(--akzent-hell); border: 1px solid var(--akzent); color: var(--text); }
.hd-gh-puls { animation: hd-gh-puls 1.6s ease-in-out infinite; }

@keyframes hd-gh-ein { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hd-gh-dreh { from { transform: rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hd-gh-schweben { to { transform: translateY(-5px) rotate(-6deg); } }
@keyframes hd-gh-puls { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--akzent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) {
    #gehaeuse *, #gehaeuse *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) {
    .hd-gh-werk { grid-template-columns: minmax(0, 1fr); height: auto; }
    .hd-gh-seite { display: none; }
    .hd-gh-buehne { min-height: 60vh; }
    .hd-gh-filter { margin-left: 0; }
}

/* Belegung je Kammer (AP-10) */
.hd-gh-alle { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-leise); }
.hd-gh-grund { margin: 0 0 8px; }
.hd-gh-label { font-weight: 600; color: var(--akzent-text); margin-right: 4px; }
.hd-gh-kliste { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hd-gh-kliste li { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); }
.hd-gh-aus { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 6px; background: var(--grund); overflow: hidden; color: var(--text-leise); }
.hd-gh-aus img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hd-gh-aus-leer { display: inline-flex; opacity: .6; }
.hd-gh-knr { font-size: .9rem; text-align: center; }
.hd-gh-knr input { width: 100%; box-sizing: border-box; text-align: center; }
/* Steckseite am Gesamtbild bestätigen (Wellenabnahme 4, D-1) */
.hd-gh-steckseite { margin: 10px 0; padding: 10px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); }
.hd-gh-frage { margin: 0 0 8px; font-size: .92rem; }
.hd-gh-gesamt { margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.hd-gh-gesamt img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--rand); }
