/* Kategorien-Titel */
.gedichte-kategorie-titel {
    width: 100%;
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4-Spalten Grid */
.gedichte-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Responsive für kleinere Bildschirme */
@media (max-width: 1200px) {
    .gedichte-grid-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gedichte-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gedichte-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Karten-Styling */
.gedichte-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.gedichte-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gedichte-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: bold;
}

.gedichte-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.95em;
}

.gedichte-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.gedichte-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal Styling */
.gedichte-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.gedichte-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gedichte-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gedichte-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.gedichte-modal-close:hover {
    color: #e74c3c;
}

.gedichte-modal-title {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
    margin-top: 10px;
}

.gedichte-audio-section {
    margin-bottom: 25px;
}

.gedichte-audio-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.gedichte-audio-section audio {
    width: 100%;
    margin-bottom: 15px;
}

.gedichte-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.gedichte-qr-hint {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.gedichte-qr-hint p {
    margin: 5px 0;
    font-size: 0.9em;
}

#qrLink {
    word-break: break-all;
    color: #667eea;
    font-family: monospace;
    font-size: 0.85em;
}

/* Hinweis-Bereich */
.gedichte-hinweis {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.gedichte-hinweis p {
    margin: 0;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.5;
}

.gedichte-hinweis p::before {
    content: "👧🏽 ";
    margin-right: 8px;
}
