/* ===============================================
   PLANEDO DASHBOARD STYLESHEET - REDUNDANZEN ENTFERNT
   =============================================== */

/* === CSS VARIABLEN === */
:root { 
  --accent-primary: #2f5d62;
  --accent-secondary: #3e7275;
  --accent-orange: #fb9700;
  --accent-orange-hover: #f98400;
  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #666;
  --border-color: #e0e0e0;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --shadow-light: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-medium: 0 6px 14px rgba(0,0,0,0.08);
  --border-radius: 8px;
  --border-radius-large: 16px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* === FONT AWESOME INTEGRATION === */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* === GLOBAL RESET === */
.planedo-header, .planedo-sidebar, .planedo-bottom-nav, .planedo-mobile-menu {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text-primary);
}

/* ===============================================
   NAVIGATION COMPONENTS
   =============================================== */

/* === MOBILE HEADER === */
.planedo-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--background-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
  box-shadow: var(--shadow-light);
  z-index: 1001;
  margin-left: 0 !important;
}

.planedo-header img {
  height: 48px;
  max-height: 56px;
  width: auto;
}

.planedo-header .header-right {
  display: flex;
  align-items: center;
}

.planedo-header .home-icon, 
.planedo-header .profile-icon, 
.planedo-header .menu-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
  cursor: pointer;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.menu-icon.open {
  transform: rotate(90deg);
}

/* === MOBILE DROPDOWN MENU === */
.planedo-mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--background-white);
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), padding-bottom 0.6s;
  box-shadow: var(--shadow-medium);
  border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
  padding-bottom: 0;
  z-index: 1000;
  margin-left: 0 !important;
}

.planedo-mobile-menu.open {
  max-height: 500px;
  padding-bottom: 1rem;
}

.planedo-mobile-menu a {
  padding: 1rem;
  margin: 0.25rem 1rem;
  text-decoration: none;
  color: #222222;
  background: #f2f2f2;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
  border-bottom: 1px solid #dddddd;
}

.planedo-mobile-menu a:last-child {
  border-bottom: none;
}

.planedo-mobile-menu a:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}

/* === BOTTOM NAVIGATION MOBILE === */
.planedo-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.1rem 0;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 1001;
  margin-left: 0 !important;
}

.planedo-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  gap: 0.1rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  margin: 0.1rem;
  background: var(--background-white);
  border-radius: 12px;
  transition: background 0.3s, transform 0.3s;
  box-shadow: var(--shadow-light);
}

/* === SIDEBAR DESKTOP === */
.planedo-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 220px;
  background: var(--background-light);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
  z-index: 1000;
}

.planedo-sidebar img {
  height: 60px;
  width: auto;
  margin-bottom: 2rem;
}

.planedo-sidebar a {
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  width: 90%;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.planedo-sidebar a i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.planedo-sidebar a:hover {
  background: #e6f0ef;
}

.planedo-sidebar a.active {
  background: #d0e4e2;
  font-weight: bold;
}

/* ===============================================
   DASHBOARD COMPONENTS
   =============================================== */

/* === DASHBOARD SECTIONS === */
.planedo-dashboard-section {
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.planedo-dashboard-section h2 {
  color: var(--accent-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.planedo-dashboard-section p {
  color: var(--accent-secondary);
  font-size: 1rem;
}

.planedo-dashboard-welcome {
  padding: 2rem;
  background: var(--background-light);
  text-align: center;
  border-bottom: 1px solid #eee;
}

.planedo-dashboard-welcome h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.planedo-dashboard-welcome p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* === CO2 KONTO === */
.planedo-co2-konto {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.planedo-co2-konto-inner {
  background: var(--background-white);
  padding: 1.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.planedo-co2-konto-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.planedo-co2-konto-header i {
  font-size: 2.5rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.planedo-co2-konto-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.planedo-co2-konto-body p {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.planedo-co2-konto-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.planedo-co2-konto-actions a {
  background: var(--accent-orange);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--background-white);
  font-size: 0.9rem;
  transition: background 0.3s;
}

.planedo-co2-konto-actions a:hover {
  background: var(--accent-orange-hover);
}

/* === DASHBOARD GRID === */
.planedo-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  animation: fadeIn 1s ease forwards;
}

/* === DASHBOARD CARDS === */
.planedo-dashboard-card {
  background: var(--background-white);
  border-radius: var(--border-radius-large);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.5s forwards;
}

.planedo-dashboard-card:hover {
  background: #fff3e0;
  box-shadow: var(--shadow-medium);
}

.planedo-dashboard-card i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-secondary);
}

.planedo-dashboard-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.planedo-dashboard-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* === BADGES === */
.planedo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-secondary);
  color: var(--background-white);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}

.planedo-badge.badge-important {
  background: var(--accent-orange);
}

/* === MINI ACTIONS === */
.planedo-mini-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.2rem;
  margin: 1.5rem auto !important;
  padding: 0.5rem 0;
  background: var(--background-light);
  border-radius: 12px;
  max-width: 400px;
  width: 100% !important;
  box-shadow: var(--shadow-light);
  animation: fadeIn 1s ease forwards;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  position: relative !important;
}

.planedo-mini-actions a {
  background: var(--accent-secondary);
  color: var(--background-white);
  padding: 0.7rem;
  border-radius: 50%;
  font-size: 1.4rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planedo-mini-actions a:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

/* ===============================================
   FORM COMPONENTS
   =============================================== */

/* === GENERAL CARDS === */
.planedo-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
  text-align: center;
}

.planedo-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.planedo-card p {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

/* === ENHANCED CARD COMPONENTS === */
.planedo-card-header {
  background: var(--accent-primary) !important;
  padding: 1.5rem !important;
  color: var(--background-white) !important;
}

.planedo-card-header-with-back {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.planedo-card-title {
  font-size: 1.25rem !important;
  font-weight: bold !important;
  margin: 0 !important;
  color: var(--background-white) !important;
}

.planedo-back-button {
  background: none !important;
  border: none !important;
  color: var(--background-white) !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 0 !important;
}

.planedo-back-button:hover {
  opacity: 0.8 !important;
}

.planedo-card-body {
  padding: 1.5rem;
}

/* === BUTTONS === */
.planedo-button {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--background-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  margin: 0.5rem;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.planedo-button:hover {
  background: var(--accent-secondary);
}

.planedo-button-small {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.planedo-button-accent {
  background: var(--accent-orange) !important;
}

.planedo-button-accent:hover {
  background: var(--accent-orange-hover) !important;
}

.planedo-button-full {
  width: 100% !important;
}

.planedo-option-button {
  background: var(--background-white) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--accent-primary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 0.25rem !important;
}

.planedo-option-button:hover {
  background: var(--accent-primary) !important;
  color: var(--background-white) !important;
  border-color: var(--accent-primary) !important;
}

/* === FORM COMPONENTS === */
.planedo-form-group {
  margin-bottom: 1.5rem;
}

.planedo-form-group:last-child {
  margin-bottom: 0;
}

.planedo-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* === INPUTS === */
.planedo-input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.planedo-input:focus {
  outline: none !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(47, 93, 98, 0.1) !important;
}

.planedo-input:read-only {
  background: var(--background-light) !important;
  color: var(--text-secondary) !important;
}

.planedo-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* === TABLES === */
.planedo-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.planedo-table th, 
.planedo-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  color: var(--accent-secondary);
}

.planedo-table th {
  background: #e6f0ef;
}

.planedo-table tbody tr:hover {
  background: #f1f5f4;
}

/* ===============================================
   TAB NAVIGATION
   =============================================== */

.planedo-tab-nav {
  display: flex;
  background: var(--background-white);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.planedo-tab-button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555555;
  transition: all 0.3s ease;
}

.planedo-tab-button.active {
  background: var(--accent-primary);
  color: var(--background-white);
}

.planedo-tab-button:hover:not(.active) {
  background: var(--background-light);
  color: var(--accent-secondary);
}

/* ===============================================
   CHAT COMPONENTS
   =============================================== */

.planedo-chat {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.planedo-chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--background-light);
}

.planedo-message {
  margin-bottom: 1rem;
}

.planedo-message:last-child {
  margin-bottom: 0;
}

.planedo-message-left {
  text-align: left;
}

.planedo-message-right {
  text-align: right;
}

.planedo-message-bubble {
  display: inline-block;
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-large);
  font-size: 0.95rem;
  line-height: 1.4;
}

.planedo-message-bot {
  background: var(--background-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.planedo-message-user {
  background: var(--accent-primary);
  color: var(--background-white);
}

.planedo-message-options {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.planedo-chat-input {
  display: flex;
  padding: 1rem;
  background: var(--background-white);
  border-top: 1px solid var(--border-color);
}

.planedo-chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
  outline: none;
}

.planedo-chat-input input:focus {
  border-color: var(--accent-primary);
}

.planedo-chat-input button {
  background: var(--accent-primary);
  color: var(--background-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.planedo-chat-input button:hover {
  background: var(--accent-secondary);
}

/* ===============================================
   REACT APP CONTAINER
   =============================================== */

.planedo-app {
  min-height: 100vh;
  background: var(--background-light);
  padding: 2rem 1rem;
}

.planedo-app-container {
  max-width: 480px;
  margin: 0 auto;
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* === SPINNER === */
.planedo-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: planedo-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes planedo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===============================================
   NAVIGATION CONTROL & DISABLED STATES
   =============================================== */

.planedo-nav-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  position: relative;
  pointer-events: none;
}

.planedo-nav-disabled::after {
  content: '🔒';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
}

.planedo-nav-disabled:hover {
  background: #ffebee !important;
  color: #d32f2f !important;
}

.planedo-dashboard-card.planedo-nav-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.planedo-dashboard-card.planedo-nav-disabled:hover {
  background: #ffebee !important;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.1) !important;
  transform: none !important;
}

.planedo-dashboard-card.planedo-nav-disabled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-large);
  z-index: 1;
}

.planedo-dashboard-card.planedo-nav-disabled::after {
  content: '🔒 Impact berechnen erforderlich';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: #d32f2f;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.planedo-mini-actions a.planedo-nav-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.planedo-mini-actions a.planedo-nav-disabled:hover {
  background: #d32f2f !important;
  transform: none !important;
}

/* === NOTICES === */
.planedo-notice {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--border-radius);
  animation: fadeIn 0.5s ease;
}

.planedo-notice-info {
  background: #f3e5f5;
  border-left-color: #9c27b0;
}

.planedo-notice p {
  margin: 0;
  color: var(--text-primary);
}

/* ===============================================
   BUSINESS IMPACT PAGE STYLES (Business-spezifische Styles behalten)
   =============================================== */

.av-welcome {
  max-width: 480px;
  margin: 32px auto;
  padding: 24px 16px;
  background: #f9fafb;
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  text-align: left;
}

.av-welcome h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.av-welcome p {
  margin: 0;
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
}

.av-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 16px auto;
  font-family: var(--font-family);
}

.av-name {
  font-weight: 600;
  color: var(--accent-primary);
}

.av-help-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s;
}

.av-help-btn:hover {
  color: var(--accent-primary);
}

.av-help-tooltip {
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #fffbea;
  border: 1px solid #f5e1a4;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  color: #374151;
}

.av-help-tooltip ul {
  margin: 0;
  padding-left: 20px;
}

.av-milestones {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}

.av-milestones span {
  color: #e5e7eb;
  font-size: 1.2rem;
}

.av-milestones span.active {
  color: var(--accent-primary);
}

.av-progress {
  max-width: 480px;
  margin: 8px auto;
  text-align: center;
  font-family: var(--font-family);
}

.av-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

#av-progress-fill {
  width: 0;
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.av-progress-text {
  margin-top: 4px;
  font-size: .85rem;
  color: #374151;
}

.av-chat-container {
  max-width: 480px;
  margin: 0 auto 32px; !important;
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 500px;
  font-family: var(--font-family);
}

.av-chat-window {
  flex: 1;
  padding: 16px;
  background: #f5f7fa;
  overflow-y: auto;
}

.av-live-summary {
  padding: 8px 16px;
  background: #f0f9f4;
  color: #064e3b;
  font-size: .9rem;
  text-align: right;
}

.av-chat-input {
  display: flex;
  border-top: 1px solid #e5e7eb;
}

.av-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 1rem;
}

.av-chat-input button {
  background: var(--accent-primary);
  color: var(--background-white);
  border: none;
  padding: 0 20px;
  margin-left: 4px;
  cursor: pointer;
  transition: background .2s;
  font-size: 1rem;
}

.av-chat-input button:hover {
  background: #24514f;
}

.av-message {
  display: flex;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeIn .3s forwards;
}

.av-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--background-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  font-size: .85rem;
}

.av-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--background-white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  position: relative;
}

.av-justification {
  display: block;
  font-size: .8rem;
  color: #6b7280;
  margin-top: 4px;
}

.av-bubble.suggestion {
  background: #fff4e5;
}

.av-default-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.av-btn {
  padding: 8px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
}

.av-btn-yes {
  background: var(--accent-primary);
  color: var(--background-white);
}

.av-btn-yes:hover {
  background: #24514f;
}

.av-btn-no {
  background: #e5e7eb;
  color: #374151;
}

.av-btn-no:hover {
  background: #d1d5db;
}

.av-restart-btn {
  margin-top: 16px;
  background: #e5e7eb;
  color: #374151;
}

.av-typing {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.av-typing .av-avatar {
  opacity: .5;
}

.av-typing .av-bubble {
  background: #e0e0e0;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  gap: 4px;
}

.dot {
  width: 5px;
  height: 5px;
  background: #888;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.dot:nth-child(2) { 
  animation-delay: .2s; 
}

.dot:nth-child(3) { 
  animation-delay: .4s; 
}

@keyframes blink { 
  0%,80%,100% { opacity: .2; }
  40% { opacity: 1; } 
}

.planedo-result {
  max-width: 720px;
  margin: 32px auto;
  padding: 32px 24px;
  background: var(--background-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-large);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  font-family: var(--font-family);
  text-align: center;
  color: #111827;
}

.planedo-result h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.planedo-result .value-box {
  display: inline-block;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 8px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

.planedo-result p {
  font-size: .95rem;
  color: #4b5563;
  margin-top: 16px;
}

.planedo-result .button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--accent-primary);
  color: var(--background-white);
  font-size: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background .3s;
}

.planedo-result .button:hover {
  background: #24494d;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* === DESKTOP === */
@media (min-width: 768px) {
  .planedo-header, 
  .planedo-bottom-nav, 
  .planedo-mobile-menu {
    display: none;
  }
  
  body:has(.planedo-sidebar),
  body.page-template-dashboard,
  .planedo-sidebar + * {
    margin-left: 220px !important;
    padding-right: 2rem !important;
  }
  
  .planedo-sidebar ~ *,
  .planedo-sidebar + .planedo-dashboard-section {
    margin-left: 0 !important;
  }
  
  .planedo-dashboard-grid {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* === MOBILE === */
@media (max-width: 767px) {
  .planedo-sidebar {
    display: none;
  }
  
  body:has(.planedo-header),
  body:has(.planedo-bottom-nav) {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: 0 !important;
  }
  
  .planedo-mini-actions {
    gap: 1rem;
  }
  
  .planedo-nav-disabled::after {
    right: 0.3rem;
    font-size: 0.7rem;
  }
  
  .planedo-dashboard-card.planedo-nav-disabled::after {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .planedo-app {
    padding: 1rem 0.5rem;
  }
  
  .planedo-card-body {
    padding: 1rem;
  }
  
  .planedo-input-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .planedo-message-bubble {
    max-width: 90%;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .planedo-option-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .planedo-result {
    padding: 24px 16px;
  }
  
  .planedo-result .value-box {
    padding: 12px 16px;
    font-size: .9rem;
  }
}

/* ===============================================
   REGISTRATION FORM
   =============================================== */

.planedo-register-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #e8f0f0 0%, #f5f7f7 50%, #fef6e8 100%);
}

.planedo-register-card {
  background: var(--background-white);
  border-radius: var(--border-radius-large);
  box-shadow: 0 8px 32px rgba(47, 93, 98, 0.12);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.planedo-register-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.planedo-register-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.planedo-register-header h2 {
  color: var(--accent-primary);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.planedo-register-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.planedo-register-form {
  padding: 1.5rem 2rem 2rem;
}

/* === Profiltyp-Toggle (Pill-Buttons) === */
.planedo-profile-type-toggle {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.planedo-profile-type-option {
  flex: 1;
  cursor: pointer;
  margin: 0;
}

.planedo-profile-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.planedo-profile-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--background-light);
  transition: all 0.25s ease;
  text-align: center;
}

.planedo-profile-type-option.active .planedo-profile-type-pill {
  border-color: var(--accent-primary);
  color: var(--background-white);
  background: var(--accent-primary);
}

.planedo-profile-type-pill:hover {
  border-color: var(--accent-secondary);
}

/* === Passwort-Feld mit Toggle === */
.planedo-password-wrap {
  position: relative;
}

.planedo-password-wrap .planedo-input {
  padding-right: 3rem;
}

.planedo-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s;
}

.planedo-password-toggle:hover {
  color: var(--accent-primary);
}

/* === Feld-Fehlermeldungen === */
.planedo-field-error {
  display: none;
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.planedo-input.planedo-input-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
}

/* === Allgemeine Nachrichten-Box === */
.planedo-register-message {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.planedo-register-message-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.planedo-register-message-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* === Footer (Login-Link) === */
.planedo-register-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.planedo-register-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.planedo-register-footer a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

.planedo-register-footer a:hover {
  text-decoration: underline;
}

/* === Registration Responsive === */
@media (max-width: 480px) {
  .planedo-register-wrap {
    padding: 1rem 0.5rem;
    min-height: auto;
  }

  .planedo-register-card {
    border-radius: 12px;
  }

  .planedo-register-header {
    padding: 1.5rem 1.5rem 0.75rem;
  }

  .planedo-register-header h2 {
    font-size: 1.3rem;
  }

  .planedo-register-form {
    padding: 1rem 1.5rem 1.5rem;
  }

  .planedo-profile-type-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===============================================
   MULTI-STEP PROGRESS INDICATOR
   =============================================== */

.planedo-register-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 0;
  gap: 0;
}

.planedo-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 70px;
}

.planedo-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--background-light);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.planedo-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.planedo-progress-step.active .planedo-progress-dot {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.planedo-progress-step.active .planedo-progress-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.planedo-progress-step.done .planedo-progress-dot {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.planedo-progress-step.done .planedo-progress-label {
  color: var(--accent-primary);
}

.planedo-progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s ease;
}

/* ===============================================
   MULTI-STEP CONTAINER
   =============================================== */

.planedo-register-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.planedo-register-step.active {
  display: block;
}

/* ===============================================
   SURVEY QUESTIONS
   =============================================== */

.planedo-survey-question {
  display: none;
  animation: fadeIn 0.3s ease;
}

.planedo-survey-question.active {
  display: block;
}

.planedo-survey-question .planedo-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-primary);
}

.planedo-survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.planedo-survey-option {
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 120px;
  cursor: pointer;
  margin: 0;
}

.planedo-survey-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.planedo-survey-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--background-white);
  transition: all 0.25s ease;
  text-align: center;
}

.planedo-survey-pill:hover {
  border-color: var(--accent-secondary);
  background: var(--background-light);
}

.planedo-survey-option.active .planedo-survey-pill {
  border-color: var(--accent-primary);
  color: var(--background-white);
  background: var(--accent-primary);
}

.planedo-survey-option.active .planedo-survey-pill i {
  color: var(--background-white);
}

.planedo-survey-pill i {
  font-size: 1.1rem;
  color: var(--accent-primary);
  transition: color 0.25s ease;
}

/* ===============================================
   STEP NAVIGATION (Zurueck / Weiter)
   =============================================== */

.planedo-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.planedo-button-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  padding: 0.65rem 1.2rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planedo-button-ghost:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-primary);
}

/* ===============================================
   SURVEY RESULT (Step 3)
   =============================================== */

.planedo-survey-result {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-radius: var(--border-radius-large);
  border: 1px solid #c8e6c9;
}

.planedo-result-icon {
  font-size: 2.5rem;
  color: #43a047;
  margin-bottom: 1rem;
}

.planedo-result-class {
  margin-bottom: 1.5rem;
}

.planedo-result-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.planedo-result-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

.planedo-result-recommendation {
  padding-top: 1rem;
  border-top: 1px solid #c8e6c9;
}

.planedo-result-membership {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.planedo-result-detail {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===============================================
   SURVEY RESPONSIVE
   =============================================== */

@media (max-width: 480px) {
  .planedo-register-progress {
    padding: 1rem 1rem 0;
  }

  .planedo-progress-step {
    min-width: 50px;
  }

  .planedo-progress-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .planedo-progress-label {
    font-size: 0.65rem;
  }

  .planedo-survey-option {
    flex: 1 1 100%;
  }

  .planedo-survey-pill {
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
  }

  .planedo-result-value {
    font-size: 1.8rem;
  }

  .planedo-result-membership {
    font-size: 1.1rem;
  }
}