/* === Allgemein === */
.inventar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventar-kategorie-title {
    font-size: 24px;
    font-weight: bold;
}

/* === Umschalt-Button === */
.inventar-umschalter a {
    display: inline-block;
    padding: 8px 12px;
    background: #BF4230;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
}

.inventar-umschalter a:hover {
    background: #a83828;
    color: #fff;
}

/* === Listenansicht === */
.inventar-liste {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inventar-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.inventar-row:hover {
    background: #f9f9f9;
}

.inventar-foto img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    margin-right: 12px;
    border: 1px solid #ccc;
    background: #e0e0e0;
}

.inventar-info {
    flex: 1;
    font-size: 14px;
    text-align: left;
}

.inventar-info small {
    display: block;
    color: #777;
    font-size: 11px;
    margin-top: 4px;
}

.inventar-besitzer, .inventar-details {
    width: 100px;
    font-size: 12px;
    text-align: center;
    align-self: center;
}

/* === Kachelansicht === */
.inventar-kacheln {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.inventar-kachel {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    min-height: 280px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background: #fafafa;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow 0.2s;
}

.inventar-kachel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 800px) {
    .inventar-kachel {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 500px) {
    .inventar-kachel {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.kachel-bild {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.kachel-bild img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.kachel-title {
    font-weight: bold;
    margin: 8px 0 4px 0;
}

.kachel-besitzer {
    font-size: 11px;
    color: #777;
    margin-bottom: 5px;
}

/* === Links allgemein === */
a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #BF4230;
}


.inventar-detail-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.inventar-detail-main {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.detail-links {
    flex: 2;
}

.detail-rechts {
    flex: 1;
    text-align: center;
}

.detail-rechts img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    background: #f9f9f9;
}

.kein-bild {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
}

.qr-code {
    margin-top: 15px;
}

.qr-code img {
    width: 100px;
    height: auto;
}

.inventar-detail-footer {
    margin-top: 30px;
}

.inventar-detail-footer ul {
    list-style: none;
    padding: 0;
}

.inventar-detail-footer li {
    margin-bottom: 5px;
}

.meta-daten {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

.inventar-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventar-detail-header h2 {
    margin: 0;
    font-size: 24px;
}

.inventar-zurueck-btn {
    padding: 8px 12px;
    background: #BF4230;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.inventar-zurueck-btn:hover {
    background: #a83828;
}
