/* TellMe Frontend - Modernes, professionelles Design */
:root {
  --tellme-primary: #667eea;
  --tellme-primary-dark: #5a67d8;
  --tellme-success: #10b981;
  --tellme-warning: #f59e0b;
  --tellme-error: #ef4444;
  --tellme-gray-50: #f9fafb;
  --tellme-gray-100: #f3f4f6;
  --tellme-gray-200: #e5e7eb;
  --tellme-gray-300: #d1d5db;
  --tellme-gray-400: #9ca3af;
  --tellme-gray-500: #6b7280;
  --tellme-gray-600: #4b5563;
  --tellme-gray-700: #374151;
  --tellme-gray-800: #1f2937;
  --tellme-gray-900: #111827;
}

/* Reset und Base Styles */
.tellme-form-container *,
.tellme-display-container * {
  box-sizing: border-box;
}

/* Formular Container - 100% Breite */
.tellme-form-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 0;
  background: var(--tellme-form-bg, #ffffff);
}

.tellme-form-card {
  width: 100%;
  background: var(--tellme-form-bg, #ffffff);
  border: 1px solid var(--tellme-form-border, var(--tellme-gray-200));
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  max-width: 800px;
}

.tellme-form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tellme-form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tellme-title-color, var(--tellme-gray-900));
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.tellme-form-description {
  font-size: 1.125rem;
  color: var(--tellme-text-color, var(--tellme-gray-600));
  margin: 0;
  line-height: 1.6;
}

/* Formular Felder */
.tellme-field {
  margin-bottom: 2rem;
}

.tellme-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--tellme-title-color, var(--tellme-gray-900));
}

.tellme-required {
  color: var(--tellme-error);
  margin-left: 0.25rem;
}

.tellme-input,
.tellme-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--tellme-form-border, var(--tellme-gray-200));
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}

.tellme-input:focus,
.tellme-textarea:focus {
  outline: none;
  border-color: var(--tellme-button-color, var(--tellme-primary));
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.tellme-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Sterne-Bewertung */
.tellme-rating {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.tellme-star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--tellme-gray-300);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: 4px;
}

.tellme-star-btn:hover,
.tellme-star-btn.active {
  color: #fbbf24;
  transform: scale(1.1);
}

/* Zustimmungsfeld */
.tellme-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.6;
}

.tellme-consent input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.tellme-consent-text {
  font-size: 0.9rem;
  color: var(--tellme-text-color, var(--tellme-gray-600));
}

.tellme-consent-text a {
  color: var(--tellme-button-color, var(--tellme-primary));
  text-decoration: underline;
}

.tellme-consent-text a:hover {
  text-decoration: none;
}

/* Submit Bereich */
.tellme-submit-section {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tellme-gray-200);
}

.tellme-submit {
  background: var(--tellme-button-color, var(--tellme-primary));
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tellme-submit:hover {
  background: var(--tellme-button-hover, var(--tellme-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.tellme-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tellme-required-text {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--tellme-text-color, var(--tellme-gray-500));
}

/* Erfolgs-Meldung */
.tellme-success {
  text-align: center;
  padding: 3rem;
  background: var(--tellme-gray-50);
  border-radius: 12px;
  border: 2px solid var(--tellme-success);
}

.tellme-success-icon {
  font-size: 4rem;
  color: var(--tellme-success);
  margin-bottom: 1.5rem;
  display: block;
}

.tellme-success h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--tellme-gray-900);
  margin: 0 0 1rem 0;
}

.tellme-success p {
  font-size: 1.125rem;
  color: var(--tellme-gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Display Container - 100% Breite */
.tellme-display-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 0;
}

.tellme-display-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tellme-display-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tellme-title-color, var(--tellme-gray-900));
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.tellme-display-subtitle {
  font-size: 1.125rem;
  color: var(--tellme-text-color, var(--tellme-gray-600));
  margin: 0;
  line-height: 1.6;
}

/* Kontroll-Elemente */
.tellme-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.tellme-search {
  flex: 1;
  min-width: 300px;
}

.tellme-search-input {
  width: 100%;
  height: 3rem;
  padding: 0 1.25rem;
  border: 2px solid var(--tellme-gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.tellme-search-input:focus {
  outline: none;
  border-color: var(--tellme-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tellme-sort {
  min-width: 200px;
}

.tellme-sort-select {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 2px solid var(--tellme-gray-200);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tellme-sort-select:focus {
  outline: none;
  border-color: var(--tellme-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Einträge Grid */
.tellme-entries {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tellme-columns-1 {
  grid-template-columns: 1fr;
}

.tellme-columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.tellme-columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Entry Cards */
.tellme-entry-card {
  background: var(--tellme-card-bg, white);
  border: 1px solid var(--tellme-gray-200);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tellme-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--tellme-card-hover-border, #667eea);
}

.tellme-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.tellme-entry-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tellme-title-color, var(--tellme-gray-900));
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.tellme-report-btn {
  background: none;
  border: none;
  color: var(--tellme-gray-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.tellme-report-btn:hover {
  color: var(--tellme-error);
  background: var(--tellme-gray-100);
}

/* Bewertung */
.tellme-entry-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tellme-star {
  color: #fbbf24;
  font-size: 1.25rem;
}

.tellme-star.empty {
  color: var(--tellme-gray-300);
}

.tellme-rating-text {
  font-size: 0.875rem;
  color: var(--tellme-text-color, var(--tellme-gray-500));
  font-weight: 500;
}

/* Datum */
.tellme-entry-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tellme-text-color, var(--tellme-gray-500));
  margin-bottom: 1.5rem;
}

/* Content */
.tellme-entry-content {
  line-height: 1.6;
}

.tellme-entry-field1,
.tellme-entry-field2 {
  margin-bottom: 1.5rem;
}

.tellme-entry-field1 h4,
.tellme-entry-field2 h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tellme-title-color, var(--tellme-gray-900));
  margin: 0 0 0.5rem 0;
}

.tellme-entry-field1 p {
  color: var(--tellme-text-color, var(--tellme-gray-700));
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Badge mit konfigurierbaren Farben */
.tellme-badge {
  display: inline-block;
  background: var(--tellme-badge-bg, #3b82f6);
  color: var(--tellme-badge-text, #ffffff);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Keine Einträge */
.tellme-no-entries {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--tellme-text-color, var(--tellme-gray-500));
  background: var(--tellme-gray-50);
  border-radius: 12px;
  border: 2px dashed var(--tellme-gray-300);
}

.tellme-no-entries p {
  font-size: 1.125rem;
  margin: 0;
}

/* CTA */
.tellme-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--tellme-cta-bg, #f9fafb);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--tellme-text-color, var(--tellme-gray-600));
  line-height: 1.6;
}

.tellme-cta a {
  color: var(--tellme-button-color, var(--tellme-primary));
  text-decoration: none;
  font-weight: 600;
}

.tellme-cta a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tellme-form-card {
    padding: 2rem 1.5rem;
  }

  .tellme-form-title {
    font-size: 2rem;
  }

  .tellme-display-title {
    font-size: 2rem;
  }

  .tellme-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .tellme-search {
    min-width: auto;
  }

  .tellme-columns-2,
  .tellme-columns-3 {
    grid-template-columns: 1fr;
  }

  .tellme-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tellme-entry-card {
    padding: 1.5rem;
  }

  .tellme-consent {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .tellme-form-card {
    padding: 1.5rem 1rem;
  }

  .tellme-form-title {
    font-size: 1.75rem;
  }

  .tellme-display-title {
    font-size: 1.75rem;
  }

  .tellme-entry-card {
    padding: 1rem;
  }
}

/* Badge mit konfigurierbaren Farben */
.tellme-star {
  color: var(--tellme-star-active, #fbbf24);
  font-size: 1.25rem;
}

.tellme-star.empty {
  color: var(--tellme-star-inactive, #d1d5db);
}

.tellme-star-btn:hover,
.tellme-star-btn.active {
  color: var(--tellme-star-active, #fbbf24);
  transform: scale(1.1);
}

/* Karten-Hover mit konfigurierbarer Farbe */
.tellme-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--tellme-card-hover-border, #667eea);
}

/* Input-Focus mit konfigurierbarer Farbe */
.tellme-input:focus,
.tellme-textarea:focus,
.tellme-search-input:focus,
.tellme-sort-select:focus {
  outline: none;
  border-color: var(--tellme-input-focus, #667eea);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Datum mit konfigurierbarer Farbe */
.tellme-entry-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tellme-date-color, #6b7280);
  margin-bottom: 1.5rem;
}

/* Feld-Labels mit konfigurierbarer Farbe */
.tellme-entry-field1 h4,
.tellme-entry-field2 h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tellme-field-label-color, #374151);
  margin: 0 0 0.5rem 0;
}

/* Suchfeld-Hintergrund */
.tellme-search-input,
.tellme-sort-select {
  background: var(--tellme-search-bg, #ffffff);
}

/* CTA-Hintergrund */
.tellme-cta {
  background: var(--tellme-cta-bg, #f9fafb);
}

/* Erfolgs-Farben */
.tellme-success {
  border: 2px solid var(--tellme-success-color, #10b981);
}

.tellme-success-icon {
  color: var(--tellme-success-color, #10b981);
}

/* Fehler-Farben */
.tellme-error {
  color: var(--tellme-error-color, #ef4444);
}

/* Custom CSS wird hier eingefügt */
/* TELLME_CUSTOM_CSS_PLACEHOLDER */
