.hausin-modelle{--hm-blue:#173b63;--hm-line:#dbe3eb;--hm-muted:#526171;color:#182d42;margin:1.5rem 0;font:inherit}.hausin-modelle .hm-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end;background:#f2f5f8;padding:16px;border-radius:10px;margin-bottom:20px}.hausin-modelle .hm-filter label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;flex:1 1 170px}.hausin-modelle .hm-filter input,.hausin-modelle .hm-filter select{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #b8c6d4;border-radius:5px;padding:8px;background:#fff;color:#182d42;font:inherit}.hausin-modelle .hm-filter button{min-height:44px;background:var(--hm-blue);color:white;border:0;border-radius:5px;padding:10px 20px;cursor:pointer;font:inherit}.hausin-modelle a{color:var(--hm-blue)}.hausin-modelle .hm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:22px}.hausin-modelle .hm-card{border:1px solid var(--hm-line);border-radius:10px;background:#fff;overflow:hidden;min-width:0}.hausin-modelle .hm-body{padding:18px}.hausin-modelle h3{color:var(--hm-blue);font-size:1.2rem;margin:0 0 12px}.hausin-modelle .hm-photos{display:flex;flex-wrap:wrap;gap:4px;background:#f2f5f8}.hausin-modelle .hm-photos a:first-child{flex:1 0 100%}.hausin-modelle .hm-photos a{flex:0 1 calc(33.333% - 4px)}.hausin-modelle .hm-photos img{display:block;width:100%;height:72px;object-fit:contain;background:white}.hausin-modelle .hm-photos a:first-child img{height:200px}.hausin-modelle .hm-no-photo{background:#f2f5f8;color:var(--hm-muted);padding:35px 12px;text-align:center}.hausin-modelle dl{margin:0;font-size:.92rem}.hausin-modelle dl div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;padding:5px 0;border-bottom:1px solid #edf1f5}.hausin-modelle dt{font-weight:600}.hausin-modelle dd{margin:0;overflow-wrap:anywhere}.hausin-modelle .hm-scroll{overflow-x:auto}.hausin-modelle table{border-collapse:collapse;width:100%;background:white;font-size:.9rem}.hausin-modelle th,.hausin-modelle td{text-align:left;padding:10px;border-bottom:1px solid var(--hm-line);min-width:85px;color:#182d42}.hausin-modelle th{background:#f2f5f8}.hausin-modelle td .hm-photos{width:120px}.hausin-modelle td .hm-photos a:first-child img{height:85px}.hausin-modelle td .hm-photos img{height:35px}.hausin-modelle .hm-pages{display:flex;gap:20px;justify-content:center;align-items:center;margin:25px 0}.hausin-modelle .hm-count{color:var(--hm-muted)}.hausin-modelle a:focus-visible,.hausin-modelle button:focus-visible,.hausin-modelle input:focus-visible,.hausin-modelle select:focus-visible{outline:3px solid #bd7420;outline-offset:3px}

/* Breite und kompakte Tabellenfotos, Version 1.0.2 */
.hausin-modelle{box-sizing:border-box;width:100%;max-width:100%;min-width:0}.hausin-modelle .hm-scroll{width:100%;max-width:100%;min-width:0}.hausin-modelle.hm-fullwidth{max-width:none}.hausin-modelle td .hm-photos{width:80px}.hausin-modelle td .hm-photos a:first-child img{height:50px}.hausin-modelle td .hm-photos img{height:28px}.hausin-modelle .hm-photo-cell{width:80px;min-width:80px}

/* 1.0.3: Theme-Regeln für section und starre Mindestspalten korrigieren. */
section.hausin-modelle{overflow:visible;padding-top:0;padding-bottom:0}
section.hausin-modelle.hm-fullwidth{max-width:none!important;min-width:0;box-sizing:border-box}
.hausin-modelle .hm-scroll{overflow-x:auto;box-sizing:border-box}
.hausin-modelle .hm-scroll table{width:100%;min-width:0;table-layout:auto}
.hausin-modelle .hm-scroll th,.hausin-modelle .hm-scroll td{min-width:0;padding:7px 6px;font-size:13px;overflow-wrap:anywhere;white-space:normal;vertical-align:middle}
.hausin-modelle .hm-scroll .hm-photo-cell{width:80px;min-width:80px}
.hausin-modelle td .hm-no-photo{padding:8px 2px;font-size:11px;max-width:80px}

/* 1.0.4: Grössere Fotos; konkrete Regeln übersteuern ältere Customizer-Grössen. */
section.hausin-modelle .hm-scroll td.hm-photo-cell{width:160px!important;min-width:160px!important}
section.hausin-modelle .hm-scroll td .hm-photos{width:160px!important}
section.hausin-modelle .hm-scroll td .hm-photos a:first-child img{width:160px!important;height:100px!important;max-width:100%;object-fit:contain}
section.hausin-modelle .hm-scroll td .hm-photos a:not(:first-child) img{height:45px!important;object-fit:contain}
.hausin-modelle .hm-filter label{min-width:0}
/* 1.0.6: Originalfoto als zugänglicher Dialog über der Seite. */
dialog.hm-photo-dialog{box-sizing:border-box;width:96vw;max-width:1800px;height:94vh;max-height:94vh;padding:0;border:0;border-radius:10px;background:#fff;color:#182d42;box-shadow:0 15px 70px #0008;overflow:hidden}
dialog.hm-photo-dialog::backdrop{background:rgba(0,0,0,.82)}
dialog.hm-photo-dialog[open]{display:flex;flex-direction:column}
.hm-photo-dialog .hm-photo-toolbar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#f2f5f8;flex-shrink:0;flex-wrap:wrap}
.hm-photo-dialog #hm-photo-title{flex:1 1 160px;font-weight:600}
.hm-photo-dialog .hm-photo-toolbar button,.hm-photo-dialog .hm-photo-toolbar a{font:inherit;color:#173b63!important;background:white;border:1px solid #b8c6d4;border-radius:5px;padding:8px 12px;cursor:pointer;text-decoration:none}
.hm-photo-dialog .hm-photo-toolbar .hm-photo-close{font-size:28px;line-height:1;padding:5px 12px}
.hm-photo-dialog .hm-photo-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;background:#fff;padding:12px}
.hm-photo-dialog .hm-photo-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}
.hm-photo-dialog.hm-photo-zoomed .hm-photo-stage{display:block}
.hm-photo-dialog.hm-photo-zoomed .hm-photo-stage img{max-width:none;max-height:none;width:auto;height:auto;cursor:zoom-out;margin:auto}
.hm-photo-dialog button:focus-visible,.hm-photo-dialog a:focus-visible,.hm-photo-dialog .hm-photo-stage:focus-visible{outline:3px solid #bd7420;outline-offset:2px}

/* 1.0.7: Grössere Schrift in der Modell-Tabelle. */
section.hausin-modelle .hm-scroll table th,
section.hausin-modelle .hm-scroll table td{font-size:15px;line-height:1.5}

/* 1.0.9: Spaltenüberschriften für serverseitige Sortierung. */
.hausin-modelle .hm-scroll th a.hm-sort{display:flex;align-items:center;gap:5px;color:#173b63!important;font:inherit;font-weight:700;text-decoration:none;padding:4px 0}
.hausin-modelle .hm-scroll th a.hm-sort:hover{text-decoration:underline}
.hausin-modelle .hm-scroll th a.hm-sort span{font-size:.8em;white-space:nowrap}
.hausin-modelle .hm-scroll th[aria-sort]{background:#e3edf6}
.hausin-modelle .hm-scroll th a.hm-sort:focus-visible{outline:3px solid #bd7420;outline-offset:2px}

/* 1.0.12: Bildlink in der bestehenden Modelldetailansicht. */
#trainModal #trainImage a[href],#trainModal #trainImage a[href] img{cursor:zoom-in}

/* 1.0.14: Bildansicht umschliesst das Foto statt eines grossen Leerraums. */
dialog.hm-photo-dialog{width:fit-content;height:auto;max-width:96vw;max-height:94vh}
.hm-photo-dialog .hm-photo-stage{flex:0 1 auto;padding:0;box-sizing:border-box}
.hm-photo-dialog .hm-photo-toolbar{box-sizing:border-box;gap:8px;padding:8px;min-width:0}
.hm-photo-dialog #hm-photo-title{flex:1 1 100px;min-width:0;overflow-wrap:anywhere}
dialog.hm-photo-dialog.hm-photo-zoomed{width:96vw;height:94vh}
.hm-photo-dialog.hm-photo-zoomed .hm-photo-stage{flex:1;min-height:0;overflow:auto}
