/* ==========================================================================
   APPS SECTION & KARTEN (apps.css) - HORIZONTALES LAYOUT MIT GLAS & AURA
   ========================================================================== */

/* 🔥 1. DER HAUPT-CONTAINER (Jetzt mit Dot-Grid und neuen zentrierten Lichtkugeln) */
#apps {
    position: relative;
    background-color: #fdfdfd;

    /* Das ultra-sanfte Punkt-Raster (Dot-Grid) wie im Contact-Bereich */
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;

    overflow: hidden; /* Wichtig, damit die Lichtkugeln nicht rauskrabbeln */

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    row-gap: 40px;
    column-gap: 30px;

    /* Etwas Padding, damit die Sektion atmen kann */
    padding: 120px 40px;
}

/* ==========================================================================
   🔥 DIE ANIMIERTEN HINTERGRUND-KUGELN (Auren) MITTIG ZENTRIERT & KLEINER
   ========================================================================== */

#apps::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Bleibt GANZ HINTEN */
    width: 400px; /* 🔥 Größe auf 400px reduziert */
    height: 400px; /* 🔥 Größe auf 400px reduziert */
    background-color: #6cbdff;
    filter: blur(120px);

    /* 🔥 Mittig auf der linken Seite positioniert, vertikal zentriert */
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%); /* 🔥 Exakt zentriert */
    animation: apps-schweben-blau 18s ease-in-out infinite;
}

#apps::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Bleibt GANZ HINTEN */
    width: 400px; /* 🔥 Größe auf 400px reduziert */
    height: 400px; /* 🔥 Größe auf 400px reduziert */
    background-color: #f3a4ba; /* Baxolino Pink */
    filter: blur(120px);

    /* 🔥 Mittig auf der rechten Seite positioniert, vertikal zentriert */
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%); /* 🔥 Exakt zentriert */
    animation: apps-schweben-rosa 20s ease-in-out infinite;
}


.section-title::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; /* Zieht den Kreis in den Hintergrund */
    width: 450px;
    height: 450px;

    /* 🔥 DIE FARBE FÜR DEN MITTLEREN KREIS */
    background-color: #BBF7ED; /* 👈 HIER ÄNDERN (Aktuell Mintgrün/Weißlich) */

    filter: blur(120px);
    /* Schiebt den Kreis vom Titel aus nach unten exakt hinter die Karten */
    top: 180px;
    left: 50%;
    transform: translate(-50%, 0);
    animation: apps-schweben-mitte 22s ease-in-out infinite;
}

/* Angepasste Animationen, damit sie sanft um ihre neue Mitte schweben */
@keyframes apps-schweben-blau {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    33% { transform: translate(-55%, -45%) scale(1.05); opacity: 0.6; }
    66% { transform: translate(-45%, -55%) scale(1.05); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

@keyframes apps-schweben-rosa {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    33% { transform: translate(-45%, -55%) scale(1.05); opacity: 0.7; }
    66% { transform: translate(-55%, -45%) scale(1.05); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

@keyframes apps-schweben-mitte {
    0% { transform: translate(-50%, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, 30px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-50%, 0) scale(1); opacity: 0.3; }
}

/* 🔥 WICHTIG: Alle Inhalte müssen eine Ebene über den Lichtkugeln liegen (z-index: 10) */
.section-title,
.featured-app-card,
.app-grid {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   2. TITEL & KARTEN
   ========================================================================== */

.section-title {
    width: 100%;
    text-align: center;
    margin-top: 50px;      /* Abstand nach oben */
    margin-bottom: 10px;   /* Abstand nach unten */
    margin-left: auto;     /* Zentrierung */
    margin-right: auto;    /* Zentrierung */
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #333333;
}

/* 🔥 AKKU MANAGER KARTE (Nimmt exakt 40% ein) - GLAS-KARTE */
.featured-app-card {
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: calc(40% - 15px);

    max-width: 765px;

    flex: 1 1 450px;

    margin-bottom: 0;
}

.featured-app-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}


.app-info-side {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badge-featured {
    align-self: flex-start;
    background: linear-gradient(135deg, #ABD5FA, #E28FA6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.app-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.app-icon-real {
    width: 86px;
    height: 86px;
    background-color: #ffffff;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.app-title-wrapper h3 {
    margin: 0 0 5px 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #333333;
    letter-spacing: -0.5px;
}

.app-developer {
    margin: 0;
    color: #888888;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.app-description {
    color: #555555;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.app-stats-row {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item strong {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #333333;
    line-height: 1.2;
}

.stat-item span {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: #888888;
    margin-top: 5px;
}

.app-action-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-solid-dark, .btn-outline-video {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

    /* 🔥 DER FIX: Zwingt den Text IMMER in die absolute Mitte, egal wie breit der Button wird */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-solid-dark {
    background: #212121;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.btn-solid-dark:hover { background: #111111; transform: translateY(-3px); }

.btn-outline-video {
    background: transparent;
    color: #212121;
    border: 2px solid #212121;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-video:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

.app-grid {
    box-sizing: border-box; /* 🔥 HINZUFÜGEN */
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: calc(60% - 15px);
    flex: 1.5 1 600px;
    flex-wrap: wrap;
    max-width: 850px;
}

/* 🔥 4. B SCANNER & IDEEN KARTE - GLAS-KARTEN */
.small-app-card {
    background: rgba(255, 255, 255, 0.40) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box; /* 🔥 HINZUFÜGEN */
    width: calc(100%);
    min-width: 0;
    max-width: none;

    flex: 1 1 280px;


}

.small-app-card:hover {
    transform: translateY(-10px);
    /* 🔥 HIER IST DER FIX: Das !important zwingt den Browser jetzt, die Farbe beim Hovern zu ändern */
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.small-app-header {
    display: flex;
    flex-direction: row; /* 🔥 Zwingt Icon und Text NEBENEINANDER */
    align-items: center; /* 🔥 Zentriert den Text vertikal zum Icon */
    gap: 15px;
    margin-bottom: 20px;
}

.small-app-icon, .feedback-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background-color: #ffffff;
}

.feedback-icon-box {
    background: linear-gradient(135deg, #ABD5FA, #E28FA6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-app-title-group h4, .feedback-card h4 {
    margin: 0 0 5px 0;
    /* 🔥 DER FIX: Auf dem Handy darf der Text jetzt deutlich kleiner werden (1.1rem statt 1.4rem) */
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    color: #333;
    line-height: 1.2;
}

.small-app-dev {
    margin: 0;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: #888;
}

.small-app-title-group {
    flex: 1; /* Nimmt sich den gesamten verfügbaren Rest-Platz in der Breite */
    min-width: 0; /* Ein Flexbox-Trick: Verhindert, dass zu lange Wörter das Layout sprengen */

    /* Optional: Falls du möchtest, dass der Text sauber am Icon anliegt */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-app-description {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.small-app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.feedback-card .small-app-footer {
    border-top: none;
    padding-top: 0;
}

.small-app-stats strong {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #333;
}

.btn-small, .btn-outline-small {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-small {
    background: #333333;
    color: #ffffff;
}
.btn-small:hover { background: #111111; transform: translateY(-2px); }

.btn-outline-small {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    color: #333333;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) padding-box, linear-gradient(135deg, #ABD5FA, #E28FA6) border-box;
}
.btn-outline-small:hover {
    background: linear-gradient(135deg, #ABD5FA, #E28FA6) padding-box, linear-gradient(135deg, #ABD5FA, #E28FA6) border-box;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 143, 166, 0.3);
}





@media (max-width: 768px) {
    /* ... dein restlicher Mobile-Code (#apps etc.) bleibt hier ... */

    /* 🔥 Die Action-Row zwingen, in einer Zeile zu bleiben */
    .app-action-row {
        flex-direction: row; /* Wieder nebeneinander statt untereinander! */
        gap: 10px; /* Ein schmaler, eleganter Abstand zwischen den Buttons */
        flex-wrap: nowrap; /* Verhindert, dass sie doch umbrechen */
    }

    /* 🔥 Beide Buttons teilen sich den Platz 50/50 */
    .btn-solid-dark,
    .btn-outline-video {
        flex: 1; /* Das ist der Magic-Trick für exakt 50% Breite für jeden! */
        width: 100%;
        min-width: 0; /* Zwingend nötig, damit sie schrumpfen dürfen */
        margin: 0; /* Alte Ränder entfernen */

        /* Damit der Text auf kleinen Handys noch in den Button passt: */
        padding: 12px 5px;
        font-size: clamp(0.75rem, 3vw, 0.9rem);

        justify-content: center;
        display: flex;
        align-items: center; /* Zentriert Icon und Text vertikal */
    }
}

.stat-item strong span.count-up {
    font-size: inherit;
    color: inherit;
    margin: 0;
    line-height: inherit;
    display: inline;
}