/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* General Body Styling */
body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Flexbox Utility Classes */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.mt-auto {
    margin-top: auto !important;
}

/* Card Styling */
.card {
    background-color: #ffffff;
    color: #343a40;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0; /* Abstand zwischen den Karten */
    justify-content: space-between;
    border-radius: 0.25rem; /* Einheitliche Abrundungen */
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-container .card {
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-size: 1.5em;
    padding: 1em;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    text-align: center;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.card-body {
    flex-grow: 1;
    overflow-y: auto;
}

.card-footer {
    text-align: center;
}

/* Text Styling */
.version-text {
    display: flex;
    align-items: center;
    font-size: 1em;
    font-weight: bold;
}

.version-text i {
    margin-left: 5px;
}

.read-more {
    color: #ff7e5f !important;
    cursor: pointer !important;
    font-size: 0.8em !important;
    display: inline-block !important;
    margin-left: 5px !important;
}

.read-more:hover {
    text-decoration: underline !important;
    color: #feb47b !important;
}

/* Footer Styling */
.footer {
    background-color: #333;
    color: #e0e0e0;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

.footer a {
    color: #ff7e5f;
    transition: color 0.3s;
}

.footer a:hover {
    color: #feb47b;
}

/* Button Styling */
.btn-primary {
    background-color: #ff7e5f;
    border-color: #ff7e5f;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 0.25rem; /* Einheitliche Abrundungen */
}

.btn-primary:hover {
    background-color: #feb47b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal Styling */
.modal-content {
    background-color: #333;
    color: #e0e0e0;
    border-radius: 0.25rem; /* Einheitliche Abrundungen */
}

.modal-content a {
    color: #ff7e5f;
}

.modal-content a:hover {
    color: #feb47b;
}

.modal-content .btn-primary {
    background-color: #ff7e5f;
    border-color: #ff7e5f;
    color: #fff; /* Textfarbe auf Weiß setzen */
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 0.25rem; /* Einheitliche Abrundungen */
}

.modal-content .btn-primary:hover {
    background-color: #feb47b;
    color: #343a40; /* Textfarbe auf dunkleres Grau setzen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
    }

    .platform-version {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-version .btn {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .card-body h5 {
        font-size: 1.25em;
    }

    .card-body .card-text {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .card-body h5 {
        font-size: 1em;
    }

    .card-body .card-text {
        font-size: 0.9em;
    }

    .card-header {
        font-size: 1.25em;
    }

    .platform-version {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-version .btn {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Header Image Styling */
.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.header-image.visible {
    opacity: 1;
    animation: blurEffect 15s infinite;
}

/* Header Image Animation */
@keyframes blurEffect {
    0% {
        filter: blur(5px);
    }
    50% {
        filter: blur(0px);
    }
    100% {
        filter: blur(5px);
    }
}

/* Header Container Styling */
.header-container {
    position: relative;
    width: 100%;
    height: 140px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.header-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Header Text Styling */
header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header p {
    font-size: 1.25rem;
    margin: 0.5rem 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Impressum and Datenschutz Styling */
.impressum, .datenschutz {
    background-color: #333;
    color: #e0e0e0;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.impressum a, .datenschutz a {
    color: #ff7e5f;
    text-decoration: underline;
}

.impressum a:hover, .datenschutz a:hover {
    color: #feb47b;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    color: #ff7e5f;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.page-link:hover {
    color: #fff;
    background-color: #ff7e5f;
    border-color: #ff7e5f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    color: #fff;
    background-color: #ff7e5f;
    border-color: #ff7e5f;
}

.page-item.disabled .page-link {
    color: #666;
    background-color: #444;
    border-color: #444;
}

/* Positioning the close button */
.modal-content .close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #fff; /* Farbe des Schließen-Buttons */
    opacity: 1; /* Volle Sichtbarkeit */
    font-size: 2rem; /* Größe des Schließen-Buttons */
    z-index: 1051; /* Sicherstellen, dass die Schließen-Schaltfläche vor anderen Elementen liegt */
}

.modal-content .close:hover {
    color: #ff7e5f; /* Hover-Farbe des Schließen-Buttons */
}