/* Server: /opt/inventar-app/static/style.css */
* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #1f2430;
}

header {
    background: #24304a;
    padding: 1rem 1.5rem;
}

header .logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

header .version {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9aa5c0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .header-link {
    color: #cdd3e6;
    text-decoration: none;
    font-size: 0.9rem;
}
header .header-link:hover { color: #fff; }

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-bottom: 6rem;
}

h1 { margin-top: 0.5rem; }

.breadcrumb {
    font-size: 0.85rem;
    color: #667;
    margin-bottom: 0.5rem;
}
.breadcrumb a { color: #3b5bdb; text-decoration: none; }

.karten-liste {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.karte {
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.karte a {
    color: #1f2430;
    text-decoration: none;
    font-weight: 500;
}

.leer {
    color: #8a90a2;
    font-style: italic;
    border: none;
    background: none;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

input[type="text"], input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1;
    min-width: 10rem;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #3b5bdb;
    color: #fff;
    cursor: pointer;
}
button:hover { background: #2f4bc0; }

button.gefahr { background: #d64545; }
button.gefahr:hover { background: #b83636; }
button.klein { padding: 0.3rem 0.6rem; }

.flashes {
    list-style: none;
    padding: 0.5rem 1rem;
    margin: 0 0 1rem 0;
    background: #eaf3ea;
    border: 1px solid #b7d9b7;
    border-radius: 6px;
}

.hinweis {
    color: #8a90a2;
    font-size: 0.85rem;
}
/* Server: /opt/inventar-app/static/style.css (Ergänzung, siehe unten anhängen) */
.item-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 480px;
    margin-bottom: 1rem;
}
.item-form label {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
}
.item-form input, .item-form select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.item-form button[type="submit"] {
    margin-top: 1rem;
    align-self: flex-start;
}
.vorschau-bild {
    max-width: 160px;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    margin-bottom: 0.25rem;
}
.barcode-scan-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
#scan-start-btn {
    align-self: flex-start;
}
.item-karte {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.item-karte img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
}
.item-karte .item-info { flex: 1; }
.item-karte .item-wert { color: #667; font-size: 0.85rem; }
table.gesamtliste {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}
table.gesamtliste th, table.gesamtliste td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
table.gesamtliste th { color: #667; font-weight: 600; }

.bilder-galerie {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.bild-kachel {
    width: 110px;
}
.bild-kachel img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    display: block;
}
.bild-aktionen {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.bild-aktionen form { margin: 0; }
.bild-aktionen button {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.datei-plus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 6px;
    background: #3b5bdb;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.item-form label.datei-plus-btn {
    color: #fff;
}

.label-mit-plus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.label-mit-plus .datei-plus-btn {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.1rem;
}
