/* Public CSS for Personality Test Plugin */

.Result,
.scores-table{
	color: black !important;
}

.personality-test-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Landing Page */
.personality-test-landing {
    text-align: center;
    padding: 40px 20px;
}

.test-header .test-title {
    font-size: 2.5em;
    color: black;
    margin-bottom: 10px;
	text-transform: none;
}

.test-header .test-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.test-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background-color: white;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.info-card h3,
.info-card p{
	color: black !important;
}

.info-card .info-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.info-card p {
    font-size: 0.9em;
    color: #777;
}

.test-categories-preview h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.category-preview {
    background-color: #e0e0e0;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
	font-size: 13px !important;
	flex-direction: column;
}

.category-preview-icon{
	width: 35%;
	margin-bottom: 10px;
}

.category-number {
	display: none !important;
}
.category-preview .category-number {
    margin-right: 8px;
    background-color: #ccc;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
	
}
.answer-option{
	color: var(--e-global-color-primary);
}
.test-start-section .btn-start-test,
#nextBtn,
#prevBtn,
#downloadPdfBtn,
#contactBtn,
#retakeTestBtn,
.form-actions #cancelContactBtn,
.form-actions .btn-primary{
    background-color: black;
    font-size: 14px;
    font-weight: normal;
    color: white;
    padding: 15px 40px 15px 40px;
    align-items: center;
	border-color: black !important;
}

.test-start-section .btn-start-test:hover {
    background-color: white;
    color: black;
    border-color: black;
}


#vision1,
#preis5{
	background-color: #C2DCFF;
}

#standort2,
#prozesse6{
	background-color: #99C5FF;
}
#geschaeft3,
#kommunikation7{
	background-color: #5CA3FF;
}
#personen4,
#produktivitaet8{
	background-color: #1F80FF;
}


#modal-close{
	background-color: white;
	color: black;
}


.test-start-section .btn-arrow {
    margin-left: 10px;
    font-size: 1.5em;
}

.test-start-section .privacy-note {
    margin-top: 20px;
    color: #888;
    font-size: 0.85em;
}

/* Progress Bar */
.test-progress-container {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar .progress-fill {
    height: 100%;
    background-color: #0073aa;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.progress-steps {
    display: flex;
    flex-wrap: wrap;   /* erlaubt Umbruch */
    margin-top: 10px;
}

.progress-steps .step {
    text-align: center;
    width: 25%;
    box-sizing: border-box;
    color: #aaa;
    font-size: 0.85em;
    padding: 10px;     /* optional für Abstände */
}

.progress-steps .step.active .step-circle {
    background-color: black;
    color: #fff;
}

.progress-steps .step.completed .step-circle {
    background-color: black;
    color: #fff;
}

.progress-steps .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: bold;
}

/* Questionnaire */
.questionnaire-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-header .category-icon {
    font-size: 3em;
    margin-right: 20px;
}

.category-header .category-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 5px;
}

.category-header .category-description {
    font-size: 1em;
    color: #777;
}

.questions-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.question-card {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.question-card .question-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option label {
    display: flex;
    align-items: center;
    background-color: #e9e9e9;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.answer-option{
	font-weight: 500;
}
.answer-options .answer-option:nth-child(1) {
	color: #1b5e20; /* Sehr gut */
    
}

.answer-options .answer-option:nth-child(2) {
    color: #66BB6A; /* Gut */
    
}

.answer-options .answer-option:nth-child(3) {
    color: #ffa726; /* Neutral */
    
}

.answer-options .answer-option:nth-child(4) {
    color: #ef5350; /* Schlecht */
    
}

.answer-options .answer-option:nth-child(5) {
    color: #b71c1c; /* Sehr schlecht */
    
}

.answer-option label:hover {
    background-color: #ddd;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
	gap: 20px;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background-color: #005177;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

.btn-tertiary {
    background-color: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.btn-tertiary:hover {
    background-color: #e0e0e0;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Container */
.results-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.results-header .results-title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 10px;
}

.results-header .results-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.results-header h2{
	color: black;
	font-size: 28px !important;
}

.overall-score-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: inline-block;
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.score-circle .score-value {
    font-size: 2.5em;
    line-height: 1;
}

.score-circle .score-label {
    font-size: 0.8em;
    opacity: 0.8;
}

.score-interpretation h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.score-interpretation p {
    color: #666;
    line-height: 1.6;
}

.results-chart-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
  .scores-table,
  .scores-table thead,
  .scores-table tbody,
  .scores-table th,
  .scores-table td,
  .scores-table tr {
    display: block;
    width: 100%;
  }

  /* Header ausblenden */
  .scores-table thead {
    display: none;
  }

  .scores-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .scores-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .scores-table td:last-child {
    border-bottom: none;
  }

  /* Labels für jede Spalte */
  .scores-table td:nth-child(1)::before {
    content: "Bereich:";
    font-weight: bold;
  }
  .scores-table td:nth-child(2)::before {
    content: "Punkte:";
    font-weight: bold;
  }
  .scores-table td:nth-child(3)::before {
    content: "Bewertung:";
    font-weight: bold;
  }
}
.chart-container canvas {    
/* Setzt die Anzeigegröße auf die exakten Pixelwerte des Canvas */    
 
 height: 100%; 
 /* Entfernt die Skalierungsregeln, die das Problem verursacht haben */   
max-width: none; 
}
/* Für Mobile überschreiben */
@media (max-width: 768px) {
  .chart-container canvas {
    width: auto;   /* oder feste Pixel */
    height: auto;  /* passt sich Canvas-Attr an */
    max-width: 100%; /* darf sich innerhalb vom Container skalieren */
  }
}
.chart-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.chart-wrapper canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #555;
}

.chart-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
}

.scores-table {
    flex: 1 1 45%;
    min-width: 300px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.scores-table h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 20px;
}

.scores-breakdown {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.scores-breakdown th, .scores-breakdown td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.scores-breakdown th {
    background-color: #e9e9e9;
    font-weight: bold;
    color: #333;
}

.scores-breakdown td {
    color: #555;
}
.actions-section {
  display: flex;
  gap: 10px;              /* Abstand zwischen Buttons */
  justify-content: center;
}
/* Buttons Standard Desktop */
.actions-section .btn {
  flex: 1;                /* alle gleich breit */
  text-align: center;     /* Text zentriert */
}
/* Mobile Variante */
@media screen and (max-width: 768px) {
  .actions-section {
    flex-direction: column; /* untereinander */
  }

  .actions-section .btn {
    width: 100%;           /* volle Breite */
  }
}



.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-section h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.recommendation-card h4 {
    font-size: 1.2em;
    color: #0073aa;
    margin-bottom: 10px;
}

.recommendation-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

.results-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.modal-close {
	color: black !important;
	background-color: white !important;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #888;
	border-width: 0!important;
}

.modal-close:hover {
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .checkbox-group {
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.contact-form .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	
	.form-actions {
    display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
	}
    .personality-test-container {
        padding: 15px;
    }

    .test-header .test-title {
        font-size: 2em;
    }

    .test-header .test-subtitle {
        font-size: 1em;
    }

    .test-info-grid, .categories-grid {
        grid-template-columns: 1fr;
    }

    .results-chart-section {
        flex-direction: column;
    }

    .chart-container, .scores-table {
        min-width: unset;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary, .btn-tertiary {
        width: 100%;
    }
}

/* Fallback Chart Styles */
.fallback-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.fallback-chart-segment {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.fallback-chart-segment:hover {
    transform: translateY(-2px);
}

.fallback-chart-label {
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.9;
}

.fallback-chart-value {
    font-size: 1.2em;
    font-weight: bold;
}

/* Chart Legend Styles */
.chart-legend {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


