/* ===================================================================
   AERONA SPACE – ALLE APPS
   Übersicht aller Aerona-Programme. Wird direkt in apps.html
   eingebunden.
   =================================================================== */

.ap-main {
    max-width: 1050px;
    margin: 0 auto;
    padding: 7rem 1.5rem 6rem;
}

/* ---------- Kopfbereich ---------- */

.ap-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.ap-hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.2rem;
}

.ap-hero h1 .ap-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ap-hero p {
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ---------- Gruppen ---------- */

.ap-group {
    margin-bottom: 3.2rem;
}

.ap-group__head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.ap-group__head h2 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.ap-group__head span {
    color: #64748b;
    font-size: 0.88rem;
}

.ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 0.9rem;
}

/* ---------- Karte ---------- */

.ap-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 15px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ap-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.32);
    transform: translateY(-3px);
}

.ap-card__top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.ap-card__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.ap-card__name {
    color: #f1f5f9;
    font-size: 1.02rem;
    font-weight: 700;
}

.ap-card__desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.ap-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Statuskennzeichen */
.ap-tag {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
}

.ap-tag--live {
    color: #86efac;
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ap-tag--bau {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ap-tag--forschung {
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.13);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ap-card__link {
    color: #60a5fa;
    font-size: 0.83rem;
    font-weight: 600;
    white-space: nowrap;
}

.ap-card:hover .ap-card__link {
    color: #93c5fd;
}

/* ---------- Abschluss ---------- */

.ap-outro {
    margin-top: 3.5rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.8;
}

.ap-outro a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.ap-outro a:hover {
    text-decoration: underline;
}

/* ---------- Mobil ---------- */

@media (max-width: 768px) {
    .ap-main {
        padding: 5.5rem 1.1rem 4rem;
    }

    .ap-grid {
        grid-template-columns: 1fr;
    }
}
