/* ==========================
   PERSONALITY FLOW DESIGN
   ========================== */

:root {
  --color-primary: #7b4b94;
  --color-accent: #f9b5d0;
  --color-success: #28a745;
  --color-neutral: #f8f9fa;
  --color-warning: #ffeeba;
  --color-error: #dc3545;
  --color-text: #333;
  --color-muted: #666;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font-base: 'Segoe UI', sans-serif;
  
  /* Legacy-Variablen für Kompatibilität */
  --primary: #7b4b94;
  --accent: #f9b5d0;
  --bg-soft: #fdf6f9;
  --bg-welcome: #f3e8f9;
  --btn-primary: #7b4b94;
  --btn-secondary: #a48bbf;
  --card-radius: 1rem;
  --text-color: #333;
  --orange-primary: #FFE8CC;
  --orange-hover: #ffd9a8;
}

/* ==========================
   BASE ELEMENTS
   ========================== */

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================
   BUTTONS
   ========================== */

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #5f3c73;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-neutral);
  color: var(--color-text);
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* Legacy Button-Klassen für Kompatibilität */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--orange-primary);
  color: #333;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--orange-hover);
}

.button.secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.button.secondary:hover {
  background: #e9ecef;
}

/* PP-Button System */
.pp-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.pp-btn-primary {
  background: #007bff;
  color: #fff;
}

.pp-btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.pp-btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
}

.pp-btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pp-btn-block {
  width: 100%;
  display: block;
}

/* ==========================
   FORM FIELDS
   ========================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(249, 181, 208, 0.2);
}

/* PP-Form System */
.pp-form-group {
  margin-bottom: 20px;
}

.pp-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.pp-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.pp-form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.pp-form-group input::placeholder {
  color: #999;
}

.pp-form-help {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* ==========================
   CARDS & SECTIONS
   ========================== */

.card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* PP-Container System */
.pp-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
}

.pp-login-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px;
  border: 1px solid #e0e0e0;
}

.pp-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.pp-login-header h2 {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pp-login-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.pp-login-form {
  width: 100%;
}

/* ==========================
   PROGRESSBAR
   ========================== */

.progress {
  background: #e9ecef;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-success);
  width: 0%;
  transition: width 0.4s ease;
}

/* Test-spezifische Progress */
.pp-progress {
  margin-bottom: 30px;
}

.pp-progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.pp-progress-fill {
  height: 100%;
  background: #28a745;
  width: 0;
  transition: width 0.3s ease;
}

.pp-progress-text {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.progress-container {
  margin-bottom: 30px;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ==========================
   ALERT MESSAGES
   ========================== */

.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
}

.alert-info {
  background: #e2e3e5;
  color: #383d41;
}

/* PP-Message System */
.pp-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid;
}

.pp-message.pp-message-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.pp-message.pp-message-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.pp-message.pp-message-info {
  background: #cce5ff;
  color: #004085;
  border-left-color: #007bff;
}

/* Legacy Error Messages */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid #f5c6cb;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ==========================
   PROFIL-STILE
   ========================== */

.profil-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  font-family: var(--font-base);
  color: var(--text-color);
}

.welcome-card {
  background: var(--bg-welcome);
  border-radius: var(--card-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.welcome-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.welcome-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.welcome-left, .welcome-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profil-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profil-btn.highlight {
  background: var(--btn-primary);
  color: #fff;
}

.profil-btn.secondary {
  background: var(--btn-secondary);
  color: #fff;
}

.profil-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card {
  background: #fff;
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-card::before {
  content: '✨';
  font-size: 2rem;
  line-height: 1;
}

.accordion-header {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #f8f2fc;
}

.accordion-content {
  max-height: auto;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-content.active {
  max-height: 600px;
  overflow-y: auto;
  padding: 1rem 0;
}

.profil-chart-container {
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}

.interpretation {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
}

.newsletter-card {
  background: var(--bg-welcome);
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  margin-top: 3rem;
  text-align: center;
}

.newsletter-card h6 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.newsletter-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.newsletter-card input[type=email] {
  padding: 0.75rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.newsletter-card button {
  padding: 0.75rem 2rem;
  background: var(--btn-primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ==========================
   TEST-STILE
   ========================== */

/* KI-Test Container */
#pp-langtest-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.pp-section {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.pp-button {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.pp-button:hover {
  background: #0056b3;
}

.pp-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pp-button.primary {
  background: #28a745;
}

.pp-button.primary:hover {
  background: #218838;
}

#pp-question-container {
  margin-top: 20px;
}

#question-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.4;
  padding: 0.5rem 0;
}

#answer-labels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
  width: 100%;
}

#answer-slider {
  width: 100%;
  margin: 20px 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--color-primary);
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  border-radius: 2px;
}

#answer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

#answer-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--color-neutral);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
}

.answer-label:hover {
  background: #f0f0f0;
  border-color: var(--color-primary);
}

.answer-label.selected {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pp-error {
  background: #dc3545;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.pp-loading {
  text-align: center;
  padding: 30px;
}

.pp-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* KI-Test spezifische Styles */
#ki-test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.test-header {
  text-align: center;
  margin-bottom: 30px;
}

.test-header h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.test-header p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.question-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.question-text {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.5;
  font-weight: 500;
}

.answer-options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
  width: 100%;
}

.answer-text {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.8;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

#next-question {
  background: #28a745;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#next-question:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

#next-question:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.hourglass {
  width: clamp(40px, 10vw, 80px);
  height: clamp(40px, 10vw, 80px);
  border: clamp(2px, 0.5vw, 4px) solid #0073e6;
  border-radius: 50%;
  position: relative;
  animation: rotate 2s linear infinite;
}

.hourglass:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: clamp(2px, 0.5vw, 4px) solid transparent;
  border-top-color: #0073e6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loadingOverlay p {
  font-size: clamp(14px, 2vw, 18px);
  margin-top: clamp(10px, 2vw, 20px);
  text-align: center;
  max-width: 80%;
}

#loadingOverlay p:last-child {
  font-size: clamp(12px, 1.5vw, 14px);
  color: #666;
}

/* Test Results */
.result-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h2 {
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.result-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.result-text p {
  margin-bottom: 1.5rem;
}

.result-cta {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border-left: 4px solid var(--color-primary);
}

.result-cta h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.result-cta p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.email-capture {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.email-capture h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-form .form-row,
.email-form input[type="text"],
.email-form input[type="email"],
.email-form button {
  width: 100%;
  box-sizing: border-box;
}

.email-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
}

.email-form input[type="email"]:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 75, 148, 0.1);
}

.email-form button {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-form button:hover {
  background: #5f3c73;
  transform: translateY(-1px);
}

.email-form .privacy-policy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.email-form .privacy-policy input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
}

.email-form .privacy-policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.long-test-teaser {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-welcome);
  border-radius: var(--radius);
  text-align: center;
}

.long-test-teaser p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Test History */
.test-history {
  margin-top: 30px;
}

.test-history h6 {
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.test-entry {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.accordion {
  width: 100%;
  padding: 15px;
  background: #f8f9fa;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion:hover {
  background: #e9ecef;
}

.accordion span {
  font-size: 20px;
  margin-right: 10px;
}

.accordion span:last-child {
  color: #666;
  margin-left: 10px;
}

.panel {
  display: none;
  padding: 20px;
  background: white;
  transition: all 0.3s ease;
}

.panel h4 {
  color: #333;
  margin-bottom: 15px;
}

.panel div {
  color: #444;
  line-height: 1.6;
}

.panel p {
  color: #666;
  font-style: italic;
}

/* Long Test Container */
.long-test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.long-test-container h2 {
  color: #333;
  margin-bottom: 20px;
}

.long-test-container p {
  color: #333;
  margin-bottom: 20px;
}

.test-button {
  display: inline-block;
  padding: 12px 24px;
  background: #1a73e8;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.test-button:hover {
  transform: scale(1.05);
}

/* Payment Options */
.payment-options {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.payment-options h6 {
  font-size: 20px;
  color: #333;
  margin-bottom: 1rem;
}

.payment-method {
  margin-top: 2rem;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* ==========================
   ANIMATIONS
   ========================== */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================
   MOBILE OPTIMIZATION
   ========================== */

@media (max-width: 768px) {
  .btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  .form-group input {
    font-size: 0.95rem;
  }
  
  .pp-container {
    margin: 20px auto;
    padding: 15px;
  }
  
  .pp-login-container {
    padding: 30px 20px;
  }
  
  .pp-login-header h2 {
    font-size: 24px;
  }
  
  .pp-login-header p {
    font-size: 14px;
  }
  
  .pp-form-group input {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  .pp-btn {
    padding: 10px 20px;
    font-size: 16px;
  }
  
  .welcome-grid {
    flex-direction: column;
  }
  
  .welcome-left, .welcome-right {
    flex: 1 1 100%;
  }
  
  .result-button {
    font-size: 14px;
    padding: 10px;
    max-width: 90%;
  }

  #answer-labels {
    flex-direction: column;
    gap: 8px;
  }

  .answer-label {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    padding: 10px 8px;
  }

  #question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .result-container {
    padding: 1.5rem;
    margin: 1rem;
    width: 100%;
  }

  .result-header h2 {
    font-size: 1.5rem;
  }

  .result-text {
    font-size: 1rem;
  }

  .email-form .form-row {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pp-container {
    margin: 10px auto;
    padding: 10px;
  }
  
  .pp-login-container {
    padding: 20px 15px;
  }
  
  .pp-login-header h2 {
    font-size: 22px;
  }
  
  #ki-test-container {
    max-width: 90%;
  }

  .hourglass {
    width: 50px;
    height: 50px;
  }
  
  #loadingOverlay p {
    font-size: 14px;
    margin-top: 15px;
  }
  
  #loadingOverlay p:last-child {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  #chart-container {
    width: 95vw;
    max-height: 200px;
  }
}

/* Tablet Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
  #answer-labels {
    flex-wrap: wrap;
    justify-content: center;
  }

  .answer-label {
    flex: 0 0 calc(50% - 5px);
    margin-bottom: 10px;
  }
}

/* Große Bildschirme */
@media (min-width: 1025px) {
  .answer-label {
    font-size: 15px;
    padding: 15px 10px;
  }
}

/* Fragen-Container Anpassungen */
.question-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.question-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 25px;
  line-height: 1.5;
}

.pp-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pp-password-wrapper input {
    padding-right: 40px !important; /* Wichtig, damit der Text nicht unter den Button läuft */
}

.pp-password-toggle {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pp-password-toggle:hover {
    color: var(--color-primary);
}
