/* ZIRKEL8 Apply — Typeform-style application form */

:root {
  /* Surface colors */
  --surface: #031522;
  --surface-dim: #00101c;
  --surface-low: #0b1d2a;
  --surface-mid: #0f212f;
  --surface-high: #1a2c39;
  --surface-bright: #253745;

  /* Accent */
  --amber: #FFB200;
  --amber-light: #ffba3c;
  --amber-dim: #a87400;
  --amber-glow: rgba(255, 178, 0, 0.15);
  --teal: #00A8A3;
  --teal-light: #59d9d4;

  /* Text */
  --text: #d2e5f7;
  --text-muted: #8d9196;
  --text-faint: #43474c;

  /* Misc */
  --border: rgba(255, 255, 255, 0.06);
  --radius: 0.5rem;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #071e2e 0%, #031522 40%, #031522 100%);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* Gradient mesh blobs (matching dev.zirkel8.de) */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: -10%;
  width: 600px;
  height: 400px;
  background: rgba(255, 178, 0, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: meshDrift1 25s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 500px;
  background: rgba(0, 168, 163, 0.035);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: meshDrift2 30s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 40px); }
}

@keyframes meshDrift2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -30px); }
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--surface-low);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-light) 100%);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo */
.logo-container {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 90;
}

.logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Form Container */
.form-container {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.form-container::before {
  content: '';
  position: fixed;
  top: 30%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 178, 0, 0.025);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: meshDrift3 22s ease-in-out infinite alternate;
}

@keyframes meshDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 50px) scale(1.15); }
}

/* Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 4rem 0 3rem;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Center short slides vertically */
.slide .slide-content {
  margin-top: auto;
  margin-bottom: auto;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide.exit-up {
  opacity: 0;
  transform: translateY(-30px);
}

.slide.exit-down {
  opacity: 0;
  transform: translateY(30px);
}

.slide-content {
  max-width: 640px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 1rem;
  background: rgba(3, 21, 34, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.slide-content.statement {
  text-align: center;
  max-width: 720px;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.accent {
  color: var(--amber);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.muted {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hint {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: 1rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 168, 163, 0.3);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(0, 168, 163, 0.06);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 168, 163, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 168, 163, 0); }
}

/* Question Number */
.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: var(--surface);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255, 178, 0, 0.25);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  color: #1a1100;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 178, 0, 0.35), 0 0 60px rgba(255, 178, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arrow {
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

/* Input Fields */
.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-highlight {
  color: var(--teal-light);
  background: rgba(0, 168, 163, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1.125rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.4s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-faint);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--amber);
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.input-group input.error {
  border-color: #ff4444;
}

/* Choice Buttons */
.choices {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.choice.selected {
  background: rgba(255, 178, 0, 0.08);
  border-color: rgba(255, 178, 0, 0.4);
  color: var(--amber-light);
  box-shadow: 0 0 20px rgba(255, 178, 0, 0.08);
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--text-faint);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.choice.selected .key {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--surface);
}

/* Sonstiges free text */
.sonstiges-input {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.star {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.25rem;
  line-height: 1;
}

.star:hover,
.star.hovered {
  color: var(--amber-light);
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 178, 0, 0.4));
}

.star.active {
  color: var(--amber);
  filter: drop-shadow(0 0 12px rgba(255, 178, 0, 0.3));
}

/* Expect List (clean, no emojis) */
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.expect-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(255, 178, 0, 0.2);
  transition: all var(--transition);
}

.expect-item:hover {
  border-left-color: var(--amber);
  background: rgba(255, 178, 0, 0.02);
}

.expect-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expect-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Checklist */
.checklist {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
}

.checklist li {
  position: relative;
  padding: 0.625rem 0 0.625rem 2rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Checkmark */
.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: var(--surface);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(255, 178, 0, 0.3);
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Navigation */
.nav-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 90;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Submit Status */
.submit-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.submit-status.error {
  color: #ff6b6b;
}

.submit-status.success {
  color: var(--teal-light);
}

/* Loading spinner */
.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(26, 17, 0, 0.3);
  border-top-color: #1a1100;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .slide-content {
    padding: 1.5rem;
  }

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

  .logo-container {
    top: 1rem;
    left: 1.25rem;
  }

  .logo {
    width: 90px;
  }

  .nav-buttons {
    bottom: 1rem;
    right: 1rem;
  }

  .star {
    font-size: 2rem;
  }

  .choice {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-bright);
  border-radius: 3px;
}

/* Selection */
::selection {
  background: var(--amber);
  color: var(--surface);
}
