html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.hero-section { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}

.hero-float {
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.item-card { 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.item-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); 
}

.item-card img {
    transition: transform 0.3s ease;
}

.item-card:hover img {
    transform: scale(1.05);
}

.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.search-box { 
    max-width: 600px; 
    margin: 0 auto; 
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.qr-code-full {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* EXIF-Orientierung für ALLE Bilder */
img {
    image-orientation: from-image !important;
}

/* Mobile: Kleinere Buttons unter 390px */
@media (max-width: 390px) {
    .btn-md-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Mehr Abstand zwischen Text und Bild auf Mobile */
@media (max-width: 991px) {
    .hero-section .col-lg-6.text-center {
        margin-top: 3rem !important;
    }
}