/* Wrapper */
.gw-quiz.gw-quiz {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 900px;
    margin: 0 auto;
    background: #F1F2ED;
    border-radius: 4px;  
    padding: 22px 30px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.5);
    color: #000000;
}

.gw-quiz .gw-intro h3 {
    color: #00713D;
}

.gw-quiz .gw-intro p {
    margin: 1.5rem 0;
}

/* Zonen */

.gw-quiz .gw-zones {
    display: flex;
    gap: 12px;
    margin: 12px 0 18px;
    flex-wrap: wrap;
}

.gw-quiz .gw-zone {
    flex: 1 1 260px;
    background: #ffffff;
    border-radius: 4px;
    padding: 10px 10px 12px;
    box-sizing: border-box;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.gw-quiz .gw-zone-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1.1rem;
    color: #00713D; 
}

.gw-quiz .gw-zone-subtitle {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.gw-quiz .gw-zone-droparea {
    flex: 1;
    border: 1px dashed #B2D0BF;
    border-radius: 4px;
    padding: 6px;
    min-height: 90px;
    background: #F9FAF9;
	position: relative;
}

/* Items */

.gw-quiz .gw-items-wrapper {
    margin-top: 6px;
}

.gw-quiz .gw-items-instruction {
    margin: 0 0 8px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.75);
}

.gw-quiz .gw-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Karte */
.gw-quiz .gw-item {
    background: #ffffff;
    border-radius: 4px;
    padding: 8px 10px;
    border: 1px solid #B2D0BF;
    font-size: 0.9rem;
    cursor: grab;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        background-color 0.1s ease,
        border-color 0.1s ease;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0; /* Abstand oben & unten */
}

.gw-quiz .gw-item:active {
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.gw-quiz .gw-item-text {
    flex: 1;
}

/* X-Button zum Zurücklegen */
.gw-quiz .gw-item-close {
    visibility: hidden;               
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;
    box-shadow: none !important; 
	position: relative;
    z-index: 10;  
	min-width: 28px;       
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-quiz .gw-zone-droparea .gw-item-close {
    visibility: visible;
}

.gw-quiz .gw-item-close:hover {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 700;
    /* kein transform, kein Background */
}

/* Drop Hover */

.gw-quiz .gw-zone-droparea.gw-drop-hover {
    border-color: #004489;
    background: rgba(178, 208, 191, 0.25);
}

/* Feedback */

.gw-quiz .gw-item.gw-correct {
    background-color: #B2D0BF !important;
    border-color: #00713D !important;
}

.gw-quiz .gw-item.gw-wrong {
    background-color: #FDE2E2 !important;
    border-color: #CC0000 !important;
}

/* Buttons – unverändert lassen wie sie jetzt sind */
.gw-quiz .gw-actions {
    margin-top: 3rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;   /* horizontal zentrieren */
    align-items: center;       /* optional: vertikal ausrichten */
}

.gw-quiz .gw-button {
    display: inline-block;
    padding: 10px 20px;
    background: #00713D;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 16px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.15s ease, transform 0.1s ease;
}

.gw-quiz .gw-button:hover {
    background: #005c31;
    transform: translateY(-1px);
}

.gw-quiz .gw-button:active {
    transform: translateY(0);
}

.gw-quiz .gw-button.gw-reset {
    background: #B2D0BF;
    color: #000;
}



/* Responsive */

@media (max-width: 768px) {
    .gw-quiz.gw-quiz {
        padding: 16px 14px;
    }
	.gw-intro h3 {
    font-size: 1.4rem;
}
}