/* ---------------------- */
/* Grundlayout & Schrift */
/* ---------------------- */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #12121a);
    color: #ffffff;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin: 5px 0;
}

h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

/* ---------------------- */
/* App Icon */
.app-icon-container {
    text-align: center;
    margin-bottom: 15px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ---------------------- */
/* Buttons */
.button {
    display: inline-block;
    padding: 12px 20px;
    background: #00c853;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 15px;
    text-align: center;
}

.button:hover {
    background: #00e676;
}

/* ---------------------- */
/* Versions-Text */
.version {
    color: #bbbbbb;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* ---------------------- */
/* Links */
a {
    color: #00e5ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------------------- */
/* Listen (Changelog) */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/* ---------------------- */
/* App Übersicht (Index) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.app-card {
    background: #1f1f2e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.app-card p.description {
    font-size: 14px;
    color: #dddddd;
    margin-bottom: 15px;
}

/* ---------------------- */
/* Screenshots Galerie */
.screenshot-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-horizontal {
    height: 400px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    scroll-snap-align: start;
}

/* ---------------------- */
/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

/* Close Button */
.lightbox-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* Pfeile */
.lightbox-overlay .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.lightbox-overlay .arrow.left {
    left: 20px;
}

.lightbox-overlay .arrow.right {
    right: 20px;
}

.lightbox-overlay .arrow:hover {
    background: rgba(0,0,0,0.6);
}

/* Touch-Swipe Unterstützung */
.lightbox-overlay img {
    touch-action: pan-y;
}

/* ---------------------- */
/* Responsive / Mobile */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .screenshot-horizontal {
        height: 250px;
    }

    .lightbox-overlay .arrow {
        font-size: 36px;
        padding: 8px;
    }

    .lightbox-overlay .close-btn {
        font-size: 28px;
        top: 15px;
        right: 20px;
    }

    .app-card img {
        width: 80px;
        height: 80px;
    }

    .app-card {
        padding: 15px;
    }
}