.s2-intro-area {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.s2-intro-area h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.sketch-map-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 700px;
    min-width: 1000px;
    background-color: #f4f4f4;
    border: 4px solid #111;
    border-radius: 12px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sketch-card {
    position: absolute;
    background: #fff;
    border: 3px solid #111;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #111;
    padding: 10px 20px 20px 20px;
    z-index: 10;
    color: #111;
}

/* Text */
.panel-info-left {
    top: 20px;
    left: 20px;
    width: 400px;
}

/* Controls */
.panel-controls {
    top: 20px;
    right: 20px;
    min-width: 250px;
}

/* Legend */
.panel-legend {
    bottom: 20px;
    right: 20px;
    min-width: 200px;
}

/* Graph */
.panel-chart {
    bottom: 20px;
    left: 20px;
    min-width: 400px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px 15px 40px 15px; /* Etwas Padding oben hinzugefügt */
    overflow: hidden;
}

.d3-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.d3-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* Sketch-Buttons */
.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.sketch-btn-group {
    display: flex;
    border: 2px solid #111;
    border-radius: 6px;
    overflow: hidden;
}

.sketch-btn {
    flex: 1;
    background: #fff;
    border: none;
    border-right: 2px solid #111;
    padding: 8px 0;
    font-weight: bold;
    cursor: pointer;
}

.sketch-btn:last-child {
    border-right: none;
}

.sketch-btn.active {
    background: #689F25;
    color: #fff;
}

.sketch-divider {
    border: 0;
    border-top: 3px solid #111;
    margin: 15px 0;
}

.sketch-btn-toggle {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0px #111;
    transition: transform 0.1s, box-shadow 0.1s;
}

.sketch-btn-toggle:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #111;
}

.sketch-btn-toggle.active {
    background: #a3d271;
}

/* =========================================
   LEGENDE DETAILS
   ========================================= */

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.sketch-color-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #111;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.legend-uz {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px dashed #111;
}

.sketch-uz-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px dashed #111;
    background: rgba(0, 100, 0, 0.2);
    margin-right: 8px;
    vertical-align: middle;
}