:root {
  --lila: #b39dbd;
  --lila-light: #e8dff0;
  --lila-dark: #7b6690;
  --eukalyptus: #7aab8a;
  --eukalyptus-light: #d4e8da;
  --eukalyptus-dark: #4a7a5a;
  --creme: #f9f6f0;
  --text: #3a3040;
  --text-soft: #7a6e82;
}

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

body {
  min-height: 100vh;
  background: var(--creme);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(179,157,189,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 450px;
  max-height: 450px;
  background: radial-gradient(circle, rgba(122,171,138,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(179,157,189,0.3);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 380px;
  width: 92%;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

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

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--lila-dark);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

#cameraInput,
#galleryInput { display: none; }

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transition: opacity 0.2s;
}

/* Großer Kamera-Button */
.camera-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.camera-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lila) 0%, var(--eukalyptus) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 32px rgba(122,102,144,0.25);
  color: white;
}
.camera-circle:active { transform: scale(0.95); }
.camera-circle svg {
  width: 44px;
  height: 44px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kleiner Mediathek-Button (Gerätegalerie) */
.device-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(179,157,189,0.5);
  border-radius: 99px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.device-gallery-btn:hover {
  background: var(--lila-light);
  color: var(--lila-dark);
  border-color: var(--lila);
}
.device-gallery-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Status-Bereich */
.status {
  margin-top: 2rem;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 3px;
  background: var(--lila-light);
  border-radius: 99px;
  overflow: hidden;
  display: none;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lila) 0%, var(--eukalyptus) 100%);
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--eukalyptus-light);
  display: none;
  align-items: center;
  justify-content: center;
}
.success-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--eukalyptus-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-text {
  color: #c0524a;
  font-size: 0.82rem;
  display: none;
}

/* FAB – Link zur Foto-Galerie (klar unterschiedlich vom Mediathek-Button) */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eukalyptus);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(74,122,90,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}
.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(74,122,90,0.45);
}
.fab:active { transform: scale(0.95); }
.fab svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
