/**
 * Sedcard Detail Styling für Amateursofa Toolbox
 * Vollständiges CSS für Detail-Seiten
 */

/** ===== Sedcard Detail Container ===== */
.amateursofa-sedcard-detail {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.amateursofa-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: var(--ast-global-color-1, #8B0000) !important;
    background: linear-gradient(135deg, var(--ast-global-color-1, #8B0000) 0%, #A52A2A 100%) !important;
    border-bottom: 1px solid #dee2e6;
    color: white;
}

.amateursofa-detail-avatar {
    flex-shrink: 0;
}

.amateursofa-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.amateursofa-avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.amateursofa-detail-header-info {
    flex: 1;
}

.amateursofa-detail-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: white !important;
    line-height: 1.2;
}

.amateursofa-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    align-items: center;
}

.meta-portal {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.meta-age {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.meta-gallery {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.meta-status.online {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.amateursofa-detail-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.amateursofa-detail-content {
    padding: 40px;
}

/* Portal Badge mit Taxonomie-Link */
.amateursofa-detail-meta .portal-badge-link.taxonomy-link:hover {
    text-decoration: none;
}

.amateursofa-detail-meta .portal-badge-link.taxonomy-link:hover .portal-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}
/** ===== Sedcard Detail Container Ende ===== */

/** ===== WordPress Post Content Section ===== */
.amateursofa-post-content-section {
    width: 100%;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.post-content-wrapper {
    padding: 30px 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.post-content-wrapper h1,
.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #212529;
}

.post-content-wrapper h1 {
    font-size: 28px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.post-content-wrapper h2 {
    font-size: 24px;
}

.post-content-wrapper h3 {
    font-size: 20px;
}

.post-content-wrapper p {
    margin-bottom: 15px;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/** ===== WordPress Post Content Section Ende ===== */

/** ===== Info-Grid Layout (2 Spalten) ===== */
.amateursofa-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.personal-data-section {
    grid-column: 1;
}

.featured-image-section {
    grid-column: 2;
}

.amateursofa-info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.amateursofa-info-section.full-width {
    grid-column: 1 / -1;
}

.section-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    min-width: 100px;
    font-size: 14px;
}

.info-value {
    color: #212529;
    text-align: right;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-tag {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-tag.taxonomy-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    color: white !important;
    text-decoration: none;
}
/** ===== Info-Grid Layout Ende ===== */

/** ===== Featured Image Section ===== */
.featured-image-section .featured-image-container {
    text-align: center;
    margin: 15px 0;
}

.featured-image-section .featured-image-link {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.featured-image-section .featured-image-link:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image-section .featured-image-large {
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.featured-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    min-height: 400px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
}
/** ===== Featured Image Section Ende ===== */

/** ===== Call-to-Action Button (zentral unter Info-Grid) ===== */
.amateursofa-cta-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.cta-button-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button-main .cta-icon {
    font-size: 20px;
}
/** ===== Call-to-Action Button Ende ===== */

/** ===== Taxonomien Sektion ===== */
.amateursofa-taxonomies-section {
    margin-bottom: 40px;
}

.amateursofa-taxonomy-group {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.taxonomy-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}
/** ===== Taxonomien Sektion Ende ===== */

/** ===== Statistiken Sektion ===== */
.amateursofa-stats-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    border-radius: 50%;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}
/** ===== Statistiken Sektion Ende ===== */

/** ===== Galerie Sektion ===== */
.amateursofa-gallery-preview {
    margin-bottom: 30px;
}

/* Galerie mit "Mehr von NAME" Button */
.gallery-header {
    text-align: center;
    margin-bottom: 25px;
}

.gallery-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.gallery-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.gallery-more-btn .btn-icon {
    font-size: 18px;
}

/* Galerie mit 3 Spalten (quadratisch) */
.gallery-grid-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.gallery-item-column {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1; /* Quadratisch für alle Galeriebilder */
}

.gallery-item-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.gallery-thumb-column {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-column:hover .gallery-thumb-column {
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galerie-Mehr Text */
.gallery-more {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    font-style: italic;
}

/* Gallery Placeholder Styling */
.gallery-placeholder {
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
}
/** ===== Galerie Sektion Ende ===== */

/** ===== Kontakt Sektion ===== */
.amateursofa-contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.amateursofa-contact-section .section-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-icon {
    font-size: 18px;
}
/** ===== Kontakt Sektion Ende ===== */

/** ===== Taxonomie-Links ===== */
.taxonomy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.taxonomy-link:hover {
    color: #764ba2 !important;
    border-bottom-color: #764ba2;
    text-decoration: none;
}
/** ===== Taxonomie-Links Ende ===== */

/** ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .amateursofa-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    /* Header Meta auf Mobile */
    .amateursofa-detail-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .amateursofa-detail-content {
        padding: 30px 20px;
    }
    
    .amateursofa-detail-title {
        font-size: 24px;
    }
    
    /* Post Content auf Mobile */
    .post-content-wrapper {
        padding: 20px 25px;
        font-size: 15px;
    }
    
    .post-content-wrapper h1 {
        font-size: 24px;
    }
    
    .post-content-wrapper h2 {
        font-size: 20px;
    }
    
    /* Info Grid wird einspaltig */
    .amateursofa-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .personal-data-section,
    .featured-image-section {
        grid-column: 1;
    }
    
    .featured-image-section .featured-image-large {
        max-width: 350px;
        min-height: 300px;
        max-height: 400px;
    }
    
    /* Info-Items stapeln */
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
    }
    
    /* CTA Button kleiner */
    .cta-button-main {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Galerie wird zweispaltig */
    .gallery-grid-three-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .gallery-more-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Taxonomie-Gruppen kompakter */
    .amateursofa-taxonomy-group {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Post Content sehr klein */
    .post-content-wrapper {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* CTA noch kleiner */
    .cta-button-main {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* Galerie einspaltig */
    .gallery-grid-three-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-item-column {
        aspect-ratio: 1;
    }
    
    .featured-image-section .featured-image-large {
        max-width: 280px;
        min-height: 250px;
        max-height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .gallery-more-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Taxonomien kompakter */
    .amateursofa-taxonomy-group {
        padding: 15px;
    }
    
    .tag-list {
        gap: 6px;
    }
    
    .info-tag {
        padding: 5px 10px;
        font-size: 13px;
    }
}
/** ===== Mobile Responsive Ende ===== */

/** ===== Accessibility Verbesserungen ===== */
.gallery-image-link:focus,
.featured-image-link:focus,
.cta-button-main:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.gallery-more-btn:focus {
    outline: 3px solid rgba(40, 167, 69, 0.5);
    outline-offset: 2px;
}
/** ===== Accessibility Verbesserungen Ende ===== */

/** ===== Print Styles ===== */
@media print {
    .gallery-more-btn,
    .contact-btn,
    .cta-button-main {
        display: none !important;
    }
    
    .amateursofa-detail-header {
        background: white !important;
        color: black !important;
    }
    
    .amateursofa-detail-title {
        color: black !important;
    }
    
    .post-content-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .taxonomy-link {
        color: black !important;
        text-decoration: underline !important;
    }
}
/** ===== Print Styles Ende ===== */

/** ===== Performance Optimierungen ===== */
.gallery-item-column,
.amateursofa-taxonomy-group {
    contain: layout style paint;
}

/* Performance-optimierte Styles für Bilder */
.featured-image-large,
.gallery-thumb-column {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    content-visibility: auto;
}

.featured-image-large {
    content-visibility: auto;
    contain-intrinsic-size: 400px 300px;
}

.gallery-thumb-column {
    content-visibility: auto;
    contain-intrinsic-size: 200px 250px;
}

/* Performance: Reduzierte Animationen für schwächere Geräte */
@media (prefers-reduced-motion: reduce) {
    .featured-image-link,
    .gallery-image-link,
    .gallery-item-column,
    .cta-button-main,
    .gallery-more-btn,
    .contact-btn,
    .info-tag {
        transition: none;
        animation: none;
        transform: none;
    }
    
    .featured-image-link:hover,
    .gallery-item-column:hover,
    .cta-button-main:hover,
    .gallery-more-btn:hover,
    .contact-btn:hover {
        transform: none;
    }
}
/** ===== Performance Optimierungen Ende ===== */

.amateursofa-detail-title a.taxonomy-link {
    color: white !important;
    text-decoration: underline;
}

.amateursofa-detail-title a.taxonomy-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}