@charset "UTF-8";

/* =========================
   WayFinder Umfragen Styles
   ========================= */

:root {
  --container: min(800px, 92vw);
  --radius: 14px;
  --elev-1: 0 4px 12px rgba(0,0,0,.08);
  --elev-2: 0 12px 28px rgba(0,0,0,.16);
  --color-yellow: #FFD447;
  --color-orange: #F28C28;
  --color-blue: #247BA0;
  --color-purple: #A065C2;
  --color-green: #2E5946;
}

/* Reset/Typo */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
  min-height: 100vh;
}

/* Container */
.survey-container {
  width: var(--container);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Header */
.survey-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #1e5f79 0%, #247BA0 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--elev-2);
}

.survey-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.survey-intro {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Form */
.survey-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--elev-1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-green);
  margin-bottom: 0.75rem;
}

.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.98rem;
}

.checkbox-label:hover {
  background: #f3f4f6;
  border-color: var(--color-orange);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-orange);
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
  line-height: 1.5;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.98rem;
}

.radio-label:hover {
  background: #f3f4f6;
  border-color: var(--color-orange);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-orange);
  flex-shrink: 0;
}

.radio-label span {
  flex: 1;
  line-height: 1.5;
}

/* Scale Group */
.scale-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scale-item {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.scale-label {
  display: block;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.scale-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.scale-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  min-width: 50px;
  justify-content: center;
}

.scale-option:hover {
  border-color: var(--color-orange);
  background: #fff5eb;
}

.scale-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-orange);
  margin: 0;
}

.scale-option:has(input[type="radio"]:checked) {
  border-color: var(--color-orange);
  background: #fff5eb;
  font-weight: 600;
}

/* Inline Input for "anderes" */
.form-input-inline {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  margin-top: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-inline:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

/* Wichtigste Funktion Radio Buttons */
.checkbox-with-wichtigste {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.checkbox-with-wichtigste > span {
  flex: 1;
}

.wichtigste-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.wichtigste-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-orange);
  flex-shrink: 0;
}

.wichtigste-radio:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wichtigste-label {
  font-size: 0.85rem;
  color: var(--color-orange);
  font-weight: 600;
  white-space: nowrap;
}

.form-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* Submit Button */
.form-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.btn-submit {
  background-color: var(--color-orange);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--elev-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: "Nunito", sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  background: rgb(227, 120, 14);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Success Message */
.success-message {
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--elev-2);
}

.success-message i {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.success-message h2 {
  color: var(--color-blue);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.success-message p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn-back {
  background-color: var(--color-blue);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--elev-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  background: #1e5f79;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .survey-container {
    margin: 1rem auto;
  }

  .survey-header {
    padding: 1.5rem 1rem;
  }

  .survey-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .scale-options {
    gap: 0.5rem;
  }

  .scale-option {
    flex: 1;
    min-width: 45px;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
}

