@charset "UTF-8";

/* =========================================================================
   App-Katalog (/apps) — nur auf dieser Seite geladen.
   Tokens kommen aus tokens.css.
   ========================================================================= */

.apps-page {
    padding: 2.5rem 0 4rem;
    background: var(--bg-base);
}
.apps-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
}
.apps-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
    border-radius: 4px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: box-shadow 150ms ease, border-color 150ms ease;
}
.apps-card:hover {
    border-color: rgba(99, 179, 237, 0.5);
}
.apps-card__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.apps-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(26, 74, 122, 0.12), rgba(49, 130, 206, 0.18));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}
.apps-card__icon-fallback {
    display: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}
.apps-card__body {
    min-width: 0;
}
.apps-card .apps-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--accent);
}
.apps-card__version {
    margin: 0.2rem 0 0;
    font-size: 14.5px;
    color: var(--text-muted);
}
.apps-card .btn-primary {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}
.apps-page__empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 14.5px;
}
.apps-card__shots-label {
    margin: 0 0 0.5rem;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
}
.apps-card__shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}
.apps-shot-thumb {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bg-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 9 / 18;
}
.apps-shot-thumb:hover,
.apps-shot-thumb:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 74, 122, 0.18);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.apps-shot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Lightbox */
.apps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
}
.apps-lightbox.is-open {
    display: flex;
}
.apps-lightbox__inner {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.apps-lightbox__img {
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.apps-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.apps-lightbox__close:hover,
.apps-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}
.apps-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.apps-lightbox__nav:hover,
.apps-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}
.apps-lightbox__nav--prev {
    left: 0.25rem;
}
.apps-lightbox__nav--next {
    right: 0.25rem;
}
.apps-lightbox__nav[hidden] {
    display: none !important;
}
.apps-lightbox__caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .apps-lightbox {
        padding: 3rem 0.75rem 2rem;
    }
    .apps-lightbox__nav--prev {
        left: 0.1rem;
    }
    .apps-lightbox__nav--next {
        right: 0.1rem;
    }
}
