/* Kontaktformular: Felder, Validierung, Benachrichtigungen und Settings-Modal */
.contact-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-muted);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-muted);
  color: var(--color-fg-default);
}

.contact-info-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-fg-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(47, 129, 247, 0.3);
}

.contact-info-card a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.contact-intro {
  color: var(--color-fg-default);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: var(--color-bg-elevated);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-muted);
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg-default);
}

.form-group .required {
  color: #f85149;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  color: var(--color-fg-default);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-fg-subtle);
}

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

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--color-primary);
  text-decoration: none;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-lg svg {
  flex-shrink: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* Notification Styles */
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-overlay);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  animation: slide-in-right 0.3s ease;
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-success {
  border-left: 4px solid #3fb950;
}

.notification-success .notification-icon {
  color: #3fb950;
}

.notification-error {
  border-left: 4px solid #f85149;
}

.notification-error .notification-icon {
  color: #f85149;
}

.notification-content {
  flex: 1;
}

.notification-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-fg-default);
}

.notification-content p {
  margin: 0;
  font-size: 13px;
  color: var(--color-fg-muted);
}

.notification-close {
  background: none;
  border: none;
  color: var(--color-fg-subtle);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.notification-close:hover {
  color: var(--color-fg-default);
}

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100001;
  max-width: 400px;
}

/* Tour Prompt Action Buttons */
.tour-prompt .action-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: var(--color-primary);
  color: var(--color-fg-inverse);
}

.tour-prompt .action-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(47, 129, 247, 0.3);
}

.tour-prompt .action-btn.secondary {
  background: transparent;
  color: var(--color-fg-default);
  border: 1px solid var(--color-border-default);
}

.tour-prompt .action-btn.secondary:hover {
  background: var(--color-bg-input);
  border-color: var(--color-primary);
  color: var(--color-primary);
}


body.tour-active {
  overflow: hidden;
}

body.tour-active .chat-popup {
  z-index: 10002;
}

body.tour-active .chat-popup > * {
  position: relative;
  z-index: 10002;
}

/* Settings Modal wÃ¤hrend Tour */
body.tour-active .modal-overlay {
  z-index: 10003;
  background: transparent;
}

body.tour-active .modal-overlay .modal {
  z-index: 10004;
  position: relative;
}

body.tour-active #settingsModal {
  pointer-events: none;
}

body.tour-active #settingsModal .modal {
  pointer-events: auto;
}

body.tour-active #themeSelect,
body.tour-active #languageSelect {
  position: relative;
  z-index: 10005;
}

/* Tour Button im Header */
#tourBtn {
  position: relative;
}

#tourBtn::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}


#tourBtn.show-hint::after {
  opacity: 1;
  animation: tour-pulse 2s infinite;
}

@keyframes tour-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Tour Prompt Nachricht */
.tour-prompt-message {
  background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
  border: 1px solid var(--color-primary-muted);
  border-left: 4px solid var(--color-primary);
}

/* Mobile Anpassungen */
@media (max-width: 640px) {
  .tour-tooltip {
    width: calc(100vw - 24px);
    max-width: none;
    left: 12px !important;
    right: 12px;
  }
  
  .tour-tooltip-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .tour-btn-skip {
    order: 2;
  }
  
  .tour-btn-group {
    width: 100%;
    justify-content: space-between;
  }
  
  .tour-btn-prev,
  .tour-btn-next {
    flex: 1;
  }
}
