/* Heartopia Infos Styles
   Optimiert für ein sauberes Karten-Design (Card Layout)
*/

.infos-page * { 
    box-sizing: border-box; 
}

.infos-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.infos-page .tasks {
    padding: 2.5rem 0 4rem;
}

.infos-page .tasks h2 {
    text-align: center;
    margin: 0 0 2.5rem;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ========== GRID LAYOUT ========== */

.infos-page .tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Spezielle Spalten-Layouts für verschiedene Seiten */
.infos-page .tasks-grid-4cols { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.infos-page .tasks-grid-5cols { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.infos-page .tasks-grid-7cols { grid-template-columns: repeat(7, 1fr); gap: 1rem; }

/* ========== CARD DESIGN (WIE IM SCREENSHOT) ========== */

.infos-page .task-card {
    background: #ffffff; /* Reinweißer Hintergrund wie im Bild */
    border-radius: 20px; /* Stark abgerundete Ecken */
    padding: 40px 24px;  /* Viel Innenabstand für den "Look" */
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Sanfter, moderner Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
    border: 1px solid rgba(0,0,0,0.02);
}

.infos-page .task-card:hover {
    transform: translateY(-8px); /* Karte schwebt beim Drüberfahren */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bild-Styling in den Karten */
.infos-page .task-card img {
    width: auto;
    max-width: 160px;     /* Begrenzt die Breite der Icons */
    height: 160px;       /* Fixe Höhe für einheitliches Alignment */
    object-fit: contain; /* Verhindert Verzerrungen */
    margin-bottom: 25px; /* Abstand zum Titel */
    background: transparent;
    cursor: zoom-in;     /* Hinweis für die Lupe */
}

/* Texte in den Karten */
.infos-page .task-card h3 {
    color: #1f2d3d;
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.infos-page .task-card p {
    color: #465463;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Schiebt Notizen nach unten */
}

.infos-page .card-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #8a94a0;
    font-style: italic;
}

/* ========== SPEZIALFÄLLE ========== */

/* Erledigte Aufgaben (optionaler Verlauf) */
.infos-page .task-card.completed {
    background: linear-gradient(to top, #2b6ef6 0%, #90aaff 100%);
    color: #fff;
}
.infos-page .task-card.completed h3,
.infos-page .task-card.completed p,
.infos-page .task-card.completed .card-note {
    color: #fff;
}

/* Grundstücks-Seite (Große Karte) */
.infos-page .parcelles-grid {
    grid-template-columns: minmax(auto, 900px);
    justify-content: center;
}
.infos-page .parcellesprix-card {
    min-height: auto;
}
.infos-page .parcellesprix-card img {
    max-width: 100%;
    height: auto;
    max-height: 700px;
}

/* ========== SUCHE & INPUTS ========== */

.infos-page .fish-search {
    margin-bottom: 30px;
    text-align: center;
}

.infos-page input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.infos-page input[type="text"]:focus {
    background: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.infos-page .search-results {
    margin-top: 15px;
    color: #fff;
    font-weight: 500;
}

/* ========== ZOOM MODAL (image-zoom.js) ========== */

#infosImageModal.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

#infosImageModal .modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

#infosImageModal .close {
    position: fixed;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .infos-page .tasks-grid-4cols,
    .infos-page .tasks-grid-5cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .infos-page .tasks-grid-7cols { grid-template-columns: repeat(2, 1fr); }
    .infos-page .tasks-grid-4cols,
    .infos-page .tasks-grid-5cols { grid-template-columns: repeat(2, 1fr); }
    .infos-page .task-card { min-height: auto; padding: 30px 20px; }
    .infos-page .task-card img { height: 120px; }
}

@media (max-width: 480px) {
    .infos-page .tasks-grid,
    .infos-page .tasks-grid-4cols,
    .infos-page .tasks-grid-5cols,
    .infos-page .tasks-grid-7cols { 
        grid-template-columns: 1fr; 
    }
}