/* ===================================
   WOCHE FÜR VIELFALT 2025 - FEEDBACK
   Mobile-First Design
   =================================== */

:root {
  --color-red: #ff6b6b;
  --color-orange: #ffa500;
  --color-yellow: #ffd93d;
  --color-green: #6bcf7f;
  --color-blue: #4d96ff;
  --color-purple: #9b59b6;
  --color-pink: #e56399;
  --color-light-blue: #a8d5e2;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --border-color: #e0e0e0;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fef9f3 0%, #f8f9fa 100%);
  min-height: 100vh;
  padding: 0;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* ===================================
   HEADER
   =================================== */
.header {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      rgba(255, 107, 107, 0.03),
      rgba(255, 165, 0, 0.03),
      rgba(255, 217, 61, 0.03),
      rgba(107, 207, 127, 0.03),
      rgba(77, 150, 255, 0.03));
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.rainbow-text {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 10px 0;
  text-transform: uppercase;
}

.letter {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.letter:nth-child(1) {
  animation-delay: 0s;
}

.letter:nth-child(2) {
  animation-delay: 0.1s;
}

.letter:nth-child(3) {
  animation-delay: 0.2s;
}

.letter:nth-child(4) {
  animation-delay: 0.3s;
}

.letter:nth-child(5) {
  animation-delay: 0.4s;
}

.letter:nth-child(6) {
  animation-delay: 0.5s;
}

.letter:nth-child(7) {
  animation-delay: 0.6s;
}

.letter:nth-child(8) {
  animation-delay: 0.7s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.main-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 900;
  margin: 5px 0;
}

.subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-secondary);
  margin: 15px 0 5px;
  font-weight: 600;
}

.tagline {
  position: relative;
  z-index: 1;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  font-style: italic;
}

/* ===================================
   TABS NAVIGATION
   =================================== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: var(--bg-primary);
  padding: 10px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 15px 20px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-blue));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ===================================
   TAB CONTENT
   =================================== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   INTRO TEXT
   =================================== */
.intro-text {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 30px;
  background: var(--bg-primary);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.intro-text h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-blue);
  margin-bottom: 15px;
}

.intro-text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ===================================
   FORM STYLES
   =================================== */
.feedback-form {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

.form-section {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 2px dashed var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 15px;
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--color-blue);
  transform: translateX(5px);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-blue);
}

.checkbox-label span,
.radio-label span {
  flex: 1;
  font-size: 1rem;
  color: var(--text-primary);
}

.checkbox-label.privacy {
  background: #fff9e6;
  border-color: var(--color-yellow);
}

/* Rating Group */
.rating-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.rating-label:hover {
  border-color: var(--color-yellow);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.rating-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-yellow);
}

.rating-text {
  flex: 1;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Textarea */
textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.1);
}

/* Select */
select {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.1);
}

/* Email Input */
.email-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.email-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.1);
}

/* Rating Matrix */
.rating-matrix {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 10px;
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.matrix-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.rating-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-scale label {
  flex: 1;
  min-width: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.rating-scale label:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.rating-scale input[type="radio"] {
  display: none;
}

.rating-scale label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rating-scale input[type="radio"]:checked+span {
  color: var(--color-blue);
}

.rating-scale label:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(77, 150, 255, 0.1), rgba(107, 207, 127, 0.1));
  border-color: var(--color-blue);
  border-width: 3px;
}

.required {
  color: var(--color-red);
  margin-left: 3px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-blue));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 3px solid #28a745;
  border-radius: 15px;
  animation: slideDown 0.5s ease;
}

.success-message h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #155724;
  margin-bottom: 15px;
}

.success-message p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #155724;
  margin-bottom: 10px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* ===================================
   RESULTS STYLES
   =================================== */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card:nth-child(1) {
  border-top: 4px solid var(--color-red);
}

.stat-card:nth-child(2) {
  border-top: 4px solid var(--color-yellow);
}

.stat-card:nth-child(3) {
  border-top: 4px solid var(--color-green);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Charts */
.charts-container {
  margin-top: 30px;
}

.chart-section {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.chart-section h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

canvas {
  max-height: 400px !important;
}

/* Text Feedback */
.text-feedback {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.text-feedback h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

#comments-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-card {
  padding: 20px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--color-blue);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.comment-card h4 {
  font-size: 1rem;
  color: var(--color-blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.comment-card p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

.no-comments {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer p {
  margin: 5px 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .feedback-form {
    padding: 20px;
  }

  .tabs {
    padding: 8px;
  }

  .tab-btn {
    min-width: 100%;
    padding: 12px 15px;
  }

  .checkbox-label,
  .radio-label,
  .rating-label {
    padding: 12px;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 30px;
  }

  .stats-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print Styles */
@media print {

  .tabs,
  .submit-btn,
  #export-btn {
    display: none;
  }

  body {
    background: white;
  }

  .container {
    max-width: 100%;
  }
}