/**
 * Styles for Entkreis Teachers List
 */

/* Container for teachers list */
.entkreis-teachers-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid layout for teacher cards */
.entkreis-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual teacher card */
.entkreis-teacher-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For proper positioning of the anchor */
}

.entkreis-teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Make whole card clickable */
.entkreis-teacher-card a.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}

/* Teacher image container */
.entkreis-teacher-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

.entkreis-teacher-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.entkreis-teacher-card:hover .entkreis-teacher-image img {
    transform: scale(1.05);
}

.entkreis-teacher-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-style: italic;
}

/* Teacher information */
.entkreis-teacher-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Teacher name is hidden - whole card is clickable */

.entkreis-teacher-city {
    margin: 0 0 10px;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.entkreis-teacher-city i {
    color: #26a847;
    margin-right: 5px;
    font-size: 14px;
}

.entkreis-teacher-kursangebot {
    margin: 0 0 10px;
    color: #26a847;
    font-size: 14px;
    font-weight: 500;
}

.entkreis-teacher-kursangebot strong {
    color: #333;
    margin-right: 5px;
}

.entkreis-teacher-kursorte {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.entkreis-teacher-kursorte strong {
    color: #333;
    margin-right: 5px;
}

.entkreis-teacher-link {
    margin-top: auto;
    display: inline-block;
    padding: 8px 15px;
    background-color: #26a847;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 3;
    position: relative;
}

.entkreis-teacher-link:hover {
    background-color: #1e8b37;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Pagination */
.entkreis-teachers-pagination {
    margin-top: 20px;
    text-align: center;
}

.entkreis-teachers-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.entkreis-teachers-pagination .page-numbers.current {
    background-color: #26a847;
    color: white;
    border-color: #26a847;
}

.entkreis-teachers-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entkreis-teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .entkreis-teachers-grid {
        grid-template-columns: 1fr;
    }
}

/* Single teacher page styles */
.entkreis-single-teacher {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.entkreis-teacher-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fffe 0%, #f1f9f7 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 168, 71, 0.1);
}

.entkreis-teacher-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    flex-shrink: 0;
    border: 4px solid #26a847;
    box-shadow: 0 8px 25px rgba(38, 168, 71, 0.15);
}

.entkreis-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entkreis-teacher-meta {
    flex-grow: 1;
}

.entkreis-teacher-meta .teacher-label {
    color: #26a847;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 1px;
}

.entkreis-teacher-meta h1 {
    font-size: 28px;
    margin: 0 0 12px;
    color: #192335;
    font-weight: 700;
    line-height: 1.2;
}

.entkreis-teacher-meta .teacher-location {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #192335;
    font-weight: 500;
}

.entkreis-teacher-meta .teacher-location i {
    color: #26a847;
    margin-right: 8px;
    font-size: 18px;
}

.entkreis-teacher-meta .teacher-kursangebot {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.entkreis-teacher-meta .teacher-kursangebot strong {
    color: #192335;
    margin-right: 5px;
    font-weight: 600;
}

.entkreis-teacher-meta .teacher-kursangebot span {
    color: #26a847;
    font-weight: 500;
}

.entkreis-teacher-meta .teacher-kursorte {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.entkreis-teacher-meta .teacher-kursorte strong {
    color: #192335;
    margin-right: 5px;
    font-weight: 600;
}

.entkreis-teacher-meta .teacher-kursorte span {
    color: #666;
}

.entkreis-teacher-stats {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 14px;
    color: #192335;
    font-weight: 500;
}

.entkreis-teacher-stats .course-count {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.entkreis-teacher-stats .course-count i {
    margin-right: 8px;
    color: #26a847;
    font-size: 18px;
}

.entkreis-teacher-stats .ratings {
    display: flex;
    align-items: center;
}

.entkreis-teacher-stats .star {
    color: #FFCC00;
    margin-right: 2px;
}

.entkreis-teacher-stats .rating-count {
    margin-left: 5px;
    color: #666;
}

.entkreis-teacher-section {
    margin-bottom: 25px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.entkreis-teacher-section h2 {
    font-size: 20px;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #26a847;
    color: #192335;
    font-weight: 600;
}

.entkreis-teacher-section p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
}

.entkreis-contact-details {
    margin-bottom: 40px;
}

.entkreis-contact-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.entkreis-contact-item strong {
    display: inline-block;
    min-width: 80px;
    color: #192335;
    font-weight: 600;
    font-size: 14px;
}

.entkreis-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.entkreis-course-card {
    border: 1px solid #e8f5ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(38, 168, 71, 0.08);
    transition: all 0.3s ease;
}

.entkreis-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entkreis-course-image {
    height: 160px;
    overflow: hidden;
}

.entkreis-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entkreis-course-info {
    padding: 15px;
}

.entkreis-course-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #192335;
    font-weight: 600;
    line-height: 1.3;
}

.entkreis-course-info .course-price {
    font-weight: bold;
    color: #26a847;
    font-size: 16px;
}

@media (max-width: 768px) {
    .entkreis-teacher-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .entkreis-teacher-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .entkreis-teacher-meta .teacher-location {
        justify-content: center;
    }
    
    .entkreis-teacher-stats {
        justify-content: center;
    }
    
    .entkreis-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
} 