body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f7f7f7;
    color: #222;
}

h1 {
    margin-bottom: 20px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.seatmap-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
}

.legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

#seatmap {
    display: grid;
    grid-template-columns: repeat(40, 24px);
    grid-auto-rows: 24px;
    gap: 4px;
    align-items: center;
}

.seat {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
	position: relative;
    z-index: 1;

}

.free {
    background: #26a65b;
}

.reserved {
    background: #f39c12;
    cursor: not-allowed;
}

.sold {
    background: #e74c3c;
    cursor: not-allowed;
}

.selected {
    background: #2e86de !important;
    border: 2px solid #fff;
    transform: scale(1.15);

}

.wheelchair {
	position: relative;
}

.wheelchair::after {
    content: "♿";
    font-size: 14px;
	
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    pointer-events: none; 
}

.row-label,
.block-label,
.gang-marker {
    font-size: 12px;
    color: #666;
}

.sidebar {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
}

.postal-fields.hidden {
    display: none;
}

#selectedSeats {
    min-height: 50px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 14px;
}

#total {
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0 16px;
}

#reserveBtn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #2e86de;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

#reserveBtn:hover {
    background: #1f6fbe;
}

#reserveBtn:disabled {
    background: #9bbde0;
    cursor: not-allowed;
}

#editOrderBtn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
	margin-top: 20px;
}


.message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.message.success {
    display: block;
    background: #e8f8ef;
    color: #1d6f42;
    border: 1px solid #b7e4c7;
}

.message.error {
    display: block;
    background: #fdecec;
    color: #a12622;
    border: 1px solid #f1b0b7;
}

.seatmap-wrapper {
    display: inline-block;   /* <- KEY FIX */
}

.stage {
    display: block;
    margin: 0 auto 15px 0;

    /* gleiche Breite wie seatmap */
	width: 472px;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #666, #333);
    color: white;
    text-align: center;
    border-radius: 6px;

    font-weight: bold;
}

.hidden {
    display: none;
}

#paypalSection {
    margin-top: 20px;
}

#paypal-button-container {
    margin-top: 10px;

}


.hint {
    font-size: 13px;
    color: #555;
    margin: 6px 0 12px;
}

@media (max-width: 900px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 20px;
        border-left: none;
        border-top: 1px solid #ccc;
        padding-top: 15px;
    }

    #seatmap {
        overflow: visible;
    }
}

.seatmap-wrapper {
    overflow-x: auto;
}

.selected-seat-row {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.selected-seat-row label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}