/* ================================
   GLOBAL
================================ */
body {
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #333;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0;
}

/* ================================
   HEADER
================================ */
.header {
    display: flex;
    justify-content: center/*space-between*/;
    align-items: center;
    background: white;
    padding: 20px 36px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    width: 34px;
    height: 34px;
    opacity: 0.9;
}


/* ================================
   MAIN LAYOUT 
================================ */
.container {
    width: 90%;
    max-width: 1600px;
    margin: auto;
}

/* ================================
   OVERALL SECTION
================================ */
.overall-wrapper {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 24px;
    margin-bottom: 30px;
}

.overall-left {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.overall-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Buttons on right side */
.overall-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ================================
   CARDS
================================ */
.card {
    background: white;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* ADKAR-Werte standardmäßig verstecken */
.card .group-values {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Bei Hover einblenden */
.card:hover .group-values {
    opacity: 1;
}


/* ================================
   CHARTS
================================ */
canvas {
    max-height: 200px !important;
}

/* ================================
   GROUP GRID
================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 20px;
}

/* ================================
   SCORE TABLE
================================ */
.score-table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
}

.score-table th {
    font-size: 12px;
    color: #555;
}

.score-table td {
    font-size: 14px;
}

/* Zentrierung der ADKAR-Buchstaben */
.score-table th {
    text-align: center;
}


/* ================================
   BUTTONS
================================ */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn.blue { background: #1976d2; }
.btn.blue:hover { background: #125ba5; }

.btn.green { background: #4caf50; }
.btn.green:hover { background: #3a8d3e; }

.btn.red { background: #af4c4c; }
.btn.red:hover { background: #8d3a3a; }

/* ================================
   LEGEND
================================ */
.legend {
    background: white;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}


.floating-reset {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 40px;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.15s ease;
}

.floating-reset:hover {
    transform: scale(1.15);
}

.legend-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 100%;
}

.legend-flex .legend {
    flex: 1;
}

.legend-flex .previous-results {
    flex: 1;
}

.previous-results h3 {
    text-align: center;
}

.previous-results th,
.previous-results td {
    text-align: center !important;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
.overall-wrapper {
    max-width: 1600px;
    margin: 0 auto 30px auto;
}

#overallChart {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

#overall {
    width: 100%;
}
