/* ✅ MEINPROFIL CSS - NUR SEITENSPEZIFISCHE STYLES */
/* (Generische .pp-section, .pp-header sind jetzt in pp_haupt.css) */

/* 🎯 PROFIL-SPEZIFISCHE CSS-VARIABLEN */
:root {
  --primary: #7b4b94;
  --accent: #f9b5d0;
  --bg-soft: #fdf6f9;
  --bg-welcome: #f3e8f9;
  --btn-primary: #7b4b94;
  --btn-secondary: #a48bbf;
  --card-radius: 1rem;
  --text-color: #333;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 🎯 PROFIL-WRAPPER (Profil-spezifisch) */
.profil-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  color: var(--text-color);
}

/* 🎯 WELCOME-KOMPONENTEN (Profil-spezifisch) */
.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-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.welcome-info {
  flex: 1;
}

.welcome-actions {
  flex-shrink: 0;
  margin-left: 1rem;
}

.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-BUTTONS (Profil-spezifisch) */
.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.disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.profil-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logout-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #dc3545;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #c82333;
  color: white !important;
  text-decoration: none;
}

/* 🎯 INFO-CARDS (Profil-spezifisch) */
.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-SYSTEM (Profil-spezifisch) */
.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;
}

.accordion-content::-webkit-scrollbar {
  width: 8px;
}

.accordion-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.accordion-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Accordion Cards */
.accordion-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  display: block;
}

.toggle-icon {
  transition: transform 0.2s;
}

.accordion-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* 🎯 CHART-CONTAINER (Profil-spezifisch) */
.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 (Profil-spezifisch) */
.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);
}

/* 🎯 MESSAGE-SYSTEM (Profil-spezifisch) */
.pp-message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.pp-message {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

.pp-message-error {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.pp-message-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

/* 🎯 LOGIN-COMPONENTS (Profil-spezifisch) */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.login-links {
  margin-top: 1.5em;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* 🎯 PASSWORT-SETUP (Profil-spezifisch) */
.password-setup-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  margin-top: 10px;
  border-radius: 6px;
  color: #856404;
}

.password-setup-notice a {
  display: inline-block;
  margin-top: 10px;
  background-color: #ffc107;
  color: #000;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}

/* 🎯 ACTION GRID (Profil-spezifisch) */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.no-results {
  font-style: italic;
  color: #666;
  text-align: center;
}

/* 🎯 MOBILE RESPONSIVE (Profil-spezifisch) */
@media (max-width: 768px) {
  .profil-wrapper {
    padding: 1rem;
  }

  .welcome-grid {
    flex-direction: column;
  }

  .welcome-left,
  .welcome-right {
    flex: 1 1 100%;
  }

  .welcome-header {
    flex-direction: column;
    align-items: stretch;
  }

  .welcome-actions {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
  }

  .logout-btn {
    width: 100%;
    text-align: center;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
