* { 
  box-sizing: border-box; 
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 480px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  background: #121212;
  color: #e0e0e0;
}

.card {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  font-weight: 500;
}

button.secondary { background: #374151; }
button.danger { background: #b91c1c; }
button:active { filter: brightness(0.9); }

.hidden { display: none !important; }

.divider {
  text-align: center;
  margin: 1.2rem 0;
  color: #666;
  font-size: 0.85rem;
}

/* --- NEU: Trainingsplan Grid & Kacheln --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.plan-counter {
  font-size: 0.85rem;
  color: #888;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.plan-tile {
  background: #262626;
  border: 1px solid #383838;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #f3f4f6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 95px;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
  word-break: break-word;
}

.plan-tile:hover {
  border-color: #3b82f6;
  background: #2d2d2d;
}

.plan-tile:active {
  transform: scale(0.97);
}

.plan-tile.add-tile {
  background: rgba(37, 99, 235, 0.08);
  border: 2px dashed #3b82f6;
  color: #60a5fa;
  font-size: 2rem;
  font-weight: 400;
}

.plan-tile.add-tile span {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* --- Eingabe-Box für neuen Plan --- */
.create-box {
  background: #252525;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.create-box-actions {
  display: flex;
  gap: 0.5rem;
}

.create-box-actions button {
  margin-top: 0;
}