/* ==========================================================================
   LEISTUNGEN SEKTION (3 SPALTEN)
   ========================================================================== */

/* Das Grid-System für die 3 Spalten */
.result-grid {
    display: grid;
    /* Erstellt automatisch 3 Spalten, bricht auf dem Handy (unter 300px) automatisch untereinander um */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Sorgt dafür, dass alle Boxen gleich hoch sind */
}

/* Gemeinsames Design für jede einzelne Spalte */
.result-column {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Schiebt das Fazit immer exakt nach ganz unten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #edf2f7;
}

/* Kleiner Hover-Effekt für Interaktivität */
.result-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Die farbigen Köpfe der Spalten (Titel + Icon) */
.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #ffffff;
}

.result-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.result-header .emoij {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.2);
    
    /* HIER DIE FIXE GRÖSSE FÜR DEN PERFEKTEN KREIS */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* Sorgt dafür, dass das Emoji exakt in der Mitte des Kreises sitzt */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Padding entfernen, da die Größe jetzt über Breite/Höhe kommt */
    padding: 0; 
}

/* Individuelle Farbcodierung der Sektionen */
/* Spalte 1: Entlastung (Grün) */
.household .result-header { background-color: #5bb381; }
/* Spalte 2: Gesellschaft (Blau) */
.backing .result-header { background-color: #4a90e2; }
/* Spalte 3: Organisation (Orange) */
.office .result-header { background-color: #f5a623; }
/* Spalte 1: Entlastung (Grün) */
.transparency .result-header { background-color: #0077B6; }
/* Spalte 2: Gesellschaft (Blau) */
.viewpoint .result-header { background-color: #FF8C00; }
/* Spalte 3: Organisation (Orange) */
.business .result-header { background-color: #9D4EDD; }

/* Der Einleitungstext (Teaser) direkt unter dem Kopf */
.result-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #5d6d7e;
    line-height: 1.6;
    min-height: 50px; /* Hält die Textblöcke visuell auf ähnlicher Höhe */
}

/* Die Liste mit den 7 Stichpunkten */
.result-point {
    list-style: none;
    padding: 15px 0; /* Etwas Luft nach oben und unten im Bildbereich */
    margin: 0 -15px 15px 0;
    flex-grow: 1; /* Füllt den Raum, damit das Fazit nach unten gedrückt wird */
    
    /* HIER ERWEITERT FÜR DIE HINTERGRÜNDE */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Der weiche, weiße Schleier liegt NUR hinter den Listeneinträgen */
.result-point::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    /* Links (0%) komplett weiß für den Text, ab der Mitte (55%) blendet es aus, 
       und ganz rechts (100%) ist es absolut klar/transparent ohne weiß */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 35%,
        rgba(255, 255, 255, 0.4) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: -1;
}

    /* --- Spalte 1: Entlastung / Haushalt --- */
    .household .result-point { 
        /* Fallback für ältere Browser */
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/household.jpg'); 
        background-position: right 10% center;
}

@supports (background-image: url('test.webp')) {
    .household .result-point {
        /* Wird nur geladen, wenn der Browser WebP versteht */
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/household.webp');
    }
}

    /* --- Spalte 2: Gesellschaft / Begleitung --- */
    .backing .result-point { 
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/backing.jpg'); 
        background-position: right center;
}

@supports (background-image: url('test.webp')) {
    .backing .result-point {
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/backing.webp');
    }
}

    /* --- Spalte 3: Organisation / Amtliches --- */
    .office .result-point { 
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/office.jpg'); 
        background-position: right center;
}

@supports (background-image: url('test.webp')) {
    .office .result-point {
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/office.webp');
    }
}

    .transparency .result-point { 
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/transparency.jpg'); 
        background-position: right center;
}

@supports (background-image: url('test.webp')) {
    .transparency .result-point {
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/transparency.webp');
    }
}

    .viewpoint .result-point { 
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/viewpoint.jpg'); 
        background-position: right center;
}

@supports (background-image: url('test.webp')) {
    .viewpoint .result-point {
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/viewpoint.webp');
    }
}

    .business .result-point { 
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/business.jpg'); 
        background-position: right center;
}

@supports (background-image: url('test.webp')) {
    .business .result-point {
        background-image: url('https://deftivity.com/de/partner/alltagshelferin-susi/images/business.webp');
    }
}

.result-point li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    z-index: 2; /* Hält den Text über dem Schleier */
}

/* Das farbige Häkchen vor jedem Punkt via CSS generiert */
.result-point li::before {
    content: "✓";
    position: absolute;
    left: 5px;
    top: -1px;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-point li abbr {
    text-decoration: none;
    cursor: help;
}

/* Transparenz: Paragrafenzeichen */
.transparency .result-point li::before { 
    content: "§"; 
}

/* Einsatzgebiete: Klassischer Aufzählungspunkt (Bullet-Point) */
.viewpoint .result-point li::before { 
    content: "📌"; 
    font-size: 1.1rem;
    left: -10px;
    padding-left: 10px;
}

/* Öffnungszeiten: Kleiner Pfeil (sieht bei Zeiten und Tagen edel aus) */
.business .result-point li::before { 
    content: "🕒"; 
    font-size: 1.1rem; 
    left: -10px;
    padding-left: 10px;
}

/* Häkchen-Farben passend zur Spalte */
.household .result-point li::before { color: #5bb381; }
.backing .result-point li::before { color: #4a90e2; }
.office .result-point li::before { color: #f5a623; }
.transparency .result-point li::before { color: #0077B6; }
.viewpoint .result-point li::before { color: #FF8C00; }
.business .result-point li::before { color: #9D4EDD; }

/* Das Fazit-Blockzitat am Ende der Spalte */
.result-conclusion {
    margin: 0;
    padding: 15px 18px;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #475569;
    border-radius: 0 12px 12px 0;
    border-left: 4px solid #cbd5e1;
}

/* Linke Rahmenfarbe des Fazits passend zur Spalte */
.household .result-conclusion { border-left-color: #5bb381; background: #f4fbf7; }
.backing .result-conclusion { border-left-color: #4a90e2; background: #f4f8fd; }
.office .result-conclusion { border-left-color: #f5a623; background: #fdfaf4; }
.transparency .result-conclusion { border-left-color: #0077B6; background: #f4f6fb; }
.viewpoint .result-conclusion { border-left-color: #FF8C00; background: #fdf9f4; }
.business .result-conclusion { border-left-color: #9D4EDD; background: #fbf4fd; }

/* CSS-Klasse falls die Datenbank mal keine Einträge zurückgibt */
.no-services {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

