/* Grundlegende Stile */

/* Haupt-Container für die Kacheln */
.ap-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Dies ist die neue Zeile */
    gap: 2.5rem;
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
}

/* Styling der einzelnen Kachel */
.ap-style-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-style-card:hover .ap-style-title, .ap-style-card:hover .ap-style-description, .ap-style-card:hover .ap-style-list {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.ap-style-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
a.ap-style-button {
    text-decoration: unset;
}
/* Wrapper für den Textinhalt */
.ap-card-content-wrapper {
    padding: 2.5rem;
    position: relative;
    z-index: 3;
}

/* Übergang für den Farbwechsel & Text-Schatten */
.ap-style-title,
.ap-style-description,
.ap-style-list,
.ap-style-list li::before {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.ap-style-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1d1d1f;
}

.ap-style-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 75%;
}
 
.ap-style-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    color: #555;
}

.ap-style-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.ap-style-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d5b46d;
    font-weight: 600;
}

/* Button im Ruhezustand */
.ap-style-button {
    background-color: #ca9949;
    color: #fff !important;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container, der das Bild clippt und positioniert */
.ap-image-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 30px;
}

/* Das Bild selbst */
.ap-card-image-corner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    
    /* Startposition: Groß skaliert und in die Ecke verschoben */
    transform: scale(1.5) translate(30%, 25%) rotate(15deg);
    
    /* NEU: Bild ist standardmäßig halb-transparent */
    opacity: 0.25; 
    
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
 
/* Das dunkle Overlay, standardmäßig unsichtbar */
.ap-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 90%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HOVER-EFFEKTE --- */
 
.ap-style-card:hover .ap-card-image-corner {
    transform: scale(1) translate(0, 0) rotate(0deg);
    opacity: 1; /* NEU: Bild wird beim Hovern voll sichtbar */
}
 
.ap-style-card:hover .ap-card-overlay {
    opacity: 1;
}
 
.ap-style-card:hover .ap-style-title,
.ap-style-card:hover .ap-style-description,
.ap-style-card:hover .ap-style-list {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
 
.ap-style-card:hover .ap-style-list li::before {
    color: #ffffff;
}
 
.ap-style-card:hover .ap-style-button {
    background-color: rgba(213, 180, 109, 0.2);
    border-color: rgba(213, 180, 109, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .ap-style-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    .ap-style-grid {
        grid-template-columns: 1fr;
        max-width: 95%;
    }
    .ap-card-content-wrapper {
        padding: 2rem;
    }
    .ap-style-title {
        font-size: 1.8rem;
    }
}