/* Ilaris-Bogen */
.il-head { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.il-head-top { display: flex; gap: .8rem; align-items: flex-start; }
.il-bild { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.il-name { font-size: 1.35rem; font-family: var(--serif); border-color: transparent; background: transparent; padding: .2rem .3rem; margin-left: -.3rem; }
.il-name:not(:disabled):hover, .il-name:focus { border-color: var(--line); background: var(--bg2); }
.il-name:disabled { color: var(--text); opacity: 1; }
.il-badges { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.il-ep { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.il-ep > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .3rem .7rem; min-width: 100px; display: flex; flex-direction: column; }
.il-ep span { font-size: .75rem; color: var(--muted); }
.il-ep b { font-size: 1.25rem; }
.il-ep input { width: 110px; min-height: 32px; padding: .15rem .4rem; font-weight: 600; }
.il-ep > .muted { align-self: center; }
.il-neg, .il-neg b { color: var(--danger); }
.il-actions button, .il-actions .btn { padding: .4rem .75rem; min-height: 36px; font-size: .9rem; }
.il-hint { white-space: pre-wrap; font-size: .85rem; border-left: 3px solid var(--accent); padding: .3rem .7rem; background: var(--bg2); border-radius: 0 8px 8px 0; }
.il-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.il-tabs::-webkit-scrollbar { display: none; }
.il-tabs .chip { white-space: nowrap; }

.il-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1rem; align-items: start; }
.il-grid .il-wide { grid-column: 1 / -1; }
.il-grid h3 { margin-bottom: .4rem; }
.il-grid .kv b { font-size: 1rem; }
.il-cols { column-width: 260px; column-gap: 1.5rem; }
.il-cols > div { break-inside: avoid; }
.il-sum-row { display: flex; flex-wrap: wrap; gap: .3rem; padding: .18rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); break-inside: avoid; }
.il-sum-tal { flex-basis: 100%; margin-top: -.1rem; }

.il-table td, .il-table th { padding: .35rem .4rem; }
.il-step { display: inline-flex; align-items: center; gap: .3rem; }
.il-step b { min-width: 1.7em; text-align: center; font-size: 1.05rem; }
.il-step .icon-btn { min-height: 30px; min-width: 30px; padding: 0 .45rem; font-size: 1rem; line-height: 1; }
.il-num { width: 74px; min-height: 32px; padding: .2rem .4rem; }
.il-small { width: auto; flex: 1 1 140px; min-height: 32px; padding: .2rem .45rem; font-size: .9rem; }
.il-mini { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.il-mini input { width: 64px; min-height: 32px; padding: .2rem .4rem; }
.il-mini select { width: auto; min-height: 32px; padding: .15rem .3rem; font-size: .85rem; }

.il-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.il-vrow a { color: var(--text); text-decoration: none; }
.il-vrow a:hover { color: var(--accent); }
.il-list { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: .2rem .5rem .5rem; }
.il-item { display: flex; width: 100%; justify-content: space-between; gap: .6rem; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: .4rem .5rem; min-height: 0; font-size: .92rem; }
.il-item:hover { background: var(--card2); }
.il-item.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.il-item.dim { opacity: .55; }
.il-detail { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.il-text { max-height: 40vh; overflow-y: auto; }

.il-ferts { margin-bottom: 1rem; }
.il-fert { padding: .45rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.il-fert:last-child { border-bottom: 0; }
.il-fert-main { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4rem 3.4rem; gap: .6rem; align-items: center; }
.il-fert-name { display: flex; flex-direction: column; min-width: 0; }
.il-pw { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.il-pw span { font-size: .7rem; color: var(--muted); }
.il-fert-tal { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .3rem; }
.il-tal { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; padding: .1rem .2rem .1rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); }
.il-tal button { border: 0; background: transparent; min-height: 0; padding: 0 .3rem; font-size: .75rem; color: var(--muted); }
.il-add-tal { min-height: 26px; padding: .1rem .5rem; font-size: .8rem; }

.il-freie input[list] { flex: 1 1 220px; width: auto; }
.il-freie-ep { min-width: 4.5em; }
.il-box { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.il-werte { gap: .5rem .9rem; }
.il-final { font-size: .9rem; font-weight: 600; color: var(--accent); }
.il-log { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.il-log:last-child { border-bottom: 0; }
.il-log ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.il-modal { max-width: 680px; }
.il-check { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.il-check input { margin-top: .2rem; flex-shrink: 0; }

@media (max-width: 700px) {
  .il-grid { grid-template-columns: 1fr; }
  .il-fert-main { grid-template-columns: minmax(0, 1fr) auto 2.8rem 2.8rem; gap: .35rem; }
  .il-ep > div { min-width: 0; flex: 1; }
  .il-bild { width: 48px; height: 63px; }
}
