* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #1a1a1a 0%, #2d1a1a 50%, #1a1a1a 100%);
  color: #f5f5f5;
  overflow-x: hidden;
}

.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  max-width: 480px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fca5a5;
}

.hint {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

#phone-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

#phone-input:focus {
  border-color: #ef4444;
}

#phone-input::placeholder {
  color: #71717a;
}

.secondary-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #3f3f46;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.secondary-btn:active {
  transform: scale(0.98);
  background: #52525b;
}

.saved-info {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #86efac;
  text-align: center;
  min-height: 1.2em;
}

/* ===== GROSSER PANIK-BUTTON ===== */
.panic-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.panic-btn {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #ef4444, #b91c1c 60%, #7f1d1d);
  box-shadow: 
    0 0 0 8px rgba(239, 68, 68, 0.25),
    0 12px 40px rgba(185, 28, 28, 0.5),
    inset 0 4px 12px rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.panic-btn:disabled {
  background: radial-gradient(circle at 30% 30%, #52525b, #3f3f46 60%, #27272a);
  box-shadow: 0 0 0 8px rgba(82, 82, 91, 0.2);
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.panic-btn:not(:disabled):active {
  transform: scale(0.94);
  box-shadow: 
    0 0 0 12px rgba(239, 68, 68, 0.4),
    0 6px 20px rgba(185, 28, 28, 0.6);
}

.panic-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.panic-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.panic-hint {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #a1a1aa;
  text-align: center;
}

/* Status */
.status-section {
  min-height: 3rem;
}

.status {
  text-align: center;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  line-height: 1.4;
}

.status.info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status.loading {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.5;
  padding-bottom: 1rem;
}

/* Kleine Handys */
@media (max-height: 700px) {
  .panic-btn {
    width: 210px;
    height: 210px;
  }
  .panic-icon {
    font-size: 2.6rem;
  }
  .panic-text {
    font-size: 1.15rem;
  }
}

/* Sehr große Displays (Tablet) */
@media (min-width: 500px) {
  .container {
    padding: 2rem;
  }
}