/* Body Styles */
body {
    padding-top: 76px; /* Höhe der Navbar */
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px; /* Platz für Footer */
    background: transparent;
}

/* Wrapper für den Hintergrund */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    animation: slowZoom 60s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

nav {
    border-bottom:1px solid #0d6efd;
}

/* Scan-Feedback Styles */
.scan-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.scan-feedback.usa {
    background-color: rgba(255, 68, 68, 0.9); /* Leicht transparent */
    color: white;
    border: 2px solid #ff4444;
}

.scan-feedback.non-usa {
    background-color: rgba(0, 200, 81, 0.9); /* Leicht transparent */
    color: white;
    border: 2px solid #00C851;
}

.scan-feedback.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    color: #ffffff;
    padding: 1rem 0;
    z-index: 1000;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

.footer a:hover {
    color: #cccccc;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Scanner Styles */
#reader {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#reader video {
    width: 100%;
    height: auto;
}

#reader select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
}

#reader__scan_region {
    background: #000;
}

#reader__scan_region img {
    display: none;
}

#reader__dashboard {
    padding: 10px;
    background: #333;
}

#reader__dashboard button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

#reader__dashboard button:hover {
    background: #0056b3;
}

#reader__dashboard select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    margin: 5px;
}

/* Rest der bestehenden Styles bleiben unverändert */
.alternatives-list {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid rgba(0,0,0,0.1);
}

.alternative-item {
    padding: 2px 0;
}

.history-item {
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(5px);
}

.btn-secondary {
    margin-right: 5px;
}

.export-controls {
    margin-top: 10px;
    margin-bottom: 20px;
}

#logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    max-height: 550px; /* Höhe für ca. 50 Logos (5 Reihen à 10 Logos) */
    overflow-y: auto; /* Fügt vertikale Scrollbar hinzu */
    /* background: rgba(255, 255, 255, 0.5); */ /* Leicht transparenter Hintergrund */
    border-radius: 8px;
}

.logo-item {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Scrollbar Styling für bessere Optik */
#logo-container::-webkit-scrollbar {
    width: 8px;
}

#logo-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#logo-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#logo-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Card und History Styles */
.card {
    width: 100%;
}

.card-body {
    width: 100%;
}

#history-list {
    width: 100%;
}

/* Masonry Grid Styles */
.grid-item {
    padding: 10px;
}

.card {
    background-color: transparent !important;
    /* margin-bottom: 15px; */
}

.card-body {
    background-color: rgba(33, 37, 41, 0.8); /* Dunkler, halbtransparenter Hintergrund */
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Verbesserte Lesbarkeit für Text */
.card-title {
    color: #fff;
    margin-bottom: 10px;
}

.card-text {
    color: #e0e0e0;
}

.text-muted {
    color: #b0b0b0 !important;
}

/* Alternatives Section Styling */
.alternatives-section {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.list-group-item {
    background-color: rgba(33, 37, 41, 0.5) !important;
    border: none;
    margin-bottom: 5px;
    border-radius: 4px !important;
    color: #e0e0e0;
}

/* Info Button Styling */
.product-info-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    transition: all 0.2s;
}

.product-info-btn:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

/* Responsive Grid Anpassungen */
@media (min-width: 768px) {
    .grid-item {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .grid-item {
        width: 33.333%;
    }
}

/* Responsive Breakpoints */
@media (max-width: 575px) {
    .history-item-wrapper {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .history-item-wrapper {
        width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .history-item-wrapper {
        width: 33.333%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .history-item-wrapper {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .history-item-wrapper {
        width: 20%;
    }
}

/* Footer Styles */
.footer {
    position: fixed;  /* Von absolute zu fixed ändern */
    bottom: 0;
    left: 0;  /* Hinzufügen um sicherzustellen, dass der Footer richtig positioniert ist */
    width: 100%;
    background-color: #343a40;
    color: #ffffff;
    padding: 1rem 0;
    z-index: 1000;  /* Sicherstellen, dass der Footer über anderen Elementen liegt */
    border-top: 1px solid #0d6efd;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

.footer a:hover {
    color: #cccccc;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0px;
}

.footer-links a {
    margin: 5px;
    word-break: break-word;
}

.email-link {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    max-width: 100%;
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
es    }
    
    .footer-links a {
        margin: 3px 0;
    }
}


.navigation-buttons {
    display: flex;
    gap: 0.5rem;
}

.modal:focus {
    outline: none;
}

/* Optional: Hover-Effekte für die Navigations-Buttons */
.navigation-buttons .btn:not(:disabled):hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.modal-footer .navigation-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-outline-light:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}




.product-info-btn {
    padding: 0;
    color: #6c757d;
    background: transparent !important;
    border: none;
    text-decoration: none;
}

.product-info-btn:hover {
    color: #0056b3;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.card-text small {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.card-text small i {
    width: 20px;
    color: #6c757d;
    margin-right: 8px;
}

.card-title {
    margin-bottom: 0;
    margin-right: 10px;
}



.alternatives-section {
    font-size: 0.9em;
    border-top: 1px solid rgba(0,0,0,.125);
    margin-top: 10px;
    padding-top: 10px;
}

.alternative-info-btn {
    color: #6c757d;
    opacity: 0.7;
}
w
.alternative-info-btn:hover {
    color: #0056b3;
    opacity: 1;
}

.list-group-item {
    background-color: transparent;
}


.masonry-grid {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.history-item {
    width: calc(33.333% - 20px); /* Für 3 Spalten */
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .history-item {
        width: calc(50% - 20px); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 576px) {
    .history-item {
        width: calc(100% - 20px); /* 1 Spalte auf Mobilgeräten */
    }
}
