/**
 * Immerhelfer - Alpha Phase Helper Widget
 * Styles für deine-hp.deinehp.de
 */

/* Toggle Button */
.immerhelfer-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 12px 8px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  cursor: pointer;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.immerhelfer-toggle:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  padding-left: 12px;
}

.immerhelfer-toggle.open {
  background: white;
  color: #6b7280;
}

.immerhelfer-toggle.open:hover {
  background: #f9fafb;
}

.immerhelfer-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Sidebar */
.immerhelfer-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 380px;
  max-width: 90vw;
  background: white;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.immerhelfer-sidebar.open {
  transform: translateX(0);
}

/* Header */
.immerhelfer-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 20px;
}

.immerhelfer-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.immerhelfer-header-content h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.immerhelfer-header-content .immerhelfer-icon {
  width: 24px;
  height: 24px;
}

.immerhelfer-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.immerhelfer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.immerhelfer-close-btn svg {
  width: 18px;
  height: 18px;
}

.immerhelfer-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Tabs */
.immerhelfer-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.immerhelfer-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.immerhelfer-tab svg {
  width: 16px;
  height: 16px;
}

.immerhelfer-tab:hover {
  color: #4f46e5;
  background: #f9fafb;
}

.immerhelfer-tab.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

/* Content */
.immerhelfer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.immerhelfer-tab-content {
  display: none;
}

.immerhelfer-tab-content.active {
  display: block;
}

.immerhelfer-tab-content h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #111827;
}

.immerhelfer-tab-content h4 {
  margin: 20px 0 12px 0;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

/* Info Boxes */
.immerhelfer-info-box {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.immerhelfer-info-box p {
  margin: 0;
  font-size: 14px;
  color: #1e40af;
}

.immerhelfer-warning-box {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: start;
}

.immerhelfer-warning-box svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.immerhelfer-warning-box p {
  margin: 0;
  font-size: 13px;
  color: #92400e;
}

.immerhelfer-success-box {
  background: #d1fae5;
  border-left: 3px solid #10b981;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.immerhelfer-success-box svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.immerhelfer-success-box p {
  margin: 0;
  font-size: 14px;
  color: #065f46;
}

/* Tips List */
.immerhelfer-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.immerhelfer-tips-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  position: relative;
  padding-left: 32px;
}

.immerhelfer-tips-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: #10b981;
  font-weight: bold;
}

/* FAQ Items */
.immerhelfer-faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.immerhelfer-faq-item:last-child {
  border-bottom: none;
}

.immerhelfer-faq-item h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #111827;
  font-weight: 600;
}

.immerhelfer-faq-item p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Form */
.immerhelfer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.immerhelfer-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.immerhelfer-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.immerhelfer-form-group input,
.immerhelfer-form-group select,
.immerhelfer-form-group textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.immerhelfer-form-group input:focus,
.immerhelfer-form-group select:focus,
.immerhelfer-form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.immerhelfer-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.immerhelfer-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.immerhelfer-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.immerhelfer-btn-primary svg {
  width: 16px;
  height: 16px;
}

/* Footer */
.immerhelfer-footer {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.immerhelfer-footer p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Overlay */
.immerhelfer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.immerhelfer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Text utilities */
.immerhelfer-text-sm {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .immerhelfer-sidebar {
    width: 100vw;
    max-width: 100vw;
  }

  .immerhelfer-content {
    padding: 16px;
  }

  .immerhelfer-tab {
    font-size: 12px;
    padding: 10px 8px;
  }

  .immerhelfer-tab span {
    display: none;
  }
}

/* Scrollbar */
.immerhelfer-content::-webkit-scrollbar {
  width: 6px;
}

.immerhelfer-content::-webkit-scrollbar-track {
  background: #f9fafb;
}

.immerhelfer-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.immerhelfer-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
