/* Container Begrenzung */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WordPress Content Bereich anpassen */
.site-content {
    max-width: 100% !important;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Künstler Single Page spezifisch */
.kuenstler-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.kuenstler-article {
    max-width: 100%;
}

/* Grundlayout */
.ausstellung-detail,
.kuenstler-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Künstler Kopfzeile */
.kuenstler-kopfzeile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.kuenstler-portrait img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kuenstler-info h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2.5em;
}

.kuenstler-beschreibung {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Social Links */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.social-links-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(-2px);
}

/* KUNSTWERKE GRID - NEU */
.kuenstler-kunstwerke {
    margin: 50px 0;
}

.kuenstler-kunstwerke h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
}

.kunstwerke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.kunstwerk-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kunstwerk-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.kunstwerk-inner {
    position: relative;
}

.kunstwerk-bild {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.kunstwerk-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kunstwerk-item:hover .kunstwerk-bild img {
    transform: scale(1.05);
}

.placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

.kunstwerk-info {
    padding: 20px;
}

.kunstwerk-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: #333;
    line-height: 1.3;
}

.kuenstler-name {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    font-style: italic;
}

.kunstwerk-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kunstwerk-item:hover .kunstwerk-overlay {
    opacity: 1;
}

.view-details {
    background: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-details:hover {
    background: #f0f0f0;
}

/* AUSSTELLUNGEN GRID - NEU */
.teilgenommene-ausstellungen {
    margin: 50px 0;
}

.teilgenommene-ausstellungen h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
}

.ausstellungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.ausstellung-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ausstellung-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ausstellung-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ausstellung-bild {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.ausstellung-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ausstellung-item:hover .ausstellung-bild img {
    transform: scale(1.05);
}

.ausstellung-info {
    padding: 20px;
}

.ausstellung-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
    line-height: 1.3;
}

.ausstellung-zeitraum {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    font-style: italic;
}

/* Modal */
.ausstellung-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10001;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #ff0000;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-navigation button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-navigation button:hover:not(:disabled) {
    background: #005a87;
}

.modal-navigation button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal Kunstwerk Details */
.modal-kunstwerk h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2em;
}

.modal-hauptbild img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px;
    display: block;
}

.modal-beschreibung {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.modal-kuenstler {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
}

.modal-impressionen h4 {
    margin: 30px 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.impressionen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.impressionen-grid .impression-item img,
.impressionen-grid .impression-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Filter */
.kuenstler-filter {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.kuenstler-filter label {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.kuenstler-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1em;
}

/* Ausstellung Info */
.ausstellung-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
    align-items: start;
}

.ausstellung-bild img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ausstellung-beschreibung {
    line-height: 1.6;
    color: #555;
    font-size: 1.1em;
}

.zeitraum {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    margin: 20px 0;
}

.zeitraum strong {
    color: #007cba;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kuenstler-kopfzeile {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .kunstwerke-grid,
    .ausstellungen-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .kuenstler-kopfzeile {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kuenstler-portrait {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .kunstwerke-grid,
    .ausstellungen-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .ausstellung-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 90%;
        padding: 20px;
    }
    
    .social-links-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ausstellung-detail,
    .kuenstler-detail {
        padding: 15px;
    }
    
    .kunstwerke-grid,
    .ausstellungen-grid {
        grid-template-columns: 1fr;
    }
    
    .kuenstler-info h1 {
        font-size: 2em;
    }
    
    .modal-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-navigation button {
        width: 100%;
    }
    
    .kunstwerk-bild,
    .ausstellung-bild {
        height: 150px;
    }
}
/* Korrigierte Buttons */
.view-details-btn {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.view-details-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.view-details-btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    border-color: #ccc;
}

.view-details-btn.disabled:hover {
    background: #ccc;
    color: #666;
    transform: none;
    border-color: #ccc;
}

/* Sicherstellen dass Container nicht zu breit werden */
@media (min-width: 1400px) {
    .container, 
    .kuenstler-single, 
    .ausstellung-detail {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* WordPress Standard Container überschreiben */
.entry-content {
    max-width: 100% !important;
}

.wp-site-blocks {
    max-width: 100% !important;
}

/* Falls Theme sehr breite Container hat */
.site-main, 
.main-content, 
.content-area {
    max-width: 100% !important;
}